| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- <%@ 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 XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>创建问题</title>
- <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="/shares/js/jquery-1.3.2.min.js"></script>
- <script src="/shares/xheditor/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js" type="text/javascript" ></script>
- <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 type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/file.js"></script>
- <script type="text/javascript" src="/shares/js/yw/core/deptUserTree.js"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <link rel="stylesheet" type="text/css" href="/shares/css/yw/master1/win/jquery.jscrollpane.codrops1.css" />
- <!-- the mousewheel plugin -->
- <script type="text/javascript" src="/shares/js/yw/master1/jquery.mousewheel.js"></script>
- <!-- the jScrollPane script -->
- <script type="text/javascript" src="/shares/js/yw/master1/jquery.jscrollpane.min.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/scroll-startstop.events.jquery.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/scroll.js"></script>
- <style type="text/css">
- body {
- overflow:hidden;
- background:#fff;
- }
- .jp-container{
- height:500px;
- position:relative;
- overflow:hidden;
- }
- .file-style{
- width: 500px;
- }
- .file-style input[type='file'] {
- width:385px ;
- height:24px;
- line-height:22px;
- vertical-align: bottom;
- background-color: #fff;
- border: 1px solid #cccccc;
- margin-top: 2px;
- margin-bottom: 2px;
- }
- </style>
- <script type="text/javascript">
- $(function(){
- $("#bug_type_id").ligerComboBox({
- url :'bugMgrAction.do?task=getData&obj=bug_type',
- isShowCheckBox: false,
- isMultiSelect: false,
- width:150,
- textField : 'dname',
- valueField : 'dvalue',
- valueFieldID: 'bug_type'
- });
- $("#bug_level_id").ligerComboBox({
- url :'bugMgrAction.do?task=getData&obj=bug_level',
- isShowCheckBox: false,
- isMultiSelect: false,
- width:150,
- textField : 'dname',
- valueField : 'dvalue',
- valueFieldID: 'bug_level'
- });
-
- $("#project_ids").ligerComboBox({
- url :'bugMgrAction.do?task=getProject',
- isShowCheckBox: false,
- isMultiSelect: false,
- width:150,
- textField : 'project_name',
- valueField : 'universalid',
- valueFieldID: 'project_id',
- onSelected: function (newvalue)
- {
- getModelId();
- }
- });
-
- $("#bug_end_date").ligerDateEditor({
- labelWidth : 100,
- width:150,
- labelAlign : 'right',
- initValue:''
- });
-
- $("#model_ids").ligerComboBox({
- data:null,
- isShowCheckBox: false,
- isMultiSelect: false,
- width:150,
- textField : 'mode_name',
- valueField : 'universalid',
- valueFieldID: 'model_id'
- });
- });
-
- function getModelId(){
- var project_id = $("#project_id").val();
- $.ajax({
- type:"POST",
- url:"bugMgrAction.do?task=getModel&project_id="+project_id,
- cache:false,
- dataType:'json',
- success:function(data){
- $("#model_ids").ligerGetComboBoxManager().setData(data);
- },
- error:function(err){
- showAjaxError(err);
- }
- });
- }
-
-
- function submitForm(){
- var obj = window.top;
- var rs = $.validate({
- name : "project_ids",
- model : [ {
- type : "require",
- msg : "请选择项目!",
- msgBox:"project_id_msg"
- }]
- });
-
- rs = $.validate({
- name : "model_ids",
- model : [ {
- type : "require",
- msg : "请选择模块!",
- msgBox:"model_id_msg"
- }]
- }) && rs;
- rs = $.validate({
- name : "bug_title",
- model : [ {
- type : "require",
- msg : "主题不能为空!"
- }]
- }) && rs;
-
- if (rs) {
- var sfz = document.getElementsByName("bug_affix_id");
- var sfzEvalue = "";
- for(var i=0;i<sfz.length;i++){
- if(""!=sfz[i].value){
- sfzEvalue=sfzEvalue + sfz[i].value +",";
- }
- }
- $("#bug_affix").val(sfzEvalue);
- $("#_bug").submit();
- }
- }
-
- </script>
- </head>
- <body style="overflow:hidden;" ontouchmove="event.preventDefault();">
- <form method='post' name="_bug" id="_bug" action="bugMgrAction.do?task=createBug">
- <div class="s_title b10 f6">
- <img src="/shares/images/master1/gg_ico.png" width="27" height="26" /> 问题编辑
- <div class="article_title">
- <input class="art_back" title="返回" name="" onclick="history.back(-1);" type="button" />
- <input class="art_sub" title="保存" name="" type="button" onclick="submitForm();" value=""/>
- </div>
- </div>
- <div id="jp-container" class="jp-container liuyan">
- <ul>
- <li>
- <span class="span_l f7">项目<font color="red">*</font>:</span>
- <span class="span_l f7" style="text-align:left;width:30%">
- <input type="text" id="project_ids" name="project_ids" value="${bugInfo.project_ids}"/>
- <input type="hidden" id="project_id" name="project_id" value="${bugInfo.project_id}"/>
- <span style="color: red;" id="project_id_msg"></span>
- </span>
- <span class="span_l f7">模块<font color="red">*</font>:</span>
- <span class="span_l f7" style="text-align:left;width:30%">
- <input type="text" id="model_ids" name="model_ids" value="${bugInfo.model_ids}"/>
- <input type="hidden" id="model_id" name="model_id" value="${bugInfo.model_id}"/>
- <span style="color: red;" id="model_id_msg"></span>
- </span>
- </li>
- <li>
- <span class="span_l f7">问题类型<font color="red">*</font>:</span>
- <span class="span_l f7" style="text-align:left;width:30%">
- <input type="text" id="bug_type_id" name="bug_type_id" />
- <input type="hidden" id="bug_type" name="bug_type" value="1"/>
- </span>
- <span class="span_l f7">优先级:</span>
- <span class="span_l f7" style="text-align:left;width:30%">
- <input type="text" id="bug_level_id" name="bug_level_id" />
- <input type="hidden" id="bug_level" name="bug_level" value="3"/>
- </span>
- </li>
- <li>
- <span class="span_l f7">主题<font color="red">*</font>:</span>
- <span class="span_l f7" style="text-align:left;width:30%;height: 100%">
- <textarea rows="5" cols="40" name="bug_title" id="bug_title">${bugInfo.bug_title }</textarea>
- </span>
- <span class="span_l f7">描述:</span>
- <span class="span_l f7" style="text-align:left;width:30%;height: 100%">
- <textarea rows="5" cols="40" name="bug_describe" id="bug_describe">${bugInfo.bug_describe }</textarea>
- </span>
- </li>
- <li>
- <span class="span_l f7">影响版本:</span>
- <span class="span_l f7" style="text-align:left;width:30%">
- <input type="text" name="bug_affect_version" id="bug_affect_version" value="${bugInfo.bug_affect_version }" maxlength="30" class="text_input1"/>
- </span>
- <span class="span_l f7">修复版本:</span>
- <span class="span_l f7" style="text-align:left;width:30%">
- <input type="text" name="bug_fix_version" id="bug_fix_version" value="${bugInfo.bug_fix_version }" maxlength="30" class="text_input1"/>
- </span>
- </li>
- <li>
- <span class="span_l f7">环境:</span>
- <span class="span_l f7" style="text-align:left;width:30%">
- <input type="text" name="bug_setting" id="bug_setting" value="${bugInfo.bug_setting }" maxlength="100" class="text_input1"/>
- </span>
- <span class="span_l f7">到期日:</span>
- <span class="span_l f7" style="text-align:left;width:30%">
- <input type="text" id="bug_end_date" name="bug_end_date" value="${bugInfo.bug_end_date }"/>
- </span>
- </li>
- <li>
- <span class="span_l f7">附件:</span>
- <span class="span_l f7" style="text-align:left;width:30%">
- <jsp:include page="/include/file.jsp">
- <jsp:param name="fieldName" value="bug_affix_id" />
- <jsp:param name="folder" value="pm/bug" />
- <jsp:param name="documentId" value="${bugInfo.bug_affix}" />
- <jsp:param name="size" value="10" />
- <jsp:param name="isView" value="1" />
- <jsp:param name="isDelFile" value="1" />
- <jsp:param name="definedCss" value="file-style" />
- </jsp:include>
- <input type="hidden" id="bug_affix" name="bug_affix" />
- </span>
- </li>
- <li style="height: 12px;"></li>
- </ul>
- </div>
- </form>
- </body>
- </html>
|