tec_modify.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:14k
源码类别:
电子政务应用
开发平台:
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.TecValueBean"%>
- <%@ page import="com.vnex.intranet.util.*"%>
- <jsp:useBean id="tecProcess" scope="application" class="com.vnex.intranet.archives.process.TecProcess" />
- <%
- int archiveId = Integer.parseInt(request.getParameter("archiveId"));
- TecValueBean writBean = tecProcess.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.buildYear.value=form.buildYear.value.replace("-","");
- form.buildYear.value=form.buildYear.value.replace("-","");
- form.action="/mainctrl/tecModifyProcess";
- 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.buildYear.value))
- {
- alert("请选择归档日期!");
- form.buildYear.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/tecIndex"><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="#e0e0e0">
- <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%" bgcolor="#e0e0e0">
- <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%" bgcolor="#fafafa">
- <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="shelf" size="30" class="text" value="<%=writBean.getShelf()%>">
- </div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <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="#e0e0e0">
- <td width="24%"><strong>卷数:</strong></td>
- <td width="76%" bgcolor="#e0e0e0">
- <input type="text" name="buildMan" size="30" class="text" value="<%=writBean.getBuildMan()%>">
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <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="#e0e0e0">
- <td width="24%" >
- <div align="left"><strong>文字(本):</strong></div>
- </td>
- <td width="76%" >
- <div align="left">
- <input type="hidden" name="archiveId" value="<%=writBean.getArchiveId()%>">
- <input type="text" name="topName" size="10" class="text" value="<%=writBean.getTopName()%>" maxlength="5">
- </div>
- </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%>" maxlength="5">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <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="#fafafa">
- <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="#e0e0e0">
- <td width="24%" bgcolor="#e0e0e0">
- <div align="left"><strong>归档日期:</strong></div>
- </td>
- <td width="76%">
- <input type="text" name="buildYear" value=<%=StringUtil.changeIntToString(writBean.getBuildYear())%> readonly size="10" class="text">
- <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildYear);return false">
- * </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="24%"><strong>原附件:</strong></td>
- <td width="76%" >
- <%
- 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" name="remark" class="text" 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>