master
parent
e11f2495ce
commit
fbc11cb6fa
@ -0,0 +1,3 @@
|
||||
/out/
|
||||
/target/
|
||||
/web/config/
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/zhyw.iml" filepath="$PROJECT_DIR$/zhyw.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 48 KiB |
@ -0,0 +1,357 @@
|
||||
<%@page import="com.zky.zhyw.smwj.FileProvideManageServlet"%>
|
||||
<%@page import="java.sql.PreparedStatement"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="com.zky.para.Para"%>
|
||||
<%@include file="/auth.jsp"%>
|
||||
<%@page language="java" contentType="text/html;charset=utf-8"%>
|
||||
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara" />
|
||||
<%
|
||||
String fileState = "";
|
||||
String secret = "";
|
||||
String writeDate = "";
|
||||
String year[] = null;
|
||||
String sj = Common.convertNull(request.getParameter("sj"));
|
||||
String qj = Common.convertNull(request.getParameter("qj"));
|
||||
String departId = Common.convertNull(request.getParameter("departId"));
|
||||
String fileName = Common.convertNull(request.getParameter("fileName"));
|
||||
String optrid = login_obj.optrid;
|
||||
String optrjob = getPara.getDesc("TAB_EMPLOYEE","EMPID","EMPJOB",optrid);
|
||||
Login login = (Login) request.getSession().getAttribute("login");
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title>涉密文件登记管理</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../css/font.css">
|
||||
<script src="/js/check.js"></script>
|
||||
<script src='http://localhost:8000/CLodopfuncs.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;
|
||||
}
|
||||
html { overflow-x:hidden; overflow-y:hidden; }
|
||||
#myGrid .gridHead{
|
||||
height: 50px;
|
||||
line-height: 50px;
|
||||
background-color: #cce7f5;
|
||||
color: #000;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
#myGrid .gridHead .gridRow{
|
||||
display: flex;
|
||||
justify-content: start;
|
||||
}
|
||||
#myGrid .gridHead span{
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
border-right: 1px solid #000000;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
#myGrid .gridHead span:nth-child(1){
|
||||
width: 100px;
|
||||
}
|
||||
#myGrid .gridHead span:nth-child(2){
|
||||
width: 200px;
|
||||
}
|
||||
#myGrid .gridHead span:nth-child(3){
|
||||
width: 180px;
|
||||
}
|
||||
#myGrid .gridHead span:nth-child(4){
|
||||
width: 280px;
|
||||
}
|
||||
#myGrid .gridHead span:nth-child(5){
|
||||
width: 150px;
|
||||
}
|
||||
#myGrid .gridHead span:nth-child(6){
|
||||
width: 200px;
|
||||
}
|
||||
#myGrid .gridHead span:nth-child(7){
|
||||
width: 150px;
|
||||
}
|
||||
#myGrid .gridHead span:nth-child(8){
|
||||
width: 265px;
|
||||
border-right: none;
|
||||
}
|
||||
#myGrid .gridBody .gridRow{
|
||||
height: 30px;
|
||||
/*margin-top: 5px;*/
|
||||
display: flex;
|
||||
justify-content: start;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #000;
|
||||
color: #000;
|
||||
}
|
||||
#myGrid .gridBody .gridRow span{
|
||||
width: 148px;
|
||||
display: inline-block;
|
||||
border-right: 1px solid;
|
||||
text-align: center;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
#myGrid .gridBody .gridRow span:nth-child(1){
|
||||
width: 100px;
|
||||
}
|
||||
#myGrid .gridBody .gridRow span:nth-child(2){
|
||||
width: 200px;
|
||||
}
|
||||
#myGrid .gridBody .gridRow span:nth-child(3){
|
||||
width: 180px;
|
||||
}
|
||||
#myGrid .gridBody .gridRow span:nth-child(4){
|
||||
width: 280px;
|
||||
}
|
||||
#myGrid .gridBody .gridRow span:nth-child(5){
|
||||
width: 150px;
|
||||
}
|
||||
#myGrid .gridBody .gridRow span:nth-child(6){
|
||||
width: 200px;
|
||||
}
|
||||
#myGrid .gridBody .gridRow span:nth-child(7){
|
||||
width: 150px;
|
||||
}
|
||||
#myGrid .gridBody .gridRow span:nth-child(8){
|
||||
width: 265px;
|
||||
border-right: none;
|
||||
}
|
||||
#myGrid .gridBody .gridRow span a,#myGrid .gridBody .gridRow span img,#myGrid .gridBody .gridRow span input {
|
||||
margin-right: 6px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
form{
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
<OBJECT id="PSKPrn" classid="clsid:81C07687-3353-4ABA-B108-94BCE81E5CBA"
|
||||
codebase="/smwj/wjff/PSKPrn_94BCE81E5CBA.ocx#version=1,0,0,3" width="0" height="0"> </OBJECT>
|
||||
<script type="text/javascript">
|
||||
function checkprint(fileIdsprint,filenum,filename,filedate,filecount,fileman,departid){
|
||||
alert("正在打印二维码请耐心等待.....................");
|
||||
var filecount1=document.getElementById(filecount).value;
|
||||
if(filecount1==""){
|
||||
alert("请输入打印份数");
|
||||
}
|
||||
alert("你本次打印的张数为:"+filecount1+" 张");
|
||||
for (i = 1; i <= filecount1; i++) {
|
||||
if (i < 10) {
|
||||
j = i;
|
||||
j = '0' + j;
|
||||
} else {
|
||||
j = i;
|
||||
}
|
||||
PSKPrn.OpenPort("POSTEK C168 200s");
|
||||
PSKPrn.PTKClearBuffer();
|
||||
PSKPrn.PTKSetLabelHeight(240, 20);
|
||||
PSKPrn.PTKSetLabelWidth(400);
|
||||
PSKPrn.PTKSetDarkness(10);
|
||||
PSKPrn.PTKSetPrintSpeed(4);
|
||||
var countnum=fileIdsprint+'^'+filenum+'^'+filename+'^'+filedate+'^'+fileman;
|
||||
//alert(countnum);
|
||||
PSKPrn.PTKDrawBar2DPdf417(26,80,400,240,1,0,2,4,33,7,0,0,countnum);
|
||||
PSKPrn.PTKDrawTextTrueTypeW(26, 26, 16, 0, "宋体", 3, 400, false, false, false, "A1", ""+filenum+departid+j);
|
||||
//打印份数
|
||||
PSKPrn.PTKPrintLabel(1,1);
|
||||
PSKPrn.ClosePort();
|
||||
}
|
||||
form1.action="/servlet/FileProvideManage?operate=queryFileProvide";
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
function setValue() {
|
||||
<%if (!Common.isNull(sj)) {
|
||||
out.println("form1.sj.value='" + sj + "';");
|
||||
}
|
||||
if (!Common.isNull(qj)) {
|
||||
out.println("form1.qj.value='" + qj + "';");
|
||||
}
|
||||
if (!Common.isNull(departId)) {
|
||||
out.println("form1.pcs.value='" + departId + "';");
|
||||
}%>
|
||||
}
|
||||
function check(operate,fileid) {
|
||||
form1.operate.value=operate;
|
||||
if (operate == "readAridSchool") {
|
||||
form1.action="/servlet/FileProvideManage?operate=readAridSchool";
|
||||
}
|
||||
if (operate == "editFile") {
|
||||
form1.action = "/servlet/FileWriteManage?operate=editFile&fileId=" +fileid;
|
||||
}
|
||||
if(operate=="importExcel")
|
||||
{
|
||||
form1.action = "/zhyw/smwj/wjff/ImportExcelData.jsp";
|
||||
}
|
||||
if (operate == "queryFileProvide"){
|
||||
form1.action = "/servlet/FileProvideManage?operate=queryFileProvide";
|
||||
|
||||
}
|
||||
form1.button1.disabled=true;
|
||||
form1.button2.disabled=true;
|
||||
form1.button3.disabled=true;
|
||||
form1.submit();
|
||||
}
|
||||
function selectChange(i)
|
||||
{
|
||||
form1.action = "/zhyw/smwj/wjff/fileProvideManage.jsp";
|
||||
form1.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="setValue();" scroll="no" >
|
||||
<form name="form1" method="post" action="/servlet/FileProvideManage">
|
||||
<table width="99%" border="0" 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"
|
||||
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"> <b>涉密文件登记</b></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td width="75%" background="/images/tab_search_03.jpg"><img
|
||||
src="/images/tab_search_02.jpg" width="12" height="23"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="operate" value="" />
|
||||
<table width="100%" border="0" align="center" cellpadding="2"
|
||||
cellspacing="1" bgcolor="#FFFFFF" class="table02">
|
||||
<tr bgcolor="#FFFFFF">
|
||||
<td class="cell1">所属市州</td>
|
||||
<td class="cell2"><select class='aselect' name="sj" id="sj" onChange="selectChange(1);">
|
||||
<%=Para.getSj(getPara)%>
|
||||
</select></td>
|
||||
<td class="cell1">所属区县</td>
|
||||
<td class="cell2"><select class='aselect' name="qj"
|
||||
setValue="<%=qj%>" onChange="selectChange(1);">
|
||||
<%=Para.getQj(getPara, sj)%>
|
||||
</select></td>
|
||||
<td class="cell1">发文单位</td>
|
||||
<td class="cell2"><select class='aselect' name="pcs"
|
||||
setValue="<%=departId%>">
|
||||
<%=Para.getXx(getPara, qj)%>
|
||||
</select></td>
|
||||
<td class="cell1">文件名称</td>
|
||||
<td class="cell2"><input type="text" style="width: 155px;"
|
||||
id="fileName" name="fileName" /></td>
|
||||
<td class="cell1" align="left">
|
||||
<input type="image" name="button1" src="/images1/cx.png" onClick="check('queryFileProvide');"/>
|
||||
</td>
|
||||
<td class="cell2"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="99%" align="center" style="margin-bottom: -2px;">
|
||||
<tr align="left">
|
||||
<td>
|
||||
<%if(login.getSanyuan().equals("0")){ %>
|
||||
<input name="button2" onclick="check('readAridSchool');" type="image" src="/images1/tj.png"/>
|
||||
<input name="button3" onclick="check('importExcel');" type="image" src="/images1/pl.png"/>
|
||||
<%}else if(login.getSanyuan().equals("1")){ %>
|
||||
|
||||
<%}else { %>
|
||||
<input name="button2" onclick="check('readAridSchool');" type="image" src="/images1/xj.png"/>
|
||||
<%} %>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
<%
|
||||
HashFmlBuf buf = (HashFmlBuf) request.getAttribute("provideBuf");
|
||||
if (buf != null) {
|
||||
int rowcount = buf.getRowCount();
|
||||
%>
|
||||
<table width="99%" style="height: 86%" border="0" cellpadding="0" cellspacing="1" class="box">
|
||||
<tr>
|
||||
<td>
|
||||
<div style="width: 100%; height: 96%; overflow: auto;">
|
||||
<div id="myGrid" class="2k3Grid" borderWidth="0"
|
||||
contextMenu="mnuGridContextMenu" altRowColor="oldLace">
|
||||
<div class="gridHead">
|
||||
<!--div align="left"><span width="5%">共检索到<%=rowcount%>条记录</span></div-->
|
||||
<div class="gridRow">
|
||||
<span width="5px" style="text-align: center;">序号</span>
|
||||
<span style="text-align: center;">打印份数</span>
|
||||
<span width="22px">文件名称</span>
|
||||
<span width="14px">文 号</span>
|
||||
<span width="20px">发文单位</span>
|
||||
<span width="10px">发文人员</span>
|
||||
<span width="10px">发文日期</span>
|
||||
<span width="10px">管理</span>
|
||||
<%-- <span width="10px">管理</span>--%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="gridBody">
|
||||
<%
|
||||
for (int i = 0; i < rowcount; i++) {
|
||||
String tempDeptid = buf.fget("file_id", i);
|
||||
String tempFrameworkid = buf.fget("frameworkid", i);
|
||||
%>
|
||||
<div class="gridRow">
|
||||
<span width="5px" style="text-align: center;"><%=i+1%></span>
|
||||
<span><input type="text" id="printnum<%=i+1%>" name="printnum<%=i+1%>" style="width: 20px;" maxlength="2" > 份</span>
|
||||
<span width="23px"><%=buf.fget("file_name", i)%></span>
|
||||
<span><%=buf.fget("file_num", i)%>号</span>
|
||||
<span><%=buf.fget("departname", i)%></span>
|
||||
<span><%=buf.fget("empname", i)%></span>
|
||||
<span><%=buf.fget("provide_date",i)%></span>
|
||||
<span>
|
||||
<%if(login.getSanyuan().equals("0")){ %>
|
||||
<a title="预览" href="/servlet/FileProvideManage?operate=showFileProvide&provideId=<%=buf.fget("file_id", i)%>">
|
||||
<img src="/images1/read_document.png" border="0" alt="预览"/></a>
|
||||
<a onclick="return confirm('您确定要删除此信息吗?');" href="/servlet/FileProvideManage?operate=deletePropertyNetUse&Infos=<%=buf.fget("file_id",i) %>">
|
||||
<img src="../../images1/delete.gif" border="0" alt="删除"/></a>
|
||||
<input type="image" class="box_button" id="btnPrintImage" name="btnPrintImage"
|
||||
onclick="checkprint(fileIdsprint='<%=buf.fget("file_id", i)%>',filenum='<%=buf.fget("file_num", i)%>' ,
|
||||
filename=' <%=buf.fget("file_name", i)%>' ,filedate=' <%=buf.fget("provide_date", i)%>' ,
|
||||
filecount='printnum<%=i+1%>' ,fileman=' <%=buf.fget("empname", i)%>' ,
|
||||
departid='<%=buf.fget("departname", i)%>')" src="/images1/print.png" title="打印"/>
|
||||
<%}else if(login.getSanyuan().equals("1")){ %>
|
||||
<a title="预览" href="/servlet/FileProvideManage?operate=showFileProvide&provideId=<%=buf.fget("file_id", i)%>">
|
||||
<img src="/images1/read_document.png" border="0" alt="预览"/></a>
|
||||
<%}else { %>
|
||||
<a title="预览" href="/servlet/FileProvideManage?operate=showFileProvide&provideId=<%=buf.fget("file_id", i)%>">
|
||||
<img src="/images1/read_document.png" border="0" alt="预览"/></a>
|
||||
<a onclick="return confirm('您确定要删除此信息吗?');" href="/servlet/FileProvideManage?operate=deletePropertyNetUse&Infos=<%=buf.fget("file_id",i) %>"><img src="../../images1/delete.gif" border="0" alt="删除"/></a>
|
||||
<input type="image" class="box_button" id="btnPrintImage" name="btnPrintImage" onclick="checkprint(fileIdsprint='<%=buf.fget("file_id", i)%>',filenum='<%=buf.fget("file_num", i)%>' ,filename=' <%=buf.fget("file_name", i)%>' ,filedate=' <%=buf.fget("provide_date", i)%>' ,filecount='printnum<%=i+1%>' ,fileman=' <%=buf.fget("empname", i)%>' ,departid='<%=buf.fget("departname", i)%>')" src="/images1/print.png" title="打印"/>
|
||||
<%} %>
|
||||
</span>
|
||||
<%-- <span--%>
|
||||
<%-- width="20px" style="text-align: center;"> <input--%>
|
||||
<%-- type="button" class="box_button" id="btnPrintImage"--%>
|
||||
<%-- name="btnPrintImage"--%>
|
||||
<%-- onclick="checkprint(fileIdsprint='<%=buf.fget("file_id", i)%>',filenum='<%=buf.fget("file_num", i)%>' ,--%>
|
||||
<%-- filename=' <%=buf.fget("file_name", i)%>' ,filedate=' <%=buf.fget("provide_date", i)%>' ,--%>
|
||||
<%-- filecount='printnum<%=i+1%>' ,fileman=' <%=buf.fget("empname", i)%>' ,departid='<%=buf.fget("departname", i)%>')"--%>
|
||||
<%-- value="打印" />--%>
|
||||
<%-- </span>--%>
|
||||
</div>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</div>
|
||||
<!-- gridBody end -->
|
||||
</div>
|
||||
<!-- myGrid end -->
|
||||
</div>
|
||||
<tag:PageLinkTag operate="queryFileProvide" scope="request" width="99%" align="center" />
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<%@include file="/foot.jsp"%>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue