<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="net.sz600.tool.SzConvert" %>
<%@ page import="net.sz600.system.SzProperties" %>
<%@ page import="net.sz600.organize.SzUser" %>
<%@ page import="net.sz600.organize.SzUserInfo" %>
<%@ include file="/sessionInfoWeixin.jsp"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="format-detection" content="telephone=no" />
<%@ include file="/share/oa_app_title.jsp"%>
 <link href="<%=strLevel_SESSION%>app/images/soarwell_css.css" rel="stylesheet" type="text/css" />
</head>
<%
    //获取提交的参数
    String sPage = SzConvert.toZeroStr(request.getParameter("page"));
    String sSearch = SzConvert.strWriteData(request.getParameter("txtSearch"));
    //根据用户显示信息
%>
<%
    String sOPERATOR = request.getParameter("OPERATOR");
    sOPERATOR = "update";

    //读取数据
    SzUserInfo szUserInfo = null;
    SzUser szUser = new SzUser();
    szUserInfo = (SzUserInfo)szUser.getInfoByCond("YGDL=" + iDLID_SESSION);
    if (szUserInfo == null) {
    	szUserInfo = new SzUserInfo();
    }    
%>

<!-----上面的工具栏------>
<form name="formUpdate" method="post">
  <input type="hidden" name="page" value="<%=sPage%>">
  <input type="hidden" name="txtSearch" value="<%=sSearch%>">
  <input type="hidden" name="OPERATOR" value="<%=sOPERATOR%>">
  <input type="hidden" name="KEY" value="<%=szUserInfo.getYGID()%>">
  <input type="hidden" name="YGID" value="<%=szUserInfo.getYGID()%>">
  <input type="hidden" name="YGDL" value="<%=iDLID_SESSION%>">
<%@ include file="/app/title.jsp"%>
<table width="100%">
  <tr>    
    <td>
      <input type="button" name="btnSave" class="btnClass" value="保存" OnClick="javascript:FormSave(formUpdate, 'control.jsp');">
    </td>
  </tr>
</table>  
<table height="227" width="100%" border="0" cellspacing="3" cellpadding="3" style="border:#D7D7D9 1px solid;">
  <tr>
    <td><span class="product_content">员工编号</span>
    	<span class='padding5'></span><input type="text" name="YGBH" value="<%=szUserInfo.getYGBH()%>" class="txtClassR" readonly>   
    </td>
  </tr>
  
  <tr>
    <td><span class="product_content">性别</span>
    	<span class='padding5'></span>        
    		<input type="radio" name="YGXB" value="男" <% if(szUserInfo.getYGXB().equals("男") ) { %> checked <% } %> >男&nbsp;
        <input type="radio" name="YGXB" value="女" <% if(szUserInfo.getYGXB().equals("女") ) { %> checked <% } %> >女&nbsp;
        <input type="radio" name="YGXB" value="" <% if(szUserInfo.getYGXB().equals("") ) { %> checked <% } %> >不详&nbsp;   
    </td>
  </tr> 

  <tr>
    <td><span class="product_content">证件类型</span>
    	<span class='padding5'></span><input type="text" name="YGZJLX" value="<%=szUserInfo.getYGZJLX()%>" class="txtClass">        
    </td>
  </tr> 
  
   <tr>
    <td><span class="product_content">出生年月</span>
    	<span class='padding5'></span><input type="text" name="YGSR" value="<%=szUserInfo.getYGSR()%>" class="txtClass">        
    </td>
  </tr>
  
  <tr>
    <td><span class="product_content">证件号码</span>
    	<span class='padding5'></span><input type="text" name="YGSFZ" value="<%=szUserInfo.getYGSFZ()%>"  class="txtClass">        
    </td>
  </tr>
  
  <tr>
    <td><span class="product_content">手机号码</span>
    	<span class='padding5'></span><input type="text" name="YGSJ" value="<%=szUserInfo.getYGSJ()%>" class="txtClass">        
    </td>
  </tr>
  
  <tr>
    <td><span class="product_content">联系电话</span>
    	<span class='padding5'></span><input type="text" name="YGDH" value="<%=szUserInfo.getYGDH()%>" class="txtClass">        
    </td>
  </tr>
  
  <tr>
    <td><span class="product_content">传真号码</span>
    	<span class='padding5'></span><input type="text" name="YGCZ" value="<%=szUserInfo.getYGCZ()%>" class="txtClass">        
    </td>
  </tr>  
  
  <tr>
    <td><span class="product_content">电子邮箱</span>
    	<span class='padding5'></span><input type="text" name="YGYX" value="<%=szUserInfo.getYGYX()%>" class="txtClass">        
    </td>
  </tr>    
  
  <tr>
    <td><span class="product_content">MSN帐号</span>
    	<span class='padding5'></span><input type="text" name="YGMSN" value="<%=szUserInfo.getYGMSN()%>" class="txtClass">        
    </td>
  </tr> 
  
  <tr>
    <td><span class="product_content">QQ帐号</span>
    	<span class='padding5'><input type="text" name="YGQQ" value="<%=szUserInfo.getYGQQ()%>" class="txtClass"></span>        
    </td>
  </tr> 
  
  <tr>
    <td><span class="product_content">联系地址</span>
    	<span class='padding5'></span><input type="text" name="YGDZ" value="<%=szUserInfo.getYGDZ()%>" class="txtClass">     
    </td>
  </tr>
  
  <tr>
    <td><span class="product_content">工作职责</span>
    	<br><span class='padding5'></span> <textarea name="YGZW" rows="5" class="areaClass"><%=szUserInfo.getYGZW()%></textarea>       
    </td>
  </tr>  
  
  <tr>
    <td><span class="product_content">个人简介</span>
    	<br><span class='padding5'></span><textarea name="YGJJ" rows="5" class="areaClass"><%=szUserInfo.getYGJJ()%></textarea>        
    </td>
  </tr>  
                           
  	
</table>
</form>

<!-----这里包含要提交的内容--->
<form name="formHidden" method="post">
  <input type="hidden" name="page" value="<%=sPage%>">
  <input type="hidden" name="txtSearch" value="<%=sSearch%>">
</form>
<script language="javascript">
  //第一个表示对象，form，第二个表示字符串
  function FormSubmit(oFormName, vUrl) {
    oFormName.action = vUrl;
    oFormName.submit();
  }
</script>
<script language="javascript">
  function FormSave(formName, url) {
    //检查是否可以保存
    if (formName.YGBH.value == "") {
      formName.YGBH.focus();
      alert("员工编号不能为空");
      return false;
    }
    //提交
    formName.action = url;
    formName.submit();
  }
</script>
