| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
- <!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>
- <title>新增项目</title>
- <link
- href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css"
- rel="stylesheet" type="text/css" />
- <link href="/shares/xheditor/xheditor-1.1.14/demos/common.css"
- rel="stylesheet" type="text/css" media="screen" />
-
- <link href="/shares/css/yw/tms/task.css" rel="stylesheet"
- type="text/css" />
- <link href="${pageContext.request.contextPath }/main.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/core/base.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDialog.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerCheckBox.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerResizable.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerComboBox.js"
- type="text/javascript"></script>
- <script src="/shares/js/common.js" type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTab.js"
- type="text/javascript"></script>
- <script
- src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js"
- type="text/javascript"></script>
-
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/file.js"></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>
- <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript"
- src="/shares/xheditor/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js"></script>
- <style type="text/css">
-
- .default-select {
- width: 500px;
- height: 22px;
- line-height: 22px;
- }
-
- .short-select {
- width: 273px;
- height: 22px;
- line-height: 22px;
- }
-
- .default-text {
- width: 270px;
- height: 22px;
- line-height: 22px
- }
-
- .short-text {
- width: 270px;
- line-height: 22px;
- height: 22px;
- }
- .l-text{
- width: 270px;
- line-height: 22px;
- height: 22px;
- }
- .text {
- height: 22px;
- line-height: 22px;
- margin-right: 10px;
- display: inline-block;
- margin-left: 1px
- }
-
- .title {
- font-size: 20px;
- font-weight: bold;
- padding-bottom: 20px;
- padding-left: 5px;
- border-bottom: 1px solid #ededed;
- vertical-align: middle;
- }
- .l-table-edit-td{
- width:270px;
- }
- .projectTable{margin: 5px}
- .projectTable tr{height: 25px; padding-bottom: 2px; margin: 10px auto}
- .projectTable .left-text {width: 80px; }
- .jp-container{
- height:500px;
- position:relative;
- overflow:hidden;
- }
-
- .forum-container-2 .l-table-edit-text11 {
- font-size: 16px;
- color: #000;
- font-family: "微软雅黑";
- font-weight: 100;
- height: 30px;
- width:89px;
- line-height: 30px;
- margin-right: 10px;
- color: #737373;
- text-align: right;
- vertical-align: text-top;
- }
-
- </style>
- <style type="text/css">
- #layout1{width:99%;margin:0; padding:0; }
- .checkList{
- margin-left:5px;
- }
- .checkList li{
- padding:3px 0px 0px 3px;
- cursor:pointer;
- }
- .userTree li{
- width:100%;
- }
- .l-layout-content{
- overflow:auto;
- }
- </style>
- <script type="text/javascript">
- var userScope = "${userScope}";
- var selectedData = null;
- var tab;
- if(userScope == "all"){
- tab = "1";
- }else if(userScope == "dept"){
- tab = "2";
- }
- $(function(){
- /* if('${flowOnOff}' !="" && typeof('${flowOnOff}')!="undefined"){
- $("#btnSave").attr({"disabled":"disabled"});
- $.ligerDialog.error("对不起,立项流程未配置,请通知流程管理员配置后,再操作!");
-
- } */
-
- var msg="${msg}";
- if(msg !=""){
- if("操作成功"==msg){
- $.ligerDialog({content:msg, title:"操作成功",type:"success",width:250,height:55,allowClose : false,
- buttons:[ {text:"关闭",onclick:function(){closeAndReload();}}]
- });
- }else{
- $.ligerDialog.success(msg);
- }
- }
- initTeamgrid();
- $("#project_code").keyup(function(){
- $("#project_code_error").html("");
- });
- $("#project_name").keyup(function(){
- $("#project_name_error").html("");
- });
- loadTypeTree("responsibleButton", {
- type : "usersingle",
- backId : "responsible",
- backName : "responsible_name",
- tab:tab
- });
- loadTypeTree("relate_depButton", {
- type : "dept",
- backId : "relate_dep_id",
- backName : "relate_dep_name",
- tab:tab
- });
- $("#app_date").ligerDateEditor({
- labelWidth : 100,
- labelAlign : 'right',
- initValue:'${map.app_date }'
- });
- $("#start_date").ligerDateEditor({
- labelWidth : 100,
- labelAlign : 'right',
- initValue:'${map.start_date }'
- });
- $("#end_date").ligerDateEditor({
- labelWidth : 100,
- labelAlign : 'right',
- initValue:'${map.end_date }'
- });
-
- $("#profile").xheditor({tools:"simple"});
- $("#target_").xheditor({tools:"simple"});
-
- /* $("#layout1").ligerLayout({ centerWidth:310,leftWidth : 590,rightWidth : 590,allowRightCollapse: false,allowLeftCollapse:false,height:'97%'});
- $("#navtab1").ligerTab({contextmenu:false,onBeforeSelectTabItem:function(tabid){
- if(tempTree=="")return;
- var tabitem = $(".l-selected").attr("tabid");
- var itemcontent = $("[tabid="+tabitem+"]",".l-tab-content");
- $(itemcontent).empty();
- $(itemcontent).append(tempTree);
- tempTree = "";
- }});
- tabitem = $("#navtab1").ligerGetTabManager();
- var height = $("#layout1").height();
- $(".l-tab-content-item").height(height-55); */
- //replaceItem();
-
- });
- function toAddUser(){
- var dept=$("#relate_dep_id").val();
- if(!dept){
- $.ligerDialog.warn('请在项目信息中选择涉及部门');
- return;
- }
- loadTypeTree("usernameButton",{tab:"2",type:"user",backId:"user_id",backName:"user_name",tabParam:[{tab:"2",root:dept}]});
- var data_string = "";
- selectedData = [];
- $.ligerDialog.open({width:550,height:430, url : 'pmProject.do?task=toChooseUser&groupid=' + $("#relate_dep_id").val(),title:"添加项目人员",
- buttons:[{
- text : '确定',
- onclick : function(item, dialog) {
- for (var i = 0; i < selectedData.length; i++){
- /* project_role user_id
- data_string += "user_id:"+ selectedData[i].user_id + */
- var json_string = JSON.stringify(selectedData[i]);
- if (i < selectedData.length - 1){
- data_string += json_string + ",";
- } else {
- data_string += json_string;
- }
- }
- data_string = {data_user:"[" + data_string + "]"};
- $.ajax({
- type:"POST",
- url:"pmProject.do?task=addteamuser&time=" + new Date().getTime() + "&universalid=" + $("#universalid").val(),
- data:data_string,
- timeout:10000,
- cache:false,
- dataType:"json",
- success:function(msg){
- msg = parseInt(msg);
- if(msg > 0){
- $.ligerDialog.hide();
- $.ligerDialog.open({content:"提交成功!", "title":"提交成功!", "type":"success",allowClose:true,
- buttons: [ { text: '确定', onclick: function (item, dialog) { dialog.close(); } } ]
- });
- /* $("#universalid").val(msg);
- $("#user_id").val("");
- $("#user_name").val("");
- $(role_id).attr("checked",false);
- $("#description").val(""); */
- initTeamgrid();
-
- }else{
- if(msg == -2){
- $.ligerDialog.warn("操作失败,请检查项目成员是否已选择");
- }else if(msg==0){
- $.ligerDialog.warn("操作失败,请检查项目成员是否已经存在项目中");
- }else{
- $.ligerDialog.warn("添加失败,请联系管理员");
- }
- }
- }
- });
- /* var idObj = o.win.getElementsByName(o.backId);
- var nameObj = o.win.getElementsByName(o.backName);
- if(idObj.length==0)idObj = o.win.getElementById(o.backId);
- if(nameObj.length==0)nameObj = o.win.getElementById(o.backName);
- var checkList = findIframeByJquery("deptTreeFrame",".checkList");
- var ids = "";
- var names="";
- $("li",checkList).each(function(){
- var selectId = $(this).attr("id");
- selectId = selectId.substring(selectId.indexOf("_")+1);
- names += ","+$(this).text();
- ids +=","+selectId;
- });
- if(ids!=""){
- ids = ids.substring(1);
- }
- if(names!=""){
- names = names.substring(1);
- }
- if(o.okpress){
- o.okpress(ids, names);
- }else{
- $(idObj).val(ids);
- $(nameObj).change();
- $(nameObj).val(names);
- }
- dialog.close(); */
- }
- }, {
- text : '取消',
- onclick : function(item, dialog) {
- dialog.close();
- }
- } ]});
- }
-
- var manager1;
- function initTeamgrid(){
- var id = $("#universalid").val();
- var jsonObject = {"project_id":""};
- if(id){
- jsonObject.project_id = id;
- }
- if(manager1 == undefined){
- manager1=$("#teamuser").ligerGrid({
- columns:[
- {display:"姓名",name:"name",align: 'center',width: 100},
- { display: '项目角色', name: 'rolename', width: 350, align: 'center'},
- { display: '加入时间', name: 'join_date', width: 80, align: 'center'},
- { display: '描述', name: 'description', width: 450, align: 'center', render: function (rowdata, rowindex, value)
- {
- var html="<span title="+value+">"+value+"<span>";
- return value == null ? "" : html;
- }
- },
- { display: '操作', isSort: false, width: 180, render: function (rowdata, rowindex, value)
- {
- var html = "<a href='javascript:toEditUser(" + rowdata.team_id + ",\"" + rowdata.name + "\",\"" + rowdata.rolename + "\",\"" + rowdata.description +"\")'>编辑</a>";
- html += " <a href='javascript:delUser(" + rowdata.team_id + ",\"" + rowdata.project_id + "\")'>删除</a>";
- return html;
- }
- }
- ],pageSize:10,
- url:"pmProject.do?task=toteamuser&time="+ new Date().getTime(),
- parms :jsonObject,
- pageParmName: 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
- width : '100%',
- height : '385px',
- rownumbers:true
- });
- }else{
- manager1._setParms({"project_id":id});
- setTimeout("manager1.loadData()",500);
- }
- }
-
- //关闭当前页面刷新列表必须要传入tabid
- function closeAndReload(){
- var old_tabid = '${tabid}';
- if(old_tabid.length > 0){
- var tabid = getCurrentTabId();
- window.parent.f_selectTab(old_tabid);
- window.parent.f_reloadTab(old_tabid);
- window.parent.f_closeTab(tabid);
- }
- }
-
- function delUser(team_id,project_id){
- if(confirm("确定要删除")){
- $.ajax({
- type:"POST",
- url:"pmProject.do?task=delteamuser&team_id="+team_id+"&project_id="+project_id+"&time=" + new Date().getTime(),
- timeout:10000,
- cache:false,
- dataType:"json",
- success:function(msg){
- //closeWaittingDialog();
- if(msg > 0){
- $.ligerDialog.hide();
- $.ligerDialog.success("删除成功");
- initTeamgrid();
- }else{
- $.ligerDialog.warn("删除失败");
- }
- }
- });
- }
- }
-
- function toEditUser(id,name,rolename,value){
- $("#team_id").val(id);
- $("#user_name_team").html(name);
- $("#pro_Role").html(rolename);
- $("#description").val(value == "null" ? "" : value);
- $.ligerDialog.open({width:380, target: $("#editUserDIV"),title:"编辑项目人员" });
- }
- function editUser(){
- var id = $("#team_id").val();
- var description = $("#description").val();
- $.ajax({
- type:"POST",
- url:"pmProject.do?task=editteamuser&universalid="+id+"&description="+encodeURI(encodeURI(description))+"&time=" + new Date().getTime(),
- timeout:10000,
- cache:false,
- dataType:"json",
- success:function(msg){
- msg = parseInt(msg);
- if(msg > 0){
- $.ligerDialog.hide();
- $.ligerDialog.open({content:"编辑成功!", "title":"编辑成功!", "type":"success",allowClose:true,
- buttons: [ { text: '确定', onclick: function (item, dialog) { dialog.close(); } } ]
- });
- initTeamgrid();
- }else{
- if(msg == -2){
- $.ligerDialog.warn("操作失败,请检查项目成员是否已选择");
- }else if(msg==0){
- $.ligerDialog.warn("操作失败,请检查项目成员是否已经存在项目中");
- }else{
- $.ligerDialog.warn("添加失败,请联系管理员");
- }
- }
- }
- });
- }
- function closeDiv(){
- $.ligerDialog.hide();
- }
- function addUser(){
- var rs = $.validate({
- name : "user_id",
- model : [ {
- type : "require",
- msg : "请选择参与项目人员!",
- msgBox: "useridmsg"
- }]
- });
- var role_id = document.getElementsByName("role_id");//项目状态
- if(rs){
- var userids = $("#user_id").val();
- var id = $("#universalid").val();
- if(role_id.length>0){
- var n = "";
- for ( var i = 0; i < role_id.length; i++) {
- if (role_id[i].checked) {
- n += role_id[i].value + ",";
- }
- }
- if(n.length==0){
- $("#projroleMsg").html("请选择项目角色");
- }
- if(n.length>0){
- n = n.substring(0, n.length-1);
- var description=$("#description").val();
- description=encodeURI(encodeURI(description));
- $.ajax({
- type:"POST",
- url:"pmProject.do?task=addteamuser&universalid="+id+"&userids="+userids+"&role_id="+n+"&description="+description+"&time=" + new Date().getTime(),
- timeout:10000,
- cache:false,
- dataType:"json",
- success:function(msg){
- msg = parseInt(msg);
- if(msg > 0){
- $.ligerDialog.hide();
- $.ligerDialog.open({content:"提交成功!", "title":"提交成功!", "type":"success",allowClose:true,
- buttons: [ { text: '确定', onclick: function (item, dialog) { dialog.close(); } } ]
- });
- $("#universalid").val(msg);
- $("#user_id").val("");
- $("#user_name").val("");
- $(role_id).attr("checked",false);
- $("#description").val("");
- initTeamgrid();
-
- }else{
- if(msg == -2){
- $.ligerDialog.warn("操作失败,请检查项目成员是否已选择");
- }else if(msg==0){
- $.ligerDialog.warn("操作失败,请检查项目成员是否已经存在项目中");
- }else{
- $.ligerDialog.warn("添加失败,请联系管理员");
- }
- }
- }
- });
- }
- }
- }
- }
- function submitForm(){
- var obj = window.top;
-
-
- var rs = $.validate({
- name : "project_name",
- model : [ {
- type : "require",
- msg : "请输入项目名称!"
- }, {
- type : "len",
- min : 1,
- max : 50,
- msg : "项目编号最长50个字以内!"
- } ]
- });
- rs = $.validate({
- name : "responsible_name",
- model : [ {
- type : "require",
- msg : "请输入责任人!"
- }]
- }) && rs;
- rs = $.validate({
- name : "custor_unit",
- model : [ {
- type : "require",
- msg : "请输入客户单位!"
- }, {
- type : "len",
- min : 1,
- max : 50,
- msg : "客户单位最长50个字以内!"
- } ]
- }) && rs;
- rs = $.validate({
- name : "profile",
- model : [ {
- type : "len",
- min : 0,
- max : 500,
- msg : "项目描述最长500个字以内!"
- } ]
- }) && rs;
- rs = $.validate({
- name : "target_",
- model : [ {
- type : "len",
- min : 0,
- max : 500,
- msg : "项目目标最长500个字以内!"
- } ]
- }) && rs;
- rs = $.validate({
- name : "relate_dep_name",
- model : [ {
- type : "require",
- msg : "涉及部门!"
- }]
- }) && rs;
- if (rs && comp_date()) {
- var flowTheme = $("#project_name").val() + "项目——" + $("#flowTheme").val();
- $.ligerDialog.prompt('流程标题',flowTheme, function (yes,value){
- if(yes){
- if(value != "" && typeof (value) != "undefined"){
- $("#flowTheme").val("");
- $("#flowTheme").val(value);
- $("#btnSave").attr({"disabled":"disabled"});
- $("#state").val("2");
- var sfz = document.getElementsByName("project_affix_id");
- var sfzEvalue = "";
- for(var i=0;i<sfz.length;i++){
- if(""!=sfz[i].value){
- sfzEvalue=sfzEvalue + sfz[i].value +",";
- }
- }
- $("#project_affix").val(sfzEvalue);
- $("#_project").submit();
- }else{
- obj.$.ligerDialog.warn("流程标题不能为空!");
- return;
- }
- }
- });
- }
- }
-
- function saveForm(){
- var rs = $.validate({
- name : "project_name",
- model : [ {
- type : "require",
- msg : "请输入项目名称!"
- }, {
- type : "len",
- min : 1,
- max : 50,
- msg : "项目名称最长50个字以内!"
- } ]
- });
- if(rs && comp_date()){
- $("#state").val("1");
- var sfz = document.getElementsByName("project_affix_id");
- var sfzEvalue = "";
- for(var i=0;i<sfz.length;i++){
- if(""!=sfz[i].value){
- sfzEvalue=sfzEvalue + sfz[i].value +",";
- }
- }
- $("#project_affix").val(sfzEvalue);
- $("#_project").submit();
- }
-
- }
- function editForm(){
- var rs = $.validate({
- name : "project_name",
- model : [ {
- type : "require",
- msg : "请输入项目名称!"
- }, {
- type : "len",
- min : 1,
- max : 50,
- msg : "项目编号最长50个字以内!"
- } ]
- });
- rs = $.validate({
- name : "responsible_name",
- model : [ {
- type : "require",
- msg : "请输入责任人!"
- }]
- }) && rs;
- rs = $.validate({
- name : "custor_unit",
- model : [ {
- type : "require",
- msg : "请输入客户单位!"
- }, {
- type : "len",
- min : 1,
- max : 50,
- msg : "客户单位最长50个字以内!"
- } ]
- }) && rs;
- rs = $.validate({
- name : "relate_dep_name",
- model : [ {
- type : "require",
- msg : "涉及部门!"
- }]
- }) && rs;
- if(rs && comp_date()){
- var sfz = document.getElementsByName("project_affix_id");
- var sfzEvalue = "";
- for(var i=0;i<sfz.length;i++){
- if(""!=sfz[i].value){
- sfzEvalue=sfzEvalue + sfz[i].value +",";
- }
- }
- $("#project_affix").val(sfzEvalue);
- $("#_project").submit();
- }
- }
- function comp_date(){
- var start_date=$("#start_date").val();
- var end_date=$("#end_date").val();
- if(start_date =="" || start_date==null){
- return true;
- }
- if(end_date =="" || end_date==null){
- return true;
- }
-
- var starts=start_date.split("-");
- var starttime = new Date(starts[0], starts[1], starts[2]);
- var starttimes = starttime.getTime();
-
- var ends=end_date.split("-");
- var endtime = new Date(ends[0], ends[1], ends[2]);
- var endtimes = endtime.getTime();
- if(starttimes>endtimes){
- $("#end_dateMsg").html("启动时间不得早于结束时间");
- return false;
- }
- $("#end_dateMsg").html("");
- return true;
- }
- </script>
- </head>
- <body style="overflow:hidden;" ontouchmove="event.preventDefault();">
- <c:choose>
- <c:when test="${map.universalid !=null }">
- <form method='post' name="_project" id="_project" action="mtProManage.do?task=dopteidt">
- <input type="hidden" name="universalid" id="universalid" value="${map.universalid }" />
- <input type="hidden" name="tinsId" id="tinsId" value="${tinsId }" />
- <input type="hidden" name="edit" id="edit" value="${edit }" />
- </c:when>
- <c:otherwise>
- <form method='post' name="_project" id="_project" action="mtProManage.do?task=doptAdd">
- <input type="hidden" name="universalid" id="universalid" value="${universalid }" />
- </c:otherwise>
- </c:choose>
- <div class="s_title b10 f6">
- <img src="/shares/images/master1/gg_ico.png" width="27" height="26" /> 项目立项编辑
- </div>
- <div id="title" class="form-button" style=" margin-top: 40px">
- <input type="button" id="back" class="l-button" value="返回" onclick="history.back(-1);" />
- <c:choose>
- <c:when test="${map.state==4 }">
- <input type="button" value="保存" class="l-button" onclick="editForm()" />
- </c:when>
- <c:otherwise>
- <input type="button" id="btnSave" class="l-button" value="立项" onclick="submitForm()" />
- <input type="button" value="暂存" class="l-button" onclick="saveForm()" />
- <!-- <input type="button" value="立项" class="l-button" onclick="saveForm()" /> -->
- </c:otherwise>
- </c:choose>
-
- </div>
- <div id="jp-container" class="jp-container liuyan" >
- <div class="forum-container-2" style="overflow: hidden;">
- <table border="0">
- <thead>
- <tr>
- <th colspan="4">
- <div class="l-table-edit line" style="float:left;margin-left:15px;">项目基本信息</div>
- <input type="hidden" name="state" id="state" value="${map.state }" />
- <input type="hidden" name="type" value="${type }" />
- <input type="hidden" name="old_project_code" value="${map.project_code }" />
- <c:choose>
- <c:when test="${map.old_project_name !=null }">
- <input type="hidden" name="old_project_name" value="${map.old_project_name }" />
- </c:when>
- <c:otherwise>
- <input type="hidden" name="old_project_name" value="${map.project_name }" />
- </c:otherwise>
- </c:choose>
-
- <input type="hidden" id="tabid" name="tabid" value="${param.tabid }" />
- <!-- 审批流程 -->
- <input type="hidden" id="tmodelId" name="tmodelId" value="${requestScope.tmodel.tmodelId }" />
- <input type="hidden" id="modelId" name="modelId" value="${requestScope.fmodel.modelId }" />
- <input type="hidden" id="flowTheme" name="flowTheme" value="${requestScope.flowTheme}"/>
- </th>
- </tr>
- </thead>
- <tr>
- <!-- <td class="l-table-edit-text11">项目编号<font color="red">*</font>:</td> -->
- <!-- <td class="l-table-edit-td"> -->
- <%-- <input type="text" name="project_code" id="project_code" value="${map.project_code }" maxlength="50" class="default-text"/> --%>
- <%-- <font color="red" id="project_code_error">${project_code_error}</font> --%>
- <!-- </td> -->
- <td class="l-table-edit-text11">项目名称<font color="red">*</font>:</td>
- <td class="l-table-edit-td">
- <input type="text" name="project_name" id="project_name" value="${map.project_name }" maxlength="50" class="default-text"/>
- <font color="red" id="project_name_error">${project_name_error}</font>
- </td>
- <td class="l-table-edit-text11">申请时间:</td>
- <td class="l-table-edit-td" >
- <input type="text" id="app_date" name="app_date" class="short-text" value='' readonly />
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text11">项目来源:</td>
- <td class="l-table-edit-td">
- <input type="text" name="project_source" id="project_source" value="${map.project_source }" maxlength="50" class="default-text"/>
- </td>
- <td class="l-table-edit-text11">责任人<font color="red">*</font>:</td>
- <td class="l-table-edit-td" >
- <input type="text" style="width: 190px" class="default-text" name="responsible_name" id="responsible_name" readonly="readonly" value="${map.responsible_name }" />
- <input type="hidden" name="responsible" id="responsible" readonly="readonly" value="${map.responsible}"/>
- <input type="button" class="l-button" value="请选择" id="responsibleButton"/>
- <label id="pmMsg"></label>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text11">客户单位<font color="red">*</font>:</td>
- <td class="l-table-edit-td">
- <input type="text" name="custor_unit" id="custor_unit" value="${map.custor_unit }" maxlength="50" class="default-text"/>
- </td>
- <td class="l-table-edit-text11">涉及部门<font color="red">*</font>:</td>
- <td class="l-table-edit-td">
- <input type="text" style="width: 190px" class="default-text" name="relate_dep_name" id="relate_dep_name" readonly="readonly" value="${map.relate_dep_name }" />
- <input type="hidden" name="relate_dep_id" id="relate_dep_id" readonly="readonly" value="${map.relate_dep_id}"/>
- <input type="button" class="l-button" value="请选择" id="relate_depButton"/>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text11">项目类型:</td>
- <td class="l-table-edit-td">
- <select name="project_type" id="project_type" class="short-select" >
- <c:forEach items="${projectType}" var="obj">
- <c:choose>
- <c:when test="${map.project_type eq obj.dvalue }">
- <option value="${obj.dvalue }" selected="selected">${obj.dname }</option>
- </c:when>
- <c:otherwise>
- <option value="${obj.dvalue }" >${obj.dname }</option>
- </c:otherwise>
- </c:choose>
- </c:forEach>
- </select>
- <select name="project_type_two" id="project_type_two" class="short-select" style="width:100px;" >
- <c:forEach items="${pm_projectType_two}" var="obj">
- <c:choose>
- <c:when test="${map.project_type_two eq obj.dvalue }">
- <option value="${obj.dvalue }" selected="selected">${obj.dname }</option>
- </c:when>
- <c:otherwise>
- <option value="${obj.dvalue }" >${obj.dname }</option>
- </c:otherwise>
- </c:choose>
- </c:forEach>
- </select>
- </td>
- <td class="l-table-edit-text11">申请部门<font color="red">*</font>:</td>
- <td class="l-table-edit-td">
- ${map.app_dep_name }
- <input type="hidden" name="app_dep_id" id="app_dep_id" readonly="readonly" value="${map.app_dep_id}"/>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text11">启动时间:</td>
- <td class="l-table-edit-td" >
- <input type="text" id="start_date" name="start_date" class="short-text" value='' readonly />
- </td>
- <td class="l-table-edit-text11">结束时间:</td>
- <td class="l-table-edit-td" >
- <input type="text" id="end_date" name="end_date" class="short-text" value='' readonly /><span id="end_dateMsg" style="color:red;"></span>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text11">附件:</td>
- <td class="l-table-edit-td" style="text-align:left;width:30%">
- <jsp:include page="/include/file.jsp">
- <jsp:param name="fieldName" value="project_affix_id" />
- <jsp:param name="folder" value="pm/bug" />
- <jsp:param name="documentId" value="${map.project_affix}" />
- <jsp:param name="size" value="5" />
- <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="project_affix" name="project_affix" />
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text11">项目描述:</td>
- <td class="l-table-edit-td" colspan="3">
- <textarea id="profile" name="profile" rows="10" cols="100" maxlength="500">
- ${map.profile }
- </textarea>
- <div id="profileMsg" style="display: inline-block;"></div>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text11">项目目标:</td>
- <td class="l-table-edit-td" colspan="3">
- <textarea id="target_" name="target_" class="xheditor-simple" rows="10" cols="100" maxlength="500" >
- ${map.target }
- </textarea>
- <div id="targetMsg" style="display: inline-block;"></div>
- </td>
- </tr>
- </table>
- <table border="0" cellspacing="1" cellpadding="0" style="border: 1px solid #ededed;">
- <thead>
- <tr>
- <th colspan="5">
- <div class="l-table-edit line" style="float:left;margin-left:15px;">项目组成员</div>
- </th>
- </tr>
- <tr>
- <td colspan="5">
- <input type="button" class="l-button" onclick="toAddUser();" style="width: 100px;" value="添加项目成员" />
- </td>
- </tr>
- <!-- <tr style="height:400px;">
- <td colspan="5">
- </td>
- </tr> -->
- </thead>
- </table>
- </div>
- <div id="teamuser" style="height:400px;" ></div>
- </div>
- </form>
- <%-- <div id="target1" style="width:360px; margin:0px; display:none;" class="forum-container2">
- <table style="" class="projectTable">
- <tr>
- <td class="" style="vertical-align: bottom;width: 60px;">成员:</td>
- <td class="" style="vertical-align: bottom;">
- <input type="text" id="user_name" name="user_name" style="width:150px;" readonly="readonly" />
- <input type="button" class="l-button" id="usernameButton" name="usernameButton" value="请选择"/>
- <input type="hidden" id="user_id" name="user_id" />
- <label id="useridmsg"></label>
- </td>
- </tr>
- <tr>
- <td class="" style="vertical-align: middle;">项目角色:</td>
- <td class="" style="vertical-align: bottom;">
- <c:forEach items="${projectRole}" var="obj">
- <input type="checkbox" name="role_id" value="${obj.dvalue }" id="role_id${obj.dvalue }" />
- <label for="role_id${obj.dvalue }">${obj.dname} </label><br/>
- </c:forEach>
- <span id="projroleMsg" style="color: red; "></span>
- </td>
- </tr>
- <tr>
- <td class="" style="vertical-align: middle;">描述:</td>
- <td class="" style="vertical-align: bottom;">
- <textarea rows="3" cols="30" id="description"></textarea>
- </td>
- </tr>
- <tr>
- <td colspan="2" style="text-align: center;" style="vertical-align: bottom;">
- <input type="button" class="l-button" value="确定" onclick=" addUser();" />
-
- <input type="button" class="l-button" value="关闭" onclick=" closeDiv();" />
- </td>
- </tr>
- </table>
- </div> --%>
- <div id="target1" class="l-content" style="width:360px; margin:0px; display:none;" >
- <div id="layout1">
- <div position="left" title="类型">
- <div id="navtab1" style="width:300px;height:99%">
- </div>
- </div>
- <div position="center" id="center" title="" style="text-align: center;top:50%;">
- <input type="button" value=">>>"/>
- <input type="button" value="<<<"/>
- </div>
- <div position="right" id="right" title="已选列表">
- <ul class="checkList" title="双击删除">
- </ul>
- </div>
- </div>
- </div>
- <div id="editUserDIV" style="width:360px; margin:0px; display:none;" class="forum-container2">
- <input type="hidden" id="team_id"/>
- <table style="" class="projectTable">
- <tr>
- <td class="" style="vertical-align: middle;width: 60px;">姓名:</td>
- <td id="user_name_team" style="vertical-align: middle;"></td>
- </tr>
- <tr>
- <td class="" style="vertical-align: middle;">项目角色:</td>
- <td id="pro_Role" style="vertical-align: middle;">
- </td>
- </tr>
- <tr>
- <td class="" style="vertical-align: middle;">描述:</td>
- <td class="" style="vertical-align: middle;">
- <textarea rows="3" cols="30" id="description"></textarea>
- </td>
- </tr>
- <tr>
- <td colspan="2" style="text-align: center;" style="vertical-align: bottom;">
- <input type="button" class="l-button" value="确定" onclick=" editUser();" />
-
- <input type="button" class="l-button" value="关闭" onclick=" closeDiv();" />
- </td>
- </tr>
- </table>
- </div>
- </body>
- </html>
|