Office_Document_Sending_Create_Select.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:9k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.pub.BusinessSession"%>
- <%@ page import="com.vnex.intranet.workflow.util.*"%>
- <%@ page import="com.vnex.intranet.workflow.pub.value.*"%>
- <%@ page import="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" %>
- <%@ page import="com.vnex.intranet.workflow.document.value.DocumentSendValueBean" %>
- <%@ page import="com.vnex.intranet.util.*"%>
- <%@ page import="com.vnex.intranet.system.loader.ConfigParaLoader"%>
- <%@ page import="java.util.*"%>
- <jsp:useBean id="routeValueBean" scope="page" class="com.vnex.intranet.workflow.pub.value.RouteValueBean"/>
- <jsp:useBean id="routeProxy" scope="application" class="com.vnex.intranet.workflow.route.proxy.RouteProxyBean" />
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <jsp:useBean id="routeInfo" scope="page" class="com.vnex.intranet.workflow.pub.value.RouteValueBean" />
- <jsp:useBean id="dsvb" scope="session" class="com.vnex.intranet.workflow.document.value.DocumentSendValueBean"/>
- <%
- dsvb = new DocumentSendValueBean();
- ArrayList subtasks = new ArrayList();
- int templateId = 0;
- int iCheck = 1;
- if ( request.getParameter("check")!=null )
- iCheck = Integer.parseInt(request.getParameter("check"));
- if( request.getParameter("templateId") !=null && iCheck < 3 )
- {
- if( iCheck == 1 )
- templateId = Integer.parseInt(request.getParameter("templateId"));
- else if( iCheck == 2 )
- templateId = Integer.parseInt(request.getParameter("templateId2"));
- if ( templateId!= -1 )
- {
- routeInfo = routeProxy.getRouteDetails( templateId );
- subtasks = routeInfo.getSubtaskList();
- }
- }
- dsvb.setRoute( routeInfo );
- dsvb.setTitle( routeInfo.getRouteName() );
- dsvb.setDescription( routeInfo.getDescription() );
- dsvb.setFiles( routeInfo.getRouteFiles() );
- session.setAttribute( "document", dsvb );
- %>
- <script language=JavaScript>
- function getRoute(form,iCheck)
- {
- form.action="/mainctrl/office/document/sentcreateselect?check=" + iCheck;
- form.submit();
- }
- function create(form)
- {
- if( check( form ) )
- {
- form.action="/mainctrl/office/document/sentcreate";
- form.submit();
- }
- }
- function check(form)
- {
- if( form.R1[0].checked && form.templateId.value == -1 )
- {
- alert("请选择标准工作流模板.");
- return false;
- }
- if( form.R1[1].checked && form.templateId2.value == -1 )
- {
- alert("请选择个人工作流模板.");
- return false;
- }
- return true;
- }
- </script>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <SCRIPT>
- window.onload=init
- </SCRIPT>
- <DIV align=center>
- <form name="form1" method="post" >
- <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 bgcolor="#666666">
- <td colspan="2" height="15"> <font class="strongw"><a href="/mainctrl/system/main"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>>><a href="/mainctrl/office/document/sentlist"><font color="#FFFFFF">发文管理</font></a>>>选择路径
- </font></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="2" height="30">
- <input type="button" name="Submit" style="width:30px" value="新建" class="file" onClick="create( this.form )">
- <input type="reset" name="Submit2" value="放弃" class="file" onClick="location='/mainctrl/office/document/sentlist'" >
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="169">
- <input type="radio" value=1
- <% if( iCheck == 1 ) { %>checked
- <%}%>
- name=R1>
- <font class="strong"> 选择标准工作流模板:</font></td>
- <td width="418">
- <select name="templateId" onChange="getRoute( this.form, 1 )">
- <option value= -1 selected>请选择</option>
- <vnex_workflow:routeList routeType="<%=WorkFlowType.TEMPLATE_TYPE_COMMON%>" workflowType="<%=WorkFlowType.DOCUMENT %>" >
- <vnex:items select='<%= String.valueOf( templateId ) %>'>
- <option value="<vnex_workflow:routeAttribute attribute='route_id' />" <vnex_workflow:routeAttribute attribute='isSelected' /> >
- <vnex_workflow:routeAttribute attribute="route_name" />
- </option>
- </vnex:items>
- </vnex_workflow:routeList>
- </select>
- </select>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="169">
- <input type="radio" value=2
- <% if( iCheck == 2 ) { %>checked
- <%}%>
- name=R1>
- <font class="strong"> 选择个人工作流模板:</font></td>
- <td width="418">
- <select name="templateId2" onChange="getRoute( this.form, 2 )">
- <option value= -1 selected>请选择</option>
- <vnex_workflow:routeList routeType="<%=WorkFlowType.TEMPLATE_TYPE_PERSONAL%>" workflowType="<%=WorkFlowType.DOCUMENT %>" PersonId="<%= BusinessName.getEmpId() %>" >
- <vnex:items select='<%= String.valueOf( templateId ) %>'>
- <option value="<vnex_workflow:routeAttribute attribute='route_id' />" <vnex_workflow:routeAttribute attribute='isSelected' />>
- <vnex_workflow:routeAttribute attribute="route_name" />
- </option>
- </vnex:items>
- </vnex_workflow:routeList>
- </select>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="169">
- <input type="radio" value=3 name=R1 onClick="getRoute( this.form, 3 )"
- <% if( iCheck == 3 ) { %>checked
- <%}%>
- >
- <font class="strong">新建发文路径</font></td>
- <td width="418"> </td>
- </tr>
- </table>
- <table border="0" cellspacing="1" cellpadding="2" width="600" class=title>
- <tr class="table_row_title">
- <td width="13%" align="center" nowrap><font class="strong">顺序</font></td>
- <td width="36%" align="center" nowrap><font class="strong">子任务名称</font></td>
- <td width="28%" align="center" nowrap><font class="strong">执行者</font></td>
- <td width="23%" align="center" nowrap><font class="strong">角色</font></td>
- </tr>
- <vnex_workflow:subtaskList routevalue="<%=routeInfo %>">
- <vnex:items>
- <tr bgcolor="<vnex:itemsColor />">
- <td width="13%" align="center" ><vnex_workflow:subtaskAttribute attribute="subtask_stepNo"/></td>
- <td width="36%" align="center"><vnex_workflow:subtaskAttribute attribute="subtask_name" /></td>
- <td width="28%" >
- <div align="center"><vnex_workflow:subtaskAttribute attribute="executor_names" /></div>
- </td>
- <td width="23%" >
- <div align="center"><vnex_workflow:subtaskAttribute attribute="subtask_type" /></div>
- </td>
- </tr>
- </vnex:items>
- </vnex_workflow:subtaskList>
- </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>