create_archive_data.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:11k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_archive.tld" prefix="archive" %>
- <%@ page import="java.util.*" %>
- <%@ page import="com.vnex.intranet.util.TimeStamp" %>
- <%@ page import="com.vnex.intranet.pub.BaseJdbcDAO" %>
- <jsp:useBean id="archiveBean" scope="session" class="com.vnex.intranet.archives.value.ArchiveValueBean" />
- <%
- String archiveTypeId = "0";
- if(archiveBean.getArchiveTypeId() != -1)
- archiveTypeId = ""+archiveBean.getArchiveTypeId();
- String saveDate = TimeStamp.formatCalendar(TimeStamp.YMD, TimeStamp.convertTimestampToCalendar(BaseJdbcDAO.getDBSystemDate()));
- %>
- <script Language="JavaScript" src="/vnex/util/Popup.js"></script>
- <script language="JavaScript" src="/vnex/util/validate.js"></script>
- <script language="javascript" src="/vnex/util/strUtil.js"></script>
- <script language=javascript>
- function enableIt(ctrlField, theField)
- {
- if(ctrlField.checked)
- theField.disabled=false;
- else
- {
- theField.value = "";
- theField.disabled=true;
- }
- }
- function createArchive(form)
- {
- if(checkIt(form))
- {
- form.action="/mainctrl/archive/createArchiveProcess";
- form.submit();
- }
- }
- function uploadFile(form)
- {
- form.action="/mainctrl/archive/uploadArchive";
- form.submit();
- }
- function checkIt(form)
- {
- if(!isEmpty(form.archiveTitle.value))
- {
- if(isInvalidateLen(form.archiveTitle.value, 100))
- {
- alert("标题不要超过25个汉字或100个英文字符");
- return false;
- }
- if (form.archiveTitle.value.substring(0,1) == " ")
- {
- alert("标题开头不能是空格!");
- return false;
- }
- }
- else
- {
- alert("请输入标题");
- return false;
- }
- if(!isEmpty(form.archiveKeyword.value))
- {
- if(isInvalidateLen(form.archiveKeyword.value, 1000))
- {
- alert("主题词不要超过250个汉字或1000个英文字符");
- return false;
- }
- }
- if(!isEmpty(form.contents.value))
- {
- if(isInvalidateLen(form.contents.value, 1000))
- {
- alert("内容概要不要超过250个汉字或1000个英文字符");
- return false;
- }
- }
- if(!isEmpty(form.leaderNotes.value))
- {
- if(isInvalidateLen(form.leaderNotes.value, 1000))
- {
- alert("领导批示不要超过250个汉字或1000个英文字符");
- return false;
- }
- }
- if(!isEmpty(form.copyNum.value))
- {
- if(!isInteger(form.copyNum.value))
- {
- alert("复制份数只能是数字");
- return false;
- }
- }
- if(!isEmpty(form.printNum.value))
- {
- if(!isInteger(form.printNum.value))
- {
- alert("打印份数只能是数字");
- return false;
- }
- }
- if(!isEmpty(form.createDate.value))
- {
- if("<%=(com.vnex.intranet.pub.BaseJdbcDAO.getDBSystemDate()).toString()%>"<form.createDate.value)
- {
- alert("发文日期不能在本日之后");
- return false;
- }
- }
- return true;
- }
- </script>
- <table width="600" border="0" cellpadding="5" cellspacing="1" class="iframestyle">
- <tr>
- <td colspan="2" bgcolor="#ffffff"> <a href="/mainctrl/archive/todayArchives">档案管理</a>>>新建档案
- </td>
- </tr>
- <tr>
- <td colspan="2" height="4" bgcolor="#666666" align="center"><font class="strongw">新建档案</font></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td align="center" colspan="2">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td>
- <table width="100%" border="0">
- <tr>
- <td width="14%">
- <div align="left">档案类型:</div>
- </td>
- <td width="86%">
- <div align="left">
- <select name="archiveTypeId" size="1">
- <archive:archiveType archiveTypeId="<%=archiveTypeId%>"/>
- </select>
- </div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">存档日期:</div>
- </td>
- <td width="86%">
- <div align="left"><%=saveDate%></div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">收件人:</div>
- </td>
- <td width="84%">
- <div align="left">
- <select name="receiverId" size="1">
- <archive:employeeTag />
- </select>
- 送存人:
- <input type="text" name="sender" maxlength="8" size="15" class="text" value="<%=archiveBean.getSender()%>">
- </div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">文件来源:</div>
- </td>
- <td width="86%">
- <div align="left">
- <select name="fileSourceId" size="1">
- <archive:fileSourceTag />
- </select>
- </div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">发文日期:</div>
- </td>
- <td width="86%">
- <div align="left">
- <input type="text" name="createDate" readonly size="30" class="text">
- <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择档案发文日期" onClick="fPopUpCalendarDlg(createDate);return false">
- </div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">标题:</div>
- </td>
- <td width="86%">
- <div align="left">
- <input type="text" name="archiveTitle" size="30" class="text">
- </div>
- </td>
- </tr>
- <tr>
- <td>主题词:</td>
- <td>
- <input type="text" name="archiveKeyword" size="30" class="text">
- (逗号间隔,例如:建设,网络,......北京) </td>
- </tr>
- <tr>
- <td width="14%" valign="top">
- <div align="left">内容概要:</div>
- </td>
- <td width="86%">
- <div align="left">
- <textarea rows="10" name="contents" cols="49" wrap="VIRTUAL"></textarea>
- </div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">保密级别:</div>
- </td>
- <td width="86%">
- <div align="left">
- <select class=choice name="safetyLevel">
- <option>5</option>
- <option>4</option>
- <option selected>3</option>
- <option>2</option>
- <option>1</option>
- </select>
- </div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">可否复制:</div>
- </td>
- <td width="86%">
- <div align="left">
- <input type="checkbox" name="copyPermission" value="1" onclick="enableIt(copyPermission, copyNum)">
- 是
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">可复制份数:</div>
- </td>
- <td width="86%">
- <div align="left">
- <input type="text" name="copyNum" disabled size="15" class="text" maxlength="5">
- </div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">可否打印:</div>
- </td>
- <td width="86%">
- <div align="left">
- <input type="checkbox" name="printPermission" value="1" onclick="enableIt(printPermission, printNum)">
- 是
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">可打印份数:</div>
- </td>
- <td width="86%">
- <div align="left">
- <input type="text" name="printNum" disabled size="15" class="text" maxlength="5">
- </div>
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">可否借阅:</div>
- </td>
- <td width="86%">
- <div align="left">
- <input type="checkbox" name="lendPermission" value="1">
- 是
- </td>
- </tr>
- <tr>
- <td width="14%">
- <div align="left">已经传阅:</div>
- </td>
- <td width="86%">
- <div align="left">
- <input type="checkbox" name="sendViewFlag" value="1">
- 是
- </td>
- </tr>
- <tr>
- <td width="14%" valign="top">
- <div align="left">领导批示:</div>
- </td>
- <td width="86%">
- <div align="left">
- <textarea rows="10" name="leaderNotes" cols="49" wrap="VIRTUAL"></textarea>
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <p>
- <input onClick="createArchive(this.form)" type="button" value=" 录 入 " name="B21" class="button">
- <input type="reset" value=" 重 置 " name="B212" class="button">
-
- </p>