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

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. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  7. <title>家庭成员管理-- GForce OA 2.0</title>
  8. <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  9. <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  10. <script language="JavaScript" src="/js/changestyle.js"></script>
  11. <script language="JavaScript" type="text/javascript">
  12. function checkAddFamilyMember()
  13. {
  14.     if(document.addfamilymember.Name.value=="")
  15.     {
  16.         alert("请输入姓名!");
  17.         document.addfamilymember.Name.focus();
  18.         return false;
  19.     }
  20.     if(document.addfamilymember.BirthDate.value!="")
  21.     {
  22.       if(!isDate(document.addfamilymember.BirthDate.value))
  23.       {
  24.           alert("日期格式错误,请按照“2002-02-18”重新输入!");
  25.           document.addfamilymember.BirthDate.focus();
  26.           return false;
  27.       }
  28.     }
  29. }
  30. </script>
  31. </head>
  32. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  33. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  34.     <tr>
  35.         <td align="center" valign="top"><p>&nbsp;</p>
  36. <%
  37. Request t_request = new Request(request);
  38. int intPersonnelID = 0;
  39.   intPersonnelID = t_request.GetInt("PersonnelID");
  40. Vector vt = FamilyMemberManager.getAllRecord(intPersonnelID);
  41. %>
  42.                 <p align="center">
  43.                   <b>
  44.                     员工“<%=((Vector)PersonnelManager.getRecordByID(intPersonnelID).get(0)).get(1).toString()%>”家庭成员管理
  45.                   </b>
  46.                 </p>
  47.             <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
  48.                 <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
  49.                     <th width="6%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
  50.                     <th width="6%" nowrap><font color="#000000">序号</font></th>
  51.                     <th width="6%" nowrap><font color="#000000">姓名</font></th>
  52.                     <th width="8%" nowrap><font color="#000000">出生日期</font></th>
  53.                     <th width="6%" nowrap><font color="#000000">关系</font></th>
  54.                     <th width="8%" nowrap><font color="#000000">职务</font></th>
  55.                     <th width="20%" nowrap><font color="#000000">工作单位</font></th>
  56.                     <th width="11%" nowrap><font color="#000000">修改</font></th>
  57.                     <th width="11%" nowrap><font color="#000000">删除</font></th>
  58.                 </tr>
  59. <%
  60. for(int i=0;i<vt.size();i++)
  61. {
  62.     String strID = ((Vector)vt.get(i)).get(0).toString();
  63.     if(i % 2 == 0)
  64.         out.println("<tr id="Row"+ i+ "" class="DataRowsSingle" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsSingle');">");
  65.     else
  66.         out.println("<tr id="Row"+ i+ "" class="DataRowsDouble" onmouseover="mouseon(this,'image" + i + "');" onmouseout="mouseout(this,'image" + i + "','DataRowsDouble');">");
  67.     out.println("<td align="right" valign="middle"><img id="image" + i + "" src="../images/lastpost1.gif" style="display:none;"> </td>");
  68.     out.println("<td align="right" valign="middle">" + (i+1) + "</td>");
  69.     out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(1).toString() + "</td>");
  70.     out.println("<td align="center" valign="middle" nowrap>" + StringNew.GetDateString(((Vector)vt.get(i)).get(2).toString(),"yyyy-MM-dd") + "</td>");
  71.     out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(3).toString() + "</td>");
  72.     out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(4).toString() + "</td>");
  73.     out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(5).toString() + "</td>");
  74.     out.println("<td align="center" valign="middle" nowrap><a href="EditFamilyMember.jsp?ID=" + strID + "&PersonnelID="+intPersonnelID + "">修改</a></td>");
  75.     out.println("<td align="center" valign="middle" nowrap><a href="DelFamilyMember.jsp?ID=" + strID + "&PersonnelID="+intPersonnelID + "" onclick="return confirm('您确实要删除该家庭成员吗?');">删除</a></td>");
  76.     out.println("</tr>");
  77. }
  78. %>
  79.             </table>
  80.             <form name="addfamilymember" action="AddFamilyMemberAction.jsp" method="post" onSubmit="javascript:return checkAddFamilyMember();">
  81.             <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  82.                 <tr>
  83.                     <td align="right" valign="middle"><font color="#0A0A0A">姓名:</font></td>
  84.                     <td align="left" valign="middle" nowrap>
  85.                         <input name="Name" type="text" maxlength="50" size="20">
  86.                     </td>
  87.                 </tr>
  88.                 <tr>
  89.                     <td align="right" valign="middle"><font color="#0A0A0A">出生日期:</font></td>
  90.                     <td align="left" valign="middle" nowrap>
  91.                         <input name="BirthDate" type="text" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value,-100,-2);" maxlength="20" size="20" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value,-100,-2);">
  92.                    </td>
  93.                 </tr>
  94.                 <tr>
  95.                     <td align="right" valign="middle"><font color="#0A0A0A">关系:</font></td>
  96.                     <td align="left" valign="middle" nowrap>
  97.                         <input name="Relation" type="text" maxlength="50" size="20">
  98.                    </td>
  99.                 </tr>
  100.                 <tr>
  101.                     <td align="right" valign="middle"><font color="#0A0A0A">职务:</font></td>
  102.                     <td align="left" valign="middle" nowrap>
  103.                         <input name="Place" type="text" maxlength="50" size="20">
  104.                    </td>
  105.                 </tr>
  106.                 <tr>
  107.                     <td align="right" valign="middle"><font color="#0A0A0A">工作单位:</font></td>
  108.                     <td align="left" valign="middle" nowrap>
  109.                         <input name="Company" type="text" maxlength="50" size="20">
  110.                         <input name="PersonnelID" type="hidden" value="<%=intPersonnelID%>">
  111.                    </td>
  112.                 </tr>
  113.                 <tr>
  114.                     <td align="right" valign="middle"><font color="#0A0A0A">&nbsp;</font></td>
  115.                     <td align="left" valign="middle" nowrap>
  116.                    </td>
  117.                 </tr>
  118.                 <tr>
  119.                     <td align="right" valign="middle">&nbsp;</td>
  120.                     <td align="left" valign="middle" nowrap>
  121.                         <input type="submit" value="添加">  &nbsp;&nbsp;&nbsp; <input type="reset" value="重填">  &nbsp;&nbsp;&nbsp; <input type="button" value="关闭" onclick="window.close()">
  122.                     </td>
  123.                 </tr>
  124.             </table>
  125.             </form>
  126.         </td>
  127.     </tr>
  128. </table>
  129. </body>
  130. </html>