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

电子政务应用

开发平台:

Java

  1. <%@ include file="/vnex/head.jsp"%>
  2. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  3. <%@ page import="java.util.*" %>
  4. <%@ page import="com.vnex.intranet.workflow.pub.value.*" %>
  5. <%@ page import="com.vnex.intranet.workflow.pub.process.*" %>
  6. <%@ page import="com.vnex.intranet.workflow.util.*" %>
  7. <%@ page import="com.vnex.intranet.system.loader.*"%>
  8. <%@ page import="com.vnex.intranet.statictable.*"%> 
  9. <%@ page import="com.vnex.intranet.util.*" %> 
  10. <%@ page import="com.vnex.intranet.upload.*"%> 
  11. <jsp:useBean id="mySmartUpload" scope="page" class="com.vnex.intranet.upload.SmartUpload" /> 
  12. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  13. <HTML>
  14. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  15. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  16. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  17. <script language=JavaScript>
  18. function checkAll( selObj )
  19. {
  20.     for ( var i = 0; i < selObj.options.length; i++ )
  21.        selObj.options[i].selected = true;
  22. }
  23. </script>
  24. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  25. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  26. <jsp:useBean id="taskPendingInfo" scope="session" class="com.vnex.intranet.workflow.taskpending.value.TaskPendingValueBean" />
  27. <jsp:useBean id="projectInfo" scope="session" class="com.vnex.intranet.workflow.projectmanagement.value.PmValueBean" />
  28. <jsp:useBean id="routeInfo" scope="session" class="com.vnex.intranet.workflow.pub.value.RouteValueBean" />
  29. <jsp:useBean id="execInfo" scope="request" class="com.vnex.intranet.workflow.pub.value.ExecutorValueBean" />
  30. <jsp:useBean id="click" scope="session" class="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" />
  31. <jsp:useBean id="proxy" scope="session" class="com.vnex.intranet.workflow.taskpending.proxy.TaskPendingProxyBean" />
  32. <%
  33.   
  34.     int workflowId = Integer.parseInt(request.getParameter("workflowId"));
  35.     int subtaskId = Integer.parseInt(request.getParameter("subtaskId"));
  36.     int workflowtypeId = Integer.parseInt(request.getParameter("workflowtypeId"));
  37.     int subtasktypeId = Integer.parseInt(request.getParameter("subtasktypeId"));
  38.     
  39.     int execId = Integer.parseInt(request.getParameter("execId"));
  40.     int querytype = Integer.parseInt(request.getParameter("querytype"));
  41.         
  42.     int statusId = Integer.parseInt(request.getParameter("statusId"));
  43.     if( request.getParameter("type") == null ) 
  44.     {     
  45.         routeInfo = (RouteValueBean)session.getAttribute("routeInfo");
  46.         
  47.         ArrayList subs = routeInfo.getSubtaskList();    
  48.                
  49.         for(int i=0; i<subs.size(); i++)
  50.         {
  51.             SubTaskValueBean sub = (SubTaskValueBean)subs.get(i);
  52.             if (sub.getSubtaskId() == subtaskId)
  53.             {            
  54.                 click = sub;                        
  55.                 session.setAttribute("click",click);
  56.             }
  57.         }
  58.     }
  59.     else
  60.     {
  61.         click = (SubTaskValueBean)session.getAttribute("click");
  62.     }       
  63.     execInfo = proxy.getExecutor(execId);
  64.     int execStatusId = execInfo.getStatusId();
  65. %>
  66. <%@ include file="task_pending_upload.jsp" %>
  67. <script language=JavaScript>
  68. function acceptor(form)
  69. {
  70.     
  71.   if (form.subNote.value.length < 50 )
  72.   { 
  73.       checkAll(document.forms[0].attachments);
  74.         form.action="/mainctrl/taskpending/taskPendingResult?workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&subtasktypeId=<%=subtasktypeId%>&execId=<%=execId%>&statusId=<%=statusId%>&querytype=<%=querytype%>";
  75.         form.submit();
  76.     }
  77.     else
  78.     {
  79.         alert("总结描述的最大长度不能超过50个字符");
  80.         form.subNote.focus();
  81.     }
  82. }
  83. function save(form)
  84. {    
  85.   if (form.subNote.value.length < 50 )
  86.   { 
  87.       checkAll(document.forms[0].attachments);
  88.         form.action="/mainctrl/taskpending/taskPendingResult?workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&subtasktypeId=<%=subtasktypeId%>&execId=<%=execId%>&statusId=<%=execStatusId%>&querytype=<%=querytype%>";
  89.         form.submit();
  90.     }
  91.     else
  92.     {
  93.         alert("总结描述的最大长度不能超过50个字符");
  94.         form.subNote.focus();        
  95.     }
  96. }
  97. function goback(form)
  98. {
  99.     form.action="/mainctrl/taskpending/taskPendingDispatch?workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&subtasktypeId=<%=subtasktypeId%>&execId=<%=execId%>&statusId=<%=statusId%>&querytype=<%=querytype%>";
  100.     form.submit();
  101. }
  102. function uploadDoc(form) 
  103. {      
  104.     form.action="/mainctrl/taskpending/taskPendingProjectSummary?type=1&workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&subtasktypeId=<%=subtasktypeId%>&execId=<%=execId%>&statusId=<%=statusId%>&querytype=<%=querytype%>"; 
  105.     form.encoding="multipart/form-data"; 
  106.     form.submit();     
  107. function deleteDoc(form) 
  108. {      
  109.     form.action="/mainctrl/taskpending/taskPendingProjectSummary?type=2&workflowId=<%=workflowId%>&workflowtypeId=<%=workflowtypeId%>&subtaskId=<%=subtaskId%>&subtasktypeId=<%=subtasktypeId%>&execId=<%=execId%>&statusId=<%=statusId%>&querytype=<%=querytype%>";   
  110.     form.submit();     
  111. </script>
  112. <DIV align=center>
  113. <form name="form1" method="post" action="">
  114.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  115.     <TBODY> 
  116.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  117.     <TR> 
  118.         <TD colSpan=3 align="center" class="iframestyle" valign="top"> <br>
  119.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  120.             <tr valign="top" bgcolor="#fafafa" align="center"> 
  121.               <td  bgcolor="#fafafa" > 
  122.                 <table width="100%" border="0" cellspacing="1" cellpadding="1" class=title>
  123.                   <tr> 
  124.                     <td bgcolor="#666666" colspan=2><font class="strongw">&nbsp;<a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>&gt;&gt;<a href="/mainctrl/taskpending/taskPendingList"><font color="#FFFFFF">待办事宜</font></a>&gt;&gt;总结报告</font> 
  125.                     </td>
  126.                   </tr>
  127.                   <tr bgcolor="#fafafa"> 
  128.                     <td valign="top"> 
  129.                       <p><font class="strong">&nbsp;总结描述:</font> 
  130.                       </p>
  131.                       </td>
  132.                     <td bgcolor="#fafafa"> 
  133.                         <textarea name="subNote" cols="46" rows="5"><%=click.getSubNote()%></textarea>
  134.                       </td>
  135.                   </tr>
  136.                   <tr bgcolor="#e0e0e0"> 
  137.                     <td valign="top">
  138.                       <p><font class="strong">&nbsp;</font></p>
  139.                       <p><font class="strong">&nbsp;总结文档:</font> </p>
  140.                     </td>
  141.                     <td bgcolor="#e0e0e0"> 
  142.                       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  143.                         <tr>
  144.                           <td width="33%"> 
  145.                         <select name="attachments" size="10" multiple style="width:300">
  146. <%
  147.     Collection files = click.getSubFiles();
  148.     if(files!=null)
  149.     {
  150.     Iterator it = files.iterator();    
  151.     while(it.hasNext())
  152.     {
  153.         WorkflowFileValueBean f = (WorkflowFileValueBean)it.next();
  154.         
  155. %>
  156.                           <option value="<%=f.getTitle()%>"><%=f.getName()%></option>
  157. <%}}%>
  158.                         </select>
  159. </td>
  160.                         <td width="67%" valign="bottom"> &nbsp;
  161.                         <input type="button" name="Button22" value="删除" onClick="deleteDoc(this.form)" class="text">
  162.                       </td>
  163.                         </tr>
  164.                       </table>
  165.                       <input type="file" name="file" class="text">
  166.                         <input type="button" name="Button2" value="上传"  onClick="uploadDoc( this.form )" class="text">
  167.                   </td>
  168.                   </tr>
  169.                   <tr bgcolor="#fafafa" align="center"> 
  170.                     <td colspan="2" height="30"> 
  171.           <input type="button" name="Button23" value="确认" onClick="acceptor(this.form)" class="text">&nbsp;&nbsp;
  172.                       <input type="button" name="Button232" value="保存" onClick="save(this.form)" class="text">&nbsp;&nbsp;
  173.                       <input type="button" name="Submit2" value="返回" onClick="goback(this.form)" class="text">
  174.          </td>
  175.                   </tr>
  176.                 </table>
  177.                </td>
  178.             </tr>
  179.           </table>
  180. <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  181. </TD>
  182.     </TR>
  183.        <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  184.     </TABLE>
  185.   <BR>
  186.      <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  187. </form></DIV>
  188. </BODY></HTML>