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

电子政务应用

开发平台:

Java

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