listNotApproveProject.jsp 14 KB

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