group_list.jsp 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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}/main.css" rel="stylesheet" type="text/css" />
  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/ligerDialog.js" type="text/javascript"></script>
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  16. <script type="text/javascript">
  17. var grid = null;
  18. $(function() {
  19. loadTypeTree("by_people", {
  20. type : "usersingle",
  21. backId : "by_people_id",
  22. backName : "by_people_name",
  23. tab:"1"
  24. });
  25. loadTypeTree("to_people", {
  26. type : "usersingle",
  27. backId : "to_people_id",
  28. backName : "to_people_name",
  29. tab:"1"
  30. });
  31. searchByKword();
  32. });
  33. function initGrid(params) {
  34. var columns = [
  35. {
  36. display : '考核组名称',
  37. name : 'group_name',
  38. width : 200
  39. }, {
  40. display : '考核人',
  41. name : 'to_people_names',
  42. width : 300,
  43. render:function(row,index,value){
  44. var html="<font title='"+value+"'>"+value+"</font>";
  45. return html;
  46. }
  47. }, {
  48. display : '被考核人',
  49. name : 'by_people_names',
  50. width : 300,
  51. render:function(row,index,value){
  52. var html="<font title='"+value+"'>"+value+"</font>";
  53. return html;
  54. }
  55. }, {
  56. display : '考核组状态',
  57. name : 'state',
  58. width : 100,
  59. render:function(row,index,value){
  60. var html=$("#state option[value="+value+"]").text();
  61. return html;
  62. }
  63. }];
  64. grid = $("#maingrid4")
  65. .ligerGrid(
  66. {
  67. columns : columns,
  68. pageSize : 20,
  69. url : 'pfmAssessGroupAction.do?task=pagelist&time=' + new Date().getTime() + params,
  70. pageParmName:'p', //页索引参数名,(提交给服务器)
  71. pagesizeParmName:'pSize', //页记录数参数名,(提交给服务器)
  72. width : '99.9%',
  73. height : '99%',
  74. checkbox : true
  75. });
  76. $("#pageloading").hide();
  77. }
  78. //查询
  79. function searchByKword() {
  80. var s = "";
  81. var group_name = $("#group_name").val();//
  82. if (group_name != "" && typeof (group_name) != "undefined") {
  83. s += "&group_name=" + encodeURI(encodeURI(group_name));
  84. }
  85. var to_people_id = $("#to_people_id").val();//
  86. if (to_people_id != "" && typeof (to_people_id) != "undefined") {
  87. s += "&to_people_id=" + to_people_id;
  88. }
  89. var by_people_id = $("#by_people_id").val();//
  90. if (by_people_id != "" && typeof (by_people_id) != "undefined") {
  91. s += "&by_people_id=" + by_people_id;
  92. }
  93. var state = "2";//
  94. if (state != "" && typeof (state) != "undefined") {
  95. s += "&not_state=" + state;
  96. }
  97. initGrid(s);
  98. }
  99. function f_select() {
  100. var rows = grid.getCheckedRows();
  101. return rows;
  102. }
  103. </script>
  104. </head>
  105. <body>
  106. <%@ include file="/include/message.jsp"%>
  107. <div class="l-content">
  108. <div class="default_search" style="margin: 0;">
  109. <ul >
  110. <li class="title">考核组名称:</li>
  111. <li class="text">
  112. <input type="text" name="group_name" id="group_name" />
  113. </li>
  114. </ul>
  115. <ul >
  116. <li style="vertical-align:middle;margin-left:15px;">
  117. <input type="text" name="to_people_name" id="to_people_name" />
  118. <input type="hidden" name="to_people_id" id="to_people_id"/>
  119. <input type="button" class="l-button" value="选择考核人" id="to_people"/>
  120. </li>
  121. </ul>
  122. <ul>
  123. <li style="vertical-align:middle;margin-left:15px;">
  124. <input type="text" name="by_people_name" id="by_people_name" />
  125. <input type="hidden" name="by_people_id" id="by_people_id" />
  126. <input type="button" class="l-button" value="选择被考核人" id="by_people" style="width:100px;"/>
  127. </li>
  128. </ul>
  129. <ul >
  130. <li class="search-button"><input type="button" class='l-button'
  131. name="search" onclick="searchByKword()" value="查询" />
  132. </li>
  133. </ul>
  134. </div>
  135. <div class="default_search" style="margin: 0;display:none">
  136. <ul style="width: 250px;">
  137. <li class="title">状态:</li>
  138. <li class="text">
  139. <select id="state" name="state" style="width:100px;">
  140. <option value="" selected="selected">-请选择-</option>
  141. <c:forEach items="${stateList }" var="item">
  142. <option value="${item.dvalue }" >${item.dname }</option>
  143. </c:forEach>
  144. </select>
  145. </li>
  146. </ul>
  147. </div>
  148. <div style="clear:both;"></div>
  149. <div id="searchbar">
  150. <div style="overflow: hidden; clear: both;">
  151. <div id="maingrid4" style="margin: 0; padding: 0"></div>
  152. </div>
  153. </div>
  154. </div>
  155. </body>
  156. </html>