WorkflowRoute_Subtask_Create.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:8k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $ RCSfile: WorkflowRoute_Subtask_Create.jsp,v $
- * $ Revision: 1.0 $
- * $ Date: 2001/05/018 20:18:46 ,created by Shiyong Jian $
- * $ /mainctrl/template/createRouteSubtask $
- *
- * This is the create subtask page.
- * @author Copyright (c) May. 2001, by VisionNex Technologies Inc., All Right Reversed.
- */
- %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.workflow.util.WorkFlowType" %>
- <jsp:useBean id="routeValueBean" scope="session" class="com.vnex.intranet.workflow.pub.value.RouteValueBean" />
- <%
- if( request.getParameter("addsubtask") != null && request.getParameter("addsubtask").equals("true") )
- {
- %>
- <jsp:useBean id="subtaskValueBean" scope="page" class="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" />
- <jsp:setProperty name="subtaskValueBean" property="*" />
- <%
- routeValueBean.addSubtask( subtaskValueBean );
- session.setAttribute( "routeValueBean" , routeValueBean);
- }
- %>
- <!--jsp:include page="WorkflowRoute_Navibar_Head.jsp" /-->
- <%@ include file= "/vnex/intranet/workflow/template/WorkflowRoute_Navibar_Head.jsp" %>
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <script language="JavaScript" >
- function addSubtaskAgain( myform )
- {
- selectAll( myform.selectedIDList);
- if ( !checkSubtask( myform ) )
- return false;
- myform.action= "/mainctrl/template/createRouteSubtask?flag=<%= request.getParameter("flag")%>&addsubtask=true";
- myform.submit();
- }
- function saveSubtask( myform )
- {
- selectAll( myform.selectedIDList);
- if ( !checkSubtask( myform ) )
- return false;
- <%
- if( request.getParameter("flag") != null && request.getParameter("flag").equals( "routeModify" ) )
- {
- %>
- myform.action= "/mainctrl/template/modifyRoute?flag=addSubtask";
- <%
- }
- else
- {
- %>
- myform.action= "/mainctrl/template/createRoute?flag=addSubtask";
- <%
- }
- %>
- myform.submit();
- }
- function cancleCreateSubtask( myform )
- {
- <%
- if( request.getParameter("flag") != null && request.getParameter("flag").equals( "routeModify" ) )
- {
- %>
- myform.action= "/mainctrl/template/modifyRoute";
- <%
- }
- else
- {
- %>
- myform.action= "/mainctrl/template/createRoute";
- <%
- }
- %>
- myform.submit();
- }
- </script>
- <script language="JavaScript" src="/vnex/util/validate.js"></script>
- <script language="JavaScript" src="/vnex/intranet/workflow/util/checkSubtask.js"></script>
- <script language="JavaScript" src="/vnex/util/popSelect.js"></script>
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <input type="hidden" name="newSubtask" value="1" >
- <DIV align=center>
- <form name="form1" method="post" action="" >
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center">
- <br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr bgcolor="#fafafa">
- <td bgcolor="#fafafa">
- <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td colspan="2" height="15" bgcolor="#666666">
- <font class="strongw"><a href="/mainctrl/home/index">
- <font color="#FFFFFF">首页</font></a>>>
- <a href="<%=firstLevelLink%>"><font color="#FFFFFF"><%=firstLevelText%></font></a>>>
- <a href="<%=secondLevelLink%>"><font color="#FFFFFF"><%=secondLevelText%></font></a>>>
- <font color="#FFFFFF">创建子任务</font>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100"> <font class="strong"> 顺序:</font> </td>
- <td width="456">
- <% int subtaskNum = routeValueBean.getSubtaskNum();%>
- <select name="subStepNo">
- <% for( int i= 1 ; i <= subtaskNum + 1 ; i++ )
- {
- %>
- <option value="<%=i%>" <% if ( i == subtaskNum + 1 ) out.println("selected");%>><%=i%></option>
- <% } %>
- </select> * (注:带*为必填内容)
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="100"> <font class="strong"> 子任务标题:</font>
- </td>
- <td width="456">
- <input type="text" name="subTitle" size="24" class="file"> *</td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100"> <font class="strong"> 执行人: </font>
- </td>
- <td width="456">
- <input type="hidden" name="updated" value="false">
- <input type="hidden" name="tempHidden" value="">
- <select name="selectedIDList" size="4" multiple style="width:200" >
- </select>
- <input type="button" name="Submit1" value="按部门选择" class="file" style="width:70px" onClick="javascript:addList( selectedIDList )">
- <input type="button" name="Submit2" value="分组选择" class="file" style="width:60px" onclick="javascript:addGroupList( selectedIDList )">
- <input type="button" name="Submit3" value="删除" class="file" style="width:30px" onClick="remove(); return false;"> *
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="100"> <font class="strong"> 类型: </font> </td>
- <td width="456">
- <select name="subTypeId">
- <option value="-1" > 请选择</option>
- <option value= 1 >审批</option>
- <option value= 2 >执行</option>
- <option value= 3 >传阅</option>
- </select> *
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100" ><font class="strong"> 子任务描述:
- </font></td>
- <td width="456" >
- <textarea cols="59" rows="5" name="subDescription"></textarea>
- </td>
- </tr>
- <tr bgcolor="#fafafa" align="center">
- <td colspan="3" height="30">
- <input type="button" name="addAagin" style="width:60px" value="继续增加" class="file" onClick="addSubtaskAgain( this.form )">
- <input type="button" name="save" value="保存" class="file" onClick="saveSubtask( this.form )">
- <input type="button" name="cancle" value="放弃" class="file" onClick=" cancleCreateSubtask( this.form )">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form></DIV>
- </BODY></HTML>