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