| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>问题状态统计</title>
- <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script src="/shares/jquery.progressbar/js/jquery.progressbar.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/page.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/searchBox.js"></script>
- <script type="text/javascript">
- $(function () {
- grid = $("#contentDiv").ligerGrid({
- columns: [
- { display: '主题', isAllowHide: false, width: 250,
- render:function(row){
- var html = '<a href=\"#\" onclick=\"toBugInfo('+row.bug_id+');\">'+row.bug_title +'</a> ';
- return html;
- }
- },
- { display: '经办人', name: 'bug_operator', width: 100 },
- { display: '报告人', name: 'bug_create_user', width: 100 },
- { display: '优先级', isAllowHide: false, width: 100,
- render:function(row){
- var html = '';
- if (row.bug_level == '1'){
- html = '轻微';
- } else if (row.bug_level == '2'){
- html = '普通';
- } else if (row.bug_level == '3'){
- html = '重要';
- } else if (row.bug_level == '4'){
- html = '紧急';
- } else if (row.bug_level == '5'){
- html = '影响进度';
- }
- return html;
- }
- },
- { display: '状态', isAllowHide: false, width: 100,
- render:function(row){
- var html = '';
- if (row.bug_state == '0'){
- html = '开启';
- } else if (row.bug_state == '1'){
- html = '处理中';
- } else if (row.bug_state == '2'){
- html = '关闭';
- }
- return html;
- }
- },
- { display: '解决结果', isAllowHide: false, width: 100,
- render:function(row){
- var html = '';
- if (row.bug_solve_state == '0'){
- html = '未解决';
- } else if (row.bug_solve_state == '1'){
- html = '已修复';
- } else if (row.bug_solve_state == '2'){
- html = '重复的问题';
- } else if (row.bug_solve_state == '3'){
- html = '问题描述不清';
- } else if (row.bug_solve_state == '4'){
- html = '不能重现';
- }
- return html;
- }
- },
- { display: '创建时间', name: 'bug_create_date', width: 100},
- { display: '更新时间', name: 'bug_update_date', width: 100},
- { display: '到期日期', name: 'bug_end_date', width: 100}
- ],
- pageSize:20,
- url: 'bugMgrAction.do?task=projectBugList&universalid=${universalid}&time=' + new Date().getTime(),
- pageParmName: 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
- width: '99.9%',
- height: '99%'
- });
- $("#pageloading").hide();
- $("#operator").ligerComboBox({
- isShowCheckBox: true, isMultiSelect: true,
- url :'bugMgrAction.do?task=getListBugOperator&universalid=${universalid}',
- textField : 'name',
- valueField : 'bug_operator',
- valueFieldID: 'operator_',
- onSelected : function (value, text){
- searchByKword();
- }
- });
-
- });
- function toDisposeBug(bug_id){
- item("bugMgrAction.do?task=toDisposeBug&bug_id=" + bug_id);
- }
- function viewBug(bug_id){
- item("bugMgrAction.do?task=infoBug&bug_id=" + bug_id);
- }
- //查询
- function searchByKword(){
- var operator_ = $("#operator_").val();
- var s = "";
- if(operator_ != "" && typeof(operator_) != "undefined" ){
- s += "&operator=" + operator_;
- }
- grid = $("#contentDiv").ligerGrid({
- columns: [
- { display: '主题', isAllowHide: false, width: 250,
- render:function(row){
- var html = '<a href=\"#\" onclick=\"toBugInfo('+row.bug_id+');\">'+row.bug_title +'</a> ';
- return html;
- }
- },
- { display: '经办人', name: 'bug_operator', width: 100 },
- { display: '报告人', name: 'bug_create_user', width: 100 },
- { display: '优先级', isAllowHide: false, width: 100,
- render:function(row){
- var html = '';
- if (row.bug_level == '1'){
- html = '轻微';
- } else if (row.bug_level == '2'){
- html = '普通';
- } else if (row.bug_level == '3'){
- html = '重要';
- } else if (row.bug_level == '4'){
- html = '紧急';
- } else if (row.bug_level == '5'){
- html = '影响进度';
- }
- return html;
- }
- },
- { display: '状态', isAllowHide: false, width: 100,
- render:function(row){
- var html = '';
- if (row.bug_state == '0'){
- html = '开启';
- } else if (row.bug_state == '1'){
- html = '处理中';
- } else if (row.bug_state == '2'){
- html = '关闭';
- }
- return html;
- }
- },
- { display: '解决结果', isAllowHide: false, width: 100,
- render:function(row){
- var html = '';
- if (row.bug_solve_state == '0'){
- html = '未解决';
- } else if (row.bug_solve_state == '1'){
- html = '已修复';
- } else if (row.bug_solve_state == '2'){
- html = '重复的问题';
- } else if (row.bug_solve_state == '3'){
- html = '问题描述不清';
- } else if (row.bug_solve_state == '4'){
- html = '不能重现';
- }
- return html;
- }
- },
- { display: '创建时间', name: 'bug_create_date', width: 100},
- { display: '更新时间', name: 'bug_update_date', width: 100},
- { display: '到期日期', name: 'bug_end_date', width: 100}
- ],
- pageSize:20,
- url: 'bugMgrAction.do?task=projectBugList&universalid=${universalid}&time=' + new Date().getTime() + s,
- pageParmName: 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
- width: '99.9%',
- height: '99%'
- });
- $("#pageloading").hide();
- }
-
- function toBugInfo (universalid){
- item("bugMgrAction.do?task=infoBug&bug_id=" + universalid + "&time=" + new Date().getTime());
- }
-
- </script>
- </head>
- <body>
- <div class="tc_b">
- <div id="left" style="float:left;width:100%;">
- <div class="tc_r">
- <div class="tr_con b5 f4">
- <div class="fl f4">
- <img src="/shares/images/master1/wdrw_ico.png" width="25" height="31" /> 问题状态统计
- </div>
- <div class="fl f4" style="margin-left:30px;">
- 经办人:
- </div>
- <div class="fl mar6">
- <input type="text" id="operator" name="operator" />
- <input type="hidden" id="operator_" name="operator_"/>
- </div>
- </div>
- <div class="tr_right_bg">
- <div id="contentDiv"></div>
- <jsp:include page="/yw/master1/page.jsp">
- <jsp:param name="functionName" value="searchByKword"/>
- </jsp:include>
- </div>
- </div>
- </div>
- <%@ include file="/yw/master1_ytpm/bugMgr/left_bugMgr.jsp"%>
- </div>
-
- </body>
- </html>
|