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

Java编程

开发平台:

Java

  1. <%@ page contentType="text/html; charset=GBK" %>
  2. <HTML>
  3. <HEAD><TITLE>Your Time Off Data</TITLE></HEAD>
  4. <BODY>
  5. <%@ page import="java.sql.*" %>
  6. <%@ page import="humanresource.EmployeeInfoBean" %>
  7. <%! int employeeID; %>
  8. <H1 ALIGN="center">Your Current Time Off Status</H1>
  9. <TABLE WIDTH="100%">
  10. <%
  11.    /*employeeID = Integer.valueOf(request.getParameter("id")).intValue();
  12.    Class.forName("COM.cloudscape.core.JDBCDriver").newInstance();
  13.    Connection conn =
  14.      DriverManager.getConnection("jdbc:cloudscape:c:\HumanResourcesDB");
  15.    Statement statement = conn.createStatement();
  16.    String sql = "SELECT * FROM EMPLOYEEINFO WHERE ID = " + employeeID;
  17.    ResultSet rs = statement.executeQuery(sql);*/
  18.   EmployeeInfoBean beanObj=new EmployeeInfoBean();
  19.   employeeID = Integer.valueOf(request.getParameter("id")).intValue();
  20. //  employeeID = request.getParameter("id");
  21.   ResultSet rs=beanObj.queryPenPolicy(employeeID);
  22.   System.out.println(rs);
  23.    rs.next();
  24. %>
  25.   <TR><TD ALIGN="right" WIDTH="50%">Employee Name:</TD>
  26.       <TD WIDTH="50%"><%= rs.getString("NAME") %></TD>
  27.   </TR>
  28.   <TR><TD ALIGN="right">Total Sick Days:</TD>
  29.       <TD> <%= rs.getString("TOTALSICKDAYS") %></TD>
  30.   </TR>
  31.   <TR><TD ALIGN="right">Taken Sick Days: </TD>
  32.       <TD><%= rs.getString("TAKENSICKDAYS") %></TD>
  33.   </TR>
  34.   <TR><TD ALIGN="right">Total Personal Time (in hours): </TD>
  35.       <TD><%= rs.getString("TOTALPERSONALTIME") %></TD>
  36.   </TR>
  37.   <TR><TD ALIGN="right">Taken Personal Time (in hours): </TD>
  38.       <TD><%= rs.getString("TAKENPERSONALTIME") %></TD>
  39.   </TR>
  40. </TABLE>
  41. <BR>
  42. </BODY>
  43. </HTML>