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

电子政务应用

开发平台:

Java

  1. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  2. <%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
  3. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  4. <%@ page import="java.util.Iterator" %>
  5. <%@ page import="java.util.ArrayList" %>
  6. <%@ page import="com.vnex.intranet.util.TimeStamp" %>
  7. <%@ page import="com.vnex.intranet.workflow.util.*" %>
  8. <%@ page import="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" %>
  9. <%@ page import="com.vnex.intranet.workflow.document.value.*" %>
  10. <%@ page import="com.vnex.intranet.workflow.pub.value.WorkflowFileValueBean" %>
  11. <jsp:useBean id="dsvb" scope="session" class="com.vnex.intranet.workflow.document.value.DocumentSendValueBean"/>
  12. <jsp:useBean id="documentProxy" scope="application" class="com.vnex.intranet.workflow.document.proxy.DocumentProxyBean" />
  13. <jsp:useBean id="routeInfo" scope="session" class="com.vnex.intranet.workflow.pub.value.RouteValueBean" />
  14. <jsp:include page="/vnex/head.jsp"/>
  15. <%    
  16.     if( request.getParameter("type") == null )
  17.     {
  18.         String sId = request.getParameter("id");
  19.      
  20.         if( sId != null )    
  21.            dsvb = documentProxy.getSentDocDetail( Integer.parseInt( sId ) );
  22.        
  23.         session.setAttribute( "document", dsvb );   
  24.     }
  25.     if( request.getParameter("type") !=null && Integer.parseInt( request.getParameter("type") ) == 1 ) //上传文件
  26.     {           
  27. %>
  28. <vnex_workflow:reportfileupload />     
  29. <%  }
  30.     if( request.getParameter("type") !=null && Integer.parseInt( request.getParameter("type") ) == 2 ) //Delete文件
  31.     {   
  32. %>
  33. <vnex_workflow:reportfileremove />     
  34. <%  }
  35.     dsvb = ( DocumentSendValueBean )session.getAttribute( "document" );
  36.     ArrayList subtasks = new ArrayList();    
  37.     routeInfo = dsvb.getRoute();
  38.     subtasks = routeInfo.getSubtaskList();    
  39. %>
  40. <script language="JavaScript" src="/vnex/util/validate.js"></script>
  41. <script language=JavaScript>
  42. function updateDoc(form)
  43. {
  44.    if(checkIt(form))
  45.    {
  46.        checkAll(document.forms[0].attachments);
  47.        form.action="/mainctrl/personal/report/sentupdateok";
  48.        form.submit();
  49.    }   
  50. }
  51. function uploadAttach(form)
  52. {      
  53.     form.action="/mainctrl/personal/report/sentupdate?type=1";
  54.     form.encoding="multipart/form-data";
  55.     form.submit();     
  56. }
  57. function deleteAttach(form)
  58. {      
  59.     form.action="/mainctrl/personal/report/sentupdate?type=2";
  60.     
  61.     form.submit();     
  62. }
  63. function checkIt(form)
  64. {
  65.    if(isEmpty(stripWhitespace(form.title.value)))
  66.    {
  67.       alert("请输入请示汇报标题");
  68.       return false;
  69.    }
  70.    
  71.    if( form.title.value.length >64 )
  72.    {
  73.       alert("请示汇报标题长度不能超过64位.");
  74.       return false;
  75.    }  
  76.    
  77.    if( form.description.value.length >400 )
  78.    {
  79.       alert("请示汇报内容的长度不能超过400位.");
  80.       return false;
  81.    } 
  82.    if( form.keyword.value.length >400 )
  83.    {
  84.       alert("请示汇报关键字的长度不能超过400位.");
  85.       return false;
  86.    } 
  87.    return true;
  88. }
  89. function delAllSelOpts( mSelObj )
  90. {    
  91.     for( var i = 0; i < mSelObj.options.length; i++ )
  92.     {
  93.        var oriLen = mSelObj.options.length;
  94.        if ( mSelObj.options[i].selected ){
  95.          mSelObj.options[i] = null;
  96.          if(i < oriLen-1) i--;
  97.        }
  98.     }
  99. }
  100. function addKey()
  101. {
  102.     var opt = new Option();
  103.     var opt2 = new Option();
  104.     
  105.     if(!document.forms[0].file.value=="")
  106.     {
  107.       opt.value = document.forms[0].file.value;
  108.       opt.text = document.forms[0].file.value;
  109.       var flag1 = 1;
  110.       for(var i=0;i<document.forms[0].attachments.length;i++)
  111.       {
  112.         if(document.forms[0].attachments.options[i].text==opt.text)
  113.         {
  114.           flag1 = 0;
  115.           break;
  116.         }
  117.       }
  118.       if(flag1==1)
  119.       {
  120.         document.forms[0].attachments.options[document.forms[0].attachments.length] = opt;
  121.       }
  122.    }
  123. }
  124. function checkAll( selObj )
  125. {
  126.     for ( var i = 0; i < selObj.options.length; i++ )
  127.        selObj.options[i].selected = true;
  128. }
  129. </script>
  130. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  131. <HTML><HEAD><TITLE>Net Office</TITLE>
  132. <META http-equiv=Content-Type content="text/html; charset=gb_2312-80">
  133. <META content="MSHTML 5.50.4134.600" name=GENERATOR>
  134. <link rel="stylesheet" href="/vnex/hr_MacOS.css" type="text/css">
  135. </HEAD>
  136. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=0 leftmargin="0" marginwidth="0" marginheight="0">
  137. <jsp:include page="/vnex/menu.jsp" />
  138. <DIV align=center>
  139. <form name="form1" method="post" action="">
  140.     <table class=outter cellspacing=0 cellpadding=0 width=600 border=0>
  141.       <tbody> 
  142.       <tr> 
  143.         <td><img height=4 src="/vnex/MacOS/lefttop.gif" width=6></td>
  144.         <td background=/vnex/MacOS/top.gif colspan=3><img height=4 src="/vnex/MacOS/top.gif" width=1></td>
  145.         <td><img height=4 src="/vnex/MacOS/righttop.gif"></td>
  146.       </tr>
  147.       <tr> 
  148.         <td valign=top background=/vnex/MacOS/lwing.gif rowspan=3><img height=18 src="/vnex/MacOS/left.gif" width=6></td>
  149.         <td valign=top background=/vnex/MacOS/titlebg.gif width="16"> 
  150.           <div><a href="/vnex/index.htm"><img src="/vnex/MacOS/logo.gif" width="16" height="16" alt="返回Net_Office首页" border="0"></a></div>
  151.         </td>
  152.         <td valign=top noWrap align=center width="100%" 
  153.     background=/vnex/MacOS/titlebg.gif><span style="BACKGROUND-COLOR: #cecece"><font class=strong> Net - Office </font></span></td>
  154.         <td><a href="javascript:self.close()"><img height=18 src="/vnex/MacOS/right_b2.gif" width=18 border="0" alt="关闭窗口"></a></td>
  155.         <td valign=top background=/vnex/MacOS/rwing.gif rowspan=3><img height=18 src="/vnex/MacOS/right.gif" width=7></td>
  156.       </tr>
  157.       <tr> 
  158.         <td background=/vnex/MacOS/hr.gif colspan=3><img height=2 src="/vnex/MacOS/hr.gif" width=1></td>
  159.       </tr>
  160.       <tr> 
  161.         <td colspan=3 align="center" class="iframestyle" valign="top"> 
  162.           <!--菜单开始 -->
  163.           
  164.           <br>
  165.           
  166.           <table width="600" border="1" cellspacing="1" bordercolor="#666666" class="iframestyle">
  167.             <tr valign="top"> 
  168.               <td bgcolor="#fafafa"  > 
  169.                 <table width="609" border="0" cellspacing="0" cellpadding="0">
  170.                   <tr valign="top"> 
  171.                     <td > 
  172.                       <table cellpadding="2" width="100%" cellspacing="1" align="center">
  173.                         <tbody> 
  174.                         <tr> 
  175.                           <td colspan="4" height="4" bgcolor="#666666"><font class="strongw">个人办公&gt;请示汇报&gt;修改请示汇报</font></td>
  176.                         </tr>
  177.                         <tr> 
  178.                           <td align="middle" colspan="4" height="16"  >
  179.                             <div align="center"><font  class="strong">修改请示汇报</font></div>
  180.                           </td>
  181.                         </tr>
  182.                         
  183.                         <tr > 
  184.                           <td align="middle" width="41%" > 
  185.                             <div align="right"><font  class="strong">标题: </font></div>
  186.                           </td>
  187.                           <td align="middle" colspan="3" width="59%"> 
  188.                             <div align="left"> 
  189.                               <input type="hidden" name="workflowId" value= "<%= dsvb.getWorkflowId() %>">
  190.                               <input type="text" name="title" value="<%= dsvb.getTitle() %>" class="text">
  191.                             </div>
  192.                           </td>
  193.                         </tr>
  194.                         <tr> 
  195.                           <td > 
  196.                             <div align="right"><font  class="strong">紧急程度: </font></div>
  197.                           </td>
  198.                           <td> 
  199.                             <div align="left"> 
  200.                               <select name="instancyType">
  201.                         <%
  202.                               Iterator itypes = InstancyType.getAvailableInstancyTypes().iterator();
  203.                               while ( itypes.hasNext() )
  204.                               {
  205.                                   InstancyType itype = ( InstancyType )itypes.next();
  206.                          %>
  207.                          <option value="<%= itype.getId() %>" <% if( dsvb.getInstancyType()!= null && itype.getId()==dsvb.getInstancyType().getId() ) out.print("selected"); %>>
  208.                          <%= itype.getName() %></option>
  209.                          <%
  210.                               }                            
  211.                          %>
  212.                       </select>
  213.                             </div>
  214.                           </td>
  215.                         </tr>
  216.                         <tr> 
  217.                           <td align="middle" width="41%" > 
  218.                             <div align="right"><font  class="strong">主题词: </font></div>
  219.                           </td>
  220.                           <td align="middle"  width="59%"> 
  221.                             <div align="left"> 
  222.                               <input type="text" name="keyword" value="<%= dsvb.getKeyword() %>" class="text">
  223.                             </div>
  224.                           </td>
  225.                         </tr>
  226.                         <tr> 
  227.                           <td align="middle" width="41%" height="16"  > 
  228.                             <div align="right"><font  class="strong">请示工作流:</font></div>
  229.                           </td>
  230.                           <td align="middle" colspan="3" height="16" width="59%"> 
  231.                             <select name="templateId">                     
  232.                               <vnex_workflow:routeList routeType="<%=WorkFlowType.TEMPLATE_TYPE_COMMON%>"  >       
  233.                                <vnex:items select='<%=String.valueOf( dsvb.getTemplateId() )%>'  >
  234.                                 <option value="<vnex_workflow:routeAttribute attribute='route_id' />" <vnex_workflow:routeAttribute attribute='isSelected' />  >
  235.                                          <vnex_workflow:routeAttribute attribute="route_name" />
  236.                                 </option>
  237.                                </vnex:items>
  238.                               </vnex_workflow:routeList>
  239.                            </select>                      
  240.                           </td>
  241.                         </tr>
  242.                                      
  243.                         
  244.                         <tr> 
  245.                           <td align="middle" colspan="4"  valign="top"> 
  246.                             <table width="580" border="0" cellspacing="0" cellpadding="0">
  247.                               <tr> 
  248.                                 <td  valign="top"> 
  249.                                   <div align="center"><font  class="strong"><font  class="strong">请示事宜: 
  250.                                     <br>
  251.                                     </font></font> 
  252.                                     <textarea name="description" wrap="VIRTUAL" cols="40" rows="10"><%= dsvb.getDescription() %></textarea>
  253.                                   </div>
  254.                                 </td>
  255.                               </tr>
  256.                             </table>
  257.                           </td>
  258.                         </tr>
  259.                          <tr>                     
  260.                     <td colspan="3"> 
  261.                       <div align="center"><font  class="strong">文  档:</font><font  class="strong">
  262.                      <br>                      
  263.                         <select name="attachments" size="6" multiple style="width:200">
  264.                          <vnex_workflow:fileList collection="<%=dsvb.getFiles()%>">          
  265.                           <vnex:items>                             
  266.                             <option value = "<vnex_workflow:fileAttribute attribute="workflowfile_title"/>">
  267.                             <vnex_workflow:fileAttribute attribute="workflowfile_name"/></option>                                         
  268.                           </vnex:items> 
  269.                           </vnex_workflow:fileList>  
  270.                         </select>
  271.                         <input type="button" name="Button22" value="删除" onClick="deleteAttach(this.form)" class="button">
  272.                       </div></td>
  273.                     </tr>
  274.                     <tr>
  275.                       <td colspan="3">      
  276.                       <div align="center">                 
  277.                         <input type="file" name="file" class="button">
  278.                         <input type="button" name="Button2" value="上传" class="button" onClick="uploadAttach(this.form)">                      
  279.                     </div></td>
  280.                   </tr>                    
  281.                      
  282.                       </tbody> 
  283.                       </table>
  284.                       <font  class="strong"><font color="#000000">处理结果:</font></font><br>
  285.                       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  286.                         <tr bgcolor="#e0e0e0"> 
  287.                           <td > 
  288.                             <table align="center" width="100%">
  289.                               <tr bgcolor="#fafafa"> 
  290.                                 <td width="74"> 
  291.                                   <div align="center"></div>
  292.                                 </td>
  293.                                 <td width="109" bgcolor="#fafafa"> 
  294.                                   <div align="center">姓名</div>
  295.                                 </td>
  296.                                 <td width="127"> 
  297.                                   <div align="center">处理情况</div>
  298.                                 </td>
  299.                                 <td width="270"> 
  300.                                   <div align="center">处理结果</div>
  301.                                 </td>
  302.                                 
  303.                               </tr>
  304. <%
  305.     for( int i = 0; i < subtasks.size(); i++)
  306.     {
  307.         SubTaskValueBean sub = ( SubTaskValueBean )subtasks.get(i);          
  308. %>
  309.                         <tr> 
  310.                           <td width="74" bgcolor="#fafafa"><%= sub.getSubTitle() %></td>
  311.                           <td width="109" bgcolor="#fafafa"> 
  312.                             <div align="center">
  313.                             <%= sub.getSubExecutorName() %>
  314.                             </div>
  315.                           </td>
  316.                           <td width="127" bgcolor="#fafafa"> 
  317.                             <div align="center"><%= sub.getSubStatusName() %></div>
  318.                           </td>
  319.                           <td width="270" bgcolor="#fafafa"> 
  320.                             <div align="center"><%= sub.getSubNote() %></div>
  321.                           </td>                         
  322.                         </tr>
  323. <%       
  324.    }
  325. %>                             
  326.                             </table>
  327.                           </td>
  328.                         </tr>
  329.                       </table>
  330.                     </td>
  331.                   </tr>
  332.                 </table>
  333.               </td>
  334.             </tr>
  335.           </table>
  336.           <!--个人信息结束 -->
  337.           <p> 
  338.             <input type="button" name="Submit5" value="修改" class="button" onClick="updateDoc(this.form)">
  339.             <input type="button" name="Submit4" value="取消" onclick="location='/mainctrl/personal/report/sentlist?type=2'" class="button">
  340.           </p>
  341.           <!--分隔线开始 -->
  342.           <br>
  343.           <img src="/vnex/MacOS/c_logo.gif" width="300" ><br>
  344.           <table width="100%" border="0" cellspacing="0" cellpadding="0">
  345.             <tr> 
  346.               <td height="3"><img src="/vnex/a.gif" width="1" height="1"></td>
  347.             </tr>
  348.             <tr> 
  349.               <td background="/vnex/MacOS/hr.gif"><img src="/vnex/MacOS/hr.gif" width="1" height="2"></td>
  350.             </tr>
  351.             <tr> 
  352.               <td height="3"><img src="/vnex/a.gif" width="1" height="1"></td>
  353.             </tr>
  354.           </table>
  355.           <!--分隔线结束 -->
  356.           <table width="100%" border="0" cellspacing="0" cellpadding="0">
  357.             <tr> 
  358.               <td> 
  359.                 <div align="right"><a href="/vnex/help.htm" style="cursor:help" title="使用帮助"><img src="/vnex/MacOS/help.gif" width="16"  border="0">HELP</a></div>
  360.               </td>
  361.             </tr>
  362.           </table>
  363.         </td>
  364.       </tr>
  365.       <tr> 
  366.         <td height="2"><img height=7 src="/vnex/MacOS/leftbottom.gif" width=6></td>
  367.         <td background=/vnex/MacOS/bottom.gif colspan=3 height="2"><img height=7 
  368.       src="/vnex/MacOS/bottom.gif" width=1></td>
  369.         <td height="2"><img height=7 src="/vnex/MacOS/rightbottom.gif" width=7></td>
  370.       </tr>
  371.       </tbody> 
  372.     </table>
  373.     <br>
  374.     <table cellspacing=1 cellpadding=2 width="300" border=0>
  375.       <tbody> 
  376.       <tr> 
  377.         <td align=center><font class=footer><img height=1 src="/vnex/MacOS/hr_black.gif" width="100%"><br>
  378.           <a target=_top href="http://www.visionnex.com">VisionNext e - OFFICE System Version 1.0</a><br>
  379.           2001.02.14</font></td>
  380.       </tr>
  381.       </tbody>
  382.     </table>
  383.   </form></DIV>