| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389 |
- <%@ page contentType="text/html;charset=GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <HEAD>
- <TITLE>我的合同-MyLaunchList</TITLE>
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
- <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js"
- type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTab.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
- <script type="text/javascript">
- var grid = null;
- var curTab = 3;
- $(function (){
- $("#myContractTab").ligerTab({ onAfterSelectTabItem: function (tabid){
- if(tabid == "tabitem1"){
- curTab = 3;
- initList();
- }else if(tabid == "tabitem2"){
- curTab = 1;
- initList();
- }else if(tabid == "tabitem3"){
- curTab = 2;
- initList();
- }
- }});
- initList();
- });
- /* $(document).ready(function(){
- searchByKword();
- }); */
- function loadContractMyLaunchList(params) {
-
- grid = $("#contractMyLaunchGrid")
- .ligerGrid(
- {
- columns : [
- {
- display : '合同编号',
- name : 'contract_number',
- width : 120
- },
- {
- display : '合同名称',
- name : 'contract_name',
- width : 220
- },
- {
- display : '合同类型',
- name : 'contract_type_name',
- width : 100
- },
- {
- display : '签约部门',
- name : 'duty_department_name',
- width : 120
- },
- {
- display : '签约人',
- name : 'duty_man_name',
- width : 100
- },
- {
- display : '经办人',
- name : 'salesman_name',
- width : 100
- },
- {
- display : '合同签订日期',
- name : 'contract_signdate',
- width : 100
- },
- {
- display : '操作',
- isAllowHide : false,
- width : 220,
- render : function(row) {
- var html = '<a href=\"#\" onclick=\"viewContractMyLaunch('
- + row.universalid
- + ')\">查看合同信息</a> ';
- html += '<a href=\"#\" onclick=\"viewContractStatus('
- + row.universalid
- + ')\">查看合同执行情况</a> ';
- return html;
- }
- } ],
- pageSize : 20,
- url : 'contractMyLaunch.do?task=contractMyLaunchList'+params
- + '&time='
- + new Date().getTime(),
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- width : '99.9%',
- height : '99.5%'
- });
- $("#pageloading").hide();
- }
- function loadContractMyResponsibleList(params) {
- /* var grid = null; */
- grid = $("#contractMyResponsibleGrid")
- .ligerGrid(
- {
- columns : [
- {
- display : '合同编号',
- name : 'contract_number',
- width : 120
- },
- {
- display : '合同名称',
- name : 'contract_name',
- width : 220
- },
- {
- display : '合同类型',
- name : 'contract_type_name',
- width : 100
- },
- {
- display : '签约部门',
- name : 'duty_department_name',
- width : 120
- },
- {
- display : '签约人',
- name : 'duty_man_name',
- width : 100
- },
- {
- display : '经办人',
- name : 'salesman_name',
- width : 100
- },
- {
- display : '合同签订日期',
- name : 'contract_signdate',
- width : 100
- },
- {
- display : '操作',
- isAllowHide : false,
- width : 220,
- render : function(row) {
- var html = '<a href=\"#\" onclick=\"viewContractMyLaunch('
- + row.universalid
- + ')\">查看合同信息</a> ';
- html += '<a href=\"#\" onclick=\"viewContractStatus('
- + row.universalid
- + ')\">查看合同执行情况</a> ';
- return html;
- }
- } ],
- pageSize : 20,
- url : 'contractList.do?task=contractMyResponsibleList'+params
- + '&time='
- + new Date().getTime(),
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- width : '99.9%',
- height : '99.5%'
- });
- $("#pageloading").hide();
- }
- function loadContractMyEntryList(params) {
- /* var grid = null; */
- grid = $("#contractMyEntryGrid")
- .ligerGrid(
- {
- columns : [
- {
- display : '合同编号',
- name : 'contract_number',
- width : 120
- },
- {
- display : '合同名称',
- name : 'contract_name',
- width : 220
- },
- {
- display : '合同类型',
- name : 'contract_type_name',
- width : 100
- },
- {
- display : '签约部门',
- name : 'duty_department_name',
- width : 120
- },
- {
- display : '签约人',
- name : 'duty_man_name',
- width : 100
- },
- {
- display : '经办人',
- name : 'salesman_name',
- width : 100
- },
- {
- display : '合同签订日期',
- name : 'contract_signdate',
- width : 100
- },
- {
- display : '操作',
- isAllowHide : false,
- width : 220,
- render : function(row) {
- var html = '<a href=\"#\" onclick=\"viewContractMyEntry('
- + row.universalid
- + ')\">查看合同信息</a> ';
- html += '<a href=\"#\" onclick=\"editContractEntry('
- + row.universalid
- + ')\">编辑</a> ';
- html += '<a href=\"#\" onclick=\"delContractEntry('
- + row.universalid
- + ')\">删除</a> ';
- return html;
- }
- } ],
- pageSize : 20,
- url : 'contractList.do?task=contractMyEntryList'+params
- + '&time='
- + new Date().getTime(),
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- width : '99.9%',
- height : '99.5%'
- });
- $("#pageloading").hide();
- }
- function viewContractMyLaunch(id){
- window.parent.f_addTab(new Date().getTime(), '查看合同信息', '${pageContext.request.contextPath }/contractMyLaunch.do?task=viewContractMyLaunch&id='+id+'&tabid=' + getCurrentTabId());
- }
- function viewContractStatus(id){
- window.parent.f_addTab(new Date().getTime(), '查看合同执行情况', '${pageContext.request.contextPath }/contractMyLaunch.do?task=viewContractStatus&id='+id+'&tabid=' + getCurrentTabId());
- }
- function viewContractMyEntry(id){
- window.parent.f_addTab(new Date().getTime(), '查看合同信息', '${pageContext.request.contextPath }/contractMyLaunch.do?task=viewContractSearch&id='+id+'&tabid=' + getCurrentTabId());
- }
- function editContractEntry(id){
- window.parent.f_addTab(new Date().getTime(), '编辑合同', '${pageContext.request.contextPath }/contractEntry.do?task=toEditContractEntry&id='+id+'&tabid=' + getCurrentTabId());
- }
- function delContractEntry(id){
- if (window.confirm("确定要删除吗?")){
- var param={'id':id};
- sendAjaxParam(param,"contractEntry.do?task=delContractEntry",'json',delProcess);
- }
- }
- function delProcess(data){
- if(data.error!=null){
- $.ligerDialog.error(data.error);
- }
- if(data.success!=null){
- $.ligerDialog.success(data.success);
- }
- searchByKword();
- }
- function initList(){
- var params="";
- var contract_search_number=$("#contract_search_number").val();
- params=params+"&contract_search_number="+encodeURI(encodeURI(contract_search_number));
- var contract_search_name=$("#contract_search_name").val();
- params=params+"&contract_search_name="+encodeURI(encodeURI(contract_search_name));
- var contract_search_type=$("#contract_search_type").val();
- params=params+"&contract_search_type="+encodeURI(encodeURI(contract_search_type));
- switch(curTab){
- case 1 : loadContractMyLaunchList(params);
- break;
- case 2 : loadContractMyResponsibleList(params);
- break;
- case 3 : loadContractMyEntryList(params);
- break;
- default : loadContractMyEntryList(params);
- break;
- }
- }
- function searchByKword(){
- grid.set("newPage","1");
- var params="";
- var contract_search_number=$("#contract_search_number").val();
- params=params+"&contract_search_number="+encodeURI(encodeURI(contract_search_number));
- var contract_search_name=$("#contract_search_name").val();
- params=params+"&contract_search_name="+encodeURI(encodeURI(contract_search_name));
- var contract_search_type=$("#contract_search_type").val();
- params=params+"&contract_search_type="+encodeURI(encodeURI(contract_search_type));
- switch(curTab){
- case 1 : loadContractMyLaunchList(params);
- break;
- case 2 : loadContractMyResponsibleList(params);
- break;
- case 3 : loadContractMyEntryList(params);
- break;
- default : loadContractMyEntryList(params);
- break;
- }
-
- }
- $(function() {
-
- $("#contract_search_type").ligerComboBox();
- });
- </script>
- <style type="text/css">
- body {
- padding: 5px;
- margin: 0;
- }
- #layout1 {
- width: 100%;
- margin: 0;
- padding: 0;
- }
- .l-button {
- margin-left: 1px;
- width:100px;
- }
- .l-layout-left {
- overflow-y: auto;
- }
- </style>
- </HEAD>
- <BODY>
- <%@ include file="/include/button.jsp"%>
- <%@ include file="/include/message.jsp"%>
- <div id="title" class="form-button">
- <input style="width:80px;" type="button" class="l-button" value="新增合同" onclick="window.parent.f_addTab(new Date().getTime(), '新增合同', '${pageContext.request.contextPath }/contractEntry.do?task=toCreate&tabid=' + getCurrentTabId());"/>
- </div>
- <div class="container-layout">
- <div class="default_search" style="margin: 0;">
- <ul class="list_search">
- <li class="title">合同编号:</li>
- <li class="text"><input type="text" name="contract_search_number"
- id="contract_search_number" value=""/></li>
- </ul>
- <ul class="list_search">
- <li class="title">合同名称:</li>
- <li class="text"><input type="text" name="contract_search_name"
- id="contract_search_name" value=""/></li>
- </ul>
- <ul class="list_search">
- <li class="title">合同类型:</li>
- <li class="text">
- <select id="contract_search_type" name="contract_search_type">
- <option value="" selected="selected">-全部-</option>
- <c:forEach items="${typeList }" var="item">
- <option value="${item.contract_type }" >${item.contract_type_name }</option>
- </c:forEach>
- </select>
- </li>
- </ul>
- <ul>
- <li class="search-button"><input type="button" class='l-button'
- name="search" onclick="searchByKword()" value="查询" /></li>
- </ul>
- </div>
- <div id="myContractTab" class="tab2 l-tab" >
- <div title="我录入的合同" id="myETakingStockTab" style="overflow: hidden;">
- <div id="contractMyEntryGrid" style="margin: 0; padding: 0"></div>
- </div>
- <div title="我经办的合同" id="myDTakingStockTab" style="overflow: hidden;">
- <div id="contractMyLaunchGrid" style="margin: 0; padding: 0"></div>
- </div>
-
- <div title="我签约的合同" id="myPTakingStockTab" style="overflow: hidden;">
- <div id="contractMyResponsibleGrid" style="margin: 0; padding: 0"></div>
- </div>
- </div>
- <!-- <div style="overflow: hidden; clear: both;">
- <div id="contractMyLaunchGrid" style="margin: 0; padding: 0"></div>
- </div> -->
- </div>
- </BODY>
- </HTML>
|