Document_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.document.value.*" %>
  5. <%@ page import="com.vnex.intranet.util.FieldUtil" %> 
  6. <jsp:useBean id="dsvb" scope="session" class="com.vnex.intranet.workflow.document.value.DocumentSendValueBean"/>
  7. <%
  8.     dsvb = ( DocumentSendValueBean )session.getAttribute( "document" );
  9.     String current = new java.sql.Date(System.currentTimeMillis()).toString();
  10. %>
  11. <jsp:setProperty name="dsvb" property="*" /> 
  12. <%
  13.     if( request.getParameter("instancyType") != null )
  14.     {
  15.        String dtype = request.getParameter("instancyType");
  16.         dsvb.setInstancyType( InstancyType.getInstance( Integer.parseInt(dtype) ) );    
  17.     }  
  18.     if( request.getParameter("securityType") != null )
  19.     {  
  20.         String stype = request.getParameter("securityType");
  21.         dsvb.setSecurityType( SecurityType.getInstance( Integer.parseInt(stype) ) );
  22.     }   
  23.     
  24.     session.setAttribute( "document", dsvb );
  25. %>
  26. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  27. <HTML>
  28. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  29. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  30. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  31. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  32. <SCRIPT>
  33. window.onload=init
  34. </SCRIPT>
  35. <script language="JavaScript"  >
  36. function saveSubtask( myform, goon )
  37. {
  38.     selectAll( myform.selectedIDList);
  39.     if ( !checkSubtask( myform ) )
  40.             return false;
  41.             
  42.     if( myform.subPlanEndTimeS.value!= "" && ( "<%=current%>" > myform.subPlanEndTimeS.value) )
  43.     {
  44.         alert("截止时间必须在本日之后");
  45.         return false;
  46.     }
  47.       
  48.     myform.action= "/mainctrl/office/document/sentsubtasksave?flag=<%=request.getParameter("isDocCreate")%>&goon=" + goon;
  49.     
  50.     myform.submit();
  51. }
  52. function cancleCreateSubtask( myform )
  53. {
  54.     <%
  55.        if( request.getParameter("isDocCreate").equals( "docModify" )   ) 
  56.        {
  57.     %> 
  58.        myform.action= "/mainctrl/office/document/sentupdate?comeback=1&flag=routeModify";       
  59.     <%
  60.        }
  61.        else
  62.        {
  63.     %> 
  64.        myform.action= "/mainctrl/office/document/sentcreate";
  65.     <%
  66.        }
  67.     %>
  68.     myform.submit();
  69. }
  70. </script>
  71. <script language="JavaScript" src="/vnex/util/validate.js"></script>
  72. <script language="JavaScript" src="/vnex/intranet/workflow/util/checkSubtask.js"></script>
  73. <script language="JavaScript" src="/vnex/util/popSelect.js"></script>
  74. <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.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 bgcolor="#666666" > 
  87.                     <td colspan="2" height="15"><font class="strongw">&nbsp;<a href="/mainctrl/system/main"><font color="#FFFFFF">首页</font></a>
  88.                     &gt;&gt;<a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>&gt;&gt;
  89.                     <a href="/mainctrl/office/document/sentlist"><font color="#FFFFFF">发文管理</font></a>&gt;&gt;<font color="#FFFFFF">创建子任务</font>
  90.                       </font></td>
  91.                   </tr>
  92.                   <tr bgcolor="#fafafa"> 
  93.                     <td width="100"> <font  class="strong">&nbsp;顺序:</font> </td>
  94.                     <td width="456"> 
  95.                       <% int subtaskNum = dsvb.getRoute().getSubtaskNum();%>
  96.                       <select name="subStepNo">                        
  97.                          <% for( int i= 1 ; i <= subtaskNum + 1 ; i++ ) 
  98.                            {    
  99.                         %>
  100.                         <option value="<%=i%>" <% if ( i == subtaskNum + 1 ) out.println("selected");%>><%=i%></option>
  101.                         <% } %>
  102.                       </select>
  103.                     </td>
  104.                   </tr>
  105.                   <tr bgcolor="#e0e0e0"> 
  106.                     <td width="100"> <font class="strong">&nbsp;子任务标题:</font> 
  107.                     </td>
  108.                     <td width="456"> 
  109.                       <input type="text" name="subTitle" size="24" class="file">
  110.                       &nbsp;*&nbsp;(注:带*为必填内容)</td>
  111.                   </tr>
  112.                   <tr bgcolor="#fafafa"> 
  113.                     <td width="100"> <font  class="strong">&nbsp;执行人: </font> 
  114.                     </td>
  115.                     <td width="456"> 
  116.                        <input type="hidden" name="updated" value="false">
  117.                        <input type="hidden" name="tempHidden" value="">
  118.                        <select name="selectedIDList" size="4" multiple style="width:260" class="file">
  119.                        </select>
  120.                       <input type="button" name="Submit1" style="width:70px" value="按部门选择" class="file" onClick="javascript:addList( selectedIDList )">&nbsp;&nbsp;
  121.                       <input type="button" name="Submit2" style="width:60px" value="分组选择" class="file" onClick="javascript:addGroupList( selectedIDList )">&nbsp;&nbsp;
  122.                       <input type="button" name="Submit3" value="删除" class="file" onClick="remove(); return false;">&nbsp;*
  123.                     </td>
  124.                   </tr>
  125.                   <tr bgcolor="#e0e0e0"> 
  126.                     <td width="100"> <font  class="strong">&nbsp;类型: </font> </td>
  127.                     <td width="456"> 
  128.                       <select name="subTypeId">
  129.                       <option value="-1" SELECTED > 请选择</option>                        
  130.                         <option value= 1 >审批</option>
  131.                         <option value= 2 >执行</option>
  132.                         <option value= 3 >传阅</option>
  133.                       </select>&nbsp;*
  134.                     </td>
  135.                   </tr>
  136.                    <tr bgcolor="#fafafa"> 
  137.                     <td width="100"> <font class="strong">&nbsp;截止时间:</font> 
  138.                     </td>
  139.                     <td width="456"> 
  140.                       <input type="text" name="subPlanEndTimeS" readonly size="24" class="file" >
  141.                       &nbsp;<img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(subPlanEndTimeS);return false">
  142.                       <select name="hourS">
  143.                         <vnex:hourTag />
  144.                       </select>时
  145.                       </td>
  146.                   </tr>
  147.                   <tr > 
  148.                     <td width="100" bgcolor="#e0e0e0"><font  class="strong">&nbsp;子任务描述: 
  149.                       </font></td>
  150.                     <td width="456" bgcolor="#e0e0e0"> 
  151.                       <textarea name="subDescription" cols="59" rows="5"></textarea>
  152.                     </td>
  153.                   </tr>
  154.                   <tr bgcolor="#fafafa" align="center"> 
  155.                     <td colspan="3" height="30"> 
  156.                       <input type="hidden" name="isNew" value="true"> 
  157.                       <input type="button" name="Submit4" style="width:60px" value="继续增加" class="file" onClick="saveSubtask( this.form, 'true' )">&nbsp;&nbsp;
  158.                       <input type="button" name="submit5" value="保存" class="file" onClick="saveSubtask( this.form, 'false' )">&nbsp;&nbsp;
  159.                       <input type="reset" name="submit6" value="放弃" class="file" onClick="cancleCreateSubtask( this.form )">
  160.                     </td>
  161.                   </tr>
  162.                 </table>
  163.               </td>
  164.             </tr>
  165.           </table>
  166. <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  167. </TD>
  168.     </TR>
  169.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  170.     </TABLE>
  171.   <BR>
  172.    <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  173. </form></DIV>
  174. </BODY></HTML>