toContractStat.jsp 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  6. <title>合同金额统计</title>
  7. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  8. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  9. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  10. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  11. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  12. <script type="text/javascript" src="/shares/js/constant.js"></script>
  13. <script type="text/javascript" src="/shares/js/common.js"></script>
  14. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  15. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  16. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
  17. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
  18. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerLayout.js" type="text/javascript"></script>
  19. <script type="text/javascript">
  20. $(function() {
  21. $("#search_date_start").ligerDateEditor({
  22. labelWidth : 128,
  23. labelAlign : 'right',
  24. showTime : false
  25. });
  26. $("#search_date_end").ligerDateEditor({
  27. labelWidth : 128,
  28. labelAlign : 'right',
  29. showTime : false
  30. });
  31. loadTypeTree("selectDeptButton", {
  32. type : "singledept",
  33. tab : "1",
  34. backId : "duty_department",
  35. backName : "duty_department_name"
  36. });
  37. });
  38. function toReset() {
  39. $("#search_date_start").val("");
  40. $("#search_date_end").val("");
  41. $("#contract_search_type").val("");
  42. $("#duty_department").val("");
  43. $("#duty_department_name").val("");
  44. $("#contract_search_firstparty").val("");
  45. $("#contract_search_firstparty_name").val("");
  46. }
  47. function selectCompany() {
  48. $.ligerDialog.open({
  49. title : '选择公司',
  50. width : 900,
  51. height : 370,
  52. url : 'contractEntry.do?task=toSelectCompany',
  53. buttons : [ {
  54. text : '确定',
  55. onclick : f_firstPartyOK
  56. },
  57. // {
  58. // text : '本公司',
  59. // onclick : f_firstPartyMyCompanyOK
  60. // },
  61. {
  62. text : '取消',
  63. onclick : f_firstPartyCancel
  64. } ]
  65. });
  66. }
  67. function f_firstPartyMyCompanyOK(item, dialog) {
  68. $.ajax({
  69. type : "POST",
  70. url : "contractCompany.do?task=isExistMyCompany",
  71. data : "",
  72. timeout : 10000,
  73. dataType : "json",
  74. success : function(data) {
  75. if (data.isExist == '1') {
  76. $("#contract_search_firstparty").val(
  77. data.company.universalid);
  78. $("#contract_search_firstparty_name").val(
  79. data.company.company_name);
  80. dialog.close();
  81. } else {
  82. alert("本公司信息没填写,请补充!");
  83. dialog.close();
  84. }
  85. },
  86. complete : function() {
  87. }
  88. });
  89. }
  90. function f_firstPartyOK(item, dialog) {
  91. var rows = dialog.frame.f_select();
  92. $("#contract_search_firstparty").val(rows[0].universalid);
  93. $("#contract_search_firstparty_name").val(rows[0].company_name);
  94. dialog.close();
  95. }
  96. function f_firstPartyCancel(item, dialog) {
  97. dialog.close();
  98. }
  99. $(function() {
  100. $("#contract_search_type").ligerComboBox();
  101. });
  102. </script>
  103. </head>
  104. <body>
  105. <%@ include file="/include/message.jsp"%>
  106. <div class="container-layout">
  107. <form action="contractMoneyStat.do" method="post" target="_blank">
  108. <div id="deptBtn" class="form-button">
  109. <!-- <a href="stockAction.do?task=inStockStatis" target="_blank"> 生成报表</a> -->
  110. <input type="submit" class="l-button" value="生成报表" />
  111. <input type="hidden" id="task" name="task" value="printContractMoneyStat">
  112. <input type="button" class="l-button" value="条件重置" onclick="toReset()" style="width: 80px;" />
  113. &nbsp;
  114. <!-- <a href="file.do?task=upload" target="_blank">测试上传文件按钮</a> -->
  115. <!-- <a href="contractHomePage.do?task=upload2" target="_blank">测试上传文件按钮22222</a> -->
  116. <!-- <a href="#" class="f8" onclick="changeImg('contract_jdjetj.jpg');" title="季度合同额报表"> <img src="/shares/images/master1/lc_ico.png" width="19" height="21" /> 季度合同额报表
  117. </a> -->
  118. </div>
  119. <div class="default_search">
  120. <ul class="list_search" >
  121. <li class="title" style="width:120px;">合同签订日期:</li>
  122. <li class="text" ><input type="text" name="search_date_start" id="search_date_start" >
  123. <li class="title title_rqjg">
  124. </li>
  125. <li class="text">
  126. <input type="text" name="search_date_end" id="search_date_end" >
  127. </li>
  128. </ul>
  129. <ul class="list_search" >
  130. <li class="title" >合同类型:</li>
  131. <li class="text" ><select id="contract_search_type" name="contract_search_type">
  132. <option value="" selected="selected">-全部-</option>
  133. <c:forEach items="${contractTypeList }" var="item">
  134. <option value="${item.dvalue }">${item.dname }</option>
  135. </c:forEach>
  136. </select></li>
  137. </ul>
  138. </div>
  139. <div class="default_search" >
  140. <ul class="list_search" >
  141. <li class="title">公司:</li>
  142. <li class="text" ><input type="text" name="contract_search_firstparty_name" id="contract_search_firstparty_name" value="" readonly="readonly" /> <input type="hidden"
  143. name="contract_search_firstparty" id="contract_search_firstparty" value="" readonly="readonly" /> <input type="button" class="l-button" name="selectFirstParty" id="selectFirstParty" value="选择"
  144. onclick="selectCompany()" style="width: 60px;" /></li>
  145. </ul>
  146. <ul class="list_search" >
  147. <li class="title" >签约部门:</li>
  148. <li class="text" ><input type="hidden" id="duty_department" name="duty_department" value="" readonly="readonly"> <input type="text" id="duty_department_name"
  149. name="duty_department_name" value="" style="width: 135px;" readonly="readonly"> <input type="button" class="l-button" id="selectDeptButton" value="选择部门" /></li>
  150. </ul>
  151. </div>
  152. </form>
  153. </div>
  154. </body>
  155. </html>