<%@ page contentType="text/html;charset=gbk" %>
<%@ 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="/sessionInfo.jsp"%>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link href="<%=strSkin_SESSION%>/css2007.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="/share/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 width="600" border="1" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" class="tableClass" cellpadding="3" cellspacing="0">
  <tr>
    <td width="100" align="right">员工编号</td>
    <td><input type="text" name="YGBH" value="<%=szUserInfo.getYGBH()%>" class="txtClass1" readonly></td>

    <td width="100" align="right">性别</td>
    <td>
        <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>
    <td width="100" align="right">证件类型</td>
    <td><input type="text" name="YGZJLX" value="<%=szUserInfo.getYGZJLX()%>" class="txtClass1"></td>

    <td width="100" align="right">出生年月</td>
    <td><input type="text" name="YGSR" value="<%=szUserInfo.getYGSR()%>" class="txtClass1"></td>
  </tr>

  <tr>
    <td width="100" align="right">证件号码</td>
    <td colspan="3"><input type="text" name="YGSFZ" value="<%=szUserInfo.getYGSFZ()%>"  class="txtClass2"></td>
  </tr>

  <tr>
    <td width="100" align="right">手机号码</td>
    <td><input type="text" name="YGSJ" value="<%=szUserInfo.getYGSJ()%>" class="txtClass1"></td>

    <td width="100" align="right">联系电话</td>
    <td><input type="text" name="YGDH" value="<%=szUserInfo.getYGDH()%>" class="txtClass1"></td>
  </tr>
  <tr>
    <td width="100" align="right">传真号码</td>
    <td><input type="text" name="YGCZ" value="<%=szUserInfo.getYGCZ()%>" class="txtClass1"></td>

    <td width="100" align="right">电子邮箱</td>
    <td><input type="text" name="YGYX" value="<%=szUserInfo.getYGYX()%>" class="txtClass1"></td>
  </tr>
  <tr>
    <td width="100" align="right">MSN帐号</td>
    <td><input type="text" name="YGMSN" value="<%=szUserInfo.getYGMSN()%>" class="txtClass1"></td>

    <td width="100" align="right">QQ帐号</td>
    <td><input type="text" name="YGQQ" value="<%=szUserInfo.getYGQQ()%>" class="txtClass1"></td>
  </tr>
  <tr>
    <td width="100" align="right">联系地址</td>
    <td colspan="3"><input type="text" name="YGDZ" value="<%=szUserInfo.getYGDZ()%>" class="txtClass2"></td>
  </tr>
  <tr>
    <td width="100" align="right">工作职责</td>
    <td colspan="3"><textarea name="YGZW" rows="5" class="areaClass2"><%=szUserInfo.getYGZW()%></textarea></td>
  </tr>
  <tr>
    <td width="100" align="right">个人简介</td>
    <td colspan="3"><textarea name="YGJJ" rows="5" class="areaClass2"><%=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>