- <%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
- <%@ include file="../hear/hear.jsp"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title>员工信息修改</title>
- <link href="../css/work.css" rel="stylesheet" type="text/css" />
- <script src="../js/oa.js"></script>
- <style type="text/css">
- <!--
- .style1 {
- font-size: 16px;
- font-family: "宋体";
- color: #000000;
- font-weight: bold;
- }
- -->
- </style>
- </head>
- <body bgcolor="#FFFFDF">
- <table width="780" height="459" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
- <form name="form1" id="form1" method="post" action="save" onsubmit="return add()">
- <%
- Collection coll=(Collection)session.getAttribute("msgem");
- Collection colld=(Collection)session.getAttribute("msgd");
- Collection collj=(Collection)session.getAttribute("msgj");
- Collection colle=(Collection)session.getAttribute("msge");
- if(coll==null){
- out.print("colld");
- }else if(colld==null){
- out.print("colld");
- }else if(collj==null){
- out.print("colld");
- }else if(colld==null){
- out.print("colld");
- }else{
- %>
- <tr >
- <td height="22" colspan="4" align="center" background="../KCM/zs.gif" class="title style1" >员工信息修改</td>
- </tr>
- <%
- Iterator it=coll.iterator();
- if(it.hasNext()){
- Eminfo em=(Eminfo)it.next();
- %>
- <tr>
- <td height="27" align="center">员工序号:</td>
- <td width="385" height="25" align="left"><input name="id" type="text" value="<%=em.getId()%>" readonly/></td>
- </tr>
- <tr>
- <td width="393" height="27" align="center"> 姓 名:</td>
- <td align="left"><input name="name" type="text" maxlength="40" value="<%=em.getName()%>" /></td>
- </tr>
- <tr>
- <td height="27" align="center">性 别:</td>
- <td height="27" align="left">
- <input name="sex" type="radio" value="1"
- <%
- if(em.getSex()==1){
- out.print("checked");
- }
- %>
- />
- 男
- <input type="radio" name="sex" value="0"
- <%
- if(em.getSex()==0){
- out.print("checked");
- }
- %>
- />
- 女 </td>
- </tr>
- <tr>
- <td height="27" align="center"> 出生日期:</td>
- <td height="27" align="left"><input name="birthday" type="text" maxlength="11" value="<%=em.getBirthday()%>" />
- 年-月-日</td>
- </tr>
- <tr>
- <td height="27" align="center">学 历: </td>
- <td height="27" align="left"><input name="learn" type="text" size="20" maxlength="20" value="<%=em.getLearn()%>" /></td>
- </tr>
- <tr>
- <td height="27" align="center"> 职 称: </td>
- <td height="27" align="left"><input name="post" type="text" size="20" maxlength="20" value="<%=em.getPost()%>"/></td>
- </tr>
- <tr>
- <td height="27" align="center"> 部 门: </td>
- <td height="27" align="left"><select name="depid">
- <%
- Iterator itd=colld.iterator();
- while(itd.hasNext()){
- Department dep=(Department)itd.next();
- %>
- <option value="<%= dep.getId() %>"
- <%
- if(dep.getName().equals(em.getDepartment())){
- out.print("selected");
- }
- %>
- ><%= dep.getName() %></option>
- <%
- }
- %>
- </select></td>
- </tr>
- <tr>
- <td height="27" align="center"> 职 位: </td>
- <td height="27" align="left"><select name="jobid">
- <%
- Iterator itj=collj.iterator();
- while(itj.hasNext()){
- Job dep=(Job)itj.next();
- %>
- <option value="<%= dep.getId() %>"
- <%
- if(dep.getName().equals(em.getJob())){
- out.print("selected");
- }
- %>
- ><%= dep.getName() %></option>
- <%
- }
- %>
- </select></td>
- </tr>
- <tr>
- <td height="27" align="center"> 电 话: </td>
- <td height="27" align="left"><input name="tel" type="text" maxlength="40" value="<%=em.getTel()%>"/></td>
- </tr>
- <tr>
- <td height="27" align="center"> 具体地址: </td>
- <td height="27" align="left"><input name="addr" type="text" size="50" maxlength="200" value="<%=em.getAddr()%>"/></td>
- </tr>
- <tr>
- <td height="27" align="center"> 员工状态: </td>
- <td align="left"><select name="emsid">
- <%
- Iterator ite=colle.iterator();
- while(ite.hasNext()){
- Emstate dep=(Emstate)ite.next();
- %>
- <option value="<%= dep.getId() %>"
- <%
- if(dep.getName().equals(em.getState())){
- out.print("selected");
- }
- %>
- ><%= dep.getName() %></option>
- <%
- }
- }//it
- %>
- </select></td>
- </tr>
- <tr>
- <td height="40" colspan="2" align="center" class="advise">
- <%
- String msg=(String)request.getAttribute("msg");
- if(msg!=null){
- out.print(msg);
- request.removeAttribute("msg");
- }
- %>
- </td>
- </tr>
- <tr>
- <td height="40" colspan="2" align="center"><input type="submit" name="Submit" value="修改" />
-
- <input type="reset" name="Submit2" value="重置" />
-
- <input type="button" name="Submit22" value="返回" onclick="javascript:history.back(-1);"/></td>
- </tr>
- <%
- }
- %>
- </form>
- </table>
- </body>
- </html>