📄 sueadd.jsp
字号:
<%--
模块名称:诉讼案件
模块功能:案件新增
版 本:V1.0
著 作 人:谢永刚(ui) SIMM(java)
著作日期:2001-10-21
该模块所需的文件:
使用说明:
主要技术说明:
参考文献:法律事务设计书
修改历史:= = = = = = = = = = = = = = = = = = = = = = = = = =
修改日期:
修 改 人:
修改理由:
修改出处:
= = = = = = = = = = = = = = = = = = = = = = = = = =
--%>
<%@ page contentType= "text/html; charset=gb2312" %>
<%@ page language="java" import="java.sql.*" %>
<%@ 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 = "Law022"; // 案件管理/顾问管理新增
int authflag = auth.popedom(scu_employee_id, modelid);
if(authflag == 0 || authflag == 2 || authflag == -1)
{%>
<jsp:forward page="../inc/noauth.jsp" >
</jsp:forward>
<%}%>
<%
GetID gid = new GetID();
ExtendString es = new ExtendString();
String fid = "SS" + es.digitToString(gid.getIDNumber("case_id")+1);
String costFid = "FY" + es.digitToString(gid.getIDNumber("charge_id")+1);
String customerFid = "KH" + es.digitToString(gid.getIDNumber("customer_id")+1);
%>
<html>
<head>
<title>诉讼案件修改</title>
<%@ include file="../inc/config.jsp" %>
</head>
<script language="javascript">
//检测合同金额输入的合法性
function checkNumber(num) {
var legalchar=new Array("1","2","3","4","5","6","7","8","9","0",".");
var t="";
var dot = 0;
for(i=0;i<num.length;i++) {
n=num.substr(i,1);
for(j=0;j<legalchar.length;j++) {
if(n==legalchar[j]) {
if (n==".")
dot = dot + 1;
break;
}
}
if (j == legalchar.length)
t = t + n;
}
if(t != "") {
alert("费用金额中有非法字符" + t + "!");
return false;
}
else {
if (dot >= 2) {
alert("费用金额中有两个.号!");
return false;
}
}
return true;
}
//检查输入的合法性
function checkForm()
{
if (document.myForm.txtCaseID.value=="")
{
alert("请输入案件编码!");
MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','hide')
document.myForm.txtCaseID.focus();
return false;
}
if (document.myForm.txtCaseNo.value=="")
{
MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','hide')
alert("请输入案件编号!");
document.myForm.txtCaseNo.focus();
return false;
}
if (document.myForm.txtCaseReason.value=="")
{
MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','hide')
alert("请输入案由内容!");
document.myForm.txtCaseReason.focus();
return false;
}
if (document.myForm.txtBeginDate.value=="")
{
MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','hide')
alert("请输入收案时间!");
document.myForm.txtBeginDate.focus();
return false;
}
if (document.myForm.txtLawyer.value=="")
{
MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','hide')
alert("请输入承办律师!");
document.myForm.txtLawyer.focus();
return false;
}
if ((document.myForm.txtCharged.value=="1") &&
(document.myForm.txtNoPayReason.value!=""))
{
MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','hide')
alert("收费时不应该有免费原由!");
document.myForm.txtNoPayReason.focus();
return false;
}
charge_sum = document.myForm.charge_sum.value;
if(document.myForm.charge_id.value!=""){
if (!checkNumber(charge_sum)) {
MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','show','Layer4','','hide','Layer5','','hide')
document.myForm.charge_sum.value = "";
document.myForm.charge_sum.focus();
return false;
}}
}
</script>
<script language="JavaScript">
<!--
FileCount=0
RealFileCount=0
function addfile()
{
FileCount++;
RealFileCount++;
spFileCount.innerText=RealFileCount;
tempTxt="<table id=sp"+FileCount+" border='0' cellspacing='0' cellpadding='0' height='25' width='100%' >"
tempTxt+="<tr class='tr_bg1' align='center'>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='35%' > "
tempTxt+="<input type='text' name='txtTranCont"+FileCount+"' size='35' class='input'>"
tempTxt+="</td>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='20%' > "
tempTxt+="<input type='text' name='txtBeginTime"+FileCount+"' maxlength='10' size='16' value='' class='input' readOnly>"
tempTxt+="<img src='../images/datetime.gif' border='0' align='absmiddle' alt='弹出日历下拉菜单' onClick='fPopUpCalendarDlg(txtBeginTime"+FileCount+");return false' width='16' height='16'></td>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='10%'> "
tempTxt+="<input type='text' name='txtSpendTime"+FileCount+"' size='6' class='input'>"
tempTxt+="</td>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='25%'> "
tempTxt+="<input type='text' name='txtResult"+FileCount+"' size='24' class='input'>"
tempTxt+="</td>"
tempTxt+="<td class='table_bg'><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='10%'><a href='#'><img src='../images/del.gif' width='16' height='16' alt='删除' onClick=\"sp"+FileCount+".style.display='none';txtTranCont"+FileCount+".value='';RealFileCount--;spFileCount.innerText=RealFileCount;form1.txtTranCont"+FileCount+".text='';\" style='cursor:hand' border='0'></a></td>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="</tr>"
tempTxt+="<tr class='tr_bg1' align='center'> "
tempTxt+="<td class='table_bg' colspan='11' height='1' ></td>"
tempTxt+="</tr>"
tempTxt+="</table>"
document.myForm.txtFileCount.value=FileCount
attach.insertAdjacentHTML("BeforeEnd",tempTxt);
}
FileCount1=0
RealFileCount1=0
function addfile1()
{
FileCount1++;
RealFileCount1++;
spFileCount1.innerText=RealFileCount1;
tempTxt="<table id=sp"+FileCount1+" border='0' cellspacing='0' cellpadding='0' height='25' width='100%' >"
tempTxt+="<tr class='tr_bg1' align='center'>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='11%' >"
tempTxt+="<input type='text' name='txtTranCont'+FileCount1+'' size='6' class='input'>"
tempTxt+="</td>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='23%' >"
tempTxt+="<input type='text' name='txt32"+FileCount1+"' size='20' class='input'>"
tempTxt+="</td>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='12%' >"
tempTxt+="<input type='text' name='txt32'+FileCount1+'' size='8' class='input'>"
tempTxt+="</td>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='17%'>"
tempTxt+="<input type='text' name='fromDate"+FileCount1+"' maxlength='10' size='10' value='' class='input' readOnly>"
tempTxt+="<img src='../images/datetime.gif' border='0' align='absmiddle' alt='弹出日历下拉菜单' onClick='fPopUpCalendarDlg(fromDate"+FileCount1+");return false' width='16' height='16'></td>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='12%'>"
tempTxt+="<input type='text' name='textfield32' size='6' class='input'>"
tempTxt+="</td>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='9%'>"
tempTxt+="<input type='text' name='textfield3' size='6' class='input'>"
tempTxt+="</td>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='8%'>"
tempTxt+="<input type='text' name='textfield32' size='6' class='input'>"
tempTxt+="</td>"
tempTxt+="<td class='table_bg'><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='8%'><a href='#'><img src='../images/del.gif' width='16' height='16' alt='删除' onClick=\"sp"+FileCount1+".style.display='none';RealFileCount1--;spFileCount1.innerText=RealFileCount1;form1.txtTranCont"+FileCount1+".text='';\" style='cursor:hand' border='0'></a></td>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="</tr>"
tempTxt+="<tr class='tr_bg1' align='center'> "
tempTxt+="<td class='table_bg' colspan='17' height='1' ></td>"
tempTxt+="</tr>"
tempTxt+="</table>"
attach1.insertAdjacentHTML("BeforeEnd",tempTxt);
}
//取费用编码流水号
getCostIDNumberState=0
function getCostIDNumber()
{
if((getCostIDNumberState%2) == 0)
document.myForm.charge_id.value=document.myForm.txtCostIDNumber.value;
else
document.myForm.charge_id.value="";
getCostIDNumberState++;
}
//取客户编码流水号
getCustomerIDNumberState=0
function getCustomerIDNumber()
{
if((getCustomerIDNumberState%2) == 0)
document.myForm.customer_id.value=document.myForm.txtCustomerIDNumber.value;
else
document.myForm.customer_id.value="";
getCustomerIDNumberState++;
}
//-->
</script>
<body class="page">
<!--显示工具条-->
<form name="myForm" METHOD="post" action="SueAddDo.jsp" ENCTYPE="multipart/form-data">
<div id="Layer1" style="Position: absolute; left: 5; top: 70; width: 98%; height: 723; z-index: 1">
<table border="0" cellspacing="0" cellpadding="0" height="25" >
<tr class="tr_bg1" align="center">
<td class="table_bg" colspan="11" 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','Layer4','','hide','Layer5','','hide')" style="cursor:hand" class="tr_bg2" width="60" >案件信息</td>
<td class="table_bg" width="1"></td>
<td onClick="MM_showHideLayers('Layer1','','hide','Layer2','','show','Layer3','','hide','Layer4','','hide','Layer5','','hide')" style="cursor:hand" width="110">律师处理事务列表</td>
<td class="table_bg" width="1"></td>
<td onClick="MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','show','Layer4','','hide','Layer5','','hide')" style="cursor:hand" width="60">费用信息</td>
<td class="table_bg" width="1"></td>
<td onClick="MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','hide','Layer4','','show','Layer5','','hide')" style="cursor:hand" width="80">其他费用列表</td>
<td class="table_bg" width="1"></td>
<td onClick="MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','show')" style="cursor:hand" width="70">委托人信息</td>
<td class="table_bg" width="1"></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -