borrow_modify.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:9k
源码类别:
电子政务应用
开发平台:
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.LendValueBean"%>
- <%@ page import="com.vnex.intranet.util.*"%>
- <jsp:useBean id="LendProcess" scope="application" class="com.vnex.intranet.archives.process.LendProcess" />
- <%
- int lendId = Integer.parseInt(request.getParameter("lendId"));
- LendValueBean lendValue= new LendValueBean();
- lendValue = LendProcess.selectOneRow(lendId);
- String inTime = StringUtil.changeIntToString(lendValue.getStartTime());
- String outTime = StringUtil.changeIntToString(lendValue.getReturnTime());
- %>
- <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>
- <script language=javascript>
- function createArchive(form)
- {
- if(checkIt(form))
- {
- form.returnTime.value=form.returnTime.value.replace("-","");
- form.returnTime.value=form.returnTime.value.replace("-","");
- form.action="/mainctrl/borrowModifyProcess";
- form.submit();
- }
- }
- function checkIt(form)
- {
- if(isEmpty(form.returnTime.value))
- {
- alert("请选择偿还日期!");
- form.returnTime.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>
- <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" 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/archives/main"><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%"> <%=lendValue.getLendId()%>
- <input type="hidden" name="lendId" value="<%=lendValue.getLendId()%>">
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="24%"><strong>类型:</strong></td>
- <td width="76%">
- <input type="hidden" name="type" value="<%=lendValue.getType()%>">
- <%
- if (lendValue.getType()==1)
- out.println("文书档案");
- else if(lendValue.getType()==2)
- out.println("科技档案");
- else if(lendValue.getType()==3)
- out.println("实物档案");
- else
- out.println("电子档案");
- %>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="24%"><strong>内容摘要:</strong></td>
- <td width="76%"> <%=lendValue.getTitle()%>
- <input type="hidden" name="title" value="<%=lendValue.getTitle()%>">
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="24%">
- <input type="hidden" name="archiveId" value="<%=lendValue.getArchiveId()%>">
- <div align="left"><strong>借出日期:</strong></div>
- </td>
- <td width="76%" bgcolor="#fafafa">
- <div align="left"> <%=inTime%></div>
- </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" value="<%=outTime%>" name="returnTime" readonly size="10" class="text">
- <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(returnTime);return false">
- * (注:带*为必填内容) </div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="24%">
- <div align="left"><strong>借阅人:</strong></div>
- </td>
- <td width="76%" bgcolor="#fafafa">
- <div align="left">
- <input type="text" name="lendMan" size="30" class="text" value="<%=lendValue.getLendMan()%>">
- </div>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="24%">
- <div align="left"><strong>备注:</strong></div>
- </td>
- <td width="76%" bgcolor="#e0e0e0">
- <div align="left">
- <textarea name="remark" cols="40" class="text" rows="4"><%=lendValue.getRemark()%></textarea>
- </div>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="2" align="center" height="30">
- <input onClick="createArchive(this.form)" type="button" value="保存" class="text">
-
- <input type="reset" value="重置" class="text">
-
- <input type="button" value="归还" class="text" onClick="location='/mainctrl/borrowSearch?lendId=<%=lendValue.getLendId()%>'">
-
- <input type="button" value="放弃" class="text" onClick="history.back()">
- </td>
- </tr>
- </table>
- </td>
- </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>