personal_Report_Sending_Create.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:12k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_workflow.tld" prefix="vnex_workflow" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="java.util.Iterator" %>
- <%@ page import="com.vnex.intranet.util.TimeStamp" %>
- <%@ page import="com.vnex.intranet.workflow.document.value.*" %>
- <%@ page import="com.vnex.intranet.workflow.pub.value.WorkflowFileValueBean" %>
- <%@ page import="com.vnex.intranet.workflow.util.*" %>
- <jsp:useBean id="dsvb" scope="session" class="com.vnex.intranet.workflow.document.value.DocumentSendValueBean"/>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <%
- if( request.getParameter("type") == null )
- {
- dsvb = new DocumentSendValueBean();
- session.setAttribute( "document", dsvb );
- }
- if( request.getParameter("type") !=null && Integer.parseInt( request.getParameter("type") ) == 1 ) //上传文件
- {
- %>
- <vnex_workflow:reportfileupload />
- <%}
- if( request.getParameter("type") !=null && Integer.parseInt( request.getParameter("type") ) == 2 ) //Delete文件
- {
- %>
- <vnex_workflow:reportfileremove />
- <%}
- dsvb = ( DocumentSendValueBean )session.getAttribute( "document" );
- %>
- <jsp:include page="/vnex/head.jsp"/>
- <script language="JavaScript" src="/vnex/util/validate.js"></script>
- <script language=JavaScript>
- function createDoc(form)
- {
- if(checkIt(form))
- {
- checkAll(document.forms[0].attachments);
- form.action="/mainctrl/personal/report/sentcreateok";
- form.submit();
- }
- }
- function uploadAttach(form)
- {
- form.action="/mainctrl/personal/report/sentcreate?type=1";
- form.encoding="multipart/form-data";
- form.submit();
- }
- function deleteAttach(form)
- {
- form.action="/mainctrl/personal/report/sentcreate?type=2";
- form.submit();
- }
- function checkIt(form)
- {
- if(isEmpty(stripWhitespace(form.title.value)))
- {
- alert("请输入请示汇报标题");
- return false;
- }
- if( form.title.value.length >64 )
- {
- alert("请示汇报标题长度不能超过64位.");
- return false;
- }
- if( form.description.value.length >400 )
- {
- alert("请示汇报内容的长度不能超过400位.");
- return false;
- }
- if( form.keyword.value.length >400 )
- {
- alert("请示汇报关键字的长度不能超过400位.");
- return false;
- }
- return true;
- }
- function checkAll( selObj )
- {
- for ( var i = 0; i < selObj.options.length; i++ )
- selObj.options[i].selected = true;
- }
- </script>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML><HEAD><TITLE>Net Office</TITLE>
- <META http-equiv=Content-Type content="text/html; charset=gb_2312-80">
- <META content="MSHTML 5.50.4134.600" name=GENERATOR>
- <link rel="stylesheet" href="/vnex/hr_MacOS.css" type="text/css">
- </HEAD>
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=0 leftmargin="0" marginwidth="0" marginheight="0">
- <jsp:include page="/vnex/menu.jsp" />
- <DIV align=center>
- <form name="form1" method="post">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <TR>
- <TD><IMG height=4 src="/vnex/MacOS/lefttop.gif" width=6></TD>
- <TD background=/vnex/MacOS/top.gif colSpan=3><IMG height=4
- src="/vnex/MacOS/top.gif" width=1></TD>
- <TD><IMG height=4 src="/vnex/MacOS/righttop.gif"></TD>
- </TR>
- <TR>
- <TD vAlign=top background=/vnex/MacOS/lwing.gif rowSpan=3><IMG height=18
- src="/vnex/MacOS/left.gif" width=6></TD>
- <TD vAlign=top background=/vnex/MacOS/titlebg.gif width="16">
- <DIV><a href="/vnex/index.htm"><img src="/vnex/MacOS/logo.gif" width="16" height="16" border="0" alt="返回Net_Office首页"></a></DIV>
- </TD>
- <TD vAlign=top noWrap align=center width="100%"
- background=/vnex/MacOS/titlebg.gif><SPAN style="BACKGROUND-COLOR: #cecece"><FONT class=strong> Net- OFFICE </font></SPAN></TD>
- <TD><a href="javascript:self.close()"><IMG height=18 src="/vnex/MacOS/right_b2.gif" width=18 border="0" alt="关闭窗口"></a></TD>
- <TD vAlign=top background=/vnex/MacOS/rwing.gif rowSpan=3><IMG height=18 src="/vnex/MacOS/right.gif" width=7></TD>
- </TR>
- <TR>
- <TD background=/vnex/MacOS/hr.gif colSpan=3><IMG height=2
- src="/vnex/MacOS/hr.gif" width=1></TD>
- </TR>
- <TR>
- <TD colSpan=3 align="center">
- <br><span class=iframestyle
- style="OVERFLOW: visible; HEIGHT: 100%">
- <!--个人信息开始 -->
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr>
- <td bgcolor="#fafafa">
- <table width="600" border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td colspan="3" height="15" bgcolor="#666666"><font class="strongw">个人办公>请示汇报>创建请示汇报</font></td>
- </tr>
- <tr>
- <td colspan="3">
- <div align="center"><font class="strong" >新建请示汇报</font></div>
- </td>
- </tr>
- <tr>
- <td width="184"> </td>
- <td width="109">
- <div align="left"><font class="strong" >标题:</font> </div>
- </td>
- <td width="295">
- <input type="text" name="title" size="8" class="file" value="<%=dsvb.getTitle() %>">
- * (必填)</td>
- </tr>
- <tr>
- <td width="184"> </td>
- <td width="109">
- <div align="left"><font class="strong">紧急程度: </font></div>
- </td>
- <td width="295">
- <select name="instancyType">
- <%
- Iterator itypes = InstancyType.getAvailableInstancyTypes().iterator();
- while ( itypes.hasNext() )
- {
- InstancyType itype = ( InstancyType )itypes.next();
- %>
- <option value="<%= itype.getId() %>" <% if( dsvb.getInstancyType()!= null && itype.getId()==dsvb.getInstancyType().getId() ) out.print("selected"); %>>
- <%= itype.getName() %></option>
- <%
- }
- %>
- </select>
- </td>
- </tr>
- <tr>
- <td width="184">
- <div align="right"> </div>
- </td>
- <td width="109">
- <div align="left"><font class="strong" >主题词:</font></div>
- </td>
- <td width="295">
- <input type="text" name="keyword" size="8" class="file" value="<%=dsvb.getKeyword() %>">
- </td>
- </tr>
- <tr>
- <td width="184"> </td>
- <td width="109">
- <div align="left"><font class="strong">使用工作流:</font></div>
- </td>
- <td width="295"><font class="strong"><font class="strong">
- <select name="templateId">
- <vnex_workflow:routeList routeType="<%=WorkFlowType.TEMPLATE_TYPE_COMMON%>" >
- <vnex:items select='<%=String.valueOf( dsvb.getTemplateId() )%>' >
- <option value="<vnex_workflow:routeAttribute attribute='route_id' />" <vnex_workflow:routeAttribute attribute='isSelected' /> >
- <vnex_workflow:routeAttribute attribute="route_name" />
- </option>
- </vnex:items>
- </vnex_workflow:routeList>
- </select>
- </font></td>
- </tr>
- <tr>
- <td colspan="3">
- <div align="center"><font class="strong">请示事宜:</font><font class="strong">
- <br>
- <textarea name="description" cols="40" rows="5"><%=dsvb.getDescription() %></textarea>
- </font></div>
- </td>
- </tr>
- <tr>
- <td colspan="3">
- <div align="center"><font class="strong">文 档:</font><font class="strong">
- <br>
- <select name="attachments" size="6" multiple style="width:200">
- <vnex_workflow:fileList collection="<%=dsvb.getFiles()%>">
- <vnex:items>
- <option value = "<vnex_workflow:fileAttribute attribute="workflowfile_Title"/>">
- <vnex_workflow:fileAttribute attribute="workflowfile_name"/></option>
- </vnex:items>
- </vnex_workflow:fileList>
- </select>
- <input type="button" name="Button22" value="删除" onClick="deleteAttach(this.form)" class="button">
- </div></td>
- </tr>
- <tr>
- <td colspan="3">
- <div align="center">
- <input type="file" name="file" class="button">
- <input type="button" name="Button2" value="上传" class="button" onClick="uploadAttach(this.form)">
- </div></td>
- </tr>
- <tr>
- <td colspan="3">
- <div align="center">
- <input type="button" name="Submit" value="发布" class="button" onClick="createDoc(this.form)">
- <input type="reset" name="Submit2" value="取消" class="button" onclick="location='/mainctrl/personal/report/sentlist?type=2'">
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </span> <p><img src="/vnex/MacOS/c_logo.gif" width="300" height="50">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td height="3"><img src="/vnex/a.gif" width="1" height="1"></td>
- </tr>
- <tr>
- <td background="/vnex/MacOS/hr.gif"><img src="/vnex/MacOS/hr.gif" width="1" height="2"></td>
- </tr>
- <tr>
- <td height="3"><img src="/vnex/a.gif" width="1" height="1"></td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td>
- <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>
- </td>
- </tr>
- </table>
- </TD>
- </TR>
- <TR>
- <TD><IMG height=7 src="/vnex/MacOS/leftbottom.gif" width=6></TD>
- <TD background=/vnex/MacOS/bottom.gif colSpan=3><IMG height=7
- src="/vnex/MacOS/bottom.gif" width=1></TD>
- <TD><IMG height=7 src="/vnex/MacOS/rightbottom.gif" width=7></TD>
- </TR>
- </TBODY>
- </TABLE>
- <BR>
- <TABLE cellSpacing=1 cellPadding=2 width="300" border=0>
- <TBODY>
- <TR>
- <TD align=center><FONT class=footer><IMG height=1
- src="/vnex/MacOS/hr_black.gif" width="100%"><BR>
- <A target=_top
- href="http://www.visionnex.com">VisionNext Net - OFFICE System Version 1.0</A><br>
- 2001.02.14</FONT></TD>
- </TR></TBODY></TABLE>
- </form></DIV>