Project_Route_Subtask_Modify.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:10k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  2. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  3. <%@ page import="com.vnex.intranet.util.*" %>
  4. <%@ page import="com.vnex.intranet.workflow.util.WorkFlowType" %>
  5. <%@ page import="com.vnex.intranet.workflow.pub.value.RouteValueBean" %>
  6. <%@ page import="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" %>
  7. <%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
  8. <%@ page import="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean" %>
  9. <jsp:useBean id="pvb" scope="session" class="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean"/>
  10. <jsp:setProperty name="pvb" property="*" /> 
  11. <%
  12.     String description = request.getParameter("description");
  13.     if( description == null || description.equals("") )
  14.     {
  15.         pvb.setDescription("");
  16.     }
  17.     SubTaskValueBean subtaskValueBean = pvb.getRoute().getSubtaskDetails( Integer.parseInt( request.getParameter( "subtaskId") ) );
  18.     String current = new java.sql.Date(System.currentTimeMillis()).toString();             
  19. %>
  20. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  21. <HTML>
  22. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  23. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  24. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  25. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  26. <script language="JavaScript" src="/vnex/util/validate.js"></script>
  27. <script language="JavaScript" src="/vnex/intranet/workflow/util/checkSubtask.js"></script>
  28. <script language="JavaScript" src="/vnex/util/popSelect.js"></script>
  29. <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
  30. <script language="JavaScript"  >
  31. function saveSubtask( form, goon )
  32. {
  33.     selectAll( form.selectedIDList);
  34.     if ( !checkSubtask( form ) )
  35.             return false;
  36.     if( !isEmpty(form.subPlanEndTimeS.value) )
  37.     {            
  38.        if(!isVNEXDate(form.subPlanEndTimeS.value))
  39.        {
  40.          alert("最终期限日期非法");
  41.          return false;
  42.        }      
  43.        if("<%=current%>" > form.subPlanEndTimeS.value)
  44.        {
  45.          alert("最终期限日期必须在本日之后");
  46.          return false;
  47.        }
  48.        if( !isEmpty("<%= pvb.getPrevPlanEndDateS(1) %>") && ("<%= pvb.getPrevPlanEndDateS(1) %>" > form.subPlanEndTimeS.value))
  49.        {
  50.          alert("最终期限日期必须在以前各个子任务的最终期限以及项目的计划开始日期之后");
  51.          return false;
  52.        }
  53.        if( !isEmpty("<%= pvb.getPlanEndDateS() %>") && ("<%= pvb.getPlanEndDateS() %>" < form.subPlanEndTimeS.value))
  54.        {
  55.          alert("最终期限日期必须在项目的计划结束日期之前");
  56.          return false;
  57.        }
  58.     }             
  59.     
  60.     form.action= "/mainctrl/projectmanagement/subtasksave?flag=<%= request.getParameter( "flag" ) %>&goon=" + goon;       
  61.     form.submit();
  62. }
  63. </script>
  64. <DIV align=center>
  65.   <form name="form1" method="post" action="" >
  66.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  67.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  68.     <TR> 
  69.         <TD colSpan=3 align="center">
  70.           <br><!--个人信息开始 -->
  71.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  72.             <tr bgcolor="#fafafa"> 
  73.               <td bgcolor="#fafafa"> 
  74.                 <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
  75.                   <tr> 
  76.                     <td colspan="2" height="15" bgcolor="#666666"><font class="strongw">&nbsp;<a href="/mainctrl/system/main"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>&gt;&gt;<a href="/mainctrl/projectmanagement/projectlist"><font color="#FFFFFF">工程项目管理</font></a>&gt;&gt;                  
  77.                   <font color="#FFFFFF">修改项目子任务</font> 
  78.                       </font></td>
  79.                   </tr>
  80.                   <tr bgcolor="#fafafa"> 
  81.                     <td width="100"> <font  class="strong">&nbsp;顺序:</font> </td>
  82.                     <td width="456">                               
  83.                     <% int subtaskNum = pvb.getRoute().getSubtaskNum();
  84.                        int stepNo = subtaskValueBean.getSubStepNo();
  85.                     %>
  86.                       <select name="subStepNo">                        
  87.                          <% for( int i= 1 ; i <= subtaskNum ; i++ ) 
  88.                            {    
  89.                         %>
  90.                         <option value="<%=i%>" <% if ( i == stepNo ) out.print("selected");%>><%=i%></option>
  91.                         <% } %>
  92.                       </select>
  93.                     </td>
  94.                   </tr>
  95.                   <tr bgcolor="#e0e0e0"> 
  96.                     <td width="100"> <font class="strong">&nbsp;子任务标题:</font> 
  97.                     </td>
  98.                     <td width="456"> 
  99.                       <input type="text" name="subTitle" size="24" class="file" value="<%= FieldUtil.filterQuotTag(FieldUtil.filterScriptTag(subtaskValueBean.getSubTitle())) %>">
  100.                       &nbsp;*&nbsp;(注:带*为必填内容)</td>
  101.                   </tr>
  102.                   <tr bgcolor="#fafafa"> 
  103.                     <td width="100"> <font  class="strong">&nbsp;执行人: </font> 
  104.                     </td>
  105.                     <td width="456"> 
  106.                        <input type="hidden" name="updated" value="false">
  107.                        <input type="hidden" name="tempHidden" value="">
  108.                        <select name="selectedIDList" multiple style="width:200" class="file">
  109.                            <vnex_workflow:executorsList subtaskValueBean='<%=subtaskValueBean %>'> 
  110.                            <vnex_workflow:items> 
  111.                            <option value="<vnex_workflow:executorsAttribute attribute='executor_employeeId' />;<vnex_workflow:executorsAttribute attribute='executor_name' />;<vnex_workflow:executorsAttribute attribute='executor_title' />"  > 
  112.                            <vnex_workflow:executorsAttribute attribute="executor_name" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  113.                            <vnex_workflow:executorsAttribute attribute="executor_department"/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  114.                            <vnex_workflow:executorsAttribute attribute="executor_title" /> 
  115.                            </option>
  116.                            </vnex_workflow:items> </vnex_workflow:executorsList> 
  117.                        </select>
  118.                        <input type="button" name="Submit1" value="按部门选择" class="file" onClick="javascript:addList( selectedIDList )">
  119.                        <input type="button" name="Submit2" value="分组选择" class="file" onClick="javascript:addGroupList( selectedIDList )" > 
  120.                        <input type="button" name="Submit3" value="删除" class="file" onClick="javascript:remove(); return false;"> 
  121.                        &nbsp;*
  122.                     </td>
  123.                   </tr>
  124.                   <tr bgcolor="#e0e0e0"> 
  125.                     <td width="100"> <font  class="strong">&nbsp;类型: </font> </td>
  126.                     <td width="456"> 
  127.                       <% 
  128.                           int subType = subtaskValueBean.getSubTypeId(); 
  129.                       %> 
  130.                       <select name="subTypeId">
  131.                         <option value= -1 >请选择</option>
  132.                         <option value= 1 <% if ( subType == 1 ) out.println("selected"); %> >审批</option>
  133.                         <option value= 2 <% if ( subType == 2 ) out.println("selected"); %> >执行</option>
  134.                         <option value= 3 <% if ( subType == 3 ) out.println("selected"); %> >传阅</option>
  135.                       </select>&nbsp;*
  136.                     </td>
  137.                   </tr>
  138.                   <input type="hidden" name="subStatusId" value="<%= subtaskValueBean.getSubStatusId() %>"> 
  139.                    <tr bgcolor="#ffffff"> 
  140.                     <td width="100"> <font class="strong">&nbsp;截止时间:</font> 
  141.                     </td>
  142.                     <td width="456"> 
  143.                       <input type="text" name="subPlanEndTimeS" readonly size="24" class="file" value="<%=subtaskValueBean.getSubPlanEndDateS() %>">
  144.                       &nbsp;<img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(subPlanEndTimeS);return false">
  145.                       <select name="hourS">
  146.                         <vnex:hourTag hour='<%= (subtaskValueBean.getHourS()>9?"":"0")+subtaskValueBean.getHourS() %>'/>
  147.                       </select>时
  148.                       </td>
  149.                   </tr>
  150.                   <tr bgcolor="#e0e0e0"> 
  151.                     <td width="100" bgcolor="#e0e0e0"><font  class="strong">&nbsp;子任务描述: 
  152.                       </font></td>
  153.                     <td width="456" bgcolor="#e0e0e0"> 
  154.                       <textarea cols="59" rows="5" name="subDescription"><%= FieldUtil.filterQuotTag(FieldUtil.filterScriptTag(subtaskValueBean.getSubDescription())) %></textarea>
  155.                     </td>
  156.                   </tr>
  157.                   <tr bgcolor="#ffffff" align="center"> 
  158.                     <td colspan="3" height="30"> 
  159.                        <input type="hidden" name="subtaskId" value="<%= request.getParameter( "subtaskId")%>"> 
  160.                        <input type="hidden" name="isNew" value="false">         
  161.                        <input type="button" name="save" value="保存" class="file" onClick="saveSubtask( this.form, 'false' )">&nbsp;&nbsp;
  162.                        <input type="button" name="cancle" value="放弃" class="file" onClick="history.back()">
  163.                     </td>
  164.                   </tr>
  165.                 </table>
  166.               </td>
  167.             </tr>
  168.           </table>          
  169.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  170.        </TD>
  171.     </TR>
  172.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  173.     </TABLE>
  174.   <BR>
  175.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  176. </form></DIV>
  177. </BODY></HTML>