Document_Route_Subtask_Modify.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:10k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.workflow.util.WorkFlowType" %>
- <%@ page import="com.vnex.intranet.workflow.pub.value.RouteValueBean" %>
- <%@ page import="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
- <%@ page import="com.vnex.intranet.workflow.document.value.*" %>
- <%@ page import="com.vnex.intranet.util.FieldUtil" %>
- <jsp:useBean id="persondocbean" scope="session" class="com.vnex.intranet.workflow.document.value.DocumentSendValueBean"/>
- <%
- persondocbean = ( DocumentSendValueBean )session.getAttribute( "persondocument" );
- %>
- <jsp:setProperty name="persondocbean" property="*" />
- <%
- if( request.getParameter("instancyType") != null )
- {
- String dtype = request.getParameter("instancyType");
- persondocbean.setInstancyType( InstancyType.getInstance( Integer.parseInt(dtype) ) );
- }
- if( request.getParameter("securityType")!=null )
- {
- String stype = request.getParameter("securityType");
- persondocbean.setSecurityType( SecurityType.getInstance( Integer.parseInt(stype) ) );
- }
- SubTaskValueBean subtaskValueBean = persondocbean.getRoute().getSubtaskDetails( Integer.parseInt( request.getParameter( "subtaskId") ) );
- String current = new java.sql.Date(System.currentTimeMillis()).toString();
- %>
- <script language="JavaScript" >
- function saveSubtask( myform, goon )
- {
- selectAll( myform.selectedIDList);
- if ( !checkSubtask( myform ) )
- return false;
- if( myform.subPlanEndTimeS.value!= "" && ( "<%=current%>" > myform.subPlanEndTimeS.value) )
- {
- alert("截止时间必须在本日之后");
- return false;
- }
- myform.action= "/mainctrl/personal/document/sentsubtasksave?flag=<%=request.getParameter("isDocCreate")%>&goon=" + goon;
- myform.submit();
- }
- function cancleCreateSubtask( myform )
- {
- myform.action="/mainctrl/personal/document/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>
- <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></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_person.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" 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/system/main"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>>><a href="/mainctrl/personal/document/sentlist"><font color="#FFFFFF">发文管理</font></a>>>修改子任务
- </font></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="100"> <font class="strong"> 顺序:</font> </td>
- <td width="456">
- <% int subtaskNum = persondocbean.getRoute().getSubtaskNum();
- int stepNo = subtaskValueBean.getSubStepNo();
- %>
- <select name="subStepNo">
- <% for( int i= 1 ; i <= subtaskNum + 1 ; i++ )
- {
- %>
- <option value="<%=i%>" <% if ( i == stepNo ) out.println("selected");%>><%=i%></option>
- <% } %>
- </select>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100"> <font class="strong"> 子任务标题:</font>
- </td>
- <td width="456">
- <input type="text" name="subTitle" size="24" class="file" value="<%= FieldUtil.filterQuotTag( subtaskValueBean.getSubTitle() ) %>">
- * (注:带*为必填内容)</td>
- </tr>
- <tr bgcolor="#fafafa">
- <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" multiple style="width:260" class="file">
- <vnex_workflow:executorsList subtaskValueBean='<%=subtaskValueBean %>'>
- <vnex_workflow:items>
- <option value="<vnex_workflow:executorsAttribute attribute='executor_employeeId' />;<vnex_workflow:executorsAttribute attribute='executor_name' />;<vnex_workflow:executorsAttribute attribute='executor_title' />" >
- <vnex_workflow:executorsAttribute attribute="executor_name" />
- <vnex_workflow:executorsAttribute attribute="executor_title" />
- </option>
- </vnex_workflow:items> </vnex_workflow:executorsList>
- </select>
- <input type="button" name="Submit1" value="按部门选择" style="width:70px" class="file" onClick="javascript:addList( selectedIDList )">
- <input type="button" name="Submit2" value="分组选择" style="width:60px" class="file" onClick="javascript:addGroupList( selectedIDList )">
- <input type="button" name="Submit3" value="删除" class="file" onClick="remove(); return false;"> *
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100"> <font class="strong"> 类型: </font> </td>
- <td width="456">
- <%
- int subType = subtaskValueBean.getSubTypeId();
- %>
- <select name="subTypeId">
- <option value="-1" > 请选择</option>
- <option value= 1 <% if ( subType == 1 ) out.println("selected"); %> >审批</option>
- <option value= 2 <% if ( subType == 2 ) out.println("selected"); %> >执行</option>
- <option value= 3 <% if ( subType == 3 ) out.println("selected"); %> >传阅</option>
- </select> *
- </td>
- </tr>
- <tr bgcolor="#ffffff">
- <td width="100"> <font class="strong"> 截止时间:</font>
- </td>
- <td width="456">
- <input type="text" name="subPlanEndTimeS" readonly size="24" class="file" value="<%=subtaskValueBean.getSubPlanEndDateS() %>">
- <img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(subPlanEndTimeS);return false">
- <select name="hourS">
- <vnex:hourTag hour='<%= (subtaskValueBean.getHourS()>9?"":"0")+subtaskValueBean.getHourS() %>'/>
- </select>时
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100" bgcolor="#e0e0e0"><font class="strong"> 子任务描述:
- </font></td>
- <td width="456" bgcolor="#e0e0e0">
- <textarea cols="59" rows="5" name="subDescription"><%= FieldUtil.filterQuotTag( subtaskValueBean.getSubDescription()) %></textarea>
- </td>
- </tr>
- <tr bgcolor="#ffffff" align="center">
- <td colspan="3" height="30">
- <input type="hidden" name="subtaskId" value="<%= request.getParameter("subtaskId")%>">
- <input type="hidden" name="isNew" value="false">
- <input type="button" name="save" value="保存" class="file" onClick="saveSubtask( this.form, 'false' )">
- <input type="button" name="cancle" value="放弃" class="file" onClick="history.back()">
- </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>