|
|
|
|
|
|
|
|
|
<%@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"/>
|
|
|
|
|
<%
|
|
|
|
|
//String filevalidity=(String)request.getAttribute("filevalidity");
|
|
|
|
|
|
|
|
|
|
String secret="";
|
|
|
|
|
String schoolid = (String)request.getAttribute("schoolid");
|
|
|
|
|
String targetDepartid=(String)request.getAttribute("targetDepartid");
|
|
|
|
|
String areaid1 = Common.convertNull(request.getParameter("areaid"));
|
|
|
|
|
// String deptid1 = Common.convertNull(request.getParameter("deptid"));
|
|
|
|
|
String frameworkid1 = Common.convertNull(request.getParameter("frameworkid"));
|
|
|
|
|
String schoolid1=Common.convertNull(request.getParameter("schoolid"));
|
|
|
|
|
String targetDepartid1=Common.convertNull(request.getParameter("targetDepartid"));
|
|
|
|
|
String employeeId=(String)request.getAttribute("writeempid");
|
|
|
|
|
String employeeId1=Common.convertNull(request.getParameter("writeempid"));
|
|
|
|
|
String filevalidity=(String)request.getAttribute("filevalidity");
|
|
|
|
|
String fileTitle=(String)request.getAttribute("fileTitle");
|
|
|
|
|
String fileCode=(String)request.getAttribute("fileCode");
|
|
|
|
|
String fileName=(String)request.getAttribute("fileName");
|
|
|
|
|
String fileDescribe=(String)request.getAttribute("fileDescribe");
|
|
|
|
|
String purpose=(String)request.getAttribute("purpose");
|
|
|
|
|
String remark=(String)request.getAttribute("remark");
|
|
|
|
|
//String manageDeptId=(String)request.getAttribute("")
|
|
|
|
|
HashFmlBuf bufs=(HashFmlBuf)request.getAttribute("bufEmployee"); //读取学生编号
|
|
|
|
|
HashFmlBuf fileBufs=(HashFmlBuf)request.getAttribute("fileBuf");
|
|
|
|
|
HashFmlBuf releaseBuf=(HashFmlBuf)request.getAttribute("releaseBuf");
|
|
|
|
|
String fileSecret="";
|
|
|
|
|
|
|
|
|
|
String provideLevel="";
|
|
|
|
|
|
|
|
|
|
String instancyExtent="";
|
|
|
|
|
HashFmlBuf targetDepart=(HashFmlBuf)request.getAttribute("deptBuf");
|
|
|
|
|
// HashFmlBuf bufWriteEmp=(HashFmlBuf)request.getAttribute("bufEmployee");
|
|
|
|
|
String areaid=(String)request.getAttribute("areaid");
|
|
|
|
|
HashFmlBuf receiveBuf=(HashFmlBuf)request.getAttribute("recoverBuf");
|
|
|
|
|
String studentid=(String)request.getAttribute("studentid");
|
|
|
|
|
if(receiveBuf.fget("file_secret",0).toString().trim().equals("1"))
|
|
|
|
|
{
|
|
|
|
|
fileSecret="秘密";
|
|
|
|
|
}
|
|
|
|
|
else if(receiveBuf.fget("file_secret",0).toString().trim().equals("2"))
|
|
|
|
|
{
|
|
|
|
|
fileSecret="机密";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
fileSecret="绝密";
|
|
|
|
|
}
|
|
|
|
|
if(receiveBuf.fget("provide_level",0).toString().trim().equals("0"))
|
|
|
|
|
{
|
|
|
|
|
provideLevel="发往区县";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
provideLevel="发往地市";
|
|
|
|
|
}
|
|
|
|
|
if(receiveBuf.fget("instancy_extent",0).toString().trim().equals("1"))
|
|
|
|
|
{
|
|
|
|
|
instancyExtent="急件";
|
|
|
|
|
}
|
|
|
|
|
else if(receiveBuf.fget("instancy_extent",0).toString().trim().equals("2"))
|
|
|
|
|
{
|
|
|
|
|
instancyExtent="加急";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
instancyExtent="普通";
|
|
|
|
|
}
|
|
|
|
|
%>
|
|
|
|
|
|
|
|
|
|
<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 checkNumber()
|
|
|
|
|
{
|
|
|
|
|
if(form1.recoverCount.value!="" && !parseInt(form1.recoverCount.value))
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
alert("文件回收数量只能输入数字");
|
|
|
|
|
form1.recoverCount.value="";
|
|
|
|
|
form1.recoverCount.focus();
|
|
|
|
|
return ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function setValue()
|
|
|
|
|
{
|
|
|
|
|
<%
|
|
|
|
|
if(!Common.isNull(frameworkid1))
|
|
|
|
|
{
|
|
|
|
|
out.println("form1.frameworkid.value='" + frameworkid1 + "';");
|
|
|
|
|
}
|
|
|
|
|
if(!Common.isNull(areaid1))
|
|
|
|
|
{
|
|
|
|
|
out.println("form1.areaid.value='" + areaid1 + "';");
|
|
|
|
|
}
|
|
|
|
|
if(!Common.isNull(schoolid1))
|
|
|
|
|
{
|
|
|
|
|
out.println("form1.schoolid.value='" + schoolid1 + "';");
|
|
|
|
|
}
|
|
|
|
|
if(!Common.isNull(employeeId1))
|
|
|
|
|
{
|
|
|
|
|
out.println("form1.writeempid.value='" + schoolid1 + "';");
|
|
|
|
|
}
|
|
|
|
|
if(!Common.isNull(fileCode))
|
|
|
|
|
{
|
|
|
|
|
out.println("form1.fileCode.value='" + fileCode + "';");
|
|
|
|
|
}
|
|
|
|
|
if(!Common.isNull(fileName))
|
|
|
|
|
{
|
|
|
|
|
out.println("form1.fileName.value='" + fileName + "';");
|
|
|
|
|
}
|
|
|
|
|
if(!Common.isNull(filevalidity))
|
|
|
|
|
{
|
|
|
|
|
out.println("form1.filevalidity.value='" + filevalidity + "';");
|
|
|
|
|
}
|
|
|
|
|
if(!Common.isNull(fileTitle))
|
|
|
|
|
{
|
|
|
|
|
out.println("form1.fileTitle.value='" + fileTitle + "';");
|
|
|
|
|
}
|
|
|
|
|
if(!Common.isNull(fileDescribe))
|
|
|
|
|
{
|
|
|
|
|
out.println("form1.fileDescribe.value='" + fileDescribe + "';");
|
|
|
|
|
}
|
|
|
|
|
if(!Common.isNull(remark))
|
|
|
|
|
{
|
|
|
|
|
out.println("form1.remark.value='" + remark + "';");
|
|
|
|
|
}
|
|
|
|
|
if(!Common.isNull(purpose))
|
|
|
|
|
{
|
|
|
|
|
out.println("form1.purpose.value='" + purpose + "';");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
%>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function queryStatistics(operate)
|
|
|
|
|
{
|
|
|
|
|
form1.operate.value=operate;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function check(operate)
|
|
|
|
|
{
|
|
|
|
|
form1.operate.value=operate;
|
|
|
|
|
form1.operate.value=operate;
|
|
|
|
|
if(operate=="addFileRecover"){
|
|
|
|
|
|
|
|
|
|
if(form1.schoolid.value=="")
|
|
|
|
|
{
|
|
|
|
|
alert("请选择回收单位");
|
|
|
|
|
form1.schoolid.focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(form1.writeempid.value=="")
|
|
|
|
|
{
|
|
|
|
|
alert("请选择回收人员");
|
|
|
|
|
form1.writeempid.focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if(form1.recoverCount.value=="")
|
|
|
|
|
{
|
|
|
|
|
alert("请输入回收份数");
|
|
|
|
|
form1.recoverCount.focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
form1.submit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getClass(parasm){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var optiontext="";
|
|
|
|
|
|
|
|
|
|
for (i = 1; i < document.getElementById(parasm).length; i++) {
|
|
|
|
|
|
|
|
|
|
if (document.getElementById(parasm).options[i].selected == true) {
|
|
|
|
|
optiontext = document.getElementById(parasm).options[i].value;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(optiontext!=""){
|
|
|
|
|
|
|
|
|
|
//通过区县读取学校
|
|
|
|
|
|
|
|
|
|
if(parasm=="areaid"){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
location="/servlet/FileRecoverManage?operate=readAridSchool&areaid="+optiontext;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(parasm=="schoolid"){
|
|
|
|
|
location="/servlet/FileRecoverManage?operate=readEmployeeByDepartment&schoolid="+optiontext+"&areaid=<%=areaid%>&provideId=<%=receiveBuf.fget("provide_id",0)%>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (parasm=="typeInfo") {
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
document.getElementById(parasm).value=="2" || document.getElementById(parasm).value=="3" || document.getElementById(parasm).value=="5"||
|
|
|
|
|
document.getElementById(parasm).value=="6"||document.getElementById(parasm).value=="7" || document.getElementById(parasm).value=="8" ||
|
|
|
|
|
document.getElementById(parasm).value=="9") {
|
|
|
|
|
//document.getElementById("termInfo").disabled=true;
|
|
|
|
|
}else {
|
|
|
|
|
//document.getElementById("termInfo").disabled=false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function checklength(el,size){
|
|
|
|
|
if(el.value.length > size){
|
|
|
|
|
alert("字数超过限制");
|
|
|
|
|
}
|
|
|
|
|
el.value = el.value.substring(0,size);
|
|
|
|
|
}
|
|
|
|
|
function checkval(){
|
|
|
|
|
|
|
|
|
|
if (form1.classtu.value == "") {
|
|
|
|
|
alert("请选择班级!");
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</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/FileRecoverManage">
|
|
|
|
|
<input type="hidden" name="operate" />
|
|
|
|
|
<input type="hidden" name="operateId" id="operateId" value="<%=receiveBuf.fget("operate_id",0)%>">
|
|
|
|
|
<input type="hidden" name="borrowId" id="borrowId" value="<%=receiveBuf.fget("borrow_id",0)%>"/>
|
|
|
|
|
<input type="hidden" name="provideId" id="provideId" value="<%=receiveBuf.fget("provide_id",0)%>"/>
|
|
|
|
|
<input type="hidden" name="school" name="school" value="<%=receiveBuf.fget("borrow_departid",0)%>"/>
|
|
|
|
|
<input type="hidden" name="empId" id="empId" value="<%=receiveBuf.fget("borrow_staffid",0)%>"/>
|
|
|
|
|
<br>
|
|
|
|
|
<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="schoolid" id="schoolid" onchange="getClass('schoolid')">
|
|
|
|
|
<%
|
|
|
|
|
HashFmlBuf bufschool=(HashFmlBuf)request.getAttribute("writeDepartment");
|
|
|
|
|
if(bufschool!=null && bufschool.getRowCount()>0){
|
|
|
|
|
%>
|
|
|
|
|
<option value="">--请选择--</option>
|
|
|
|
|
<%
|
|
|
|
|
for(int i=0;i<bufschool.getRowCount();i++){
|
|
|
|
|
%>
|
|
|
|
|
<option value="<%=bufschool.fget("DEPARTID",i) %>" <%if(bufschool.fget("DEPARTID",i).equals(schoolid)){%> selected="selected" <%} %>><%=bufschool.fget("DEPARTNAME",i) %></option>
|
|
|
|
|
<%
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
%>
|
|
|
|
|
<option value="">无单位信息</option>
|
|
|
|
|
<%
|
|
|
|
|
}
|
|
|
|
|
%>
|
|
|
|
|
</select><font color="#ff0000">*</font>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td class="cell1">回收人员</td>
|
|
|
|
|
<td class="td1">
|
|
|
|
|
<select class='aselect' name="writeempid" id="writeempid">
|
|
|
|
|
<%
|
|
|
|
|
if(bufs!=null && bufs.getRowCount()>0){
|
|
|
|
|
%>
|
|
|
|
|
<option value="" selected="selected">--请选择--</option>
|
|
|
|
|
<%
|
|
|
|
|
for(int i=0;i<bufs.getRowCount();i++){
|
|
|
|
|
%>
|
|
|
|
|
<option value="<%=bufs.fget("EMPID",i) %>" <%if(bufs.fget("EMPID",i).equals(employeeId)){%> selected="selected" <%} %>><%=bufs.fget("EMPNAME",i) %></option>
|
|
|
|
|
<%
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
%>
|
|
|
|
|
<option value="" selected="selected">无人员信息</option>
|
|
|
|
|
<%
|
|
|
|
|
}
|
|
|
|
|
%>
|
|
|
|
|
</select><font color="#ff0000">*</font>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr bgcolor="#FFFFFF">
|
|
|
|
|
<td class="cell1">归还单位</td>
|
|
|
|
|
<td class="cell2">
|
|
|
|
|
<input type="text" style="width:155px;" id="deptName" name="deptName" value="<%=receiveBuf.fget("departname",0)%>" readonly="readonly">
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td class="cell1">归还人员</td>
|
|
|
|
|
<td class="td1">
|
|
|
|
|
<input type="text" style="width:155px;" id="empName" name="empName" value="<%=receiveBuf.fget("empname",0)%>" readonly="readonly">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr bgcolor="#FFFFFF">
|
|
|
|
|
<td class="cell1">归还文件</td>
|
|
|
|
|
<td class="cell2">
|
|
|
|
|
<input type="text" style="width:155px;" id="fileName" name="fileName" readonly="readonly" value="<%=receiveBuf.fget("file_name",0)%>"/>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="cell1">归还份数</td>
|
|
|
|
|
<td class="cell2">
|
|
|
|
|
<input type="text" style="width:155px;" id="recoverCount" name="recoverCount" onKeyUp="value=value.replace(/[^\d|]/g,'')" maxlength="3" value="<%=receiveBuf.fget("borrow_count",0)%>"/>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr bgcolor="#FFFFFF">
|
|
|
|
|
<td class="cell1">文件密级</td>
|
|
|
|
|
<td class="cell2">
|
|
|
|
|
<input type="text" style="width:155px;" readonly="readonly" id="secret" name="secret" value="<%=fileSecret%>"/>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="cell1">脱密期</td>
|
|
|
|
|
<td class="cell2"><input type="text" style="width:155px;" readonly="readonly" id="fileRelease" name="fileRelease" value="<%=receiveBuf.fget("release_year",0)+"年"%>"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr bgcolor="#FFFFFF" class="tr2">
|
|
|
|
|
<td style="color: #41247B" colspan="4">
|
|
|
|
|
备注:
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr bgcolor="#FFFFFF" class="tr2">
|
|
|
|
|
<td colspan="4">
|
|
|
|
|
<textarea onblur="checklength(this,200)" maxlength="300" name="remark" id="remark" rows="3" cols="93"></textarea>
|
|
|
|
|
<font color="red">(注:限200字符内)</font>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
<table width="90%" align="center">
|
|
|
|
|
<tr align="center">
|
|
|
|
|
<td><input type="button" name="button1" value=" 提交 " class="box_button" onclick="check('addFileRecover');"/>
|
|
|
|
|
|
|
|
|
|
<input type="button" name="button2" value=" 返回 " class="box_button" onclick="history.back();"/>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<%@include file="/foot.jsp"%>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|