listContractMilestone.jsp 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  6. <title>合同里程碑列表</title>
  7. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  8. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  9. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  10. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDialog.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">
  16. var grid = null;
  17. var checkValue = new Array(); //定义一个数组
  18. var i = 0;
  19. function initSupplierGridList(params) {
  20. var checkbox = false;
  21. if ("${checkbox}" == 'false' || "${checkbox}" == '') {
  22. checkbox = false;
  23. } else {
  24. checkbox = true;
  25. }
  26. var columns = [
  27. {
  28. display : '项目编号',
  29. name : 'project_code',
  30. width : 100
  31. }, {
  32. display : '项目名称',
  33. name : 'project_name',
  34. width : 200
  35. }, {
  36. display : '合同编号',
  37. name : 'contract_number',
  38. width : 100
  39. }
  40. , {
  41. display : '合同名称',
  42. name : 'contract_name',
  43. width : 100
  44. }, {
  45. display : '里程碑名称',
  46. name : 'status_name',
  47. width : 100
  48. }
  49. /* , {
  50. display : '甲方',
  51. name : 'firstparty_name',
  52. width : 100
  53. } */
  54. , {
  55. display : '金额',
  56. name : 'trade_money',
  57. width : 100
  58. }];
  59. grid = $("#maingrid4").ligerGrid(
  60. {
  61. columns : columns,
  62. pageSize : 20,
  63. url : 'fmChooseProjectAction.do?method=getMilestoneData&time='
  64. + new Date().getTime() + params,
  65. pageParmName : 'p', //页索引参数名,(提交给服务器)
  66. pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
  67. width : '99.9%',
  68. height : '99%',
  69. checkbox : checkbox,
  70. isChecked: f_isChecked,
  71. onCheckRow: function(checked, rowdata, rowindex) {
  72. for (var rowid in this.records){
  73. this.unselect(rowid);
  74. }
  75. if(checked){
  76. this.select(rowindex);
  77. }else{
  78. this.unselect(rowindex);
  79. }
  80. }
  81. });
  82. $("#pageloading").hide();
  83. $(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
  84. }
  85. //默认选中
  86. function f_isChecked(rowdata){
  87. if(checkValue != "" && typeof (checkValue) != "undefined"){
  88. if(checkValue[i]==rowdata.sid){
  89. i++;
  90. return true;
  91. }
  92. return false;
  93. }
  94. }
  95. $(function() {
  96. if('${checkValue}' != "" && typeof ('${checkValue}') != "undefined"){
  97. checkValue = '${checkValue}'.split(",");
  98. }
  99. initSupplierGridList();
  100. });
  101. function searchByKword() {
  102. var s = "";
  103. var project_name = $("#project_name").val();
  104. if (project_name != "" && typeof (project_name) != "undefined") {
  105. s += "&project_name=" + encodeURI(encodeURI(project_name));
  106. }
  107. var contract_name = $("#contract_name").val();
  108. if (contract_name != "" && typeof (contract_name) != "undefined") {
  109. s += "&contract_name=" + encodeURI(encodeURI(contract_name));
  110. }
  111. var status_name = $("#status_name").val();
  112. if (status_name != "" && typeof (status_name) != "undefined") {
  113. s += "&status_name=" + encodeURI(encodeURI(status_name));
  114. }
  115. grid.set("newPage","1");
  116. $(function() {
  117. initSupplierGridList(s);
  118. });
  119. }
  120. function f_select() {
  121. var rows = grid.getCheckedRows();
  122. return rows;
  123. }
  124. </script>
  125. </head>
  126. <body>
  127. <%@ include file="/include/message.jsp"%>
  128. <div class="container" style="padding-top:0px;">
  129. <div class="default_search" style="margin: 0;">
  130. <ul class="list_search" >
  131. <li class="title">项目名称:</li>
  132. <li class="text" ><input type="text" name="project_name" id="project_name"></li>
  133. </ul>
  134. <ul class="list_search" >
  135. <li class="title">合同名称:</li>
  136. <li class="text" ><input type="text" name="contract_name" id="contract_name"></li>
  137. </ul>
  138. <ul class="list_search" >
  139. <li class="title"></li>
  140. <li class="text" ></li>
  141. </ul>
  142. <ul class="list_search" >
  143. <li class="title">里程碑名称:</li>
  144. <li class="text" ><input type="text" name="status_name" id="status_name"></li>
  145. </ul>
  146. <ul class="list_search" >
  147. <li class="search-button" >
  148. <input type="button" class='l-button' style="margin-left:30px;" name="search" onclick="searchByKword()" value="查询" />
  149. </li>
  150. </ul>
  151. </div>
  152. <div style="clear:both;"></div>
  153. <div id="searchbar">
  154. <div style="overflow: hidden;clear: both;">
  155. <div id="maingrid4" style="margin: 0; padding: 0"></div>
  156. </div>
  157. </div>
  158. </div>
  159. </body>
  160. </html>