listToApproveProject.jsp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  8. <title>待审核列表</title>
  9. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  12. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  13. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  14. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  15. <script type="text/javascript" src="/shares/js/constant.js"></script>
  16. <script type="text/javascript" src="/shares/js/common.js"></script>
  17. <script type="text/javascript" src="/shares/js/yw/yongfu/common.js"></script>
  18. <script type="text/javascript">
  19. var grid = null;
  20. var oDialogs = [];
  21. function getTime(){
  22. return new Date().getTime();
  23. }
  24. function openODialog(owurl, name, dialogId) {
  25. // alert(owurl);
  26. // alert(dialogId);
  27. var oDialog = openTopDialog({
  28. height : $("body", window.top.document).height() - 50,
  29. width : $("body", window.top.document).width() - 600,
  30. url : owurl,
  31. showMax : false,
  32. showToggle : false,
  33. showMin : true,
  34. isResize : false,
  35. modal : false,
  36. title : name,
  37. id : dialogId,
  38. allowClose : true,
  39. isHidden: true,
  40. timeParmName : "date1"
  41. });
  42. oDialogs.push(oDialog);
  43. }
  44. $(function () {
  45. grid = $("#maingrid4").ligerGrid({
  46. columns: [
  47. { display: '建设单位', name: 'project_build_unit', width: 150},
  48. { display: '工程名称', name: 'project_name', width: 150},
  49. { display: '合同造价(万元)', name: 'project_cost', width: 150},
  50. { display: '工程地点', name: 'project_place', width: 70},
  51. { display: '合同签订日期', name: 'project_contract_date', width: 100
  52. ,render: function (row) {
  53. var html = subDate(row.project_contract_date);
  54. return html;
  55. }
  56. },
  57. { display: '项目经理', name: 'project_pm', width: 130},
  58. { display: '安全员', name: 'project_safety', width: 70},
  59. { display: '项目责任人', name: 'record_duty_man', width: 100},
  60. { display: '联系电话', name: 'project_tel', width: 100},
  61. { display: '结构质式', name: 'project_structure', width: 100},
  62. { display: '建筑面积', name: 'project_area', width: 70},
  63. { display: '工期', name: 'project_time', width: 50},
  64. { display: '开工时间', name: 'project_start_date', width: 100
  65. ,render: function (row) {
  66. var html = subDate(row.project_start_date);
  67. return html;
  68. }
  69. },
  70. { display: '项目状态', name: 'project_type', width: 70},
  71. { display: '竣工时间', name: 'project_end_date', width: 100
  72. ,render: function (row) {
  73. var html = subDate(row.project_end_date);
  74. return html;
  75. }
  76. },
  77. { display: '工程质量', name: 'project_quality', width: 100},
  78. { display: '结算造价(万元)', name: 'project_pay_cost', width: 100},
  79. { display: '所属分公司', name: 'branch_company', width: 100},
  80. { display: '备注', name: 'project_remark', width: 100},
  81. {
  82. display: '操作', isAllowHide: false,width: 100,
  83. render: function (row)
  84. {
  85. var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'审批\', \'${pageContext.request.contextPath }/ProjectAction.do?task=operateApproveProject&universalid='
  86. + row.universalid + '&tabid=' + getCurrentTabId()+'\');\">审批</a>&nbsp;';
  87. return html;
  88. }
  89. }
  90. ],
  91. fixedCellHeight: false, //是否固定单元格的高度
  92. pageSize:20,
  93. url: 'ProjectAction.do?task=listToApproveProject&project_status=0&time=' + new Date().getTime(),
  94. pageParmName: 'p', //页索引参数名,(提交给服务器)
  95. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  96. enabledSort: true, //是否允许排序
  97. width: '99.8%',
  98. height: '99%'
  99. });
  100. $("#pageloading").hide();
  101. $("#createdatebegin").ligerDateEditor({
  102. labelWidth : 100,
  103. labelAlign : 'right',
  104. initValue : ''
  105. });
  106. $("#createdateend").ligerDateEditor({
  107. labelWidth : 100,
  108. labelAlign : 'right',
  109. initValue : ''
  110. });
  111. });
  112. function searchByKword(){
  113. var project_build_unit = document.getElementById("project_build_unit");
  114. var createdatebegin = document.getElementById("createdatebegin");
  115. var createdateend = document.getElementById("createdateend");
  116. var project_type = document.getElementById("project_type");
  117. var branch_company = document.getElementById("branch_company");
  118. var project_name = document.getElementById("project_name");
  119. var project_pm = document.getElementById("project_pm");
  120. var s = "";
  121. if(project_build_unit.value != "" && typeof(project_build_unit.value) != "undefined" ){
  122. s += "&project_build_unit=" + encodeURI(encodeURI(project_build_unit.value));
  123. }
  124. if(createdatebegin.value != "" && typeof(createdatebegin.value) != "undefined" ){
  125. s += "&createdatebegin=" + createdatebegin.value;
  126. }
  127. if(createdateend.value != "" && typeof(createdateend.value) != "undefined" ){
  128. s += "&createdateend=" + createdateend.value;
  129. }
  130. if(project_type.value != "" && typeof(project_type.value) != "undefined" ){
  131. s += "&project_type=" + project_type.value;
  132. }
  133. if(branch_company.value != "" && typeof(branch_company.value) != "undefined" ){
  134. s += "&branch_company=" + encodeURI(encodeURI(branch_company.value));
  135. }
  136. if(project_name.value != "" && typeof(project_name.value) != "undefined" ){
  137. s += "&project_name=" + encodeURI(encodeURI(project_name.value));
  138. }
  139. if(project_pm.value != "" && typeof(project_pm.value) != "undefined" ){
  140. s += "&project_pm=" + encodeURI(encodeURI(project_pm.value));
  141. }
  142. grid.set("newPage", "1");
  143. grid = $("#maingrid4").ligerGrid({
  144. columns: [
  145. { display: '建设单位', name: 'project_build_unit', width: 150},
  146. { display: '工程名称', name: 'project_name', width: 150},
  147. { display: '合同造价(万元)', name: 'project_cost', width: 150},
  148. { display: '工程地点', name: 'project_place', width: 70},
  149. { display: '合同签订日期', name: 'project_contract_date', width: 100
  150. ,render: function (row) {
  151. var html = subDate(row.project_contract_date);
  152. return html;
  153. }
  154. },
  155. { display: '项目经理', name: 'project_pm', width: 130},
  156. { display: '安全员', name: 'project_safety', width: 70},
  157. { display: '项目责任人', name: 'record_duty_man', width: 100},
  158. { display: '联系电话', name: 'project_tel', width: 100},
  159. { display: '结构质式', name: 'project_structure', width: 100},
  160. { display: '建筑面积', name: 'project_area', width: 70},
  161. { display: '工期', name: 'project_time', width: 50},
  162. { display: '开工时间', name: 'project_start_date', width: 100
  163. ,render: function (row) {
  164. var html = subDate(row.project_start_date);
  165. return html;
  166. }
  167. },
  168. { display: '项目状态', name: 'project_type', width: 70},
  169. { display: '竣工时间', name: 'project_end_date', width: 100
  170. ,render: function (row) {
  171. var html = subDate(row.project_end_date);
  172. return html;
  173. }
  174. },
  175. { display: '工程质量', name: 'project_quality', width: 100},
  176. { display: '结算造价(万元)', name: 'project_pay_cost', width: 100},
  177. { display: '所属分公司', name: 'branch_company', width: 100},
  178. { display: '备注', name: 'project_remark', width: 100},
  179. {
  180. display: '操作', isAllowHide: false,width: 100,
  181. render: function (row)
  182. {
  183. var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'审批\', \'${pageContext.request.contextPath }/ProjectAction.do?task=operateApproveProject&universalid='
  184. + row.universalid + '&tabid=' + getCurrentTabId()+'\');\">审批</a>&nbsp;';
  185. return html;
  186. }
  187. }
  188. ],
  189. fixedCellHeight: false, //是否固定单元格的高度
  190. pageSize:20,
  191. url: 'ProjectAction.do?task=listToApproveProject&project_status=0&time=' + new Date().getTime()+s,
  192. pageParmName: 'p', //页索引参数名,(提交给服务器)
  193. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  194. enabledSort: true, //是否允许排序
  195. width: '99.8%',
  196. height: '99%'
  197. });
  198. $("#pageloading").hide();
  199. }
  200. function searchAll() {
  201. $("#project_build_unit").val("");
  202. $("#createdatebegin").val("");
  203. $("#createdateend").val("");
  204. $("#project_type").val("");
  205. $("#branch_company").val("");
  206. $("#project_name").val("");
  207. $("#project_pm").val("");
  208. searchByKword();
  209. }
  210. </script>
  211. </head>
  212. <body >
  213. <form action="ProjectAction.do" method="post" target="_blank" name="temp">
  214. <div class="default_search" >
  215. <ul class="list_search">
  216. <li class="title">建设单位:</li>
  217. <li class="text">
  218. <input type="text" name="project_build_unit" id="project_build_unit" >
  219. </li>
  220. </ul>
  221. <ul class="list_search" style="width: 380px;">
  222. <li class="title" style="width: 80px;">开工时间:</li>
  223. <li class="text" style="width: 135px;">
  224. <input type="text" id="createdatebegin" name="createdatebegin" style="width: 130px;" />
  225. <li class="title" style="width: 15px;">至&nbsp;&nbsp;
  226. </li>
  227. <li class="text" style="width: 135px;">
  228. <input type="text" id="createdateend" name="createdateend" style="width: 130px;" />
  229. </li>
  230. </ul>
  231. <ul class="list_search" >
  232. <li class="title">项目状态:</li>
  233. <li class="text">
  234. <select name="project_type" id="project_type">
  235. <option value="">==请选择==</option>
  236. <c:forEach var="list" items="${listProjectType}">
  237. <option value="${list.data_id }">${list.value_name }</option>
  238. </c:forEach>
  239. </select>
  240. </li>
  241. </ul>
  242. <ul class="list_search" >
  243. <li class="title">所属分公司:</li>
  244. <li class="text">
  245. <input type="text" name="branch_company" id="branch_company" >
  246. </li>
  247. </ul>
  248. <ul class="list_search" >
  249. <li class="title">工程名称:</li>
  250. <li class="text">
  251. <input type="text" name="project_name" id="project_name" >
  252. </li>
  253. </ul>
  254. <ul class="list_search" >
  255. <li class="title">项目经理:</li>
  256. <li class="text">
  257. <input type="text" name="project_pm" id="project_pm" >
  258. </li>
  259. </ul>
  260. <ul>
  261. <li class="search-button" >
  262. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  263. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  264. </li>
  265. </ul>
  266. </div>
  267. </form>
  268. <div style="clear: both;">
  269. <div id="maingrid4" style="margin: 0; padding: 0"></div>
  270. </div>
  271. </body>
  272. </html>