equipment_code_use_add_success.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:2k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="java.lang.*"%>
- <%@ page import="java.sql.Timestamp"%>
- <%@ page import="com.vnex.intranet.util.TimeStamp"%>
- <%@ page import="com.vnex.intranet.equipment.value.UserValueBean"%>
- <%@ page import="com.vnex.intranet.equipment.process.EquipmentException"%>
- <jsp:useBean id="equipmentProxy" class="com.vnex.intranet.equipment.proxy.EquipmentProxyBean" scope="session" />
- <jsp:useBean id="codeUse" class="com.vnex.intranet.equipment.value.EquipmentUseRecordValueBean" scope="session" />
- <jsp:setProperty name="codeUse" property="*" />
- <%!
- String mes;
- String loc;
- %>
- <%
- Timestamp time = null;
- if (request.getParameter("startDay").length() != 0)
- {
- String startDay= request.getParameter("startDay") + " 00:00:00";
- time = TimeStamp.toTimestamp(startDay);
- }
- if (request.getParameter("batchId") == null)
- throw new EquipmentException("没有找到相应的批号!");
- String batchId = request.getParameter("batchId");
- String keyword = request.getParameter("keyword");
- String ctn = request.getParameter("ctn");
- String start = request.getParameter("start");
- codeUse.setBatchId(Integer.parseInt(batchId));
- codeUse.setStartTime(time);
- boolean flag = equipmentProxy.addCodeUseRecord(codeUse);
- if (flag && ctn.equals("1"))
- loc = "/mainctrl/equipmentCodeUseAdd?batchId=" + batchId + "&keyword=" + keyword + "&ctn=" + ctn ;
- else
- loc = "/mainctrl/equipmentBatchSearchResult?cache=true&start=" + start;
- %>
- <html>
- <head>
- <script language=javascript>
- function forward()
- {
- document.location = "<%=loc%>";
- }
- </script>
- </head>
- <body onload="javascript:forward()">
- 成功!
- </body>
- <html>