<%@include file="/auth.jsp"%>
<%@page import="com.zky.manager.Util" %>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
	HashFmlBuf buf=(HashFmlBuf)request.getAttribute("by_leaveState");
Login login = (Login) request.getSession().getAttribute("login");
String levateid=buf.fget("leave_Id",0);
%>
<!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>
<title>涉密人员管理</title>
<link href="../../../css/font.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../../../js/date.js"></script>
<script type="text/javascript" src="../../../js/check.js"></script>
<script type="text/javascript">

function check(operate,levateid) {
	form1.operate.value=operate;
	if (operate == "queryLeaveUpdate") {
		form1.action = "/servlet/LeaveManage?operate=queryLeaveUpdate&levateid=" + levateid;
	}
	if (operate == "queryLeaveUpdate1") {
		form1.action = "/servlet/LeaveManage?operate=queryLeaveUpdate1&levateid=" + levateid;
	}
	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/LeaveManage">
<input type="hidden" name="operate" value=""/>
<input type="hidden" name="submitbtn" value=""/>
<input type="hidden" name="empid" value="<%=buf.fget("empid",0) %>"/>
<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%"  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">
		<%=buf.fget("AREADEF",0) %>
		</td>	
		<td class="cell1">所属区县</td>
		<td class="cell2">
		<%=buf.fget("FRAMEWORKNAME",0) %>
		</td>
		<td class="cell1">所属单位</td>
		<td class="cell2">
		<%=buf.fget("DEPARTNAME",0) %>
		</td>	
		</tr>
		<tr bgcolor="#FFFFFF">
		<td class="cell1" style="line-height: 30px;">人员姓名</td>
		<td class="cell2">
		<%=buf.fget("empname",0) %>
		</td>
		<td class="cell1">人员编码</td>
		<td class="cell2">
		<%=buf.fget("empid",0) %>
		</td>
			<td class="cell1" style="line-height: 30px;">审批人</td>
		<td class="cell2">
		<%=login.getEmpname()%>
		</td>
		</tr>
		<tr bgcolor="#FFFFFF">
		 <td class="cell1" style="line-height: 30px;">工作交接</td>
    <td class="cell2">
    <%=buf.fget("workreason",0)%>
    </td>
		<td class="cell1">入职时间</td>
		<td class="cell2" colspan="3">
		<%=buf.fget("leave_time",0) %>
		</td>	
		</tr>
		<tr bgcolor="#FFFFFF">
		
		<td class="cell1" style="line-height: 30px;">离职原因</td>
		<td class="cell2" colspan="5">
			<%=SM4.SM4Decrypt(Base64.decode(buf.fget("leave_reason",0))) %></td>
		</tr>
		<tr bgcolor="#FFFFFF">
		<td class="cell1" style="line-height: 30px;">领导意见</td>
         <td class="cell2" colspan="5">
         <textarea rows="10" cols="85" name="leaveReason"></textarea>
        
        </td>
		</tr>
	</table>
	
	 </td>
  </tr>
  <br>
</table>
	<table width="99%" align="center">
		<tr align="center">
		<td>
		<input border="0"  type="image"  src="../../images1/tg.png" alt="通过" onclick="check('queryLeaveUpdate','<%=levateid%>')"/> 
		<input border="0"  type="image"  src="../../images1/btg.png" alt="不通过" onclick="check('queryLeaveUpdate1','<%=levateid%>')"/> 
	  <a href="javascript:history.go(-1)"><img src="../../images1/gb.png" alt="返回" border="0" /></a>
		</td>
		</tr>
	</table>
	</form>
</body>
</html>