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

📄 clientamend.jsp

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

--%>
<%@ 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 = "Cli013";
  int authflag = auth.popedom(employeeid, modelid);
  if(authflag == 0 || authflag == 2 || authflag == -1)
  {
%>
  <jsp:forward page="../inc/noauth.jsp" >
  </jsp:forward>
<%
  }
%>
<%
  String customer_id = request.getParameter("customer_id");
  String link_man, customer_name, enter_date, telephone, mobile_telephone;
  String fax, email, customer_type, lawyer_id, address, customer_introduce;
  String sql = "select link_man, customer_name, enter_date, telephone,";
  sql = sql + "mobile_telephone, fax, email, customer_type, lawyer_id, address,";
  sql = sql + "customer_introduce from t_customer where customer_id='";
  sql = sql + customer_id + "'";
  ResultSet rs = db.executeQuery(sql);
  if (rs.next()) {
    link_man = rs.getString("link_man");
    customer_name = rs.getString("customer_name");
    enter_date = rs.getString("enter_date");
    telephone = rs.getString("telephone");
    mobile_telephone = rs.getString("mobile_telephone");
    fax = rs.getString("fax");
    email = rs.getString("email");
    customer_type = rs.getString("customer_type");
    lawyer_id = rs.getString("lawyer_id");
    address = rs.getString("address");
    customer_introduce = rs.getString("customer_introduce");
%>
<html>

<head>
<title>客户修改</title>
<%@ include file="../inc/config.jsp" %>
</head>

<body class="page">
<script language="javascript">
  function checkForm() {
    if (document.form1.customer_name.value=="") {
      alert("请输入客户名称!");
      document.form1.customer_name.focus();
      return false;
    }
    if (document.form1.enter_date.value=="") {
      alert("请输入登记时间!");
      document.form1.enter_date.focus();
      return false;
    }
    return true;
  }
</script>
<!--显示工具条-->
<table width="98%" align="center" cellspacing="1">
  <tr>
    <td width="90%"><a href="Client.jsp"><img src="../images/all.gif" height="22" border="0" width="88"></a>
    <a href="ClientAdd.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="ClientSearch.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="ClientAmendRun.jsp">
<table width="98%" align="center" border="0" cellspacing="1" cellpadding="0" 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="customer_id" size="12" class="input" value=<%=customer_id%> readOnly>
    </td>
    <td height="24" width="17%"  align="right" class="title_bg"> 联系人:</td>
    <td height="24" width="32%" class="tr_bg1">
      <input name="link_man" size="12" class="input" value=
      <%if (link_man!=null)
          out.print(link_man);
        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">
      <input name="customer_name" size="20" class="input" value=<%=customer_name%>>
    </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=<%=enter_date.substring(0,10)%> 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>
  <tr>
    <td align=right  height=28 width=19% class="title_bg"> 电话:</td>
    <td height=28 width=32% class="tr_bg1">
      <input name="telephone" size=12 class="input" value=
      <%if (telephone!=null)
          out.print(telephone);
        else
          out.print("");
      %>>
    </td>
    <td align="right"  height="28" width="17%" class="title_bg"> 手机:</td>
    <td height=28 width=32% class="tr_bg1">
      <input name="mobile_telephone" size="12" class="input" value=
      <%if (mobile_telephone!=null)
          out.print(mobile_telephone);
        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">
      <input name="fax" size="12" class="input" value=
      <%if (fax!=null)
          out.print(fax);
        else
          out.print("");
      %>>
    </td>
    <td align=right  height=28 width=17% class="title_bg"> E-mail:</td>
    <td  height=28 width=32% class="tr_bg1" >
      <input name="email" size="12" class="input" value=
      <%if (email!=null)
          out.print(email);
        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="customer_type" size=1>
        <option value="gq"
        <% if (customer_type.equals("gq"))
             out.print("selected");
        %>
        >国企</option>
        <option value="zf"
        <% if (customer_type.equals("zf"))
             out.print("selected");
        %>
        >政府</option>
        <option value="sz"
        <% if (customer_type.equals("sz"))
             out.print("selected");
        %>
        >三资</option>
        <option value="my"
        <% if (customer_type.equals("my"))
             out.print("selected");
        %>
        >民营</option>
        <option value="gr"
        <% if (customer_type.equals("gr"))
             out.print("selected");
        %>
        >个人</option>
        <option value="qt"
        <% if (customer_type.equals("qt"))
             out.print("selected");
        %>
        >其他</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_id" class="select">
      <%
        if ((lawyer_id == null) || (lawyer_id.equals(""))) {
          lawyer_id = "";
          out.println("<option value=\"\" selected></option>");
        }
        else
          out.println("<option value=\"\"></option>");
        ResultSet rs1 = db.executeQuery("select employee_id, employee_name from t_employee where (duty like '%律师' or duty='主任' or duty='合伙人') and active='1'");
        String employee_id, employee_name;
        while (rs1.next()) {
          employee_id = rs1.getString("employee_id");
          employee_name = rs1.getString("employee_name");
      %>
        <option value=<%=employee_id%>
        <%
          if (employee_id.equals(lawyer_id))
            out.print("selected");
        %>
        ><%=employee_name%></option>
      <%}%>
      </select>
    </td>
  </tr>
  <tr>
    <td align=right  height=28 width=19% class="title_bg">地址:</td>
    <td height=28 class="tr_bg1" colspan="3">
      <input name="address" size="67" class="input" value=
      <%if (address!=null)
          out.print(address);
        else
          out.print("");
      %>>
    </td>
  </tr>
  <tr>
    <td align=right  height=28 width=19% class="title_bg">客户简介:</td>
    <td colspan=4 height=28 class="tr_bg1">
      <textarea name="customer_introduce" cols="75" class="input" rows="10">
      <%if (customer_introduce!=null)
          out.print(customer_introduce);
        else
          out.print("");
      %>
      </textarea>
    </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 + -