⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 costenteramend.jsp

📁 这是一个法律事务所系统源码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%--
模块名称:费用管理
模块功能:费用登记修改
版    本:V1.0
著 作 人:蔡静
著作日期:2001-10-19
使用说明:
主要技术说明:
参考文献:法律事务设计书
修改历史:
        = = = = = = = = = = = = = = = = = = = = = = = = = =
	修改日期:
	修 改 人:
	修改理由:
	修改出处:
	= = = = = = = = = = = = = = = = = = = = = = = = = =

--%>
<%@ 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 = "Chg013";
  int authflag = auth.popedom(employeeid, modelid);
  if(authflag == 0 || authflag == 2 || authflag == -1)
  {
%>
  <jsp:forward page="../inc/noauth.jsp" >
  </jsp:forward>
<%
  }
%>
<%
  String charge_id=request.getParameter("charge_id");          
  String employee_id, employee_name;
  
  String charge_sum, case_id, case_reason, part_proportion, case_object;
  String time_limit, payment_method, receive_time, charge_standard, discount;
  String discount_person, charge_person, currency_kind, comment;   
  String charge_type = "", charge_name = "", lawyer_id = "";
  String sql = "select a.charge_sum, a.case_id, b.case_reason, a.part_proportion,";
  sql = sql + "a.case_object, a.time_limit, a.payment_method, a.receive_time,";
  sql = sql + "a.charge_standard, a.discount, a.discount_person,";
  sql = sql + "a.charge_person, a.currency_kind, a.comment";    
  sql = sql + ",a.charge_type, a.charge_name, a.employee_id ";		//add by SIMM 2001-11-15
  sql = sql + " from t_charge a, t_caseinfo b where";
  sql = sql + " a.case_id = b.case_id and charge_id = '" + charge_id + "'";
  ResultSet rs = db.executeQuery(sql);
  if (rs.next()) {
    charge_sum = rs.getString("charge_sum");
    case_id = rs.getString("case_id");
    case_reason = rs.getString("case_reason");
    part_proportion = rs.getString("part_proportion");
    case_object = rs.getString("case_object");
    time_limit = rs.getString("time_limit");
    payment_method = rs.getString("payment_method");
    receive_time = rs.getString("receive_time");
    charge_standard = rs.getString("charge_standard");
    discount = rs.getString("discount");
    discount_person = rs.getString("discount_person");
    charge_person = rs.getString("charge_person");
    currency_kind = rs.getString("currency_kind");
    comment = rs.getString("comment");        
    charge_type = rs.getString("charge_type");   
    charge_name = rs.getString("charge_name");
    lawyer_id = rs.getString("employee_id");
%>
<html>

<head>
<title>费用登记修改</title>
<%@ include file="../inc/config.jsp" %>
</head>

<body class="page">
<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.form1.charge_id.value=="") {
      alert("请输入费用编码!");
      document.form1.charge_id.focus();
      return false;
    }
    if (document.form1.charge_sum.value=="") {
      alert("请输入费用金额!");
      document.form1.charge_sum.focus();
      return false;
    }      
    if ((document.form1.charge_type.value=="qt")) { 
      if(document.form1.charge_name.value=="") {
      alert("输入其他费用时请填入费用名称!");
      document.form1.charge_name.focus();
      return false;
    }}
    charge_sum = document.form1.charge_sum.value;
    if (!checkNumber(charge_sum)) {
      document.form1.charge_sum.value = "";
      document.form1.charge_sum.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="CostEnter.jsp"><img src="../images/all.gif" height="22" border="0" width="88"></a><a href="CostEnterAdd.jsp"><img src="../images/add.gif" alt="增加内容" width="79" height="22" border="0"  ></a><img src="../images/delete.gif" alt="删除选中的内容" onClick="return Del();" style="cursor:hand" width="79" height="22"><a href="CostEnterSearch.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>&nbsp;</td>
  </tr>
</table>
<!--显示工具条结束-->
<form name="form1" method="post" action="CostEnterAmendRun.jsp">
<table width="98%" align="center" border="0" cellspacing="1" cellpadding="5" class="table_bg">
  <tr>
    <td width="152"  align="right" class="title_bg"> 费用编号: </td>
    <td width="197" class="tr_bg1">
      <input type="text" name="charge_id" class="input" size="15" value=<%=charge_id%> readOnly>
      <font color="#FF0000">* </font></td>
    <td width="150"  align="right" class="title_bg"> 费用金额[元]: </td>
    <td width="245" class="tr_bg1">
      <input type="text" name="charge_sum" class="input" size="15" value=
      <%if (charge_sum!=null)
          out.print(charge_sum);
        else
          out.print("");
      %>>
      <font color="#FF0000">* </font></td>
  </tr>
  <tr>
    <td align="right" width="152" class="title_bg">费用名称:</td>
    <td width="197" class="tr_bg1"> 
      <input type="text" name="charge_name" class="input" size="15" value=
      <%if (charge_name!=null)
          out.print(charge_name);
        else
          out.print("");
      %>>
    </td>
    <td align="right" width="150" class="title_bg">费用类型:</td>
    <td width=245 class="tr_bg1">
      <select name="charge_type" class="select"> 
      <option value=""></option>
      <%
      if(charge_type.equals("ht"))
      {%>
        <option value="ht" selected>合同费用</option>
        <option value="qt">其他费用</option>
       <%
       }else if(charge_type.equals("qt")){ 
       %>  
        <option value="ht">合同费用</option>
        <option value="qt" selected>其他费用</option>       
       <%}else{%>          
        <option value="ht">合同费用</option>
        <option value="qt">其他费用</option>       
       <%}%>            
        <option value=""> ___________</option>
      </select>
    </td>
  </tr>      
  <tr>
    <td align="right" width="152" class="title_bg">案件编号:</td>
    <td width="197" class="tr_bg1">
      <select name="case_id" class="select" onChange="getReason();">
    <%
      String case_id1, case_reason1;
      ResultSet 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 {%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -