modify_training.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:1k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="com.vnex.intranet.util.*" %>
  3. <jsp:useBean id="trainingProxy" class="com.vnex.intranet.hr.process.HRTrainingProcessBean" scope="page" />
  4. <jsp:useBean id="transferHRTrainingValueBean" class="com.vnex.intranet.hr.value.HRTrainingValueBean" scope="page" />
  5. <jsp:setProperty name="transferHRTrainingValueBean" property="*"/>
  6. <%
  7.          String startDate = request.getParameter("startDate");
  8.          String endDate = request.getParameter("endDate");
  9.          startDate += " 00:00:00";
  10.          endDate += " 00:00:00";
  11.          System.out.println("startDate="+startDate+", endDate="+endDate);
  12.          
  13.          transferHRTrainingValueBean.setTrain_startdate(TimeStamp.toTimestamp(startDate));
  14.          transferHRTrainingValueBean.setTrain_enddate(TimeStamp.toTimestamp(endDate));
  15.          trainingProxy.modifyTraining(transferHRTrainingValueBean);
  16. %>
  17. <html>
  18. <head>
  19. <script language=javascript>
  20. function forward()
  21. {
  22.    document.location = "/mainctrl/training/detail?trainId=<%=request.getParameter("trainId")%>";
  23. }
  24. </script>
  25. </head>
  26. <body onload="javascript:forward()">
  27. </body>
  28. <html>