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

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 iDepartmentID =m_request.GetInt("DepartmentID");
  7. Vector vt = PersonnelManager.getRecordByDepartmentID(iDepartmentID);
  8. %>
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  12. <title>员工信息管理-- GForce OA 2.0</title>
  13. <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  14. <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  15. <script language="JavaScript" src="/js/changestyle.js"></script>
  16. <script language="JavaScript" type="text/javascript">
  17. function checkAddPersonnel()
  18. {
  19.     if(document.addpersonnel.Number.value=="")
  20.     {
  21.         alert("请输入员工编号!");
  22.         document.addpersonnel.Number.focus();
  23.         return false;
  24.     }
  25.     if(document.addpersonnel.Name.value=="")
  26.     {
  27.         alert("请输入姓名!");
  28.         document.addpersonnel.Name.focus();
  29.         return false;
  30.     }
  31.     if(document.addpersonnel.DepartmentID.value=="0")
  32.     {
  33.         alert("请选择所属部门!");
  34.         document.addpersonnel.DepartmentID.focus();
  35.         return false;
  36.     }
  37.     if(document.addpersonnel.EducationID.value=="0")
  38.     {
  39.         alert("请选择教育程度!");
  40.         document.addpersonnel.EducationID.focus();
  41.         return false;
  42.     }
  43.     if(document.addpersonnel.MarriageID.value=="0")
  44.     {
  45.         alert("请选择婚姻状况!");
  46.         document.addpersonnel.MarriageID.focus();
  47.         return false;
  48.     }
  49.     if(document.addpersonnel.PlaceID.value=="0")
  50.     {
  51.         alert("请选择职务!");
  52.         document.addpersonnel.PlaceID.focus();
  53.         return false;
  54.     }
  55.     if(document.addpersonnel.TechnicalPostID.value=="0")
  56.     {
  57.         alert("请选择职称!");
  58.         document.addpersonnel.TechnicalPostID.focus();
  59.         return false;
  60.     }
  61.     if(document.addpersonnel.BirthDate.value!="")
  62.     {
  63.         if(!isDate(document.addpersonnel.BirthDate.value))
  64.         {
  65.             alert("日期格式错误,请按照“2002-02-18”重新输入!");
  66.             document.addpersonnel.BirthDate.focus();
  67.             return false;
  68.         }
  69.     }
  70. }
  71. </script>
  72. </head>
  73. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0" onload="javascript:for(var i=0;i<document.all.GoByDepartmentID.length;i++)if(document.all.GoByDepartmentID.options[i].value=='<%=iDepartmentID%>')document.all.GoByDepartmentID.selectedIndex=i;">
  74.    <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  75.     <tr>
  76.     <td align="center" valign="top">
  77.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  78.         <tr>
  79.           <td height="50" valign="top" background="../images/dy-back.gif">
  80.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  81.               <tr valign="middle">
  82.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  83.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">人事档案</font></strong></td>
  84.                 <td align="right" nowrap="nowrap" valign="bottom">
  85.                 <a href="AddPersonnel.jsp"><img src="/images/Single.gif" onMouseOver="this.src='/images/Single_a.gif';" onMouseOut="this.src='/images/Single.gif';" border="0" height="22" width="59">&nbsp;</a>
  86.                 <%
  87.                   //<!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59">&nbsp;-->
  88.                   //<!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59">&nbsp;-->
  89.                   //<!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59">&nbsp;-->
  90.                   //<!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59">&nbsp;-->
  91.                   //<!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79">&nbsp;-->
  92.                 %>
  93.                   </td>
  94.               </tr>
  95.             </table>
  96.           </td>
  97.         </tr>
  98.       </table>
  99. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  100.     <tr>
  101.         <td align="center" valign="top"><p>&nbsp;</p>
  102.             <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  103.                 <tr align="right" valign="middle">
  104.                     <th colspan="8" nowrap align="right"><font color="#0A0A0A">当前员工所属部门:</font>
  105.                         <select name="GoByDepartmentID"  id="GoByDepartmentID" onchange="javascript:self.location='PersonnelManage.jsp?DepartmentID='+this.value;">
  106.                         <option value="">请选择所属部门</option>
  107.                         <script language="JavaScript" src="/js/AddDepartment.jsp"></script>
  108.                         </select>
  109.                     </th>
  110.                 </tr>
  111.                  <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  112.                     <th width="6%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  113.                     <th width="6%" nowrap><font color="#000000">序号</font></th>
  114.                     <th width="6%" nowrap><font color="#000000">员工编号</font></th>
  115.                     <th width="15%" nowrap><font color="#000000">姓名</font></th>
  116.                     <th width="6%" nowrap><font color="#000000">性别</font></th>
  117.                     <th width="15%" nowrap><font color="#000000">办公室电话</font></th>
  118.                     <th width="11%" nowrap><font color="#000000">修改</font></th>
  119.                     <th width="11%" nowrap><font color="#000000">删除</font></th>
  120.                 </tr>
  121. <%
  122. for(int i=0;i<vt.size();i++)
  123. {
  124.     String strID = ((Vector)vt.get(i)).get(0).toString();
  125.     if(i % 2 == 0)
  126.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  127.     else
  128.         out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  129.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  130.     out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
  131.     out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(4).toString() + "</td>");
  132.     out.println("<td align="left" valign="middle" nowrap title="" + ((Vector)vt.get(i)).get(1).toString() + "" onclick="window.open('PersonnelLink.jsp?ID=" + strID + "','_blank','status=no,toolbar=no,menubar=no,location=no,scrollbars=1')"><a href='' onclick='return false;'>" + ((Vector)vt.get(i)).get(1).toString() + "</a></td>");
  133.     out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(2).toString() + "</td>");
  134.     out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(5).toString() + "&nbsp;</td>");
  135.     out.println("<td align="center" valign="middle" nowrap><a href="EditPersonnel.jsp?ID=" + strID + "">修改</a></td>");
  136.     out.println("<td align="center" valign="middle" nowrap><a href="DelPersonnel.jsp?ID=" + strID + "" onclick="return confirm('您确实要删除该员工吗?');">删除</a></td>");
  137.     out.println("</tr>");
  138. }
  139. %>
  140.             </table>
  141.         </td>
  142.     </tr>
  143. </table>
  144. </body>
  145. </html>