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

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="com.vnex.intranet.workflow.util.WorkFlowType" %>
  3. <%@ page import="com.vnex.intranet.workflow.pub.value.RouteValueBean" %>
  4. <%@ page import="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" %>
  5. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  6. <%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
  7. <%@ page import="com.vnex.intranet.workflow.document.value.*" %>
  8. <%@ page import="com.vnex.intranet.util.FieldUtil" %> 
  9. <jsp:useBean id="dsvb" scope="session" class="com.vnex.intranet.workflow.document.value.DocumentSendValueBean"/>
  10. <%
  11.     dsvb = ( DocumentSendValueBean )session.getAttribute( "document" );
  12. %>
  13. <jsp:setProperty name="dsvb" property="*" /> 
  14. <%
  15.     if( request.getParameter("instancyType") != null )
  16.     {
  17.        String dtype = request.getParameter("instancyType");
  18.         dsvb.setInstancyType( InstancyType.getInstance( Integer.parseInt(dtype) ) );    
  19.     }  
  20.     if( request.getParameter("securityType") != null )
  21.     {  
  22.         String stype = request.getParameter("securityType");
  23.         dsvb.setSecurityType( SecurityType.getInstance( Integer.parseInt(stype) ) );
  24.     }   
  25.     
  26.     SubTaskValueBean subtaskValueBean = dsvb.getRoute().getSubtaskDetails( Integer.parseInt( request.getParameter( "subtaskId") ) );
  27.     String current = new java.sql.Date(System.currentTimeMillis()).toString();
  28.     
  29. %>
  30. <script language="JavaScript"  >
  31. function saveSubtask( myform, goon )
  32. {
  33.     selectAll( myform.selectedIDList);
  34.     if ( !checkSubtask( myform ) )
  35.             return false;
  36.             
  37.     if( myform.subPlanEndTimeS.value!= "" && ( "<%=current%>" > myform.subPlanEndTimeS.value) )
  38.     {
  39.         alert("截止时间必须在本日之后");
  40.         return false;
  41.     }
  42.     
  43.     myform.action= "/mainctrl/office/document/sentsubtasksave?flag=<%=request.getParameter("isDocCreate")%>&goon=" + goon;       
  44.     myform.submit();
  45. }
  46. </script>
  47. <script language="JavaScript" src="/vnex/util/validate.js"></script>
  48. <script language="JavaScript" src="/vnex/intranet/workflow/util/checkSubtask.js"></script>
  49. <script language="JavaScript" src="/vnex/util/popSelect.js"></script>
  50. <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
  51. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  52. <HTML>
  53. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  54. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  55. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  56. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  57. <SCRIPT>
  58. window.onload=init
  59. </SCRIPT>
  60. <DIV align=center>
  61.   <form name="form1" method="post" action="" >
  62.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  63.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  64.     <TR> 
  65.         <TD colSpan=3 align="center">
  66.           <br><!--个人信息开始 -->
  67.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  68.             <tr bgcolor="#fafafa"> 
  69.               <td bgcolor="#fafafa"> 
  70.                 <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
  71.                   <tr bgcolor="#666666"> 
  72.                     <td colspan="2" height="15"><font class="strongw"><a href="/mainctrl/system/main"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>&gt;&gt;<a href="/mainctrl/office/document/sentlist"><font color="#FFFFFF">发文管理</font></a>&gt;&gt;修改子任务 
  73.                       </font></td>
  74.                   </tr>
  75.                   <tr bgcolor="#fafafa"> 
  76.                     <td width="100"> <font  class="strong">&nbsp;顺序:</font> </td>
  77.                     <td width="456">                               
  78.                     <% int subtaskNum = dsvb.getRoute().getSubtaskNum();
  79.                        int stepNo = subtaskValueBean.getSubStepNo();
  80.                     %>
  81.                       <select name="subStepNo">                        
  82.                          <% for( int i= 1 ; i <= subtaskNum + 1 ; i++ ) 
  83.                            {    
  84.                         %>
  85.                         <option value="<%=i%>" <% if ( i == stepNo ) out.println("selected");%>><%=i%></option>
  86.                         <% } %>
  87.                       </select>
  88.                     </td>
  89.                   </tr>
  90.                   <tr bgcolor="#e0e0e0"> 
  91.                     <td width="100"> <font class="strong">&nbsp;子任务标题:</font> 
  92.                     </td>
  93.                     <td width="456"> 
  94.                       <input type="text" name="subTitle" size="24" class="file" value="<%= FieldUtil.filterQuotTag( subtaskValueBean.getSubTitle() ) %>">
  95.                       &nbsp;*&nbsp;(注:带*为必填内容)</td>
  96.                   </tr>
  97.                   <tr bgcolor="#fafafa"> 
  98.                     <td width="100"> <font  class="strong">&nbsp;执行人: </font> 
  99.                     </td>
  100.                     <td width="456"> 
  101.                        <input type="hidden" name="updated" value="false">
  102.                        <input type="hidden" name="tempHidden" value="">
  103.                        <select name="selectedIDList" multiple style="width:250" class="file">
  104.                            <vnex_workflow:executorsList subtaskValueBean='<%=subtaskValueBean %>'> 
  105.                            <vnex_workflow:items> 
  106.                          <option value="<vnex_workflow:executorsAttribute attribute='executor_employeeId' />;<vnex_workflow:executorsAttribute attribute='executor_name' />;<vnex_workflow:executorsAttribute attribute='executor_title' />"  > 
  107.                            <vnex_workflow:executorsAttribute attribute="executor_name" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                           
  108.                            <vnex_workflow:executorsAttribute attribute="executor_title" /> 
  109.                          </option>
  110.                            </vnex_workflow:items> </vnex_workflow:executorsList> 
  111.                        </select>
  112.                        <input type="button" name="Submit1" value="按部门选择" class="file" onClick="javascript:addList( selectedIDList )">
  113.                        <input type="button" name="Submit2" value="分组选择" class="file" onClick="javascript:addGroupList( selectedIDList )"> 
  114.                        <input type="button" name="Submit3" value="删除" class="file" onClick="remove(); return false;">&nbsp;* 
  115.                     </td>
  116.                   </tr>
  117.                   <tr bgcolor="#e0e0e0"> 
  118.                     <td width="100"> <font  class="strong">&nbsp;类型: </font> </td>
  119.                     <td width="456"> 
  120.                       <% 
  121.                           int subType = subtaskValueBean.getSubTypeId(); 
  122.                       %> 
  123.                       <select name="subTypeId">
  124.                       <option value="-1"  > 请选择</option>                        
  125.                         <option value= 1 <% if ( subType == 1 ) out.println("selected"); %> >审批</option>
  126.                         <option value= 2 <% if ( subType == 2 ) out.println("selected"); %> >执行</option>
  127.                         <option value= 3 <% if ( subType == 3 ) out.println("selected"); %> >传阅</option>
  128.                       </select>&nbsp;*
  129.                     </td>
  130.                   </tr>
  131.                    <tr bgcolor="#fafafa"> 
  132.                     <td width="100"> <font class="strong">&nbsp;截止时间:</font> 
  133.                     </td>
  134.                     <td width="456"> 
  135.                       <input type="text" name="subPlanEndTimeS" readonly size="24" class="file" value="<%=subtaskValueBean.getSubPlanEndTimeS() %>">
  136.                       &nbsp;<img src="/vnex/intranet/calendar/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(subPlanEndTimeS);return false">
  137.                       <select name="hourS">
  138.                         <vnex:hourTag hour='<%= (subtaskValueBean.getHourS()>9?"":"0")+subtaskValueBean.getHourS() %>'/>
  139.                       </select>时
  140.                       </td>
  141.                   </tr>
  142.                   <tr bgcolor="#e0e0e0"> 
  143.                     <td width="100" bgcolor="#e0e0e0"><font  class="strong">&nbsp;子任务描述: 
  144.                       </font></td>
  145.                     <td width="456" bgcolor="#e0e0e0"> 
  146.                       <textarea cols="59" rows="5" name="subDescription"><%= FieldUtil.filterQuotTag( subtaskValueBean.getSubDescription() ) %></textarea>
  147.                     </td>
  148.                   </tr>
  149.                   <tr bgcolor="#fafafa" align="center"> 
  150.                     <td colspan="3" height="30"> 
  151.                        <input type="hidden" name="subtaskId" value="<%= request.getParameter( "subtaskId")%>"> 
  152.                        <input type="hidden" name="isNew" value="false">         
  153.                        <input type="button" name="save" value="保存" class="file" onClick="saveSubtask( this.form, 'false' )">&nbsp;&nbsp;
  154.                        <input type="button" name="cancle" value="放弃" class="file" onClick="history.back()">
  155.                     </td>
  156.                   </tr>
  157.                 </table>
  158.               </td>
  159.             </tr>
  160.           </table>
  161. <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  162. </TD>
  163.     </TR>
  164.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  165.     </TABLE>
  166.   <BR>
  167.    <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  168. </form></DIV>
  169. </BODY></HTML>