change.jsp
上传用户:sxwtmm
上传日期:2022-08-11
资源大小:2183k
文件大小:5k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
  2. <%@ include file="../hear/hear.jsp"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  7. <title>员工信息修改</title>
  8. <link href="../css/work.css" rel="stylesheet" type="text/css" />
  9. <script src="../js/oa.js"></script>
  10. <style type="text/css">
  11. <!--
  12. .style1 {
  13. font-size: 16px;
  14. font-family: "宋体";
  15. color: #000000;
  16. font-weight: bold;
  17. }
  18. -->
  19. </style>
  20. </head>
  21. <body bgcolor="#FFFFDF">
  22. <table width="780" height="459" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  23. <form name="form1" id="form1" method="post" action="save" onsubmit="return add()">
  24. <%
  25. Collection coll=(Collection)session.getAttribute("msgem");
  26. Collection colld=(Collection)session.getAttribute("msgd");
  27. Collection collj=(Collection)session.getAttribute("msgj");
  28. Collection colle=(Collection)session.getAttribute("msge");
  29. if(coll==null){
  30. out.print("colld");
  31. }else if(colld==null){
  32. out.print("colld");
  33. }else if(collj==null){
  34. out.print("colld");
  35. }else if(colld==null){
  36. out.print("colld");
  37. }else{
  38. %>
  39.   <tr >
  40.     <td height="22" colspan="4" align="center" background="../KCM/zs.gif" class="title style1" >员工信息修改</td>
  41.   </tr>
  42. <%
  43. Iterator it=coll.iterator();
  44. if(it.hasNext()){
  45. Eminfo em=(Eminfo)it.next();
  46. %>
  47.   <tr>
  48.     <td height="27" align="center">员工序号:</td>
  49.     <td width="385" height="25" align="left"><input name="id" type="text"  value="<%=em.getId()%>" readonly/></td>
  50.   </tr>
  51.   <tr>
  52.     <td width="393" height="27" align="center"> 姓&nbsp;&nbsp;&nbsp;&nbsp;名:</td>
  53.     <td align="left"><input name="name" type="text" maxlength="40" value="<%=em.getName()%>" /></td>
  54.   </tr>
  55.   <tr>
  56.     <td height="27" align="center">性&nbsp;&nbsp;&nbsp;&nbsp;别:</td>
  57.     <td height="27" align="left">
  58.       <input name="sex" type="radio"  value="1"
  59. <%
  60. if(em.getSex()==1){
  61. out.print("checked");
  62. }
  63. %>
  64.  />
  65.   男
  66.       <input type="radio" name="sex" value="0" 
  67. <%
  68. if(em.getSex()==0){
  69. out.print("checked");
  70. }
  71. %>
  72.    />
  73.   女    </td>
  74.   </tr>
  75.   <tr>
  76.     <td height="27" align="center"> 出生日期:</td>
  77.     <td height="27" align="left"><input name="birthday" type="text" maxlength="11" value="<%=em.getBirthday()%>" />
  78.       年-月-日</td>
  79.   </tr>
  80.   <tr>
  81.     <td height="27" align="center">学&nbsp;&nbsp;&nbsp;&nbsp;历: </td>
  82.     <td height="27" align="left"><input name="learn" type="text" size="20" maxlength="20" value="<%=em.getLearn()%>" /></td>
  83.   </tr>
  84.   <tr>
  85.     <td height="27" align="center"> 职&nbsp;&nbsp;&nbsp;&nbsp;称: </td>
  86.     <td height="27" align="left"><input name="post" type="text" size="20" maxlength="20" value="<%=em.getPost()%>"/></td>
  87.   </tr>
  88.   <tr>
  89.     <td height="27" align="center"> 部&nbsp;&nbsp;&nbsp;&nbsp;门: </td>
  90.     <td height="27" align="left"><select name="depid">
  91. <%
  92. Iterator itd=colld.iterator();
  93. while(itd.hasNext()){
  94. Department dep=(Department)itd.next();
  95. %>
  96.       <option value="<%= dep.getId() %>" 
  97. <% 
  98. if(dep.getName().equals(em.getDepartment())){
  99. out.print("selected");
  100. }
  101. %>
  102. ><%= dep.getName() %></option>
  103. <%
  104. }
  105. %>
  106.     </select></td>
  107.   </tr>
  108.   <tr>
  109.     <td height="27" align="center"> 职&nbsp;&nbsp;&nbsp;&nbsp;位: </td>
  110.     <td height="27" align="left"><select name="jobid">
  111. <%
  112. Iterator itj=collj.iterator();
  113. while(itj.hasNext()){
  114. Job dep=(Job)itj.next();
  115. %>
  116.       <option value="<%= dep.getId() %>"
  117. <% 
  118. if(dep.getName().equals(em.getJob())){
  119. out.print("selected");
  120. }
  121. %>
  122.   ><%= dep.getName() %></option>
  123. <%
  124. }
  125. %>
  126.     </select></td>
  127.   </tr>
  128.   <tr>
  129.     <td height="27" align="center"> 电&nbsp;&nbsp;&nbsp;&nbsp;话: </td>
  130.     <td height="27" align="left"><input name="tel" type="text" maxlength="40" value="<%=em.getTel()%>"/></td>
  131.   </tr>
  132.   <tr>
  133.     <td height="27" align="center"> 具体地址: </td>
  134.     <td height="27" align="left"><input name="addr" type="text" size="50" maxlength="200" value="<%=em.getAddr()%>"/></td>
  135.   </tr>
  136.   <tr>
  137.     <td height="27" align="center"> 员工状态: </td>
  138.     <td align="left"><select name="emsid">
  139. <%
  140. Iterator ite=colle.iterator();
  141. while(ite.hasNext()){
  142. Emstate dep=(Emstate)ite.next();
  143. %>
  144.       <option value="<%= dep.getId() %>"
  145. <% 
  146. if(dep.getName().equals(em.getState())){
  147. out.print("selected");
  148. }
  149. %>
  150.   ><%= dep.getName() %></option>
  151. <%
  152. }
  153. }//it
  154. %>
  155.     </select></td>
  156.   </tr>
  157.   <tr>
  158. <td height="40" colspan="2" align="center" class="advise">
  159. <% 
  160. String msg=(String)request.getAttribute("msg");
  161. if(msg!=null){
  162. out.print(msg);
  163. request.removeAttribute("msg");
  164. }
  165. %>
  166. &nbsp;</td>
  167.     </tr>
  168.   <tr>
  169.     <td height="40" colspan="2" align="center"><input type="submit" name="Submit" value="修改" />
  170. &nbsp;&nbsp;
  171. <input type="reset" name="Submit2" value="重置" />
  172. &nbsp;&nbsp;
  173. <input type="button" name="Submit22" value="返回" onclick="javascript:history.back(-1);"/></td>
  174.   </tr>
  175. <%
  176. }
  177. %>
  178. </form>
  179. </table>
  180. </body>
  181. </html>