PersonnelLink.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:10k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <%
- Request m_request = new Request(request);
- int intPersonnelID = m_request.GetInt("ID");
- if(intPersonnelID<1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("请选择正确的员工,查看资料失败!");
- history.back();
- </script>
- <%
- }
- else
- {
- Vector vt = PersonnelManager.getRecordByID(intPersonnelID);
- if(vt.size()==1)
- {
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>员工管理-- GForce OA 2.0</title>
- <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" src="/js/changestyle.js"></script>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td align="center" valign="top">
- <p align="center"> </p>
- <p align="center"><b>员工个人基本资料</b></p>
- <table width="90%" border="1" cellpadding="0" cellspacing="0">
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">员工编号:</font></td>
- <td align="left" valign="middle"><%=((Vector)vt.get(0)).get(4).toString()%> </td>
- <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'>":" "%></td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">姓名:</font></td>
- <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(1).toString()%> </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">性别:</font></td>
- <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(2).toString()%> </td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">所属部门:</font></td>
- <td align="left" valign="middle"> <%
- //检索要选择的部门
- Vector vDepartment = DepartmentManager.getDepartmentData();
- for(int i=0;i<vDepartment.size();i++)
- {
- if (((Vector)vDepartment.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(13).toString()))
- out.print(((Vector)vDepartment.get(i)).get(1).toString());
- }
- %> </td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">职务:</font></td>
- <td align="left" valign="middle"> <%
- //检索要选择的职务
- Vector vPlace = PlaceManager.getAllRecord();
- for(int i=0;i<vPlace.size();i++)
- {
- if(((Vector)vPlace.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(16).toString()))
- out.print(((Vector)vPlace.get(i)).get(1).toString());
- }
- %> </td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">职称:</font></td>
- <td align="left" valign="middle"><%
- //检索要选择的职称
- Vector vTechnicalPost = TechnicalPostManager.getAllRecord();
- for(int i=0;i<vTechnicalPost.size();i++)
- {
- if (((Vector)vTechnicalPost.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(17).toString()))
- out.print(((Vector)vTechnicalPost.get(i)).get(1).toString());
- }
- %> </td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">教育程度:</font></td>
- <td align="left" valign="middle"> <%
- Vector vEducation = EducationManager.getAllRecord();
- for(int i=0;i<vEducation.size();i++)
- {
- if(((Vector)vEducation.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(14).toString()))
- out.print(((Vector)vEducation.get(i)).get(1).toString());
- }
- %> </td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">婚姻状况:</font></td>
- <td align="left" valign="middle"> <%
- //检索要选择的婚姻状况
- Vector vMarriage = MarriageStateManager.getAllRecord();
- for(int i=0;i<vMarriage.size();i++)
- {
- if (((Vector)vMarriage.get(i)).get(0).toString().equalsIgnoreCase(((Vector)vt.get(0)).get(15).toString()))
- out.print(((Vector)vMarriage.get(i)).get(1).toString());
- }
- %> </td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">出生日期:</font></td>
- <td align="left" valign="middle"> <%=StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"yyyy-MM-dd")%> </td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">办公室电话:</font></td>
- <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(5).toString()%> </td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">移动电话:</font></td>
- <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(6).toString()%> </td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">E-Mail:</font></td>
- <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>":""%> </td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">身份证号码:</font></td>
- <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(7).toString()%> </td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">家庭住址:</font></td>
- <td align="left" valign="middle" colspan="2"> <%=((Vector)vt.get(0)).get(8).toString()%> </td>
- </tr>
- <%
- Vector vt1 = FamilyMemberManager.getAllRecord(intPersonnelID);
- %>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">家庭成员:</font></td>
- <td align="center" valign="middle" colspan="2">
- <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
- <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
- <th width="6%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
- <th width="6%" nowrap><font color="#000000">序号</font></th>
- <th width="6%" nowrap><font color="#000000">姓名</font></th>
- <th width="8%" nowrap><font color="#000000">出生日期</font></th>
- <th width="6%" nowrap><font color="#000000">关系</font></th>
- <th width="8%" nowrap><font color="#000000">职务</font></th>
- <th width="20%" nowrap><font color="#000000">工作单位</font></th>
- </tr>
- <%
- for(int i=0;i<vt1.size();i++)
- {
- String strID = ((Vector)vt1.get(i)).get(0).toString();
- if(i % 2 == 0)
- out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
- else
- out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
- out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
- out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
- out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt1.get(i)).get(1).toString() + "</td>");
- out.println("<td align="center" valign="middle" nowrap>" + StringNew.GetDateString(((Vector)vt1.get(i)).get(2).toString(),"yyyy-MM-dd") + "</td>");
- out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt1.get(i)).get(3).toString() + "</td>");
- out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt1.get(i)).get(4).toString() + "</td>");
- out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt1.get(i)).get(5).toString() + "</td>");
- out.println("</tr>");
- }
- %>
- </table>
- </td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">个人简历:</font></td>
- <td align="left" valign="middle" colspan="2"> <%=((Vector)vt.get(0)).get(10).toString()%> </td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">备注:</font></td>
- <td align="left" valign="middle" colspan="2"> <%=((Vector)vt.get(0)).get(11).toString()%> </td>
- </td>
- </tr>
- </table>
- <p align="right">
- <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();">
- <input type="button" value="关闭" onclick="window.close()">
- </p>
- </td>
- </tr>
- </table>
- </body>
- </html>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("该记录已经被删除或者您没有权限查看此记录,查看资料失败!");
- history.back();
- </script>
- <%
- }
- }
- %>