PresentChangeOfEmployeeData.jsp
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:2k
源码类别:

Java编程

开发平台:

Java

  1. <%@ page contentType="text/html; charset=GBK" %>
  2. <HTML>
  3. <HEAD><TITLE></TITLE></HEAD>
  4. <BODY>
  5. <%@ include file="CompanyBanner.html" %>
  6. <%@ page import="java.sql.*" %>
  7. <%@ page import="humanresource.EmployeeInfoBean" %>
  8. <jsp:useBean id="empInfo" class="humanresource.EmployeeInfoBean" scope="request"/>
  9. <CENTER>
  10.   <FONT SIZE="5" COLOR="navy">
  11.     Your New Information
  12.   </FONT>
  13. </CENTER>
  14. <TABLE WIDTH="100%" BORDER="1">
  15. <%
  16.    int employeeID = empInfo.getId();
  17.    try {
  18.   /* Class.forName("COM.cloudscape.core.JDBCDriver").newInstance();
  19.    Connection conn =
  20.      DriverManager.getConnection("jdbc:cloudscape:c:\HumanResourcesDB");
  21.    Statement statement = conn.createStatement();
  22.    String sql = "SELECT * FROM EMPLOYEEINFO WHERE ID = " + employeeID;*/
  23.    EmployeeInfoBean beanObj1=new EmployeeInfoBean();
  24.    ResultSet rs = beanObj1.queryPenPolicy(employeeID);
  25.    while(rs.next()){
  26. %>
  27.      <TR><TD ALIGN="right" WIDTH="50%">Name:</TD>
  28.          <TD WIDTH="50%"><%= rs.getString("NAME") %></TD>
  29.      </TR>
  30.      <TR><TD ALIGN="right" WIDTH="50%">Address:</TD>
  31.          <TD WIDTH="50%"><%= rs.getString("ADDRESS") %></TD>
  32.      </TR>
  33.      <TR><TD ALIGN="right" WIDTH="50%">Phone Number:</TD>
  34.          <TD WIDTH="50%"><%= rs.getString("PHONE") %></TD>
  35.      </TR>
  36.      <TR><TD ALIGN="right" WIDTH="50%">Work Status:</TD>
  37.          <TD WIDTH="50%"><%= rs.getString("WORKSTATUS") %></TD>
  38.      </TR>
  39.      <TR><TD ALIGN="right" WIDTH="50%">Total Sick Days:</TD>
  40.          <TD> <%= rs.getString("TOTALSICKDAYS") %></TD>
  41.      </TR>
  42.      <TR><TD ALIGN="right" WIDTH="50%">Taken Sick Days: </TD>
  43.          <TD><%= rs.getString("TAKENSICKDAYS") %></TD>
  44.      </TR>
  45.      <TR><TD ALIGN="right" WIDTH="50%">Total Personal Time(in hours): </TD>
  46.          <TD><%= rs.getString("TOTALPERSONALTIME") %></TD>
  47.      </TR>
  48.      <TR><TD ALIGN="right" WIDTH="50%">Taken Personal Time(in hours): </TD>
  49.          <TD><%= rs.getString("TAKENPERSONALTIME") %></TD>
  50.      </TR>
  51.      <TR><TD ALIGN="right" WIDTH="50%">Health Care Plan:</TD>
  52.          <TD WIDTH="50%"><%= rs.getString("HEALTHCAREPLAN") %></TD>
  53.      </TR>
  54.      <TR><TD ALIGN="right" WIDTH="50%">Dental Plan:</TD>
  55.          <TD WIDTH="50%"><%= rs.getString("DENTALPLAN") %></TD>
  56.      </TR>
  57.      <TR><TD ALIGN="right" WIDTH="50%">Vision Plan:</TD>
  58.          <TD WIDTH="50%"><%= rs.getString("VISIONPLAN") %></TD>
  59.      </TR>
  60. <% }//end while loop
  61.   } // end try block
  62.   catch (Exception e) {};
  63. %>
  64. </TABLE>
  65. <%@ include file="SiteNavigator.html" %>
  66. </BODY>
  67. </HTML>