<%@page import="com.zky.pub.HashFmlBuf"%>
<%@page language="java" contentType="text/html;charset=utf-8"%>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>文件下发管理</title>
<link href="../../css/font.css" rel="stylesheet" type="text/css"></link>
<style>
.bt{text-align:center;}
body {
	background-color: #FFF;
    margin:0 auto; width:650px;
}
.partone{float:left; font-family:宋体; font-size:16px; font-weight:bolder;}
.main{float:left; font-family:宋体; font-size:14px; text-align:center;}
table{border-collapse:collapse; cellspacing="0px" cellpadding="0px"}
.maintwo{float:left;font-family:宋体; font-size:14px; text-align:center;}
.footer{float:left;font-family:宋体; font-size:14px; margin-left:500px; margin-top:10px;}
</style>
</head>
<%
          HashFmlBuf buf=(HashFmlBuf)request.getAttribute("provideBuf");
%>
<body>
<div class="bt">
<h1>庆阳市密级文件分发登记表</h1>
</div>
<div>
<table width="650" border="0" class="partone">
  <tr>
    <td width="8%">单位:</td>
    <td width="72%"><%=buf.fget("departname",0) %></td>
    <td width="8%">日期:</td>
    <td width="12%"><%=buf.fget("provide_date", 0) %></td>
  </tr>
</table>
</div>
<div class="main">
 <table width="650px" border="1">
  <tr>
    <td width="84" height="38">文件标题</td>
    <td width="470"><table width="577" border="0">
  <tr>
    <td width="423" height="32"><%=buf.fget("file_name", 0) %></td>
    <td width="53" style="border-right:1px #000 solid; border-left:1px #000 solid;">文号</td>
    <td width="87"><%=buf.fget("file_num",0) %></td>
  </tr>
</table>
</td>
  </tr>
  <tr>
    <td>密级及<br />保密期限</td>
    <td><table width="579" border="0">
  <tr>
    <td width="234">
          <%if(buf.fget("file_secret",0).equals("1")){ %>
    			秘密
    	  <%}else if(buf.fget("file_secret",0).equals("2")){ %>
    			机密
    	  <%}else{ %>绝密<%} %>&nbsp;&nbsp;
    </td>
    <td width="66" style="border-right:1px #000 solid; border-left:1px #000 solid;">紧急程度<br /></td>
    <td width="121">
          <%if(buf.fget("instancy_extent",0).equals("1")){ %>
    			急件
    	  <%}else if(buf.fget("instancy_extent",0).equals("2")){ %>
    			加急
    	  <%}else{ %>普通<%} %>
    </td>
  </tr>
</table>
</td>
  </tr>
  <tr>
    <td height="28">定密依据</td>
    <td><%=buf.fget("file_secretyj",0) %></td>
  </tr>
</table>

</div>
<div class="maintwo">
<table width="650px" border="1"cellspacing="0px" cellpadding="0px" style="border-top:none">
  <tr>
    <td width="25" height="28" style="border-top:none">文件编号</td>
    <td width="113" height="28" style="border-top:none">收文单位</td>
    <td width="56" height="28" style="border-top:none">发文份数</td>
    <td width="44"height="28" style="border-top:none">接收人签字</td>
    <td width="80"height="28" style="border-top:none">接收时间</td>
  </tr>
  <%
          HashFmlBuf buf1=(HashFmlBuf)request.getAttribute("provideBuf1");
	      if (buf1 != null) {
		    int rowcount = buf1.getRowCount();
		    for (int i=0; i<rowcount; i++) {
    %>
  <tr>
    <td height="28" width="10" align="center"><%=buf.fget("file_id",i)%></td>
    <td><%=buf1.fget("departname",i)%></td>
    <td><%=buf.fget("provide_count",i)%></td>
    <td><%=buf1.fget("empname",i)%></td>
    <td><%=buf1.fget("receive_date",i)%></td>
  </tr>
  <%
	      }
  %>
  <%
	      }
  %>
</table>
<br/>
<table align="right">
   <tr>
    <td><b>分发人:</b><%=buf.fget("empname",0) %></td>
  </tr>
</table>
<br/>
<table align="center">
   <tr>
    <td><%@include file="/print/print.jsp"%></td>
  </tr>
</table>
</div>
</body>
</html>