listIntroduction.jsp 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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 }/IntroductionAction.do?task=delIntroduction&introduction_id='+obj+'&tabid=' + getCurrentTabId());
  23. }
  24. }
  25. $(function () {
  26. grid = $("#maingrid4").ligerGrid({
  27. columns: [
  28. { display: '项目名称', name: 'introduction_pro_name', width: 200},
  29. { display: '招标人或代理人', name: 'introduction_tenderee', width: 150},
  30. { display: '开具日期', name: 'introduction_issue_date', width: 100
  31. ,render: function (row) {
  32. var html = subDate(row.introduction_issue_date);
  33. return html;
  34. }
  35. },
  36. { display: '介绍信编号', name: 'introduction_number', width: 150 },
  37. { display: '拟派出项目经理', name: 'introduction_dispatch_pm', width: 150},
  38. { display: '联系人', name: 'introduction_linkman', width: 70},
  39. { display: '联系电话', name: 'introduction_tel', width: 100},
  40. { display: '收费金额', name: 'introduction_cost', width: 100},
  41. { display: '登记经办人', name: 'introduction_operator', width: 100},
  42. { display: '收费经办人', name: 'introduction_cost_operator', width: 100},
  43. { display: '备注', name: 'introduction_remark', width: 100},
  44. {
  45. display: '操作', isAllowHide: false,width: 200,
  46. render: function (row)
  47. {
  48. var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看\', \'${pageContext.request.contextPath }/IntroductionAction.do?task=infoIntroduction&introduction_id='
  49. + row.introduction_id + '&tabid=' + getCurrentTabId()+'\');\">查看</a>&nbsp;';
  50. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改\', \'${pageContext.request.contextPath }/IntroductionAction.do?task=toEditIntroduction&introduction_id='
  51. + row.introduction_id + '&tabid=' + getCurrentTabId()+'\');\">修改</a>&nbsp;';
  52. html += '<a href=\"#\" onclick=\"deleteRow('+row.introduction_id+')\">删除</a>&nbsp;';
  53. return html;
  54. }
  55. }
  56. ],
  57. fixedCellHeight: false, //是否固定单元格的高度
  58. pageSize:20,
  59. url: 'IntroductionAction.do?task=listIntroduction&time=' + new Date().getTime(),
  60. pageParmName: 'p', //页索引参数名,(提交给服务器)
  61. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  62. enabledSort: true, //是否允许排序
  63. width: '99.8%',
  64. height: '99%'
  65. });
  66. $("#pageloading").hide();
  67. $("#createdatebegin").ligerDateEditor({
  68. labelWidth : 100,
  69. labelAlign : 'right',
  70. initValue : ''
  71. });
  72. $("#createdateend").ligerDateEditor({
  73. labelWidth : 100,
  74. labelAlign : 'right',
  75. initValue : ''
  76. });
  77. });
  78. function searchByKword(){
  79. var introduction_pro_name = document.getElementById("introduction_pro_name");
  80. var createdatebegin = document.getElementById("createdatebegin");
  81. var createdateend = document.getElementById("createdateend");
  82. var s = "";
  83. if(introduction_pro_name.value != "" && typeof(introduction_pro_name.value) != "undefined" ){
  84. s += "&introduction_pro_name=" + encodeURI(encodeURI(introduction_pro_name.value));
  85. }
  86. if(createdatebegin.value != "" && typeof(createdatebegin.value) != "undefined" ){
  87. s += "&createdatebegin=" + createdatebegin.value;
  88. }
  89. if(createdateend.value != "" && typeof(createdateend.value) != "undefined" ){
  90. s += "&createdateend=" + createdateend.value;
  91. }
  92. grid.set("newPage", "1");
  93. grid = $("#maingrid4").ligerGrid({
  94. columns: [
  95. { display: '项目名称', name: 'introduction_pro_name', width: 200},
  96. { display: '招标人或代理人', name: 'introduction_tenderee', width: 150},
  97. { display: '开具日期', name: 'introduction_issue_date', width: 100
  98. ,render: function (row) {
  99. var html = subDate(row.introduction_issue_date);
  100. return html;
  101. }
  102. },
  103. { display: '介绍信编号', name: 'introduction_number', width: 150 },
  104. { display: '拟派出项目经理', name: 'introduction_dispatch_pm', width: 150},
  105. { display: '联系人', name: 'introduction_linkman', width: 70},
  106. { display: '联系电话', name: 'introduction_tel', width: 100},
  107. { display: '收费金额', name: 'introduction_cost', width: 100},
  108. { display: '登记经办人', name: 'introduction_operator', width: 100},
  109. { display: '收费经办人', name: 'introduction_cost_operator', width: 100},
  110. { display: '备注', name: 'introduction_remark', width: 100},
  111. {
  112. display: '操作', isAllowHide: false,width: 200,
  113. render: function (row)
  114. {
  115. var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看\', \'${pageContext.request.contextPath }/IntroductionAction.do?task=infoIntroduction&introduction_id='
  116. + row.introduction_id + '&tabid=' + getCurrentTabId()+'\');\">查看</a>&nbsp;';
  117. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改\', \'${pageContext.request.contextPath }/IntroductionAction.do?task=toEditIntroduction&introduction_id='
  118. + row.introduction_id + '&tabid=' + getCurrentTabId()+'\');\">修改</a>&nbsp;';
  119. html += '<a href=\"#\" onclick=\"deleteRow('+row.introduction_id+')\">删除</a>&nbsp;';
  120. return html;
  121. }
  122. }
  123. ],
  124. fixedCellHeight: false, //是否固定单元格的高度
  125. pageSize:20,
  126. url: 'IntroductionAction.do?task=listIntroduction&time=' + new Date().getTime()+s,
  127. pageParmName: 'p', //页索引参数名,(提交给服务器)
  128. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  129. enabledSort: true, //是否允许排序
  130. width: '99.8%',
  131. height: '99%'
  132. });
  133. }
  134. function searchAll() {
  135. $("#introduction_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 }/IntroductionAction.do?task=toCreateIntroduction&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="introduction_pro_name" id="introduction_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>