PresentTimeOffData.jsp~12~
上传用户: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 beanObj2=new EmployeeInfoBean();
  19.   employeeID = Integer.valueOf(request.getParameter("id")).intValue();
  20.   System.out.println(beanObj2);
  21.   ResultSet rs=beanObj2.queryPenPolicy(employeeID);
  22.    rs.next();
  23. %>
  24.   <TR><TD ALIGN="right" WIDTH="50%">Employee Name:</TD>
  25.       <TD WIDTH="50%"><%= rs.getString("NAME") %></TD>
  26.   </TR>
  27.   <TR><TD ALIGN="right">Total Sick Days:</TD>
  28.       <TD> <%= rs.getString("TOTALSICKDAYS") %></TD>
  29.   </TR>
  30.   <TR><TD ALIGN="right">Taken Sick Days: </TD>
  31.       <TD><%= rs.getString("TAKENSICKDAYS") %></TD>
  32.   </TR>
  33.   <TR><TD ALIGN="right">Total Personal Time (in hours): </TD>
  34.       <TD><%= rs.getString("TOTALPERSONALTIME") %></TD>
  35.   </TR>
  36.   <TR><TD ALIGN="right">Taken Personal Time (in hours): </TD>
  37.       <TD><%= rs.getString("TAKENPERSONALTIME") %></TD>
  38.   </TR>
  39. </TABLE>
  40. <BR>
  41. </BODY>
  42. </HTML>