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

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 = request.getParameter("id");
  20.   ResultSet rs=beanObj.queryPenPolicy(employeeID);
  21.    rs.next();
  22. %>
  23.   <TR><TD ALIGN="right" WIDTH="50%">Employee Name:</TD>
  24.       <TD WIDTH="50%"><%= rs.getString("NAME") %></TD>
  25.   </TR>
  26.   <TR><TD ALIGN="right">Total Sick Days:</TD>
  27.       <TD> <%= rs.getString("TOTALSICKDAYS") %></TD>
  28.   </TR>
  29.   <TR><TD ALIGN="right">Taken Sick Days: </TD>
  30.       <TD><%= rs.getString("TAKENSICKDAYS") %></TD>
  31.   </TR>
  32.   <TR><TD ALIGN="right">Total Personal Time (in hours): </TD>
  33.       <TD><%= rs.getString("TOTALPERSONALTIME") %></TD>
  34.   </TR>
  35.   <TR><TD ALIGN="right">Taken Personal Time (in hours): </TD>
  36.       <TD><%= rs.getString("TAKENPERSONALTIME") %></TD>
  37.   </TR>
  38. </TABLE>
  39. <BR>
  40. </BODY>
  41. </HTML>