listRecruit.jsp 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>招标项目列表</title>
  8. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  10. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  12. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  13. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  14. <script type="text/javascript" src="/shares/js/constant.js"></script>
  15. <script type="text/javascript" src="/shares/js/common.js"></script>
  16. <script type="text/javascript" src="/shares/js/yw/yongfu/common.js"></script>
  17. <script type="text/javascript">
  18. var grid = null;
  19. function deleteRow(obj)
  20. {
  21. if(confirm("确定要删除该招标项目吗?")){
  22. window.parent.f_addTab(new Date().getTime(), '删除招标项目', '${pageContext.request.contextPath }/RecruitAction.do?task=delRecruit&recruit_id='+obj+'&tabid=' + getCurrentTabId());
  23. }
  24. }
  25. $(function () {
  26. grid = $("#maingrid4").ligerGrid({
  27. columns: [
  28. { display: '招标人或代理人', name: 'recruit_tenderee', width: 100},
  29. { display: '项目名称', name: 'recruit_pro_name', width: 200},
  30. { display: '建设规模', name: 'recruit_build', width: 100},
  31. { display: '工程地点', name: 'recruit_address', width: 150 },
  32. { display: '投标人资格要求', name: 'recruit_qualification', width: 150},
  33. { display: '联系人', name: 'recruit_linkman', width: 70},
  34. { display: '联系电话', name: 'recruit_tel', width: 100},
  35. { display: '登记日期', name: 'recruit_register_date', width: 100
  36. ,render: function (row) {
  37. var html = subDate(row.recruit_register_date);
  38. return html;
  39. }
  40. },
  41. { display: '经办人', name: 'recruit_operator', width: 100},
  42. { display: '备注', name: 'recruit_remark', width: 100},
  43. {
  44. display: '操作', isAllowHide: false,width: 200,
  45. render: function (row)
  46. {
  47. var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看\', \'${pageContext.request.contextPath }/RecruitAction.do?task=infoRecruit&recruit_id='
  48. + row.recruit_id + '&tabid=' + getCurrentTabId()+'\');\">查看</a>&nbsp;';
  49. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改\', \'${pageContext.request.contextPath }/RecruitAction.do?task=toEditRecruit&recruit_id='
  50. + row.recruit_id + '&tabid=' + getCurrentTabId()+'\');\">修改</a>&nbsp;';
  51. html += '<a href=\"#\" onclick=\"deleteRow('+row.recruit_id+')\">删除</a>&nbsp;';
  52. return html;
  53. }
  54. }
  55. ],
  56. fixedCellHeight: false, //是否固定单元格的高度
  57. pageSize:20,
  58. url: 'RecruitAction.do?task=listRecruit&time=' + new Date().getTime(),
  59. pageParmName: 'p', //页索引参数名,(提交给服务器)
  60. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  61. enabledSort: true, //是否允许排序
  62. width: '99.8%',
  63. height: '99%'
  64. });
  65. $("#pageloading").hide();
  66. $("#createdatebegin").ligerDateEditor({
  67. labelWidth : 100,
  68. labelAlign : 'right',
  69. initValue : ''
  70. });
  71. $("#createdateend").ligerDateEditor({
  72. labelWidth : 100,
  73. labelAlign : 'right',
  74. initValue : ''
  75. });
  76. });
  77. function searchByKword(){
  78. var recruit_pro_name = document.getElementById("recruit_pro_name");
  79. var createdatebegin = document.getElementById("createdatebegin");
  80. var createdateend = document.getElementById("createdateend");
  81. var s = "";
  82. if(recruit_pro_name.value != "" && typeof(recruit_pro_name.value) != "undefined" ){
  83. s += "&recruit_pro_name=" + encodeURI(encodeURI(recruit_pro_name.value));
  84. }
  85. if(createdatebegin.value != "" && typeof(createdatebegin.value) != "undefined" ){
  86. s += "&createdatebegin=" + createdatebegin.value;
  87. }
  88. if(createdateend.value != "" && typeof(createdateend.value) != "undefined" ){
  89. s += "&createdateend=" + createdateend.value;
  90. }
  91. grid.set("newPage", "1");
  92. //grid.loadData(true);
  93. grid = $("#maingrid4").ligerGrid({
  94. columns: [
  95. { display: '招标人或代理人', name: 'recruit_tenderee', width: 100},
  96. { display: '项目名称', name: 'recruit_pro_name', width: 200},
  97. { display: '建设规模', name: 'recruit_build', width: 100},
  98. { display: '工程地点', name: 'recruit_address', width: 150 },
  99. { display: '投标人资格要求', name: 'recruit_qualification', width: 150},
  100. { display: '联系人', name: 'recruit_linkman', width: 70},
  101. { display: '联系电话', name: 'recruit_tel', width: 100},
  102. { display: '登记日期', name: 'recruit_register_date', width: 100
  103. ,render: function (row) {
  104. var html = subDate(row.recruit_register_date);
  105. return html;
  106. }
  107. },
  108. { display: '经办人', name: 'recruit_operator', width: 100},
  109. { display: '备注', name: 'recruit_remark', width: 100},
  110. {
  111. display: '操作', isAllowHide: false,width: 200,
  112. render: function (row)
  113. {
  114. var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看\', \'${pageContext.request.contextPath }/RecruitAction.do?task=infoRecruit&recruit_id='
  115. + row.recruit_id + '&tabid=' + getCurrentTabId()+'\');\">查看</a>&nbsp;';
  116. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改\', \'${pageContext.request.contextPath }/RecruitAction.do?task=toEditRecruit&recruit_id='
  117. + row.recruit_id + '&tabid=' + getCurrentTabId()+'\');\">修改</a>&nbsp;';
  118. html += '<a href=\"#\" onclick=\"deleteRow('+row.recruit_id+')\">删除</a>&nbsp;';
  119. return html;
  120. }
  121. }
  122. ],
  123. fixedCellHeight: false, //是否固定单元格的高度
  124. pageSize:20,
  125. url: 'RecruitAction.do?task=listRecruit&time=' + new Date().getTime()+s,
  126. pageParmName: 'p', //页索引参数名,(提交给服务器)
  127. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  128. enabledSort: true, //是否允许排序
  129. width: '99.8%',
  130. height: '99%'
  131. });
  132. $("#pageloading").hide();
  133. }
  134. function searchAll() {
  135. $("#recruit_pro_name").val("");
  136. $("#createdatebegin").val("");
  137. $("#createdateend").val("");
  138. searchByKword();
  139. }
  140. </script>
  141. </head>
  142. <body >
  143. <div class="container-layout">
  144. <div id="title" class="form-button">
  145. <input type="button" class="l-button" style="width: 100px;"value="新增招标项目" onclick="window.parent.f_addTab(new Date().getTime(), '新增招标项目', '${pageContext.request.contextPath }/RecruitAction.do?task=toCreateRecruit&tabid=' + getCurrentTabId());"/>
  146. </div>
  147. <div class="default_search" >
  148. <ul class="list_search">
  149. <li class="title">项目名称:</li>
  150. <li class="text">
  151. <input type="text" name="recruit_pro_name" id="recruit_pro_name" >
  152. </li>
  153. </ul>
  154. <ul class="list_search" style="width: 380px;">
  155. <li class="title" style="width: 80px;">登记日期:</li>
  156. <li class="text" style="width: 135px;">
  157. <input type="text" id="createdatebegin" name="createdatebegin" style="width: 130px;" />
  158. <li class="title" style="width: 15px;">至&nbsp;&nbsp;
  159. </li>
  160. <li class="text" style="width: 135px;">
  161. <input type="text" id="createdateend" name="createdateend" style="width: 130px;" />
  162. </li>
  163. </ul>
  164. <ul>
  165. <li class="search-button" >
  166. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  167. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  168. </li>
  169. </ul>
  170. </div>
  171. <div style="clear: both;">
  172. <div id="maingrid4" style="margin: 0; padding: 0"></div>
  173. </div>
  174. </div>
  175. </body>
  176. </html>