<%@page import="com.zky.para.Para"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="org.apache.jasper.tagplugins.jstl.core.ForEach"%><%@include file="/auth.jsp"%>
<%@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("destoryInfo");
String optrid = login_obj.optrid;
String optrjob = getPara.getDesc("TAB_EMPLOYEE","EMPID","EMPJOB",optrid);
%>
<html>
<head>
<title>文件销毁管理</title>
<link rel="stylesheet" type="text/css" href="../../../css/font.css">
<script src="/js/check.js"></script>
<link rel="stylesheet" type="text/css" href="../../../js/2k3Grid.css">
<link rel="stylesheet" type="text/css" href="../../../js/2k3Menu.css">
<link rel="stylesheet" type="text/css" href="../../../js/2k3Dialog.css">
<style type="text/css">
select
{
   width:155px;
}
</style>
<script>
function queryStatistics(operate)
{
	form1.operate.value=operate;
}
function check(operate)
{
	form1.operate.value=operate;
	if(operate=='backFileDestory'){
		form1.action = "/servlet/FileDestoryManage?operate=backFileDestory";
		form1.submit();
	}
	if(operate=="addFileDestory")
	{
		var destoryState=document.getElementById("destoryState");
		var selecvalue=destoryState.options[destoryState.selectedIndex].text; 
		if (!confirm("确定要销毁这份文件吗?")) {
			form1.action = "/servlet/FileDestoryManage?operate=queryFileDestory";
			return false;
		}
		return true;
	}
	return true;
	form1.submit();
}
</script>
</head>
<body>
<form name="form1" method="post" action="/servlet/FileDestoryManage">
<input type="hidden" name="operate" />
<table width="100%"  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="100%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="6%" align="right"><img src="/images/little_red.jpg" width="12" height="12"></td>
                <td width="94%" class="font12b">&nbsp;<b>文件销毁管理</b></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> 
<input type="text" name="receiveId"  value="<%=buf.fget("receive_Id",0) %>"/>
   <table width="98%"  border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
	    <tr bgcolor="#FFFFFF" height="30">
		<td class="cell1">文件标题</td>
		<td class="cell2">
		<input type="text" id="extractCount" name="fileTitle" value="<%=buf.fget("file_name",0) %>"/><font color="#ff0000">*</font>
		</td>		
		<td class="cell1">销毁数量</td>
   		<td class="td1">    		
   		<input type="text" id="extractCount" name="DestoryNum"  value="<%=buf.fget("provide_count",0) %>"/><font color="#ff0000">*</font>
		</td>
	    </tr>
	    <tr bgcolor="#FFFFFF" height="30">
		<td class="cell1">保密期限</td>
		<td class="cell2">
		<input type="text" id="extractCount" name="BmDate"  value="<%=buf.fget("RELEASE_SECRETID",0) %>"/><font color="#ff0000">*</font>
		</td>		
   		<td class="cell1">文件密级</td>
   		<td class="td1">	
   		<%
   		     String tempstate=buf.fget("file_secret",0);
		    if (tempstate.equals("1")) {
			tempstate = "秘密";
		       } 
	        else if(tempstate.equals("2")){
			  tempstate = "机密";
		     } else{
		    	 tempstate = "绝密";
		     }
   		 %>
   		<input type="text" id="extractCount" name="FileSecrt"  value="<%=tempstate%>"/><font color="#ff0000">*</font>
		</td>
	    </tr>
	     <tr bgcolor="#FFFFFF" height="30">
		<td class="cell1">文&nbsp;&nbsp;号</td>
		<td class="cell2">
		<input type="text" id="extractCount" name="Filenum"  value="<%=buf.fget("file_num",0) %>"/><font color="#ff0000">*</font>
		</td>		
		<td class="cell1">销毁方式</td>
   		<td class="td1">	
   		   <select class='aselect' name="destoryState" id="destoryState">
		   		<%=Para.getProductState(getPara,"FILEDESTORYTYPE")%>            					
			</select> 
		</td>
	    </tr>
	     <tr bgcolor="#FFFFFF" class="tr2">
    			<td style="color: #41247B;text-align: center;">
    				定密依据
    			</td>
    			<td colspan="3">
    				<textarea onblur="checklength(this,200)" maxlength="300" name="fileSecrety" id="remark" rows="3" cols="75"><%=buf.fget("FILE_SECRETYJ",0) %></textarea><font color="red">(注:限200字符内)</font>
    			</td>
    		</tr>
	    <tr bgcolor="#FFFFFF" class="tr2">
    			<td style="color: #41247B;text-align: center;">
    				销毁地点
    			</td>
    			<td colspan="3">
    				<textarea onblur="checklength(this,200)" maxlength="300" name="DestoryAddress" id="remark" rows="3" cols="75"></textarea><font color="red">(注:限200字符内)</font>
    			</td>
    		</tr>
    		<tr bgcolor="#FFFFFF" class="tr2">
    			<td style="color: #41247B;text-align: center;">
    				备注信息
    			</td>
    			<td colspan="3">
    				<textarea onblur="checklength(this,200)" maxlength="300" name="remark" id="remark" rows="3" cols="75"></textarea><font color="red">(注:限200字符内)</font>
    			</td>
    		</tr>
</table>
	<table width="98%" align="center">
		<tr align="center" height="40px" valign="middle">
		<td>
		    <input name="button1"  onclick="return check('addFileDestory');" type="image"  alt="保存" src="../../images1/bc1.png"/>&nbsp;&nbsp;
		    <input name="button2"  onClick="check('backFileDestory');" type="image"  alt="返回" src="../../images1/fh.png"/>
		</td>
		</tr>
	</table>
	</td>
	</tr>
	</table>
	</form>
	<%@include file="/foot.jsp"%>	
   	</body>
</html>