<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
    String nationstate1="";
    String operate = (String)request.getParameter("operate");
    String empid = "";
    String empname         = "";
	String certname         = "";
	String certid         = "";
    String sj              = Common.convertNull(request.getParameter("sj"));
    String sex             = "";
    String birthday        = "";
    String empcontaddr     = "";
    String empcontphone    = "";
    String empcontmobphone = "";
    String empfaxnum       = "";
    String empidbegindate  = "";
    String empidenddate    = "";
    String empemail        = "";
    String qj              = Common.convertNull(request.getParameter("qj"));
    String school          = "";
    String readonly        = "";
	String nationstate="";
	String submitbtn="";
	String empage="";
	String emphabby="";
	String empjob="";
	String empeducational="";
	String empfamname="";
	String empfamage="";
	String empfamrelate="";
	String empfamjob="";
	String empschool="";
	String emppolitics="";
	String emphomeAddress="";
	String areaid="";
	String frameworkid="";
	String nationstates="";
	if (operate.equals("modifyEmp")) {
		HashFmlBuf buf = (HashFmlBuf)request.getAttribute("emp_info_by_empid");
			int pos = 0;
		   areaid  = buf.fget("AREADEF        ",pos);
		   frameworkid  = buf.fget("FRAMEWORKNAME        ",pos);
			empid           = buf.fget("empid        ",pos);
			empname         = buf.fget("empname        ",pos);
			certname         = buf.fget("certname        ",pos);
			certid         = buf.fget("certid       ",pos);
			sj              = buf.fget("frameworkid    ",pos);
			birthday        = Common.convertNull(buf.fget("birthday ",pos)).substring(0,10);
			sex             = buf.fget("sex            ",pos);
			empcontaddr     = buf.fget("empcontaddr    ",pos);
			empcontphone    = buf.fget("empcontphone   ",pos);
			empcontmobphone = buf.fget("empcontmobphone",pos);
			empfaxnum       = buf.fget("empfaxnum      ",pos);
			empidbegindate  = Common.convertNull(buf.fget("empidbegindate ",pos)).substring(0,10);
			empidenddate    = Common.convertNull(buf.fget("empidenddate   ",pos)).substring(0,10);
			empemail        = buf.fget("empemail       ",pos);
			qj              = buf.fget("areaid    ",pos);
			school          = buf.fget("DEPARTNAME    ",pos);
			nationstate=buf.fget("nationstate", pos);
			empage=buf.fget("empage", pos);
			emphabby=buf.fget("emphabby", pos);
			empjob=buf.fget("empjob", pos);
			empeducational=buf.fget("empeducational", pos);
			empfamname=buf.fget("empfamname", pos);
			empfamage=buf.fget("empfamage", pos);
			empfamrelate=buf.fget("empfamrelate", pos);
			empfamjob=buf.fget("empfamjob", pos);
			empschool=buf.fget("empschool", pos);
			emppolitics=buf.fget("emppolitics", pos);
			emphomeAddress=buf.fget("emphomeAddress", pos);
		    readonly="readonly";
	} else {
		empidbegindate = DateTime.DateToStr(new Date());
		empidenddate = "2050-12-31";
	}

%>
<html>
<head>
<title>涉密人员查看</title>
<link href="../../../css/font.css" rel="stylesheet" type="text/css">
<script src="../../../js/date.js"></script>
<script src="../../../js/check.js"></script>
<script type="text/javascript">

