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

电子政务应用

开发平台:

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