listProjectForLookup.jsp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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/ligerui.all.js" type="text/javascript"></script>
  12. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script type="text/javascript" src="/shares/js/yw/yongfu/common.js"></script>
  16. <script type="text/javascript">
  17. var grid = null;
  18. $(function () {
  19. grid = $("#maingrid4").ligerGrid({
  20. columns: [
  21. { display: '建设单位', name: 'project_build_unit', width: 150},
  22. { display: '工程名称', name: 'project_name', width: 150},
  23. { display: '合同造价(万元)', name: 'project_cost', width: 150},
  24. { display: '工程地点', name: 'project_place', width: 70},
  25. { display: '合同签订日期', name: 'project_contract_date', width: 100
  26. ,render: function (row) {
  27. var html = subDate(row.project_contract_date);
  28. return html;
  29. }
  30. },
  31. { display: '项目经理', name: 'project_pm', width: 130},
  32. { display: '安全员', name: 'project_safety', width: 70},
  33. { display: '项目责任人', name: 'record_duty_man', width: 100},
  34. { display: '联系电话', name: 'project_tel', width: 100},
  35. { display: '结构质式', name: 'project_structure', width: 100},
  36. { display: '建筑面积', name: 'project_area', width: 70},
  37. { display: '工期', name: 'project_time', width: 50},
  38. { display: '开工时间', name: 'project_start_date', width: 100
  39. ,render: function (row) {
  40. var html = subDate(row.project_start_date);
  41. return html;
  42. }
  43. },
  44. { display: '项目状态', name: 'project_type', width: 70},
  45. { display: '竣工时间', name: 'project_end_date', width: 100
  46. ,render: function (row) {
  47. var html = subDate(row.project_end_date);
  48. return html;
  49. }
  50. },
  51. { display: '工程质量', name: 'project_quality', width: 100},
  52. { display: '结算造价(万元)', name: 'project_pay_cost', width: 120},
  53. { display: '所属分公司', name: 'branch_company', width: 100},
  54. { display: '备注', name: 'project_remark', width: 100}
  55. ],
  56. //fixedCellHeight: false, //是否固定单元格的高度
  57. pageSize:20,
  58. url: 'ProjectAction.do?task=listProject&time=' + new Date().getTime(),
  59. pageParmName: 'p', //页索引参数名,(提交给服务器)
  60. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  61. enabledSort: true, //是否允许排序
  62. width: '99.8%',
  63. height: '99%',
  64. checkbox : true,
  65. onCheckRow: function(checked, rowdata, rowindex) {
  66. for (var rowid in this.records){
  67. this.unselect(rowid);
  68. }
  69. if(checked){
  70. this.select(rowindex);
  71. }else{
  72. this.unselect(rowindex);
  73. }
  74. }
  75. });
  76. $("#pageloading").hide();
  77. $("#createdatebegin").ligerDateEditor({
  78. labelWidth : 100,
  79. labelAlign : 'right',
  80. initValue : ''
  81. });
  82. $("#createdateend").ligerDateEditor({
  83. labelWidth : 100,
  84. labelAlign : 'right',
  85. initValue : ''
  86. });
  87. });
  88. function searchByKword(){
  89. var project_build_unit = document.getElementById("project_build_unit");
  90. var createdatebegin = document.getElementById("createdatebegin");
  91. var createdateend = document.getElementById("createdateend");
  92. var project_type = document.getElementById("project_type");
  93. var branch_company = document.getElementById("branch_company");
  94. var project_name = document.getElementById("project_name");
  95. var project_pm = document.getElementById("project_pm");
  96. var s = "";
  97. if(project_build_unit.value != "" && typeof(project_build_unit.value) != "undefined" ){
  98. s += "&project_build_unit=" + encodeURI(encodeURI(project_build_unit.value));
  99. }
  100. if(createdatebegin.value != "" && typeof(createdatebegin.value) != "undefined" ){
  101. s += "&createdatebegin=" + createdatebegin.value;
  102. }
  103. if(createdateend.value != "" && typeof(createdateend.value) != "undefined" ){
  104. s += "&createdateend=" + createdateend.value;
  105. }
  106. if(project_type.value != "" && typeof(project_type.value) != "undefined" ){
  107. s += "&project_type=" + project_type.value;
  108. }
  109. if(branch_company.value != "" && typeof(branch_company.value) != "undefined" ){
  110. s += "&branch_company=" + encodeURI(encodeURI(branch_company.value));
  111. }
  112. if(project_name.value != "" && typeof(project_name.value) != "undefined" ){
  113. s += "&project_name=" + encodeURI(encodeURI(project_name.value));
  114. }
  115. if(project_pm.value != "" && typeof(project_pm.value) != "undefined" ){
  116. s += "&project_pm=" + encodeURI(encodeURI(project_pm.value));
  117. }
  118. grid.set("newPage", "1");
  119. grid = $("#maingrid4").ligerGrid({
  120. columns: [
  121. { display: '建设单位', name: 'project_build_unit', width: 150},
  122. { display: '工程名称', name: 'project_name', width: 150},
  123. { display: '合同造价(万元)', name: 'project_cost', width: 150},
  124. { display: '工程地点', name: 'project_place', width: 70},
  125. { display: '合同签订日期', name: 'project_contract_date', width: 100
  126. ,render: function (row) {
  127. var html = subDate(row.project_contract_date);
  128. return html;
  129. }
  130. },
  131. { display: '项目经理', name: 'project_pm', width: 130},
  132. { display: '安全员', name: 'project_safety', width: 70},
  133. { display: '项目责任人', name: 'record_duty_man', width: 100},
  134. { display: '联系电话', name: 'project_tel', width: 100},
  135. { display: '结构质式', name: 'project_structure', width: 100},
  136. { display: '建筑面积', name: 'project_area', width: 70},
  137. { display: '工期', name: 'project_time', width: 50},
  138. { display: '开工时间', name: 'project_start_date', width: 100
  139. ,render: function (row) {
  140. var html = subDate(row.project_start_date);
  141. return html;
  142. }
  143. },
  144. { display: '项目状态', name: 'project_type', width: 70},
  145. { display: '竣工时间', name: 'project_end_date', width: 100
  146. ,render: function (row) {
  147. var html = subDate(row.project_end_date);
  148. return html;
  149. }
  150. },
  151. { display: '工程质量', name: 'project_quality', width: 100},
  152. { display: '结算造价(万元)', name: 'project_pay_cost', width: 120},
  153. { display: '所属分公司', name: 'branch_company', width: 100},
  154. { display: '备注', name: 'project_remark', width: 100}
  155. ],
  156. //fixedCellHeight: false, //是否固定单元格的高度
  157. pageSize:20,
  158. url: 'ProjectAction.do?task=listProject&time=' + new Date().getTime()+s,
  159. pageParmName: 'p', //页索引参数名,(提交给服务器)
  160. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  161. enabledSort: true, //是否允许排序
  162. width: '99.8%',
  163. height: '99%',
  164. checkbox : true,
  165. onCheckRow: function(checked, rowdata, rowindex) {
  166. for (var rowid in this.records){
  167. this.unselect(rowid);
  168. }
  169. if(checked){
  170. this.select(rowindex);
  171. }else{
  172. this.unselect(rowindex);
  173. }
  174. }
  175. });
  176. $("#pageloading").hide();
  177. }
  178. function f_select() {
  179. var rows = grid.getCheckedRows();
  180. return rows;
  181. }
  182. function searchAll() {
  183. $("#project_build_unit").val("");
  184. $("#createdatebegin").val("");
  185. $("#createdateend").val("");
  186. $("#project_type").val("");
  187. $("#branch_company").val("");
  188. $("#project_name").val("");
  189. $("#project_pm").val("");
  190. searchByKword();
  191. }
  192. </script>
  193. </head>
  194. <body >
  195. <form action="ProjectAction.do" method="post" target="_blank" name="temp">
  196. <div class="default_search" >
  197. <ul class="list_search">
  198. <li class="title">建设单位:</li>
  199. <li class="text">
  200. <input type="text" name="project_build_unit" id="project_build_unit" >
  201. </li>
  202. </ul>
  203. <ul class="list_search" style="width: 380px;">
  204. <li class="title" style="width: 80px;">开工时间:</li>
  205. <li class="text" style="width: 135px;">
  206. <input type="text" id="createdatebegin" name="createdatebegin" style="width: 130px;" />
  207. <li class="title" style="width: 15px;">至&nbsp;&nbsp;
  208. </li>
  209. <li class="text" style="width: 135px;">
  210. <input type="text" id="createdateend" name="createdateend" style="width: 130px;" />
  211. </li>
  212. </ul>
  213. <ul class="list_search" >
  214. <li class="title">项目状态:</li>
  215. <li class="text">
  216. <select name="project_type" id="project_type">
  217. <option value="">==请选择==</option>
  218. <c:forEach var="list" items="${listProjectType}">
  219. <option value="${list.data_id }">${list.value_name }</option>
  220. </c:forEach>
  221. </select>
  222. </li>
  223. </ul>
  224. <ul class="list_search" >
  225. <li class="title">所属分公司:</li>
  226. <li class="text">
  227. <input type="text" name="branch_company" id="branch_company" >
  228. </li>
  229. </ul>
  230. <ul class="list_search" >
  231. <li class="title">工程名称:</li>
  232. <li class="text">
  233. <input type="text" name="project_name" id="project_name" >
  234. </li>
  235. </ul>
  236. <ul class="list_search" >
  237. <li class="title">项目经理:</li>
  238. <li class="text">
  239. <input type="text" name="project_pm" id="project_pm" >
  240. </li>
  241. </ul>
  242. <ul>
  243. <li class="search-button" >
  244. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  245. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  246. </li>
  247. </ul>
  248. </div>
  249. </form>
  250. <div style="clear: both;">
  251. <div id="maingrid4" style="margin: 0; padding: 0"></div>
  252. </div>
  253. </body>
  254. </html>