thing_modify.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:12k
源码类别:
电子政务应用
开发平台:
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="thingProcess" scope="application" class="com.vnex.intranet.archives.process.ThingProcess" />
- <%
- int archiveId = Integer.parseInt(request.getParameter("archiveId"));
- WritValueBean writBean = thingProcess.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>
- <script language="javascript" src="/vnex/validate.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/thingModifyProcess";
- 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;
- }
- }
- if(!isEmpty(form.saveDate.value))
- {
- if(!isInteger(form.saveDate.value))
- {
- alert("奖状只能是数字!");
- form.saveDate.focus();
- return false;
- }
- }
- if(!isEmpty(form.buildYear.value))
- {
- if(!isInteger(form.buildYear.value))
- {
- alert("奖牌只能是数字!");
- form.buildYear.focus();
- return false;
- }
- }
- if(!isEmpty(form.secret.value))
- {
- if(!isInteger(form.secret.value))
- {
- alert("证书只能是数字!");
- form.secret.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/thingIndex"><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%" bgcolor="#e0e0e0"><strong>档案号</strong>:</td>
- <td width="76%">
- <input type="hidden" name="archiveId" value="<%=writBean.getArchiveId()%>">
- <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%" bgcolor="#fafafa">
- <input type="text" name="topName" size="30" class="text" value="<%=writBean.getTopName()%>">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <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="#fafafa">
- <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="#e0e0e0">
- <td width="24%"><strong>获奖级别:</strong></td>
- <td width="76%">
- <input type="text" name="wordKey" size="10" class="text" maxlength="10" value="<%=writBean.getWordKey()%>">
- </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%">
- <input type="text" name="saveDate" size="4" class="text" value="<% if (writBean.getSaveDate()!=0) out.println(writBean.getSaveDate()); %>" maxlength="4">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="24%">
- <div align="left"><strong>奖牌(个):</strong></div>
- </td>
- <td width="76%">
- <input type="text" name="buildYear" size="4" class="text" value="<% if (writBean.getBuildYear()!=0) out.println(writBean.getBuildYear()); %>" maxlength="4">
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="24%">
- <div align="left"><strong>证书(本):</strong></div>
- </td>
- <td width="76%">
- <input type="text" name="secret" size="4" class="text" value="<% if (writBean.getSecret()!=0) out.println(writBean.getSecret()); %>" maxlength="4">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <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="#fafafa">
- <td width="24%"><strong>附件:</strong></td>
- <td width="76%">
- <input type="file" name="attachment" class="text">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <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>