create_archive.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:13k
源码类别:
电子政务应用
开发平台:
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/strUtil.js"></script>
- <script language="javascript" src="/vnex/validate.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个英文字符");
- form.archiveTitle.focus();
- return false;
- }
- if (form.archiveTitle.value.substring(0,1) == " ")
- {
- alert("标题开头不能是空格!");
- form.archiveTitle.focus();
- return false;
- }
- }
- else
- {
- alert("请输入标题");
- form.archiveTitle.focus();
- return false;
- }
- if(!isEmpty(form.archiveKeyword.value))
- {
- if(isInvalidateLen(form.archiveKeyword.value, 1000))
- {
- alert("主题词不要超过250个汉字或1000个英文字符");
- form.archiveKeyword.focus();
- return false;
- }
- }
- if(!isEmpty(form.contents.value))
- {
- if(isInvalidateLen(form.contents.value, 1000))
- {
- alert("内容概要不要超过250个汉字或1000个英文字符");
- form.contents.focus();
- return false;
- }
- }
- if(!isEmpty(form.leaderNotes.value))
- {
- if(isInvalidateLen(form.leaderNotes.value, 1000))
- {
- alert("领导批示不要超过250个汉字或1000个英文字符");
- form.leaderNotes.focus();
- return false;
- }
- }
- if(!isEmpty(form.copyNum.value))
- {
- if(!isInteger(form.copyNum.value))
- {
- alert("复制份数只能是数字");
- form.copyNum.focus();
- return false;
- }
- }
- if(!isEmpty(form.printNum.value))
- {
- if(!isInteger(form.printNum.value))
- {
- alert("打印份数只能是数字");
- form.printNum.focus();
- return false;
- }
- }
- if(!isEmpty(form.createDate.value))
- {
- if("<%=(com.vnex.intranet.pub.BaseJdbcDAO.getDBSystemDate()).toString()%>"<form.createDate.value)
- {
- alert("发文日期不能在本日之后");
- return false;
- }
- }
- return true;
- }
- </script>
- <HTML>
- <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>
- <DIV align=center>
- <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"><br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr>
- <td align="center" colspan="2" bgcolor="#FFFFFF">
- <table width="600" border="0" cellspacing="0" cellpadding="0">
- <tr bgcolor="#666666">
- <td><font class="strongw"><a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>>><a href="/mainctrl/archive/todayArchives"><font color="#ffffff">档案管理</font></a>>>新建档案</font>
- </tr>
- </table>
- <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
- <tr bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 档案类型:</strong></div>
- </td>
- <td width="86%">
- <div align="left">
- <select name="archiveTypeId" size="1">
- <archive:archiveType archiveTypeId="<%=archiveTypeId%>"/>
- </select>
- </div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%">
- <div align="left"><strong> 存档日期:</strong></div>
- </td>
- <td width="86%">
- <div align="left"><%=saveDate%></div>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 收件人:</strong></div>
- </td>
- <td width="84%">
- <select name="receiverId" size="1">
- <archive:employeeTag />
- </select>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%"><strong> 送存人:</strong></td>
- <td>
- <input type="text" name="sender" maxlength="8" size="15" class="text" value="<%=archiveBean.getSender()%>">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 文件来源:</strong></div>
- </td>
- <td width="86%">
- <div align="left">
- <select name="fileSourceId" size="1">
- <archive:fileSourceTag />
- </select>
- </div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%">
- <div align="left"><strong> 发文日期:</strong></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 bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 标题:</strong></div>
- </td>
- <td width="86%">
- <div align="left">
- <input type="text" name="archiveTitle" size="30" class="text"> * (注:带*为必填内容)
- </div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%"><strong> 主题词:</strong></td>
- <td>
- <input type="text" name="archiveKeyword" size="30" class="text">
- (逗号间隔,例如:建设,网络,......北京) </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 内容概要:</strong></div>
- </td>
- <td width="86%">
- <div align="left">
- <textarea rows="5" name="contents" cols="59" wrap="VIRTUAL"></textarea>
- </div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%">
- <div align="left"><strong> 保密级别:</strong></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 bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 可否复制:</strong></div>
- </td>
- <td width="86%">
- <input type="checkbox" name="copyPermission" value="1" onclick="enableIt(copyPermission, copyNum)">
- 是
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%">
- <div align="left"><strong> 可复制份数:</strong></div>
- </td>
- <td width="86%">
- <div align="left">
- <input type="text" name="copyNum" disabled size="15" class="text" maxlength="5">
- </div>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 可否打印:</strong></div>
- </td>
- <td width="86%">
- <input type="checkbox" name="printPermission" value="1" onclick="enableIt(printPermission, printNum)">
- 是
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%">
- <div align="left"><strong> 可打印份数:</strong></div>
- </td>
- <td width="86%">
- <div align="left">
- <input type="text" name="printNum" disabled size="15" class="text" maxlength="5">
- </div>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 可否借阅:</strong></div>
- </td>
- <td width="86%">
- <input type="checkbox" name="lendPermission" value="1">
- 是
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="18%">
- <div align="left"><strong> 已经传阅:</strong></div>
- </td>
- <td width="86%">
- <input type="checkbox" name="sendViewFlag" value="1">
- 是
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="18%">
- <div align="left"><strong> 领导批示:</strong></div>
- </td>
- <td width="86%">
- <div align="left">
- <textarea rows="5" name="leaderNotes" cols="59" wrap="VIRTUAL"></textarea>
- </div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="2" align="center" height="30">
- <input onClick="createArchive(this.form)" type="button" value="保存" name="B21" class="text">
-
- <input type="reset" value="重置" name="B212" class="text">
-
- <input type="button" value="放弃" name="B213" class="text" onclick="history.back()">
- </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>