You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
204 lines
7.0 KiB
204 lines
7.0 KiB
1 year ago
|
<%@page import="com.zky.zhyw.smwj.FileProvideManageServlet"%>
|
||
|
<%@page import="java.sql.PreparedStatement"%>
|
||
|
<%@page import="java.sql.Connection"%>
|
||
|
<%@page import="com.zky.para.Para"%>
|
||
|
<%@page import="com.zky.zhyw.smwj.CreateFileIdUtils"%>
|
||
|
<%@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;
|
||
|
HashFmlBuf bufschool=(HashFmlBuf)request.getAttribute("writeDepartment"); //通过区县读取学校
|
||
|
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"));
|
||
|
%>
|
||
|
<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 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 == "add") {
|
||
|
form1.action="/zhyw/smwj/wjff/fileProvideManage.jsp";
|
||
|
}
|
||
|
if (operate == "provideFile") {
|
||
|
form1.action="/zhyw/smwj/wjff/fileProvideAdd.jsp?areaid="+"";
|
||
|
}
|
||
|
if (operate == "examineFile") {
|
||
|
|
||
|
form1.action = "/servlet/FileWriteManage?operate=examineFile&fileId=" +fileid;
|
||
|
}
|
||
|
if (operate == "editFile") {
|
||
|
form1.action = "/servlet/FileWriteManage?operate=editFile&fileId=" +fileid;
|
||
|
}
|
||
|
if (operate == "queryFileProvide"){
|
||
|
if (form1.sj.value=='') {
|
||
|
alert("请选择地市!");
|
||
|
form1.sj.focus();
|
||
|
return false;
|
||
|
}
|
||
|
if (form1.qj.value == "") {
|
||
|
alert("请选择区县!");
|
||
|
form1qj.focus();
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
form1.button1.disabled=true;
|
||
|
form1.submit();
|
||
|
}
|
||
|
function selectChange(i)
|
||
|
{
|
||
|
form1.action = "/zhyw/smwj/wjff/fileProvideManage.jsp";
|
||
|
form1.submit();
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body onload="setValue();">
|
||
|
<br>
|
||
|
<table width="90%" 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"> 文件下发管理</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>
|
||
|
<form name="form1" method="post" action="/servlet/FileProvideManage">
|
||
|
<input type="hidden" name="operate" value=""/>
|
||
|
<table width="90%" 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="90%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
|
||
|
<tr bgcolor="#FFFFFF">
|
||
|
<td class="cell1">所属地市</td>
|
||
|
<td class="cell2">
|
||
|
<select class='aselect' name="sj" id="sj">
|
||
|
<%=Para.getSj(getPara,login_obj)%>
|
||
|
</select><font color="#ff0000">*</font>
|
||
|
</td>
|
||
|
<td class="cell1">所属区县</td>
|
||
|
<td class="cell2">
|
||
|
<select class='aselect' name="qj" setValue="<%=qj%>" onChange="selectChange(1);">
|
||
|
<%=Para.getQj(getPara,login_obj,sj)%>
|
||
|
</select><font color="#ff0000">*</font>
|
||
|
</td></tr>
|
||
|
<tr bgcolor="#FFFFFF">
|
||
|
<td class="cell1">发文单位</td>
|
||
|
<td class="cell2">
|
||
|
<select class='aselect' name="pcs" setValue="<%=departId%>">
|
||
|
<%=Para.getXx(getPara,login_obj,qj)%>
|
||
|
</select>
|
||
|
</td>
|
||
|
<td class="cell1">发文人员</td>
|
||
|
<td class="cell2">
|
||
|
<input type="text" style="width:155px;" id="fileName" name="fileName"/>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<br>
|
||
|
<table width="90%" align="center">
|
||
|
<tr align="center">
|
||
|
<td>
|
||
|
<input type="button" name="button1" value=" 查询 " class="box_button" onclick="check('queryFileProvide');"/>
|
||
|
<input type="button" name="button2" value=" 新建 " class="box_button" onclick="check('provideFile');"/>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<br>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<br>
|
||
|
<%
|
||
|
HashFmlBuf buf = (HashFmlBuf) request.getAttribute("provideBuf");
|
||
|
if (buf != null) {
|
||
|
int rowcount = buf.getRowCount();
|
||
|
%>
|
||
|
<center>
|
||
|
<div style="width:90%; height:280px;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 width="10px" style="text-align: center;">操作</span>
|
||
|
<span width="13px">文件编号</span>
|
||
|
<span>文件名称</span>
|
||
|
<span>文 号</span>
|
||
|
<span>发文单位</span>
|
||
|
<span>发文人员</span>
|
||
|
<span>发文日期</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 width="20px" style="text-align: center;">
|
||
|
<input type="button" class="box_button" id="btnPrintImage" name="btnPrintImage" onclick="checkprint(provideId=<%=buf.fget("file_id",i)%>)" value="生成二维码"/>
|
||
|
</span>
|
||
|
<span width="13px"> <a target="_blank" title="预览" href="/servlet/FileProvideManage?operate=showFileProvideInfo&provideId=<%=buf.fget("file_id",i)%>"><%=tempDeptid%></a></span>
|
||
|
<span><%=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><%writeDate=buf.fget("provide_date",i);year=writeDate.split(" ");%>
|
||
|
<%=year[0]%></span>
|
||
|
</div>
|
||
|
<%
|
||
|
}
|
||
|
%>
|
||
|
</div>
|
||
|
<!-- gridBody end -->
|
||
|
</div>
|
||
|
<!-- myGrid end -->
|
||
|
</div>
|
||
|
<tag:PageLinkTag operate="queryFileProvidePage" scope="request" width="90%" align="center"/>
|
||
|
</form>
|
||
|
<%
|
||
|
}
|
||
|
%>
|
||
|
<%@include file="/foot.jsp"%>
|
||
|
</body>
|
||
|
</html>
|