function check(operate,empid) {
	form1.operate.value=operate;
	if (operate == "queryExamineByEmpId") {
		form1.action = "	/servlet/ExmManage?operate=queryExamineByEmpId&empid=" + empid;
	}
	form1.button1.disabled=true;
	if (form1.button3){
		form1.button3.disabled=false;		
	}
	form1.submit();
}
</script>
<style type="text/css">
html { overflow-x:hidden; overflow-y:hidden; } 
.aselect{
	width: 155px;
}
</style>
</head>
<body onload="setValue();">
<form name="form1" method="post" action="/servlet/EmpManage">
<input type="hidden" name="operate" value=""/>
<input type="hidden" name="submitbtn" value=""/>
		<table width="99%"  border="0" align="center" cellpadding="0" cellspacing="1" class="box">
  <tr>
    <td valign="top"><table width="100%" height="23"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="25%" background="/images/tab_search_01.jpg"><table width="80%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="3%"><img src="/images/little_red.jpg" width="12" height="12"></td>
                <td width="97%" class="font12b">&nbsp;涉密人员详细信息</td>
              </tr>
          </table></td>
          <td width="82%" background="/images/tab_search_03.jpg"><img src="/images/tab_search_02.jpg" width="12" height="23"></td>
        </tr>
      </table>               

	<table width="99%" style="height: 35" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tr>
		<td width="3%"><img src="/images/little.gif" width="12" height="12"></td>
		<td width="97%" class="font12">基本信息</td>
	  </tr>
	</table>	
	<table width="99%"   border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
	  	<tr bgcolor="#FFFFFF">
		<td class="cell1" style="line-height: 30px;">所属地市</td>
		<td class="cell2"  width="22%">
				<%=frameworkid%>
		</td>	
		<td class="cell1">所属区县</td>
		<td class="cell2"  width="22%">
			<%=areaid%>
		</td>
		<td class="cell1">所属单位</td>
		<td class="cell2">
		<%=school%>
		</td>		
		</tr>
		<tr bgcolor="#FFFFFF">
		<td class="cell1" style="line-height: 30px;">人员姓名</td>
		<td class="cell2">
		<%=empname%>
		</td>
		<td class="cell1">人员编码</td>
		<td class="cell2">
      <%=empid%>
		</td>
			<td class="cell1">政治面貌</td>
		<td class="cell2">
				<%=emppolitics %>
		   	<%					
		       if(emppolitics.equals("0") ){
	            %>
	       党员
	            <%
	             }else if(emppolitics.equals("1") ){
	             %>
	        团员
	           <%
	            	 }else if(emppolitics.equals("2") ){
	            %>	
	        群众
               <%} %>				
	
		</td>	
		</tr>

		<tr bgcolor="#FFFFFF">
			<td class="cell1" style="line-height: 30px;">UKEY名称</td>
			<td class="cell2">
				<%=certname%>
			</td>
			<td class="cell1">UKEY id</td>
			<td class="cell2">
				<%=certid%>
			</td>
		</tr>

		<tr bgcolor="#FFFFFF">
		<td class="cell1" style="line-height: 30px;">性别</td>
		<td class="cell2">
	         <%
	             if(sex.equals("1") ){
	            %>
	            男
	            <%
	             }else{
	             %>
	             女
	           <%
	            	 }
	            %>
		</td>
		<td class="cell1">出生年月</td>
		<td class="cell2">
		<%=birthday%>
		</td>
		<td class="cell1">拟任岗位</td>
		<td class="cell2">
			<%=empjob%>        					
		     <%
	             if(empjob.equals("0") ){
	            %>
	           核心涉密岗位
	            <%
	             }else if(empjob.equals("1") ){
	             %>
	            重要涉密岗位
	           <%
	            	 }else if(empjob.equals("2") ){
	            %>
	            一般涉密岗位
	            <%}else if(empjob.equals("3") ){
		        %>
		        审计人员岗位
		        <%}else if(empjob.equals("4") ){
		      %>
		      管理员岗位
		      <%}else if(empjob.equals("4") ){
		    	  %>
		    	  销毁人员岗位
		    	  <%} %>
					</td>
		</tr>
		<tr bgcolor="#FFFFFF">
		<td class="cell1" style="line-height: 30px;">涉密程度</td>
		<td class="cell2">
		<%=empschool %>
			<%
		       if(empschool.equals("0") ){
	            %>
	        核心
	            <%
	             }else if(empschool.equals("1") ){
	             %>
	           核心
	           <%
	            	 }else if(empschool.equals("2") ){
	            %>
	            一般
               <%} %>
		</td>


		<td colspan="4"></td>
		</tr>
	</table>
	<table width="99%" style="height: 35" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tr>
		<td width="3%"><img src="/images/little.gif" width="12" height="12"></td>
		<td width="97%" class="font12">详细信息</td>
	  </tr>
	</table>	

   <table width="99%"  border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
	  <tr bgcolor="#FFFFFF">
		<td class="cell1" style="line-height: 30px;">联系地址</td>
		<td class="cell2"  width="22%">
			<%=empcontaddr%>
		</td>	
		<td class="cell1">联系电话</td>
		<td class="cell2"  width="22%">
			<%=empcontphone%>
		</td>		
			<td class="cell1">手机号码</td>
		<td class="cell2">
		<%=empcontmobphone%>
		</td>
		</tr>
		<tr bgcolor="#FFFFFF">
		<td class="cell1" style="line-height: 30px;">传真号码</td>
		<td class="cell2">
			<%=empfaxnum%>
		<td class="cell1">邮箱</td>
		<td class="cell2">
		<%=empemail%>
		</td>
	    <td class="cell1">籍贯</td>
		<td class="cell2">
			<%=emphomeAddress%>
		</td>	
		</tr>
		<tr bgcolor="#FFFFFF">
		<td class="cell1" style="line-height: 30px;">学历</td>
		<td class="cell2">
		<%=empeducational%>
		</td>		
	 	<td class="cell1">健康状况</td>
		<td class="cell2">
			<%=emphabby%>
		</td>
		<td class="cell1">家人姓名</td>
		<td class="cell2">
		<%=empfamname%>
		</td>
		</tr>
		<tr bgcolor="#FFFFFF">
		<td class="cell1" style="line-height: 30px;">家人职位</td>
		<td class="cell2">
			<%=empfamjob%>
		</td>	
				<td class="cell1">生效日期</td>
		<td class="cell2">
		<%=empidbegindate%>
		</td>	
		<td class="cell1">失效日期</td>
		<td class="cell2">
		<%=empidenddate%>
		</td>	
		</tr>

</table>
	<br>   
	<table width="99%" align="center">
		<tr align="center">
		<td>
		<input border="0"  type="image"  src="../../../images1/tg.png" alt="通过" onclick="check('queryExamineByEmpId','<%=empid%>')"/> 
		  <a href="javascript:history.go(-1)"><img src="../../../images1/btg.png" alt="不通过" border="0" /></a>
	  <a href="javascript:history.go(-1)"><img src="../../../images1/gb.png" alt="关闭" border="0" /></a>
		</td>
		</tr>
	</table>	
	 </td>
  </tr>
</table>
</form>
</body>
</html>