📄 baddebtsenteramend.jsp
字号:
<%--
模块名称:费用管理
模块功能:坏账登记修改
版 本:V1.0
著 作 人:蔡静
著作日期:2001-10-23
使用说明:
主要技术说明:
参考文献:法律事务设计书
修改历史:= = = = = = = = = = = = = = = = = = = = = = = = = =
修改日期:
修 改 人:
修改理由:
修改出处:
= = = = = = = = = = = = = = = = = = = = = = = = = =
--%>
<%@ 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 employeeid = (String)session.getAttribute("employee_id");
if(employeeid == null || employeeid.equals(""))
{
response.sendRedirect(response.encodeRedirectURL("../Error/nonlogin.htm"));
}
String modelid = "Chg033";
int authflag = auth.popedom(employeeid, modelid);
if(authflag == 0 || authflag == 2 || authflag == -1)
{
%>
<jsp:forward page="../inc/noauth.jsp" >
</jsp:forward>
<%
}
%>
<%
String bad_debt_id=request.getParameter("bad_debt_id");
String debt_count, customer_id, lawyer, case_id, begin_date;
String case_reason, bad_debt_reason, enter_people, enter_date;
String sql = "select debt_count, customer_id, lawyer, case_id, ";
sql = sql + "begin_date, case_reason, bad_debt_reason, enter_people, ";
sql = sql + "enter_date from t_baddebt where bad_debt_id = '";
sql = sql + bad_debt_id + "'";
ResultSet rs = db.executeQuery(sql);
if (rs.next()) {
debt_count = rs.getString("debt_count");
customer_id = rs.getString("customer_id");
lawyer = rs.getString("lawyer");
case_id = rs.getString("case_id");
begin_date = rs.getString("begin_date");
case_reason = rs.getString("case_reason");
bad_debt_reason = rs.getString("bad_debt_reason");
enter_people = rs.getString("enter_people");
enter_date = rs.getString("enter_date");
%>
<html>
<head>
<title>坏帐登记修改</title>
<%@ include file="../inc/config.jsp" %>
</head>
<body class="page">
<script language="javascript">
function checkForm() {
if (document.form1.debt_count.value=="") {
alert("请输入坏帐金额!");
document.form1.debt_count.focus();
return false;
}
return true;
}
function getReason() {
document.form1.case_reason.selectedIndex = document.form1.case_id.selectedIndex;
}
</script>
<!--显示工具条-->
<table width="98%" align="center" cellspacing="1">
<tr>
<td width="90%"><a href="BadDebtsEnter.jsp"><img src="../images/all.gif" height="22" border="0" width="88"></a>
<a href="BadDebtsEnterAdd.jsp"><img src="../images/add.gif" alt="增加内容" width="79" height="22" border="0" ></a>
<img src="../images/delete.gif" alt="删除选中的内容" style="cursor:hand" width="79" height="22">
<a href="BadDebtsEnterSearch.jsp"><img src="../images/query.gif" alt="查询内容" width="79" height="22" border="0"></a></td>
<td width="10%" align="right"><img src="../images/back.gif" width="50" height="22" onClick="window.history.back()" style="cursor:hand"></td>
</tr>
</table>
<table width="98%" background="../images/line.gif" border="0" cellspacing="0" cellpadding="0" height="12" align="center">
<tr>
<td> </td>
</tr>
</table>
<!--显示工具条结束-->
<form name="form1" method="post" action="BadDebtsEnterAmendRun.jsp">
<table width="98%" align="center" border="0" cellspacing="1" cellpadding="5" class="table_bg">
<tr>
<td height="24" width="19%" align="right" class="title_bg"> 坏帐编号:</td>
<td height="24" width="32%" class="tr_bg1">
<input name="bad_debt_id" size="12" class="input" value=<%=bad_debt_id%> readOnly>
</td>
<td height="24" width="17%" align="right" class="title_bg"> 坏帐金额:</td>
<td height="24" width="32%" class="tr_bg1">
<input name="debt_count" size="20" class="input" value=<%=debt_count%>>
</td>
</tr>
<tr>
<td align="right" height="28" width="19%" class="title_bg"> 客户名称:</td>
<td height="28" width="32%" class="tr_bg1">
<select name="customer_id" class="select">
<%
String customer_id1, customer_name1;
ResultSet rs1 = db.executeQuery("select customer_id, customer_name from t_customer");
while (rs1.next()) {
customer_id1 = rs1.getString("customer_id");
customer_name1 = rs1.getString("customer_name");
if (customer_id1.equals(customer_id)) {
%>
<option value=<%=customer_id1%> selected><%=customer_name1%></option>
<% } else {%>
<option value=<%=customer_id1%>><%=customer_name1%></option>
<%
}
}
%>
</select>
</td>
<td align="right" height="28" width="17%" class="title_bg"> 承办律师:</td>
<td height=28 width=32% class="tr_bg1">
<select name="lawyer" class="select">
<%
String employee_id, employee_name;
rs1 = db.executeQuery("select employee_id, employee_name from t_employee where duty like '%律师' or duty='主任' or duty='合伙人'");
while (rs1.next()) {
employee_id = rs1.getString("employee_id");
employee_name = rs1.getString("employee_name");
if (employee_id.equals(lawyer)) {
%>
<option value=<%=employee_id%> selected><%=employee_name%></option>
<% } else { %>
<option value=<%=employee_id%>><%=employee_name%></option>
<%
}
}
%>
</select>
</td>
</tr>
<tr>
<td align=right height=28 width=19% class="title_bg"> 案件编号:</td>
<td height=28 width=32% class="tr_bg1">
<select name="case_id" class="select" onChange="getReason()">
<%
String case_id1, case_reason1;
rs1 = db.executeQuery("select case_id from t_caseinfo order by case_id");
while (rs1.next()) {
case_id1 = rs1.getString("case_id");
if (case_id1.equals(case_id)) {
%>
<option value=<%=case_id1%> selected><%=case_id1%></option>
<% } else { %>
<option value=<%=case_id1%>><%=case_id1%></option>
<%
}
}
%>
</select>
</td>
<td align="right" height="28" width="17%" class="title_bg"> 收案时间:</td>
<td height=28 width=32% class="tr_bg1">
<input type="text" name="begin_date" maxlength="10" size="10" value=
<%
if (begin_date != null)
out.print(begin_date);
else
out.print("\"\"");
%>
class="input" readOnly>
<img src="../images/datetime.gif" border="0" align="absmiddle"
alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(begin_date);return false" width="16" height="16">
</td>
</tr>
<tr>
<td align=right height=13 width=19% class="title_bg"> 案由:</td>
<td height=13 colspan="3" class="tr_bg1">
<select name="case_reason" class="select">
<%rs1 = db.executeQuery("select case_id, case_reason from t_caseinfo order by case_id");
while (rs1.next()) {
case_id1 = rs1.getString("case_id");
case_reason1 = rs1.getString("case_reason");
if (case_id1.equals(case_id)) {
%>
<option value=<%=case_reason1%> selected><%=case_reason1%></option>
<% } else { %>
<option value=<%=case_reason1%>><%=case_reason1%></option>
<%
}
}
%>
</select>
</td>
</tr>
<tr>
<td align=right height=14 width=19% class="title_bg">坏帐原由:</td>
<td height=14 colspan="3" class="tr_bg1">
<input name="bad_debt_reason" size="60" class="input" value=
<%
if (bad_debt_reason != null)
out.print(bad_debt_reason);
else
out.print("");
%>
>
</td>
</tr>
<tr>
<td align=right height=28 width=19% class="title_bg"> 登记人:</td>
<td height=28 width=32% class="tr_bg1">
<select name="enter_people" class="select">
<%rs1 = db.executeQuery("select employee_id, employee_name from t_employee");
while (rs1.next()) {
employee_id = rs1.getString("employee_id");
employee_name = rs1.getString("employee_name");
if (employee_id.equals(enter_people)) {
%>
<option value=<%=employee_id%> selected><%=employee_name%></option>
<% } else { %>
<option value=<%=employee_id%>><%=employee_name%></option>
<%
}
}
%>
</select>
</td>
<td align=right height=28 width=17% class="title_bg"> 登记日期:</td>
<td height=28 width=32% class="tr_bg1" >
<input type="text" name="enter_date" maxlength="10" size="10" value=
<%
if (enter_date != null)
out.print(enter_date);
else
out.print("\"\"");
%>
class="input" readOnly>
<img src="../images/datetime.gif" border="0" align="absmiddle"
alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(enter_date);return false" width="16" height="16">
</td>
</tr>
</table>
<br>
<div align="center">
<input type="submit" value="保存" name="save" class="button" onClick="return checkForm();">
</div>
</form>
</body>
</html>
<%}%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -