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

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  *  $ RCSfile: WorkflowRoute_Subtask_Create.jsp,v $
  4.  *  $ Revision: 1.0 $
  5.  *  $ Date: 2001/05/018 20:18:46 ,created by Shiyong Jian $
  6.  *  $ /mainctrl/template/createRouteSubtask $
  7.  *
  8.  *  This is the create subtask page.
  9.  *  @author Copyright (c) May. 2001, by VisionNex  Technologies Inc., All Right Reversed.
  10.  */
  11. %>
  12. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  13. <%@ page import="com.vnex.intranet.workflow.util.WorkFlowType" %>
  14. <jsp:useBean id="routeValueBean" scope="session" class="com.vnex.intranet.workflow.pub.value.RouteValueBean" />
  15. <%
  16.     if( request.getParameter("addsubtask") != null && request.getParameter("addsubtask").equals("true") )
  17.     {
  18. %>
  19. <jsp:useBean id="subtaskValueBean" scope="page" class="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" />
  20. <jsp:setProperty name="subtaskValueBean" property="*" />
  21. <%
  22.         routeValueBean.addSubtask( subtaskValueBean );        
  23.         session.setAttribute( "routeValueBean" , routeValueBean);
  24.     }
  25. %>
  26. <!--jsp:include page="WorkflowRoute_Navibar_Head.jsp" /-->
  27. <%@ include file= "/vnex/intranet/workflow/template/WorkflowRoute_Navibar_Head.jsp" %>
  28. <HTML>
  29. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  30. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  31. <script language="JavaScript"  >
  32. function addSubtaskAgain( myform )
  33. {
  34.     selectAll( myform.selectedIDList);
  35.     if ( !checkSubtask( myform ) )
  36.             return false;
  37.     myform.action= "/mainctrl/template/createRouteSubtask?flag=<%= request.getParameter("flag")%>&addsubtask=true";
  38.     myform.submit();
  39. }
  40. function saveSubtask( myform  )
  41. {
  42.     selectAll( myform.selectedIDList);
  43.     if ( !checkSubtask( myform ) )
  44.             return false;
  45.     <%
  46.        if( request.getParameter("flag") != null && request.getParameter("flag").equals( "routeModify" )   ) 
  47.        {
  48.     %> 
  49.        myform.action= "/mainctrl/template/modifyRoute?flag=addSubtask";
  50.     <%
  51.        }
  52.        else
  53.        {
  54.     %> 
  55.        myform.action= "/mainctrl/template/createRoute?flag=addSubtask";
  56.     <%
  57.        }
  58.     %>
  59.      
  60.     myform.submit();
  61. }
  62. function cancleCreateSubtask( myform )
  63. {
  64.     <%
  65.        if( request.getParameter("flag") != null && request.getParameter("flag").equals( "routeModify" )   ) 
  66.        {
  67.     %> 
  68.        myform.action= "/mainctrl/template/modifyRoute";
  69.     <%
  70.        }
  71.        else
  72.        {
  73.     %> 
  74.        myform.action= "/mainctrl/template/createRoute";
  75.     <%
  76.        }
  77.     %>
  78.     myform.submit();
  79. }
  80. </script>
  81. <script language="JavaScript" src="/vnex/util/validate.js"></script>
  82. <script language="JavaScript" src="/vnex/intranet/workflow/util/checkSubtask.js"></script>
  83. <script language="JavaScript" src="/vnex/util/popSelect.js"></script>
  84. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  85. <input type="hidden" name="newSubtask" value="1" >
  86. <DIV align=center>
  87.   <form name="form1" method="post" action="" >
  88.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  89.      <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  90.     <TR> 
  91.         <TD colSpan=3 align="center">
  92.           <br>
  93.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  94.             <tr bgcolor="#fafafa"> 
  95.               <td bgcolor="#fafafa"> 
  96.                 <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
  97.                   <tr> 
  98.                     <td colspan="2" height="15" bgcolor="#666666">
  99.                     <font class="strongw"><a href="/mainctrl/home/index">
  100.                     <font color="#FFFFFF">首页</font></a>&gt;&gt;
  101.                     <a href="<%=firstLevelLink%>"><font color="#FFFFFF"><%=firstLevelText%></font></a>&gt;&gt;
  102.                     <a href="<%=secondLevelLink%>"><font color="#FFFFFF"><%=secondLevelText%></font></a>&gt;&gt;
  103.                    <font color="#FFFFFF">创建子任务</font>                     
  104.                       </td>
  105.                   </tr>
  106.                   <tr bgcolor="#e0e0e0"> 
  107.                     <td width="100"> <font  class="strong">&nbsp;顺序:</font> </td>
  108.                     <td width="456"> 
  109.                     <% int subtaskNum = routeValueBean.getSubtaskNum();%>
  110.                       <select name="subStepNo">                        
  111.                          <% for( int i= 1 ; i <= subtaskNum + 1 ; i++ ) 
  112.                            {    
  113.                         %>
  114.                         <option value="<%=i%>" <% if ( i == subtaskNum + 1 ) out.println("selected");%>><%=i%></option>
  115.                         <% } %>
  116.                       </select>&nbsp;*&nbsp;(注:带*为必填内容)
  117.                     </td>
  118.                   </tr>
  119.                   <tr bgcolor="#fafafa"> 
  120.                     <td width="100"> <font class="strong">&nbsp;子任务标题:</font> 
  121.                     </td>
  122.                     <td width="456"> 
  123.                       <input type="text" name="subTitle" size="24" class="file">&nbsp;*</td>
  124.                       
  125.                   </tr>
  126.                   <tr bgcolor="#e0e0e0"> 
  127.                     <td width="100"> <font  class="strong">&nbsp;执行人: </font> 
  128.                     </td>
  129.                     <td width="456"> 
  130.                        <input type="hidden" name="updated" value="false">
  131.                        <input type="hidden" name="tempHidden" value="">
  132.                        <select name="selectedIDList" size="4" multiple style="width:200" >
  133.                        </select>
  134.                        <input type="button" name="Submit1" value="按部门选择" class="file" style="width:70px"  onClick="javascript:addList( selectedIDList )">
  135.                        <input type="button" name="Submit2" value="分组选择" class="file" style="width:60px"  onclick="javascript:addGroupList( selectedIDList )">
  136.                        <input type="button" name="Submit3" value="删除" class="file" style="width:30px" onClick="remove(); return false;">&nbsp;* 
  137.                     </td>
  138.                   </tr>
  139.                   <tr bgcolor="#fafafa"> 
  140.                     <td width="100"> <font  class="strong">&nbsp;类型: </font> </td>
  141.                     <td width="456"> 
  142.                       <select name="subTypeId">
  143.                       <option value="-1" > 请选择</option> 
  144.                         <option value= 1 >审批</option>
  145.                         <option value= 2 >执行</option>
  146.                         <option value= 3 >传阅</option>
  147.                       </select>&nbsp;*
  148.                     </td>
  149.                   </tr>
  150.                   <tr bgcolor="#e0e0e0"> 
  151.                     <td width="100" ><font  class="strong">&nbsp;子任务描述: 
  152.                       </font></td>
  153.                     <td width="456" > 
  154.                       <textarea cols="59" rows="5" name="subDescription"></textarea>
  155.                     </td>
  156.                   </tr>
  157.                   <tr bgcolor="#fafafa" align="center"> 
  158.                     <td colspan="3" height="30"> 
  159.                       <input type="button" name="addAagin" style="width:60px" value="继续增加" class="file" onClick="addSubtaskAgain( this.form )">&nbsp;&nbsp;
  160.                       <input type="button" name="save" value="保存" class="file" onClick="saveSubtask( this.form )">&nbsp;&nbsp;
  161.                       <input type="button" name="cancle" value="放弃" class="file" onClick=" cancleCreateSubtask( this.form )">
  162.                     </td>
  163.                   </tr>
  164.                 </table>
  165.               </td>
  166.             </tr>
  167.           </table>
  168. <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  169. </TD>
  170.     </TR>
  171.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  172.     </TABLE>
  173.   <BR>
  174.    <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  175. </form></DIV>
  176. </BODY></HTML>