工作内容
1.页面添加栏位,当“合同类型”选择“监理”增加对应的施工合同、监理总监栏位

js代码为:

 1 $(function () {
 2     $("#contractType_V1").change(function () {
 3         var pur = document.getElementById("contractType_V1").value;
 4         //var contractType = $("#contractType_V1").val();
 5         if (pur == 'K') {
 6             $(".showChange").show();
 7         } else {
 8             $(".showChange").hide();
 9         }
10     })
11 })

增加的施工合同、监理总监栏位,用户点击会弹出一个页面,用户在弹出的页面中选择对应信息,该信息会回填到施工合同、监理总监栏位中,施工合同页面代码为:

 1 <%
 2     String sessionId = request.getParameter("_sessionId");
 3     dejcList list = new dejcList(_dsCom, request);
 4     list.setMaxRows(20);
 5     list.setBoxType(dejcList.RADIO);// 设为单选按钮,一次只能选一项
 6     StringBuffer sb = new StringBuffer();
 7     String companyId = _dsCom.companyId;
 8     sb.append("SELECT a.contractId as 合同编号, a.contractName as 合同名称,a.assoContractId as 关联监理合同号");
 9     sb.append(" FROM db.TBMSH22 a WHERE compId =  '" +companyId+"' and State = 'Z' and ContractType in ('A','B','L','D','E','F')");
10     sb.append(" order by updDate desc ");
11     String sql = sb.toString();
12     String s = list.getTable(sql);
13     //out.println("<div align=center >" + s + "</div>");
14 %>
15 <body style="position:absolute;top:0px;left:0px;right:0px;bottom:0px;padding:0;margin: 0;">
16     <div align=center style="height:100%;overflow-y: auto;">
17         <%=s%>
18     </div>
19 </body>

 2.写三个接口,合同确认时抛送、合同取消确认时删除、监理合同确认时把监理人员抛过去

12-20 12:43