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

Java编程

开发平台:

Java

  1. import javax.servlet.*;
  2. import javax.servlet.http.*;
  3. import javax.servlet.jsp.*;
  4. import org.apache.jasper.runtime.*;
  5. public class PresentNewEmployeeInfo_0002ejsp_jsp extends HttpJspBase {
  6.   private static java.util.Vector _jspx_includes;
  7.   static {
  8.     _jspx_includes = new java.util.Vector(2);
  9.     _jspx_includes.add("/CompanyBanner.html");
  10.     _jspx_includes.add("/SiteNavigator.html");
  11.   }
  12.   public java.util.List getIncludes() {
  13.     return _jspx_includes;
  14.   }
  15.   public void _jspService(HttpServletRequest request, HttpServletResponse response)
  16.         throws java.io.IOException, ServletException {
  17.     JspFactory _jspxFactory = null;
  18.     javax.servlet.jsp.PageContext pageContext = null;
  19.     HttpSession session = null;
  20.     ServletContext application = null;
  21.     ServletConfig config = null;
  22.     JspWriter out = null;
  23.     Object page = this;
  24.     JspWriter _jspx_out = null;
  25.     try {
  26.       _jspxFactory = JspFactory.getDefaultFactory();
  27.       response.setContentType("text/html; charset=GBK");
  28.       pageContext = _jspxFactory.getPageContext(this, request, response,
  29.        null, true, 8192, true);
  30.       application = pageContext.getServletContext();
  31.       config = pageContext.getServletConfig();
  32.       session = pageContext.getSession();
  33.       out = pageContext.getOut();
  34.       _jspx_out = out;
  35.       out.write("rn");
  36.       out.write("<HTML>rn");
  37.       out.write("<HEAD>");
  38.       out.write("<TITLE>Present New Employee Information");
  39.       out.write("</TITLE>");
  40.       out.write("</HEAD>rn");
  41.       out.write("<BODY>rn");
  42.       out.write("<TABLE WIDTH="100%" BORDER="0" BGCOLOR="navy">n  ");
  43.       out.write("<TR ALIGN="center">n    ");
  44.       out.write("<TD>");
  45.       out.write("<FONT SIZE="7" COLOR="yellow">Husky World");
  46.       out.write("</FONT>");
  47.       out.write("</TD>n  ");
  48.       out.write("</TR>n");
  49.       out.write("</TABLE>");
  50.       out.write("rn");
  51.       humanresource.NewEmployeeBean newEmployee = null;
  52.       synchronized (request) {
  53.         newEmployee = (humanresource.NewEmployeeBean) pageContext.getAttribute("newEmployee", PageContext.REQUEST_SCOPE);
  54.         if (newEmployee == null){
  55.           try {
  56.             newEmployee = (humanresource.NewEmployeeBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "humanresource.NewEmployeeBean");
  57.           } catch (ClassNotFoundException exc) {
  58.             throw new InstantiationException(exc.getMessage());
  59.           } catch (Exception exc) {
  60.             throw new ServletException("Cannot create bean of class " + "humanresource.NewEmployeeBean", exc);
  61.           }
  62.           pageContext.setAttribute("newEmployee", newEmployee, PageContext.REQUEST_SCOPE);
  63.         }
  64.       }
  65.       out.write("rn");
  66.       out.write("<CENTER>rn  ");
  67.       out.write("<FONT SIZE="5" COLOR="navy">rn    New Employee Has Been Entered Into The Databasern  ");
  68.       out.write("</FONT>rn");
  69.       out.write("</CENTER>rn");
  70.       out.write("<TABLE WIDTH="100%" BORDER="1">rn  ");
  71.       out.write("<TR>");
  72.       out.write("<TD ALIGN="right" WIDTH="50%">Name:");
  73.       out.write("</TD>rn      ");
  74.       out.write("<TD WIDTH="50%">");
  75.       out.print( newEmployee.getName() );
  76.       out.write("</TD>rn  ");
  77.       out.write("</TR>rn  ");
  78.       out.write("<TR>");
  79.       out.write("<TD ALIGN="right" WIDTH="50%">Address:");
  80.       out.write("</TD>rn      ");
  81.       out.write("<TD WIDTH="50%">");
  82.       out.print( newEmployee.getAddress() );
  83.       out.write("</TD>rn  ");
  84.       out.write("</TR>rn  ");
  85.       out.write("<TR>");
  86.       out.write("<TD ALIGN="right" WIDTH="50%">Phone Number:");
  87.       out.write("</TD>rn      ");
  88.       out.write("<TD WIDTH="50%">");
  89.       out.print( newEmployee.getPhone() );
  90.       out.write("</TD>rn  ");
  91.       out.write("</TR>rn  ");
  92.       out.write("<TR>");
  93.       out.write("<TD ALIGN="right" WIDTH="50%">Work Status:");
  94.       out.write("</TD>rn      ");
  95.       out.write("<TD WIDTH="50%">");
  96.       out.print( newEmployee.getWorkstatus() );
  97.       out.write("</TD>rn  ");
  98.       out.write("</TR>rn  ");
  99.       out.write("<TR>");
  100.       out.write("<TD ALIGN="right" WIDTH="50%">Total Sick Days:");
  101.       out.write("</TD>rn      ");
  102.       out.write("<TD> ");
  103.       out.print( newEmployee.getTotalSickDays() );
  104.       out.write("</TD>rn  ");
  105.       out.write("</TR>rn  ");
  106.       out.write("<TR>");
  107.       out.write("<TD ALIGN="right" WIDTH="50%">Taken Sick Days: ");
  108.       out.write("</TD>rn      ");
  109.       out.write("<TD>");
  110.       out.print( newEmployee.getTakenSickDays() );
  111.       out.write("</TD>rn  ");
  112.       out.write("</TR>rn  ");
  113.       out.write("<TR>");
  114.       out.write("<TD ALIGN="right" WIDTH="50%">Total Personal Time (in hours): ");
  115.       out.write("</TD>rn      ");
  116.       out.write("<TD>");
  117.       out.print( newEmployee.getTotalPersonalTime() );
  118.       out.write("</TD>rn  ");
  119.       out.write("</TR>rn  ");
  120.       out.write("<TR>");
  121.       out.write("<TD ALIGN="right" WIDTH="50%">Taken Personal Time (in hours): ");
  122.       out.write("</TD>rn      ");
  123.       out.write("<TD>");
  124.       out.print( newEmployee.getTakenPersonalTime() );
  125.       out.write("</TD>rn  ");
  126.       out.write("</TR>rn  ");
  127.       out.write("<TR>");
  128.       out.write("<TD ALIGN="right" WIDTH="50%">Health Care Plan:");
  129.       out.write("</TD>rn      ");
  130.       out.write("<TD WIDTH="50%">");
  131.       out.print( newEmployee.getHealthCarePlan() );
  132.       out.write("</TD>rn  ");
  133.       out.write("</TR>rn  ");
  134.       out.write("<TR>");
  135.       out.write("<TD ALIGN="right" WIDTH="50%">Dental Plan:");
  136.       out.write("</TD>rn      ");
  137.       out.write("<TD WIDTH="50%">");
  138.       out.print( newEmployee.getDentalPlan() );
  139.       out.write("</TD>rn  ");
  140.       out.write("</TR>rn  ");
  141.       out.write("<TR>");
  142.       out.write("<TD ALIGN="right" WIDTH="50%">Vision Plan:");
  143.       out.write("</TD>rn      ");
  144.       out.write("<TD WIDTH="50%">");
  145.       out.print( newEmployee.getVisionPlan() );
  146.       out.write("</TD>rn  ");
  147.       out.write("</TR>rn");
  148.       out.write("</TABLE>rn");
  149.       out.write("<BODY ALINK="yellow" VLINK="yellow" LINK="yellow">n");
  150.       out.write("<TABLE WIDTH="100%" BORDER="0" BGCOLOR="navy">n  ");
  151.       out.write("<TR ALIGN="center">n    ");
  152.       out.write("<TD COLSPAN=2>");
  153.       out.write("<FONT SIZE="4" COLOR="yellow">Site Navigator");
  154.       out.write("</FONT>");
  155.       out.write("</TD>n  ");
  156.       out.write("</TR>n  ");
  157.       out.write("<TR ALIGN="center">n    ");
  158.       out.write("<TD>");
  159.       out.write("<A HREF="PresentCompanyPolicies.jsp">n         Look at Company Policies");
  160.       out.write("</A>n    ");
  161.       out.write("</TD>n    ");
  162.       out.write("<TD>");
  163.       out.write("<A HREF="PersonalInfo.html">n         Look At Personal Information");
  164.       out.write("</A>n    ");
  165.       out.write("</TD>n  ");
  166.       out.write("</TR>n  ");
  167.       out.write("<TR ALIGN="center">n    ");
  168.       out.write("<TD>");
  169.       out.write("<A HREF="InputEmployeeInfo.html">n        Change Employee Information");
  170.       out.write("</A>");
  171.       out.write("</FONT>n    ");
  172.       out.write("</TD>n    ");
  173.       out.write("<TD>");
  174.       out.write("<A HREF="PresentCompanyHealthCareInfo.jsp">n        Look At Health Care Options");
  175.       out.write("</A>n    ");
  176.       out.write("</TD>n  ");
  177.       out.write("</TR>n  ");
  178.       out.write("<TR ALIGN="center">n    ");
  179.       out.write("<TD COLSPAN="2">");
  180.       out.write("<A HREF="HumanResources.html">n                    Home Page");
  181.       out.write("</A>n    ");
  182.       out.write("</TD>n  ");
  183.       out.write("</TR>n");
  184.       out.write("</TABLE>n");
  185.       out.write("</BODY>");
  186.       out.write("rn");
  187.       out.write("</BODY>rn");
  188.       out.write("</HTML>");
  189.     } catch (Throwable t) {
  190.       out = _jspx_out;
  191.       if (out != null && out.getBufferSize() != 0)
  192.         out.clearBuffer();
  193.       if (pageContext != null) pageContext.handlePageException(t);
  194.     } finally {
  195.       if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
  196.     }
  197.   }
  198. }