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

电子政务应用

开发平台:

Java

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