bug_projectBugList.jsp 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  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="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <link href="/shares/css/yw/master1/reset.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. <script src="/shares/jquery.progressbar/js/jquery.progressbar.js" type="text/javascript"></script>
  13. <script type="text/javascript" src="/shares/js/common.js"></script>
  14. <script type="text/javascript" src="/shares/js/constant.js"></script>
  15. <script type="text/javascript" src="/shares/js/yw/master1/page.js"></script>
  16. <script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
  17. <script type="text/javascript" src="/shares/js/yw/master1/searchBox.js"></script>
  18. <script type="text/javascript">
  19. $(function () {
  20. grid = $("#contentDiv").ligerGrid({
  21. columns: [
  22. { display: '主题', isAllowHide: false, width: 250,
  23. render:function(row){
  24. var html = '<a href=\"#\" onclick=\"toBugInfo('+row.bug_id+');\">'+row.bug_title +'</a>&nbsp;';
  25. return html;
  26. }
  27. },
  28. { display: '经办人', name: 'bug_operator', width: 100 },
  29. { display: '报告人', name: 'bug_create_user', width: 100 },
  30. { display: '优先级', isAllowHide: false, width: 100,
  31. render:function(row){
  32. var html = '';
  33. if (row.bug_level == '1'){
  34. html = '轻微';
  35. } else if (row.bug_level == '2'){
  36. html = '普通';
  37. } else if (row.bug_level == '3'){
  38. html = '重要';
  39. } else if (row.bug_level == '4'){
  40. html = '紧急';
  41. } else if (row.bug_level == '5'){
  42. html = '影响进度';
  43. }
  44. return html;
  45. }
  46. },
  47. { display: '状态', isAllowHide: false, width: 100,
  48. render:function(row){
  49. var html = '';
  50. if (row.bug_state == '0'){
  51. html = '开启';
  52. } else if (row.bug_state == '1'){
  53. html = '处理中';
  54. } else if (row.bug_state == '2'){
  55. html = '关闭';
  56. }
  57. return html;
  58. }
  59. },
  60. { display: '解决结果', isAllowHide: false, width: 100,
  61. render:function(row){
  62. var html = '';
  63. if (row.bug_solve_state == '0'){
  64. html = '未解决';
  65. } else if (row.bug_solve_state == '1'){
  66. html = '已修复';
  67. } else if (row.bug_solve_state == '2'){
  68. html = '重复的问题';
  69. } else if (row.bug_solve_state == '3'){
  70. html = '问题描述不清';
  71. } else if (row.bug_solve_state == '4'){
  72. html = '不能重现';
  73. }
  74. return html;
  75. }
  76. },
  77. { display: '创建时间', name: 'bug_create_date', width: 100},
  78. { display: '更新时间', name: 'bug_update_date', width: 100},
  79. { display: '到期日期', name: 'bug_end_date', width: 100}
  80. ],
  81. pageSize:20,
  82. url: 'bugMgrAction.do?task=projectBugList&universalid=${universalid}&time=' + new Date().getTime(),
  83. pageParmName: 'p', //页索引参数名,(提交给服务器)
  84. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  85. width: '99.9%',
  86. height: '99%'
  87. });
  88. $("#pageloading").hide();
  89. $("#operator").ligerComboBox({
  90. isShowCheckBox: true, isMultiSelect: true,
  91. url :'bugMgrAction.do?task=getListBugOperator&universalid=${universalid}',
  92. textField : 'name',
  93. valueField : 'bug_operator',
  94. valueFieldID: 'operator_',
  95. onSelected : function (value, text){
  96. searchByKword();
  97. }
  98. });
  99. });
  100. function toDisposeBug(bug_id){
  101. item("bugMgrAction.do?task=toDisposeBug&bug_id=" + bug_id);
  102. }
  103. function viewBug(bug_id){
  104. item("bugMgrAction.do?task=infoBug&bug_id=" + bug_id);
  105. }
  106. //查询
  107. function searchByKword(){
  108. var operator_ = $("#operator_").val();
  109. var s = "";
  110. if(operator_ != "" && typeof(operator_) != "undefined" ){
  111. s += "&operator=" + operator_;
  112. }
  113. grid = $("#contentDiv").ligerGrid({
  114. columns: [
  115. { display: '主题', isAllowHide: false, width: 250,
  116. render:function(row){
  117. var html = '<a href=\"#\" onclick=\"toBugInfo('+row.bug_id+');\">'+row.bug_title +'</a>&nbsp;';
  118. return html;
  119. }
  120. },
  121. { display: '经办人', name: 'bug_operator', width: 100 },
  122. { display: '报告人', name: 'bug_create_user', width: 100 },
  123. { display: '优先级', isAllowHide: false, width: 100,
  124. render:function(row){
  125. var html = '';
  126. if (row.bug_level == '1'){
  127. html = '轻微';
  128. } else if (row.bug_level == '2'){
  129. html = '普通';
  130. } else if (row.bug_level == '3'){
  131. html = '重要';
  132. } else if (row.bug_level == '4'){
  133. html = '紧急';
  134. } else if (row.bug_level == '5'){
  135. html = '影响进度';
  136. }
  137. return html;
  138. }
  139. },
  140. { display: '状态', isAllowHide: false, width: 100,
  141. render:function(row){
  142. var html = '';
  143. if (row.bug_state == '0'){
  144. html = '开启';
  145. } else if (row.bug_state == '1'){
  146. html = '处理中';
  147. } else if (row.bug_state == '2'){
  148. html = '关闭';
  149. }
  150. return html;
  151. }
  152. },
  153. { display: '解决结果', isAllowHide: false, width: 100,
  154. render:function(row){
  155. var html = '';
  156. if (row.bug_solve_state == '0'){
  157. html = '未解决';
  158. } else if (row.bug_solve_state == '1'){
  159. html = '已修复';
  160. } else if (row.bug_solve_state == '2'){
  161. html = '重复的问题';
  162. } else if (row.bug_solve_state == '3'){
  163. html = '问题描述不清';
  164. } else if (row.bug_solve_state == '4'){
  165. html = '不能重现';
  166. }
  167. return html;
  168. }
  169. },
  170. { display: '创建时间', name: 'bug_create_date', width: 100},
  171. { display: '更新时间', name: 'bug_update_date', width: 100},
  172. { display: '到期日期', name: 'bug_end_date', width: 100}
  173. ],
  174. pageSize:20,
  175. url: 'bugMgrAction.do?task=projectBugList&universalid=${universalid}&time=' + new Date().getTime() + s,
  176. pageParmName: 'p', //页索引参数名,(提交给服务器)
  177. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  178. width: '99.9%',
  179. height: '99%'
  180. });
  181. $("#pageloading").hide();
  182. }
  183. function toBugInfo (universalid){
  184. item("bugMgrAction.do?task=infoBug&bug_id=" + universalid + "&time=" + new Date().getTime());
  185. }
  186. </script>
  187. </head>
  188. <body>
  189. <div class="tc_b">
  190. <div id="left" style="float:left;width:100%;">
  191. <div class="tc_r">
  192. <div class="tr_con b5 f4">
  193. <div class="fl f4">
  194. <img src="/shares/images/master1/wdrw_ico.png" width="25" height="31" />&nbsp;问题状态统计
  195. </div>
  196. <div class="fl f4" style="margin-left:30px;">
  197. 经办人:
  198. </div>
  199. <div class="fl mar6">
  200. <input type="text" id="operator" name="operator" />
  201. <input type="hidden" id="operator_" name="operator_"/>
  202. </div>
  203. </div>
  204. <div class="tr_right_bg">
  205. <div id="contentDiv"></div>
  206. <jsp:include page="/yw/master1/page.jsp">
  207. <jsp:param name="functionName" value="searchByKword"/>
  208. </jsp:include>
  209. </div>
  210. </div>
  211. </div>
  212. <%@ include file="/yw/master1_ytpm/bugMgr/left_bugMgr.jsp"%>
  213. </div>
  214. </body>
  215. </html>