personal_Report_Sent_Modify.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:17k
源码类别:
电子政务应用
开发平台:
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="java.util.ArrayList" %>
- <%@ page import="com.vnex.intranet.util.TimeStamp" %>
- <%@ page import="com.vnex.intranet.workflow.util.*" %>
- <%@ page import="com.vnex.intranet.workflow.pub.value.SubTaskValueBean" %>
- <%@ page import="com.vnex.intranet.workflow.document.value.*" %>
- <%@ page import="com.vnex.intranet.workflow.pub.value.WorkflowFileValueBean" %>
- <jsp:useBean id="dsvb" scope="session" class="com.vnex.intranet.workflow.document.value.DocumentSendValueBean"/>
- <jsp:useBean id="documentProxy" scope="application" class="com.vnex.intranet.workflow.document.proxy.DocumentProxyBean" />
- <jsp:useBean id="routeInfo" scope="session" class="com.vnex.intranet.workflow.pub.value.RouteValueBean" />
- <jsp:include page="/vnex/head.jsp"/>
- <%
- if( request.getParameter("type") == null )
- {
- String sId = request.getParameter("id");
- if( sId != null )
- dsvb = documentProxy.getSentDocDetail( Integer.parseInt( sId ) );
- 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" );
- ArrayList subtasks = new ArrayList();
- routeInfo = dsvb.getRoute();
- subtasks = routeInfo.getSubtaskList();
- %>
- <script language="JavaScript" src="/vnex/util/validate.js"></script>
- <script language=JavaScript>
- function updateDoc(form)
- {
- if(checkIt(form))
- {
- checkAll(document.forms[0].attachments);
- form.action="/mainctrl/personal/report/sentupdateok";
- form.submit();
- }
- }
- function uploadAttach(form)
- {
- form.action="/mainctrl/personal/report/sentupdate?type=1";
- form.encoding="multipart/form-data";
- form.submit();
- }
- function deleteAttach(form)
- {
- form.action="/mainctrl/personal/report/sentupdate?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 delAllSelOpts( mSelObj )
- {
- for( var i = 0; i < mSelObj.options.length; i++ )
- {
- var oriLen = mSelObj.options.length;
- if ( mSelObj.options[i].selected ){
- mSelObj.options[i] = null;
- if(i < oriLen-1) i--;
- }
- }
- }
- function addKey()
- {
- var opt = new Option();
- var opt2 = new Option();
- if(!document.forms[0].file.value=="")
- {
- opt.value = document.forms[0].file.value;
- opt.text = document.forms[0].file.value;
- var flag1 = 1;
- for(var i=0;i<document.forms[0].attachments.length;i++)
- {
- if(document.forms[0].attachments.options[i].text==opt.text)
- {
- flag1 = 0;
- break;
- }
- }
- if(flag1==1)
- {
- document.forms[0].attachments.options[document.forms[0].attachments.length] = opt;
- }
- }
- }
- 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" action="">
- <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" alt="返回Net_Office首页" border="0"></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" class="iframestyle" valign="top">
- <!--菜单开始 -->
- <br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666" class="iframestyle">
- <tr valign="top">
- <td bgcolor="#fafafa" >
- <table width="609" border="0" cellspacing="0" cellpadding="0">
- <tr valign="top">
- <td >
- <table cellpadding="2" width="100%" cellspacing="1" align="center">
- <tbody>
- <tr>
- <td colspan="4" height="4" bgcolor="#666666"><font class="strongw">个人办公>请示汇报>修改请示汇报</font></td>
- </tr>
- <tr>
- <td align="middle" colspan="4" height="16" >
- <div align="center"><font class="strong">修改请示汇报</font></div>
- </td>
- </tr>
- <tr >
- <td align="middle" width="41%" >
- <div align="right"><font class="strong">标题: </font></div>
- </td>
- <td align="middle" colspan="3" width="59%">
- <div align="left">
- <input type="hidden" name="workflowId" value= "<%= dsvb.getWorkflowId() %>">
- <input type="text" name="title" value="<%= dsvb.getTitle() %>" class="text">
- </div>
- </td>
- </tr>
- <tr>
- <td >
- <div align="right"><font class="strong">紧急程度: </font></div>
- </td>
- <td>
- <div align="left">
- <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>
- </div>
- </td>
- </tr>
- <tr>
- <td align="middle" width="41%" >
- <div align="right"><font class="strong">主题词: </font></div>
- </td>
- <td align="middle" width="59%">
- <div align="left">
- <input type="text" name="keyword" value="<%= dsvb.getKeyword() %>" class="text">
- </div>
- </td>
- </tr>
- <tr>
- <td align="middle" width="41%" height="16" >
- <div align="right"><font class="strong">请示工作流:</font></div>
- </td>
- <td align="middle" colspan="3" height="16" width="59%">
- <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>
- </td>
- </tr>
- <tr>
- <td align="middle" colspan="4" valign="top">
- <table width="580" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td valign="top">
- <div align="center"><font class="strong"><font class="strong">请示事宜:
- <br>
- </font></font>
- <textarea name="description" wrap="VIRTUAL" cols="40" rows="10"><%= dsvb.getDescription() %></textarea>
- </div>
- </td>
- </tr>
- </table>
- </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>
- </tbody>
- </table>
- <font class="strong"><font color="#000000">处理结果:</font></font><br>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr bgcolor="#e0e0e0">
- <td >
- <table align="center" width="100%">
- <tr bgcolor="#fafafa">
- <td width="74">
- <div align="center"></div>
- </td>
- <td width="109" bgcolor="#fafafa">
- <div align="center">姓名</div>
- </td>
- <td width="127">
- <div align="center">处理情况</div>
- </td>
- <td width="270">
- <div align="center">处理结果</div>
- </td>
- </tr>
- <%
- for( int i = 0; i < subtasks.size(); i++)
- {
- SubTaskValueBean sub = ( SubTaskValueBean )subtasks.get(i);
- %>
- <tr>
- <td width="74" bgcolor="#fafafa"><%= sub.getSubTitle() %></td>
- <td width="109" bgcolor="#fafafa">
- <div align="center">
- <%= sub.getSubExecutorName() %>
- </div>
- </td>
- <td width="127" bgcolor="#fafafa">
- <div align="center"><%= sub.getSubStatusName() %></div>
- </td>
- <td width="270" bgcolor="#fafafa">
- <div align="center"><%= sub.getSubNote() %></div>
- </td>
- </tr>
- <%
- }
- %>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <!--个人信息结束 -->
- <p>
- <input type="button" name="Submit5" value="修改" class="button" onClick="updateDoc(this.form)">
- <input type="button" name="Submit4" value="取消" onclick="location='/mainctrl/personal/report/sentlist?type=2'" class="button">
- </p>
- <!--分隔线开始 -->
- <br>
- <img src="/vnex/MacOS/c_logo.gif" width="300" ><br>
- <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="/vnex/help.htm" style="cursor:help" title="使用帮助"><img src="/vnex/MacOS/help.gif" width="16" border="0">HELP</a></div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td height="2"><img height=7 src="/vnex/MacOS/leftbottom.gif" width=6></td>
- <td background=/vnex/MacOS/bottom.gif colspan=3 height="2"><img height=7
- src="/vnex/MacOS/bottom.gif" width=1></td>
- <td height="2"><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 e - OFFICE System Version 1.0</a><br>
- 2001.02.14</font></td>
- </tr>
- </tbody>
- </table>
- </form></DIV>