listIsApproveProject.jsp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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 deleteRow(obj)
  45. {
  46. if(confirm("确定要删除该项目吗?")){
  47. window.parent.f_addTab(new Date().getTime(), '删除项目', '${pageContext.request.contextPath }/ProjectAction.do?task=delProject&universalid='+obj+'&tabid=' + getCurrentTabId());
  48. }
  49. }
  50. function backEdit(obj)
  51. {
  52. if(confirm("确定要退回编辑该项目吗?")){
  53. window.parent.f_addTab(new Date().getTime(), '退回编辑', '${pageContext.request.contextPath }/ProjectAction.do?task=backProjectEdit&universalid='+obj+'&tabid=' + getCurrentTabId());
  54. }
  55. }
  56. $(function () {
  57. grid = $("#maingrid4").ligerGrid({
  58. columns: [
  59. { display: '建设单位', name: 'project_build_unit', width: 150},
  60. { display: '工程名称', name: 'project_name', width: 150},
  61. { display: '合同造价(万元)', name: 'project_cost', width: 150},
  62. { display: '工程地点', name: 'project_place', width: 70},
  63. { display: '合同签订日期', name: 'project_contract_date', width: 100
  64. ,render: function (row) {
  65. var html = subDate(row.project_contract_date);
  66. return html;
  67. }
  68. },
  69. { display: '项目经理', name: 'project_pm', width: 130},
  70. { display: '安全员', name: 'project_safety', width: 70},
  71. { display: '项目责任人', name: 'record_duty_man', width: 100},
  72. { display: '联系电话', name: 'project_tel', width: 100},
  73. { display: '结构质式', name: 'project_structure', width: 100},
  74. { display: '建筑面积', name: 'project_area', width: 70},
  75. { display: '工期', name: 'project_time', width: 50},
  76. { display: '开工时间', name: 'project_start_date', width: 100
  77. ,render: function (row) {
  78. var html = subDate(row.project_start_date);
  79. return html;
  80. }
  81. },
  82. { display: '项目状态', name: 'project_type', width: 70},
  83. { display: '竣工时间', name: 'project_end_date', width: 100
  84. ,render: function (row) {
  85. var html = subDate(row.project_end_date);
  86. return html;
  87. }
  88. },
  89. { display: '工程质量', name: 'project_quality', width: 100},
  90. { display: '结算造价(万元)', name: 'project_pay_cost', width: 100},
  91. { display: '所属分公司', name: 'branch_company', width: 100},
  92. { display: '备注', name: 'project_remark', width: 100},
  93. {
  94. display: '操作', isAllowHide: false,width: 320,
  95. render: function (row)
  96. {
  97. var html = '<a href=\"#\" onclick=\"backEdit('+row.universalid+')\">退回编辑</a>&nbsp;';
  98. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改\', \'${pageContext.request.contextPath }/ProjectAction.do?task=toEditProject&universalid='
  99. + row.universalid + '&tabid=' + getCurrentTabId()+'\');\">修改</a>&nbsp;';
  100. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'档案管理\', \'${pageContext.request.contextPath }/ProjectAction.do?task=toProjectRecordMgr&universalid='
  101. + row.universalid + '&tabid=' + getCurrentTabId()+'\');\">档案管理</a>&nbsp;';
  102. html += '<a href=\"#\" onclick=\"openODialog(\'${pageContext.request.contextPath }/ProjectAction.do?task=downloadAffix&universalid='
  103. + row.universalid + '&tabid=' + getCurrentTabId()
  104. + '&dialogId='+row.universalid+'\'+getTime(), \'资料下载\', \''+row.universalid+'\'+getTime());\">资料下载</a>&nbsp;';
  105. html += '<a href=\"${pageContext.request.contextPath }/ProjectAction.do?task=toPrintProjectRecord&universalid='+ row.universalid + '\" target=\"_blank\">打印资料清单</a>&nbsp;';
  106. html += '<a href=\"#\" onclick=\"deleteRow('+row.universalid+')\">删除</a>&nbsp;';
  107. return html;
  108. }
  109. }
  110. ],
  111. fixedCellHeight: false, //是否固定单元格的高度
  112. pageSize:20,
  113. url: 'ProjectAction.do?task=listProject&project_status=1&time=' + new Date().getTime(),
  114. pageParmName: 'p', //页索引参数名,(提交给服务器)
  115. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  116. enabledSort: true, //是否允许排序
  117. width: '99.8%',
  118. height: '99%'
  119. });
  120. $("#pageloading").hide();
  121. $("#createdatebegin").ligerDateEditor({
  122. labelWidth : 100,
  123. labelAlign : 'right',
  124. initValue : ''
  125. });
  126. $("#createdateend").ligerDateEditor({
  127. labelWidth : 100,
  128. labelAlign : 'right',
  129. initValue : ''
  130. });
  131. });
  132. function searchByKword(){
  133. var project_build_unit = document.getElementById("project_build_unit");
  134. var createdatebegin = document.getElementById("createdatebegin");
  135. var createdateend = document.getElementById("createdateend");
  136. var project_type = document.getElementById("project_type");
  137. var branch_company = document.getElementById("branch_company");
  138. var project_name = document.getElementById("project_name");
  139. var project_pm = document.getElementById("project_pm");
  140. var s = "";
  141. if(project_build_unit.value != "" && typeof(project_build_unit.value) != "undefined" ){
  142. s += "&project_build_unit=" + encodeURI(encodeURI(project_build_unit.value));
  143. }
  144. if(createdatebegin.value != "" && typeof(createdatebegin.value) != "undefined" ){
  145. s += "&createdatebegin=" + createdatebegin.value;
  146. }
  147. if(createdateend.value != "" && typeof(createdateend.value) != "undefined" ){
  148. s += "&createdateend=" + createdateend.value;
  149. }
  150. if(project_type.value != "" && typeof(project_type.value) != "undefined" ){
  151. s += "&project_type=" + project_type.value;
  152. }
  153. if(branch_company.value != "" && typeof(branch_company.value) != "undefined" ){
  154. s += "&branch_company=" + encodeURI(encodeURI(branch_company.value));
  155. }
  156. if(project_name.value != "" && typeof(project_name.value) != "undefined" ){
  157. s += "&project_name=" + encodeURI(encodeURI(project_name.value));
  158. }
  159. if(project_pm.value != "" && typeof(project_pm.value) != "undefined" ){
  160. s += "&project_pm=" + encodeURI(encodeURI(project_pm.value));
  161. }
  162. grid.set("newPage", "1");
  163. grid = $("#maingrid4").ligerGrid({
  164. columns: [
  165. { display: '建设单位', name: 'project_build_unit', width: 150},
  166. { display: '工程名称', name: 'project_name', width: 150},
  167. { display: '合同造价(万元)', name: 'project_cost', width: 150},
  168. { display: '工程地点', name: 'project_place', width: 70},
  169. { display: '合同签订日期', name: 'project_contract_date', width: 100
  170. ,render: function (row) {
  171. var html = subDate(row.project_contract_date);
  172. return html;
  173. }
  174. },
  175. { display: '项目经理', name: 'project_pm', width: 130},
  176. { display: '安全员', name: 'project_safety', width: 70},
  177. { display: '项目责任人', name: 'record_duty_man', width: 100},
  178. { display: '联系电话', name: 'project_tel', width: 100},
  179. { display: '结构质式', name: 'project_structure', width: 100},
  180. { display: '建筑面积', name: 'project_area', width: 70},
  181. { display: '工期', name: 'project_time', width: 50},
  182. { display: '开工时间', name: 'project_start_date', width: 100
  183. ,render: function (row) {
  184. var html = subDate(row.project_start_date);
  185. return html;
  186. }
  187. },
  188. { display: '项目状态', name: 'project_type', width: 70},
  189. { display: '竣工时间', name: 'project_end_date', width: 100
  190. ,render: function (row) {
  191. var html = subDate(row.project_end_date);
  192. return html;
  193. }
  194. },
  195. { display: '工程质量', name: 'project_quality', width: 100},
  196. { display: '结算造价(万元)', name: 'project_pay_cost', width: 100},
  197. { display: '所属分公司', name: 'branch_company', width: 100},
  198. { display: '备注', name: 'project_remark', width: 100},
  199. {
  200. display: '操作', isAllowHide: false,width: 320,
  201. render: function (row)
  202. {
  203. var html = '<a href=\"#\" onclick=\"backEdit('+row.universalid+')\">退回编辑</a>&nbsp;';
  204. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改\', \'${pageContext.request.contextPath }/ProjectAction.do?task=toEditProject&universalid='
  205. + row.universalid + '&tabid=' + getCurrentTabId()+'\');\">修改</a>&nbsp;';
  206. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'档案管理\', \'${pageContext.request.contextPath }/ProjectAction.do?task=toProjectRecordMgr&universalid='
  207. + row.universalid + '&tabid=' + getCurrentTabId()+'\');\">档案管理</a>&nbsp;';
  208. html += '<a href=\"#\" onclick=\"openODialog(\'${pageContext.request.contextPath }/ProjectAction.do?task=downloadAffix&universalid='
  209. + row.universalid + '&tabid=' + getCurrentTabId()
  210. + '&dialogId='+row.universalid+'\'+getTime(), \'资料下载\', \''+row.universalid+'\'+getTime());\">资料下载</a>&nbsp;';
  211. html += '<a href=\"${pageContext.request.contextPath }/ProjectAction.do?task=toPrintProjectRecord&universalid='+ row.universalid + '\" target=\"_blank\">打印资料清单</a>&nbsp;';
  212. html += '<a href=\"#\" onclick=\"deleteRow('+row.universalid+')\">删除</a>&nbsp;';
  213. return html;
  214. }
  215. }
  216. ],
  217. fixedCellHeight: false, //是否固定单元格的高度
  218. pageSize:20,
  219. url: 'ProjectAction.do?task=listProject&project_status=1&time=' + new Date().getTime()+s,
  220. pageParmName: 'p', //页索引参数名,(提交给服务器)
  221. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  222. enabledSort: true, //是否允许排序
  223. width: '99.8%',
  224. height: '99%'
  225. });
  226. $("#pageloading").hide();
  227. }
  228. function searchAll() {
  229. $("#project_build_unit").val("");
  230. $("#createdatebegin").val("");
  231. $("#createdateend").val("");
  232. $("#project_type").val("");
  233. $("#branch_company").val("");
  234. $("#project_name").val("");
  235. $("#project_pm").val("");
  236. searchByKword();
  237. }
  238. </script>
  239. </head>
  240. <body >
  241. <form action="ProjectAction.do" method="post" target="_blank" name="temp">
  242. <div class="default_search" >
  243. <ul class="list_search">
  244. <li class="title">建设单位:</li>
  245. <li class="text">
  246. <input type="text" name="project_build_unit" id="project_build_unit" >
  247. </li>
  248. </ul>
  249. <ul class="list_search" style="width: 380px;">
  250. <li class="title" style="width: 80px;">开工时间:</li>
  251. <li class="text" style="width: 135px;">
  252. <input type="text" id="createdatebegin" name="createdatebegin" style="width: 130px;" />
  253. <li class="title" style="width: 15px;">至&nbsp;&nbsp;
  254. </li>
  255. <li class="text" style="width: 135px;">
  256. <input type="text" id="createdateend" name="createdateend" style="width: 130px;" />
  257. </li>
  258. </ul>
  259. <ul class="list_search" >
  260. <li class="title">项目状态:</li>
  261. <li class="text">
  262. <select name="project_type" id="project_type">
  263. <option value="">==请选择==</option>
  264. <c:forEach var="list" items="${listProjectType}">
  265. <option value="${list.data_id }">${list.value_name }</option>
  266. </c:forEach>
  267. </select>
  268. </li>
  269. </ul>
  270. <ul class="list_search" >
  271. <li class="title">所属分公司:</li>
  272. <li class="text">
  273. <input type="text" name="branch_company" id="branch_company" >
  274. </li>
  275. </ul>
  276. <ul class="list_search" >
  277. <li class="title">工程名称:</li>
  278. <li class="text">
  279. <input type="text" name="project_name" id="project_name" >
  280. </li>
  281. </ul>
  282. <ul class="list_search" >
  283. <li class="title">项目经理:</li>
  284. <li class="text">
  285. <input type="text" name="project_pm" id="project_pm" >
  286. </li>
  287. </ul>
  288. <ul>
  289. <li class="search-button" >
  290. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  291. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  292. </li>
  293. </ul>
  294. </div>
  295. </form>
  296. <div style="clear: both;">
  297. <div id="maingrid4" style="margin: 0; padding: 0"></div>
  298. </div>
  299. </body>
  300. </html>