FamilyMemberManage.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:7k
源码类别:
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); %>
- <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="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
- <script language="JavaScript" src="/js/changestyle.js"></script>
- <script language="JavaScript" type="text/javascript">
- function checkAddFamilyMember()
- {
- if(document.addfamilymember.Name.value=="")
- {
- alert("请输入姓名!");
- document.addfamilymember.Name.focus();
- return false;
- }
- if(document.addfamilymember.BirthDate.value!="")
- {
- if(!isDate(document.addfamilymember.BirthDate.value))
- {
- alert("日期格式错误,请按照“2002-02-18”重新输入!");
- document.addfamilymember.BirthDate.focus();
- return false;
- }
- }
- }
- </script>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <%
- Request t_request = new Request(request);
- int intPersonnelID = 0;
- intPersonnelID = t_request.GetInt("PersonnelID");
- Vector vt = FamilyMemberManager.getAllRecord(intPersonnelID);
- %>
- <p align="center">
- <b>
- 员工“<%=((Vector)PersonnelManager.getRecordByID(intPersonnelID).get(0)).get(1).toString()%>”家庭成员管理
- </b>
- </p>
- <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>
- <th width="11%" nowrap><font color="#000000">修改</font></th>
- <th width="11%" nowrap><font color="#000000">删除</font></th>
- </tr>
- <%
- for(int i=0;i<vt.size();i++)
- {
- String strID = ((Vector)vt.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)vt.get(i)).get(1).toString() + "</td>");
- out.println("<td align="center" valign="middle" nowrap>" + StringNew.GetDateString(((Vector)vt.get(i)).get(2).toString(),"yyyy-MM-dd") + "</td>");
- out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(3).toString() + "</td>");
- out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(4).toString() + "</td>");
- out.println("<td align="center" valign="middle" nowrap>" + ((Vector)vt.get(i)).get(5).toString() + "</td>");
- out.println("<td align="center" valign="middle" nowrap><a href="EditFamilyMember.jsp?ID=" + strID + "&PersonnelID="+intPersonnelID + "">修改</a></td>");
- out.println("<td align="center" valign="middle" nowrap><a href="DelFamilyMember.jsp?ID=" + strID + "&PersonnelID="+intPersonnelID + "" onclick="return confirm('您确实要删除该家庭成员吗?');">删除</a></td>");
- out.println("</tr>");
- }
- %>
- </table>
- <form name="addfamilymember" action="AddFamilyMemberAction.jsp" method="post" onSubmit="javascript:return checkAddFamilyMember();">
- <table border="0" cellpadding="0" cellspacing="0" width="90%">
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">姓名:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="Name" type="text" maxlength="50" size="20">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">出生日期:</font></td>
- <td align="left" valign="middle" nowrap>
- <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);">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">关系:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="Relation" type="text" maxlength="50" size="20">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">职务:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="Place" type="text" maxlength="50" size="20">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">工作单位:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="Company" type="text" maxlength="50" size="20">
- <input name="PersonnelID" type="hidden" value="<%=intPersonnelID%>">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A"> </font></td>
- <td align="left" valign="middle" nowrap>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td align="left" valign="middle" nowrap>
- <input type="submit" value="添加"> <input type="reset" value="重填"> <input type="button" value="关闭" onclick="window.close()">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>