writ_modify.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:13k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page import="java.lang.*"%>
- <%@ page import="java.sql.*"%>
- <%@ page import="java.util.*"%>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.archives.value.WritValueBean"%>
- <%@ page import="com.vnex.intranet.util.*"%>
- <jsp:useBean id="writProcess" scope="application" class="com.vnex.intranet.archives.process.WritProcess" />
- <%
- int archiveId = Integer.parseInt(request.getParameter("archiveId"));
- WritValueBean writBean = writProcess.selectArchiveRow(archiveId);
- %>
- <HTML>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_archives.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <script Language="JavaScript" src="/vnex/util/Popup.js"></script>
- <script language="javascript" src="/vnex/util/strUtil.js"></script>
- <DIV align=center>
- <script language=javascript>
- function createArchive(form)
- {
- if(checkIt(form))
- {
- form.buildDate.value=form.buildDate.value.replace("-","");
- form.buildDate.value=form.buildDate.value.replace("-","");
- form.action="/mainctrl/writModifyProcess";
- form.encoding="multipart/form-data";
- form.submit();
- }
- }
- function checkIt(form)
- {
- if(isEmpty(form.docName.value))
- {
- alert("请输入所属卷号!");
- form.docName.focus();
- return false;
- }
- if(isEmpty(form.title.value))
- {
- alert("请输入内容摘要!");
- form.title.focus();
- return false;
- }
- if(isEmpty(form.buildDate.value))
- {
- alert("请选择文件日期!");
- form.buildDate.focus();
- return false;
- }
- if(!isEmpty(form.remark.value))
- {
- if(isInvalidateLen(form.remark.value, 400))
- {
- alert("内容概要不要超过250个汉字或1000个英文字符!");
- form.remark.focus();
- return false;
- }
- }
- return true;
- }
- </script>
- <form name="form1" method="post">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr valign="top">
- <td bgcolor="#fafafa" >
- <table width="600" border="0" cellspacing="0" cellpadding="0">
- <tr valign="top" bgcolor="#cccccc">
- <td>
- <table width="600" border="0" cellpadding="2" cellspacing="0">
- <tr bgcolor="#666666">
- <td><font class="strongw"> <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>>>
- <a href="/mainctrl/archiveFileIn"><font color="#ffffff">档案管理</font></a>>><a href="/mainctrl/writIndex"><font color="#ffffff">文书档案</font></a>>>
- 修改文书档案</font> </td>
- </tr>
- </table>
- <table border="0" cellpadding="2" cellspacing="0" width="600">
- <tr bgcolor="#e0e0e0">
- <td colspan="4">
- <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
- <!--
- <tr bgcolor="#fafafa">
- <td width="24%" >
- <div align="left"><strong>全综号:</strong></div>
- </td>
- <td width="76%" >
- <div align="left">
- <input type="text" name="topName" size="30" class="text" value="<%=writBean.getTopName()%>">
- * (注:带*为必填内容) </div>
- </td>
- </tr>
- -->
- <tr bgcolor="#e0e0e0">
- <input type="hidden" name="topName" size="30" class="text" value="<%=writBean.getTopName()%>">
- <input type="hidden" name="archiveId" value="<%=writBean.getArchiveId()%>">
- <td width="24%"><strong>所属卷号</strong>:</td>
- <td width="76%">
- <input type="text" name="docName" size="30" class="text" value="<%=writBean.getDocName()%>">
- * (注:带*为必填内容) </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="24%"><strong>文件发文号:</strong></td>
- <td width="76%">
- <input type="text" name="fileBef" size="30" class="text" value="<%=writBean.getFileBef()%>">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="24%"><strong>内容摘要:</strong></td>
- <td width="76%">
- <input type="text" name="title" size="30" class="text" value="<%=writBean.getTitle()%>">
- * </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="24%"><strong>文件作者:</strong></td>
- <td width="76%">
- <input type="text" name="dep" size="30" class="text" value="<%=writBean.getDep()%>">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="24%">
- <div align="left"><strong>文件日期:</strong></div>
- </td>
- <td width="76%">
- <div align="left">
- <input type="text" name="buildDate" value=<%=StringUtil.changeIntToString(writBean.getBuildDate())%> readonly size="10" class="text">
- <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildDate);return false">
- * </div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="24%"><strong>保管期限:</strong></td>
- <td width="76%">
- <select name="saveDate" size="1">
- <option value="1" <%if(writBean.getSaveDate()==1) out.println("selected");%>>短期</option>
- <option value="2" <%if(writBean.getSaveDate()==2) out.println("selected");%>>长期</option>
- <option value="3" <%if(writBean.getSaveDate()==3) out.println("selected");%>>永久</option>
- </select>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="24%">
- <div align="left"><strong>密级:</strong></div>
- </td>
- <td width="76%">
- <select name="secret" size="1">
- <option value="1" <%if(writBean.getSecret()==1) out.println("selected");%>>一般</option>
- <option value="2" <%if(writBean.getSecret()==2) out.println("selected");%>>秘密</option>
- <option value="3" <%if(writBean.getSecret()==3) out.println("selected");%>>机密</option>
- <option value="4" <%if(writBean.getSecret()==4) out.println("selected");%>>绝密</option>
- </select>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="24%"><strong>卷内份数:</strong></td>
- <td width="76%">
- <%
- String www="";
- if(writBean.getFileNum()!=0)
- {
- www=Integer.toString(writBean.getFileNum());
- }
- %>
- <input type="text" name="fileNum" size="10" class="text" value="<%=www%>">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="24%"><strong>主题词:</strong></td>
- <td width="76%">
- <input type="text" name="wordKey" size="30" class="text" value="<%=writBean.getWordKey()%>">
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="24%">
- <div align="left"><strong>年度:</strong></div>
- </td>
- <td width="76%">
- <select style="WIDTH: 65px" name="buildYear" class="button">
- <%
- for(int i=1996; i<2050; i++)
- {
- if(writBean.getBuildYear()==i)
- out.println("<option value="+i+" selected><b>"+i+"</b></option>");
- else
- out.println("<option value="+i+" ><b>"+i+"</b></option>");
- }
- %>
- </select>
- 年 </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="24%">
- <div align="left"><strong>排架:</strong></div>
- </td>
- <td width="76%" bgcolor="#e0e0e0">
- <div align="left">
- <input type="text" name="shelf" size="30" class="text" value="<%=writBean.getShelf()%>">
- </div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="24%"><strong>原附件:</strong></td>
- <td width="76%" bgcolor="#fafafa">
- <%
- String str = writBean.getAttachment();
- int s = str.lastIndexOf(SubPathGenerater.getSeperator());
- String filename = str.substring(s+1);
- String UTFurl = str.substring(0,s+1)+StringUtil.encode(filename);
- out.println("<a href=""+UTFurl+"" target="_blank">");
- out.println(filename);
- out.println("</a>");
- %>
- <input type="hidden" name="oldURL" value="<%=writBean.getAttachment()%>">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="24%"><strong>附件:</strong></td>
- <td width="76%">
- <input type="file" name="attachment" class="text">
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="24%">
- <div align="left"><strong>备注:</strong></div>
- </td>
- <td width="76%">
- <div align="left">
- <input type="text" class="text" name="remark" size="10" value="<%=writBean.getRemark()%>" maxlength="10">
- </div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="2" align="center" height="30">
- <input type="button" onClick="createArchive(this.form)" value="保存" class="text">
-
- <input type="reset" value="重置" class="text">
-
- <input type="button" value="放弃" class="text" onClick="history.back()">
- </td>
- </tr>
- </table>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>