📄 stayarchivesamend.jsp
字号:
<%--
模块名称:待归档案件管理
模块功能:修改
版 本:V1.0
著 作 人:SIMM
著作日期:2001-10-25
该模块所需的文件:
使用说明:
主要技术说明:
参考文献:法律事务设计书
修改历史:= = = = = = = = = = = = = = = = = = = = = = = = = =
修改日期:
修 改 人:
修改理由:
修改出处:
= = = = = = = = = = = = = = = = = = = = = = = = = =
--%>
<%@ page language="java" import="java.util.Date,java.util.Locale,java.text.DateFormat"%>
<%@ page import="java.io.*,java.sql.*" contentType= "text/html; charset=gb2312" %>
<%@ page import="system.*" %>
<jsp:useBean id="db" class="dbconnection.DbConnection" scope="page" />
<%
Security auth = new Security();
String scu_employee_id = (String)session.getAttribute("employee_id");
if(scu_employee_id == null || scu_employee_id.equals(""))
{
response.sendRedirect(response.encodeRedirectURL("../Error/nonlogin.htm"));
}
String modelid = "Ach014"; // 待归档案件修改
int authflag = auth.popedom(scu_employee_id, modelid);
if(authflag == 0 || authflag == 2 || authflag == -1)
{%>
<jsp:forward page="../inc/noauth.jsp" >
</jsp:forward>
<%}%>
<%
String caseID = "",
caseReason = "",
archiveID = "",
archiveDate = "",
archivePerson = "",
keepYears = "",
caseRemark = "",
caseAttribute = "",
lawyer = "",
customer = "",
beginDate = "",
endDate = "",
court = "",
judgeLevel = "",
judgeResult = "";
caseID = request.getParameter("caseID");
String sql = "select case_reason,case_attribute,employee_name,customer_name";
sql = sql + ", begin_date,end_date";
sql = sql + ", court, judge_level, judge_result";
sql = sql + ", archive_id, keep_years ";
sql = sql + " from V_CASEINFO where case_id = '";
sql = sql + caseID + "'";
ResultSet rs = db.executeQuery(sql);
if (rs.next())
{
caseReason = rs.getString("case_reason");
caseAttribute = rs.getString("case_attribute");
lawyer = rs.getString("employee_name");
customer = rs.getString("customer_name");
if(customer == null)
customer = "";
beginDate = rs.getString("begin_date");
endDate = rs.getString("end_date");
if(endDate == null) endDate = "";
court = rs.getString("court");
if(court == null)
court = "";
judgeLevel = rs.getString("judge_level");
if(judgeLevel == null)
judgeLevel = "";
judgeResult = rs.getString("judge_result");
if(judgeResult == null)
judgeResult = "";
archiveID = rs.getString("archive_id");
keepYears = rs.getString("keep_years");
caseAttribute = caseAttribute.trim();
if(caseAttribute.equals("flgw")) caseAttribute = "法律顾问";
else if(caseAttribute.equals("znht")) caseAttribute = "撰拟合同";
else if(caseAttribute.equals("flyjs")) caseAttribute = "法律意见书";
else if(caseAttribute.equals("flzx")) caseAttribute = "法律咨询";
else if(caseAttribute.equals("lsjz")) caseAttribute = "律师见证";
else if(caseAttribute.equals("cytp")) caseAttribute = "参与谈判";
else if(caseAttribute.equals("zctj")) caseAttribute = "仲裁调解";
else if(caseAttribute.equals("qtsw")) caseAttribute = "其他事务";
else if(caseAttribute.equals("xsss")) caseAttribute = "刑事诉讼";
else if(caseAttribute.equals("msss")) caseAttribute = "民事诉讼";
else if(caseAttribute.equals("jjss")) caseAttribute = "经济诉讼";
else if(caseAttribute.equals("xzss")) caseAttribute = "行政诉讼";
else if(caseAttribute.equals("qtss")) caseAttribute = "其他诉讼";
else caseAttribute = "";
}
//获取系统ID号
int isGetNewID = 0;
if((archiveID == null) || (archiveID.equals("")))
{
GetID gid = new GetID();
ExtendString es = new ExtendString();
archiveID = "DA" + es.digitToString(gid.getIDNumber("archive_id")+1);
isGetNewID = 1;
}
//取当前时间为默认归档时间
ExtendString es = new ExtendString();
String toDate = es.getNowDate(0);
toDate = toDate.substring(0,4) + "-" +
toDate.substring(4,6) + "-" +
toDate.substring(6,8);
toDate = toDate + " " + es.getNowTime();
archiveDate = toDate;
//修改案件信息的归档信息内容
%>
<html>
<head>
<title>待归档案件信息修改</title>
<%@ include file="../inc/config.jsp" %>
</head>
<script language="javascript">
//检查输入的合法性
function checkForm()
{
if (document.myForm.txtArchivePerson.value=="")
{
MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide')
alert("立卷人不能为空!");
document.myForm.txtArchivePerson.focus();
return false;
}
if (document.myForm.txtCaseReason.value=="")
{
alert("案由内容不能为空!");
document.myForm.txtCaseReason.focus();
return false;
}
}
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}
</script>
<body class="page">
<!--显示工具条-->
<form name="myForm" METHOD="post" action="StayArchivesAmendRun.jsp?isGetNewID=<%=isGetNewID%>">
<div id="Layer1" style="Position:absolute; left:5px; top:70px; width:98%; height:186px; z-index:1; visibility: hidden">
<table border="0" cellspacing="0" cellpadding="0" height="25" >
<tr class="tr_bg1" align="center">
<td class="table_bg" colspan="8" height="1" ></td>
</tr>
<tr class="tr_bg1" align="center">
<td class="table_bg" width="1" ></td>
<td onClick="MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide')" style="cursor:hand" class="tr_bg2" width="80" >归档案卷信息</td>
<td class="table_bg" width="1"></td>
<td onClick="MM_showHideLayers('Layer1','','hide','Layer2','','show','Layer3','','hide')" style="cursor:hand" width="60">案件信息</td>
<td class="table_bg" width="1"></td>
<td onClick="MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','show')" style="cursor:hand" width="80">卷宗文档列表</td>
<td class="table_bg" width="1"></td>
</tr>
</table>
<table align="center" border="0" cellspacing="1" cellpadding="5" class="table_bg" width="100%">
<tr>
<td width="18%" align="right" class="title_bg"> 卷宗编号: </td>
<td width="28%" class="tr_bg1">
<input name="txtArchiveID" size="12" class="input" readOnly value=<%=archiveID%>>
<font color="#FF0000">*</font>
</td>
<td width="19%" align="right" class="title_bg"> </td>
<td width="35%" class="tr_bg1"> </td>
</tr>
<tr>
<td align=right width=18% class="title_bg"> 立卷人:</td>
<td width=28% class="tr_bg1">
<select name="txtArchivePerson" class="select">
<option value=""> </option>
<%
rs = db.executeQuery("select employee_id, employee_name from t_employee where active='1'");
String employee_id="", employee_name="";
while (rs.next())
{
employee_id = rs.getString("employee_id");
employee_name = rs.getString("employee_name");
if (employee_name.equals(lawyer))
{
%>
<option value=<%=employee_id%> selected><%=employee_name%></option>
<%}else{%>
<option value=<%=employee_id%>><%=employee_name%></option>
<%}
} %>
</select>
<font color="#FF0000">*</font>
</td>
<td align=right width=19% class="title_bg"> 保存年限: </td>
<td width=35% class="tr_bg1" >
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -