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

电子政务应用

开发平台:

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="com.vnex.intranet.util.TimeStamp" %>
  6. <%@ page import="com.vnex.intranet.workflow.document.value.*" %>
  7. <%@ page import="com.vnex.intranet.workflow.pub.value.WorkflowFileValueBean" %>
  8. <%@ page import="com.vnex.intranet.workflow.util.*" %>
  9. <jsp:useBean id="dsvb" scope="session" class="com.vnex.intranet.workflow.document.value.DocumentSendValueBean"/>
  10. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  11. <%  
  12.     if( request.getParameter("type") == null )
  13.     {
  14.         dsvb = new DocumentSendValueBean();
  15.         session.setAttribute( "document", dsvb );
  16.     }       
  17.     if( request.getParameter("type") !=null && Integer.parseInt( request.getParameter("type") ) == 1 ) //上传文件
  18.     {           
  19. %>
  20. <vnex_workflow:reportfileupload />     
  21. <%}
  22.    if( request.getParameter("type") !=null && Integer.parseInt( request.getParameter("type") ) == 2 ) //Delete文件
  23.     {   
  24. %>
  25. <vnex_workflow:reportfileremove />     
  26. <%}
  27.     dsvb = ( DocumentSendValueBean )session.getAttribute( "document" );
  28. %>
  29. <jsp:include page="/vnex/head.jsp"/>
  30. <script language="JavaScript" src="/vnex/util/validate.js"></script>
  31. <script language=JavaScript>
  32. function createDoc(form)
  33. {
  34.    if(checkIt(form))
  35.    {
  36.       checkAll(document.forms[0].attachments);
  37.       form.action="/mainctrl/personal/report/sentcreateok";
  38.       form.submit();
  39.    }   
  40. }
  41. function uploadAttach(form)
  42. {      
  43.     form.action="/mainctrl/personal/report/sentcreate?type=1";
  44.     form.encoding="multipart/form-data";
  45.     form.submit();     
  46. }
  47. function deleteAttach(form)
  48. {      
  49.     form.action="/mainctrl/personal/report/sentcreate?type=2";
  50.     
  51.     form.submit();     
  52. }
  53. function checkIt(form)
  54. {
  55.    if(isEmpty(stripWhitespace(form.title.value)))
  56.    {
  57.       alert("请输入请示汇报标题");
  58.       return false;
  59.    }
  60.    
  61.    if( form.title.value.length >64 )
  62.    {
  63.       alert("请示汇报标题长度不能超过64位.");
  64.       return false;
  65.    }  
  66.    
  67.    if( form.description.value.length >400 )
  68.    {
  69.       alert("请示汇报内容的长度不能超过400位.");
  70.       return false;
  71.    } 
  72.    if( form.keyword.value.length >400 )
  73.    {
  74.       alert("请示汇报关键字的长度不能超过400位.");
  75.       return false;
  76.    } 
  77.    return true;
  78. }  
  79. function checkAll( selObj )
  80. {
  81.     for ( var i = 0; i < selObj.options.length; i++ )
  82.        selObj.options[i].selected = true;
  83. }
  84. </script>
  85. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  86. <HTML><HEAD><TITLE>Net Office</TITLE>
  87. <META http-equiv=Content-Type content="text/html; charset=gb_2312-80">
  88. <META content="MSHTML 5.50.4134.600" name=GENERATOR>
  89. <link rel="stylesheet" href="/vnex/hr_MacOS.css" type="text/css">
  90. </HEAD>
  91. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=0 leftmargin="0" marginwidth="0" marginheight="0">
  92. <jsp:include page="/vnex/menu.jsp" />
  93. <DIV align=center>
  94.   <form name="form1" method="post">
  95.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  96.     <TBODY> 
  97.     <TR> 
  98.       <TD><IMG height=4 src="/vnex/MacOS/lefttop.gif" width=6></TD>
  99.       <TD background=/vnex/MacOS/top.gif colSpan=3><IMG height=4 
  100.       src="/vnex/MacOS/top.gif" width=1></TD>
  101.       <TD><IMG height=4 src="/vnex/MacOS/righttop.gif"></TD>
  102.     </TR>
  103.     <TR> 
  104.       <TD vAlign=top background=/vnex/MacOS/lwing.gif rowSpan=3><IMG height=18 
  105.       src="/vnex/MacOS/left.gif" width=6></TD>
  106.       <TD vAlign=top background=/vnex/MacOS/titlebg.gif width="16"> 
  107.         <DIV><a href="/vnex/index.htm"><img src="/vnex/MacOS/logo.gif" width="16" height="16" border="0" alt="返回Net_Office首页"></a></DIV>
  108.       </TD>
  109.         <TD vAlign=top noWrap align=center width="100%" 
  110.     background=/vnex/MacOS/titlebg.gif><SPAN style="BACKGROUND-COLOR: #cecece"><FONT class=strong> Net- OFFICE </font></SPAN></TD>
  111.         <TD><a href="javascript:self.close()"><IMG height=18 src="/vnex/MacOS/right_b2.gif" width=18 border="0" alt="关闭窗口"></a></TD>
  112.       <TD vAlign=top background=/vnex/MacOS/rwing.gif rowSpan=3><IMG height=18 src="/vnex/MacOS/right.gif" width=7></TD>
  113.     </TR>
  114.     <TR> 
  115.       <TD background=/vnex/MacOS/hr.gif colSpan=3><IMG height=2 
  116.       src="/vnex/MacOS/hr.gif" width=1></TD>
  117.     </TR>
  118.     <TR> 
  119.         <TD colSpan=3 align="center">
  120.           <br><span class=iframestyle 
  121.             style="OVERFLOW: visible; HEIGHT: 100%"> 
  122.           <!--个人信息开始 -->
  123.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  124.             <tr>
  125.               <td bgcolor="#fafafa"> 
  126.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  127.                   <tr> 
  128.                     <td colspan="3" height="15" bgcolor="#666666"><font class="strongw">个人办公&gt;请示汇报&gt;创建请示汇报</font></td>
  129.                   </tr>
  130.                   <tr> 
  131.                     <td colspan="3">
  132.                       <div align="center"><font class="strong" >新建请示汇报</font></div>
  133.                     </td>
  134.                   </tr>
  135.                    <tr> 
  136.                     <td width="184">&nbsp;</td>
  137.                     <td width="109"> 
  138.                       <div align="left"><font class="strong" >标题:</font> </div>
  139.                     </td>
  140.                     <td width="295"> 
  141.                       <input type="text" name="title" size="8" class="file"  value="<%=dsvb.getTitle() %>">
  142.                       * (必填)</td>
  143.                   </tr>                          
  144.                   <tr> 
  145.                     <td width="184">&nbsp;</td>
  146.                     <td width="109"> 
  147.                       <div align="left"><font  class="strong">紧急程度: </font></div>
  148.                     </td>
  149.                     <td width="295"> 
  150.                       <select name="instancyType">
  151.                         <%
  152.                               Iterator itypes = InstancyType.getAvailableInstancyTypes().iterator();
  153.                               while ( itypes.hasNext() )
  154.                               {
  155.                                   InstancyType itype = ( InstancyType )itypes.next();
  156.                          %>
  157.                          <option value="<%= itype.getId() %>" <% if( dsvb.getInstancyType()!= null && itype.getId()==dsvb.getInstancyType().getId() ) out.print("selected"); %>>
  158.                          <%= itype.getName() %></option>
  159.                          <%
  160.                               }                            
  161.                          %>
  162.                       </select>
  163.                     </td>
  164.                   </tr>                 
  165.                   <tr> 
  166.                     <td width="184"> 
  167.                       <div align="right"> </div>
  168.                     </td>
  169.                     <td width="109"> 
  170.                       <div align="left"><font class="strong" >主题词:</font></div>
  171.                     </td>
  172.                     <td width="295"> 
  173.                       <input type="text" name="keyword" size="8" class="file" value="<%=dsvb.getKeyword() %>">
  174.                        </td>
  175.                   </tr>                
  176.                   <tr> 
  177.                     <td width="184">&nbsp;</td>
  178.                     <td width="109"> 
  179.                       <div align="left"><font  class="strong">使用工作流:</font></div>
  180.                     </td>
  181.                     <td width="295"><font  class="strong"><font  class="strong"> 
  182.                        <select name="templateId">                     
  183.                            <vnex_workflow:routeList routeType="<%=WorkFlowType.TEMPLATE_TYPE_COMMON%>"  >       
  184.                                <vnex:items select='<%=String.valueOf( dsvb.getTemplateId() )%>' >
  185.                                 <option value="<vnex_workflow:routeAttribute attribute='route_id' />" <vnex_workflow:routeAttribute attribute='isSelected' />  >
  186.                                          <vnex_workflow:routeAttribute attribute="route_name" />
  187.                                 </option>
  188.                                </vnex:items>
  189.                               </vnex_workflow:routeList>
  190.                         </select>
  191.                       </font></td>
  192.                   </tr>                 
  193.                   <tr> 
  194.                     <td colspan="3"> 
  195.                       <div align="center"><font  class="strong">请示事宜:</font><font  class="strong"> 
  196.                         <br>
  197.                         <textarea name="description" cols="40" rows="5"><%=dsvb.getDescription() %></textarea>
  198.                         </font></div>
  199.                     </td>
  200.                   </tr>
  201.                   <tr>                     
  202.                     <td colspan="3"> 
  203.                       <div align="center"><font  class="strong">文  档:</font><font  class="strong">
  204.                      <br>                      
  205.                         <select name="attachments" size="6" multiple style="width:200">
  206.                           <vnex_workflow:fileList collection="<%=dsvb.getFiles()%>">          
  207.                           <vnex:items>                             
  208.                             <option value = "<vnex_workflow:fileAttribute attribute="workflowfile_Title"/>">
  209.                             <vnex_workflow:fileAttribute attribute="workflowfile_name"/></option>                                         
  210.                           </vnex:items> 
  211.                           </vnex_workflow:fileList>  
  212.                         </select>
  213.                         <input type="button" name="Button22" value="删除" onClick="deleteAttach(this.form)" class="button">
  214.                       </div></td>
  215.                     </tr>
  216.                     <tr>
  217.                       <td colspan="3">      
  218.                       <div align="center">                 
  219.                         <input type="file" name="file" class="button">
  220.                         <input type="button" name="Button2" value="上传" class="button" onClick="uploadAttach(this.form)">                      
  221.                     </div></td>
  222.                   </tr>
  223.                   <tr> 
  224.                     <td colspan="3"> 
  225.                       <div align="center"> 
  226.                         <input type="button" name="Submit" value="发布" class="button" onClick="createDoc(this.form)">
  227.                         <input type="reset" name="Submit2" value="取消" class="button" onclick="location='/mainctrl/personal/report/sentlist?type=2'">
  228.                       </div>
  229.                     </td>
  230.                   </tr>
  231.                 </table>
  232.               </td>
  233.             </tr>
  234.           </table>
  235.           </span> <p><img src="/vnex/MacOS/c_logo.gif" width="300" height="50"> 
  236.           <table width="100%" border="0" cellspacing="0" cellpadding="0">
  237.              <tr> 
  238.               <td height="3"><img src="/vnex/a.gif" width="1" height="1"></td>
  239.             </tr>
  240.             <tr> 
  241.               <td background="/vnex/MacOS/hr.gif"><img src="/vnex/MacOS/hr.gif" width="1" height="2"></td>
  242.             </tr>
  243.              <tr> 
  244.               <td height="3"><img src="/vnex/a.gif" width="1" height="1"></td>
  245.             </tr>
  246.           </table>
  247.           <table width="100%" border="0" cellspacing="0" cellpadding="0">
  248.             <tr> 
  249.               <td> 
  250.                 <div align="right"><a href="help.htm" style="cursor:help" title="使用帮助"><img src="/vnex/MacOS/help.gif" width="16" height="16" border="0">HELP</a></div>
  251.               </td>
  252.             </tr>
  253.           </table>
  254. </TD>
  255.     </TR>
  256.     <TR> 
  257.       <TD><IMG height=7 src="/vnex/MacOS/leftbottom.gif" width=6></TD>
  258.       <TD background=/vnex/MacOS/bottom.gif colSpan=3><IMG height=7 
  259.       src="/vnex/MacOS/bottom.gif" width=1></TD>
  260.       <TD><IMG height=7 src="/vnex/MacOS/rightbottom.gif" width=7></TD>
  261.     </TR>
  262.     </TBODY> 
  263.   </TABLE>
  264.   <BR>
  265.   <TABLE cellSpacing=1 cellPadding=2 width="300" border=0>
  266.     <TBODY> 
  267.     <TR>
  268.         <TD align=center><FONT class=footer><IMG height=1 
  269.       src="/vnex/MacOS/hr_black.gif" width="100%"><BR>
  270.           <A target=_top 
  271.       href="http://www.visionnex.com">VisionNext Net - OFFICE System Version 1.0</A><br>
  272.           2001.02.14</FONT></TD>
  273.     </TR></TBODY></TABLE>
  274. </form></DIV>