PersonnelLink.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:10k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
  3. <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
  4. <%
  5. Request m_request = new Request(request);
  6. int intPersonnelID = m_request.GetInt("ID");
  7. if(intPersonnelID<1)
  8. {
  9. %>
  10. <script language="JavaScript" type="text/JavaScript">
  11. alert("请选择正确的员工,查看资料失败!");
  12. history.back();
  13. </script>
  14. <%
  15. }
  16. else
  17. {
  18. Vector vt = PersonnelManager.getRecordByID(intPersonnelID);
  19. if(vt.size()==1)
  20. {
  21. %>
  22. <html>
  23. <head>
  24. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  25. <title>员工管理-- GForce OA 2.0</title>
  26. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  27. <script language="JavaScript" src="/js/changestyle.js"></script>
  28. </head>
  29. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  30. <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  31.   <tr>
  32.     <td align="center" valign="top">
  33.       <p align="center">&nbsp;</p>
  34.       <p align="center"><b>员工个人基本资料</b></p>
  35.       <table width="90%"  border="1" cellpadding="0" cellspacing="0">
  36.         <tr>
  37.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">员工编号:</font></td>
  38.           <td align="left" valign="middle"><%=((Vector)vt.get(0)).get(4).toString()%>&nbsp;</td>
  39.           <td align="center" valign="middle" rowspan="13"><%=((Vector)vt.get(0)).get(18).toString().length()>0?"<img src='"+ ((Vector)vt.get(0)).get(18).toString() +"' width='180' height='240'>":"&nbsp;"%></td>
  40.         </tr>
  41.         <tr>
  42.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">姓名:</font></td>
  43.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(1).toString()%>&nbsp;</td>
  44.         </tr>
  45.         <tr>
  46.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">性别:</font></td>
  47.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(2).toString()%>&nbsp;</td>
  48.           </td>
  49.         </tr>
  50.         <tr>
  51.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">所属部门:</font></td>
  52.           <td align="left" valign="middle"> <%
  53. //检索要选择的部门
  54. Vector vDepartment = DepartmentManager.getDepartmentData();
  55. for(int i=0;i<vDepartment.size();i++)
  56. {
  57. if (((Vector)vDepartment.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(13).toString()))
  58.         out.print(((Vector)vDepartment.get(i)).get(1).toString());
  59. }
  60. %>&nbsp;</td>
  61.           </td>
  62.         </tr>
  63.         <tr>
  64.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">职务:</font></td>
  65.           <td align="left" valign="middle"> <%
  66. //检索要选择的职务
  67. Vector vPlace = PlaceManager.getAllRecord();
  68. for(int i=0;i<vPlace.size();i++)
  69. {
  70. if(((Vector)vPlace.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(16).toString()))
  71.         out.print(((Vector)vPlace.get(i)).get(1).toString());
  72. }
  73. %>&nbsp;</td>
  74.           </td>
  75.         </tr>
  76.         <tr>
  77.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">职称:</font></td>
  78.           <td align="left" valign="middle"><%
  79. //检索要选择的职称
  80. Vector vTechnicalPost = TechnicalPostManager.getAllRecord();
  81. for(int i=0;i<vTechnicalPost.size();i++)
  82. {
  83. if (((Vector)vTechnicalPost.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(17).toString()))
  84.         out.print(((Vector)vTechnicalPost.get(i)).get(1).toString());
  85. }
  86. %>&nbsp;</td>
  87.           </td>
  88.         </tr>
  89.         <tr>
  90.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">教育程度:</font></td>
  91.           <td align="left" valign="middle"> <%
  92. Vector vEducation = EducationManager.getAllRecord();
  93. for(int i=0;i<vEducation.size();i++)
  94. {
  95. if(((Vector)vEducation.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(14).toString()))
  96.         out.print(((Vector)vEducation.get(i)).get(1).toString());
  97. }
  98. %>&nbsp;</td>
  99.           </td>
  100.         </tr>
  101.         <tr>
  102.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">婚姻状况:</font></td>
  103.           <td align="left" valign="middle"> <%
  104. //检索要选择的婚姻状况
  105. Vector vMarriage = MarriageStateManager.getAllRecord();
  106. for(int i=0;i<vMarriage.size();i++)
  107. {
  108. if (((Vector)vMarriage.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(15).toString()))
  109.         out.print(((Vector)vMarriage.get(i)).get(1).toString());
  110. }
  111. %>&nbsp;</td>
  112.           </td>
  113.         </tr>
  114.         <tr>
  115.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">出生日期:</font></td>
  116.           <td align="left" valign="middle"> <%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"yyyy-MM-dd")%>&nbsp;</td>
  117.           </td>
  118.         </tr>
  119.         <tr>
  120.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">办公室电话:</font></td>
  121.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(5).toString()%>&nbsp;</td>
  122.           </td>
  123.         </tr>
  124.         <tr>
  125.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">移动电话:</font></td>
  126.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(6).toString()%>&nbsp;</td>
  127.           </td>
  128.         </tr>
  129.         <tr>
  130.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">E-Mail:</font></td>
  131.           <td align="left" valign="middle"><%=((Vector)vt.get(0)).get(9).toString().length()>0?"<a href='mailto:"+ ((Vector)vt.get(0)).get(9).toString() + "'>"+((Vector)vt.get(0)).get(9).toString()+"</a>":""%>&nbsp;</td>
  132.           </td>
  133.         </tr>
  134.         <tr>
  135.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">身份证号码:</font></td>
  136.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(7).toString()%>&nbsp;</td>
  137.           </td>
  138.         </tr>
  139.         <tr>
  140.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">家庭住址:</font></td>
  141.           <td align="left" valign="middle" colspan="2"> <%=((Vector)vt.get(0)).get(8).toString()%>&nbsp;</td>
  142.         </tr>
  143. <%
  144. Vector vt1 = FamilyMemberManager.getAllRecord(intPersonnelID);
  145. %>
  146.         <tr>
  147.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">家庭成员:</font></td>
  148.           <td align="center" valign="middle" colspan="2">
  149.             <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  150.                 <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  151.                     <th width="6%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  152.                     <th width="6%" nowrap><font color="#000000">序号</font></th>
  153.                     <th width="6%" nowrap><font color="#000000">姓名</font></th>
  154.                     <th width="8%" nowrap><font color="#000000">出生日期</font></th>
  155.                     <th width="6%" nowrap><font color="#000000">关系</font></th>
  156.                     <th width="8%" nowrap><font color="#000000">职务</font></th>
  157.                     <th width="20%" nowrap><font color="#000000">工作单位</font></th>
  158.                 </tr>
  159. <%
  160. for(int i=0;i<vt1.size();i++)
  161. {
  162.     String strID = ((Vector)vt1.get(i)).get(0).toString();
  163.     if(i % 2 == 0)
  164.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  165.     else
  166.         out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  167.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  168.     out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
  169.     out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt1.get(i)).get(1).toString() + "</td>");
  170.     out.println("<td align="center" valign="middle" nowrap>" + StringNew.GetDateString(((Vector)vt1.get(i)).get(2).toString(),"yyyy-MM-dd") + "</td>");
  171.     out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt1.get(i)).get(3).toString() + "</td>");
  172.     out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt1.get(i)).get(4).toString() + "</td>");
  173.     out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt1.get(i)).get(5).toString() + "</td>");
  174.     out.println("</tr>");
  175. }
  176. %>
  177.             </table>
  178.           </td>
  179.           </td>
  180.         </tr>
  181.         <tr>
  182.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">个人简历:</font></td>
  183.           <td align="left" valign="middle" colspan="2"> <%=((Vector)vt.get(0)).get(10).toString()%>&nbsp;</td>
  184.           </td>
  185.         </tr>
  186.         <tr>
  187.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">备注:</font></td>
  188.           <td align="left" valign="middle" colspan="2"> <%=((Vector)vt.get(0)).get(11).toString()%>&nbsp;</td>
  189.           </td>
  190.         </tr>
  191.         </table>
  192.         <p align="right">
  193.             <input type="button" value="家庭成员管理" onclick="window.open('FamilyMemberManage.jsp?PersonnelID=<%=((Vector)vt.get(0)).get(0).toString()%>','_blank','height=500,top=50,left=100,width=650,status=no,toolbar=no,menubar=no,location=no');window.close();">
  194.             <input type="button" value="关闭" onclick="window.close()">
  195.         </p>
  196.         </td>
  197.     </tr>
  198. </table>
  199. </body>
  200. </html>
  201. <%
  202. }
  203. else
  204. {
  205. %>
  206. <script language="JavaScript" type="text/JavaScript">
  207. alert("该记录已经被删除或者您没有权限查看此记录,查看资料失败!");
  208. history.back();
  209. </script>
  210. <%
  211. }
  212. }
  213. %>