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

📄 clashsearch.jsp

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

--%>

<%@ 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 employee_id = (String)session.getAttribute("employee_id");
  if(employee_id == null || employee_id.equals(""))
  {
    response.sendRedirect(response.encodeRedirectURL("../Error/nonlogin.htm"));
  }
  String modelid = "Cli020";
  int authflag = auth.popedom(employee_id, modelid);
  if(authflag == 0 || authflag == 2 || authflag == -1)
  {
%>
  <jsp:forward page="../inc/noauth.jsp" >
  </jsp:forward>
<%
  }
%>
<%
  String str = request.getParameter("search");
  ResultSet rs = null;
  if (str != null) {
    String customer = request.getParameter("customer_name");      
    customer = new String(customer.getBytes("ISO8859_1"));
    String sql = "select b.customer_name, a.customer_id, a.case_reason,";
    sql = sql + "case a.case_attribute when 'xsss' then '刑事诉讼' when 'msss' then '民事诉讼'";
    sql = sql + " when 'jjss' then '经济诉讼' when 'xzss' then '行政诉讼' when 'zhss' then '综合诉讼'";
    sql = sql + " when 'zctj' then '仲裁调解' when 'flgw' then '法律顾问' when 'znht' then '撰拟合同'";
    sql = sql + " when 'flyjs' then '法律意见书' when 'flzx' then '法律咨询' when 'lsjz' then '律师见证'";
    sql = sql + " when 'cytp' then '参与谈判' when 'qtsw' then '其他事务'";
    sql = sql + " end as case_attribute, a.begin_date from t_customer b LEFT OUTER JOIN  t_caseinfo a";
    sql = sql + " on  a.customer_id = b.customer_id ";
    sql = sql + " where 1=1";
    if ((customer != null) && (!customer.equals("")))
      sql = sql + " and b.customer_name like '%" + customer + "%'";  
    rs = db.executeQuery(sql);
  }
%>

<html>
<head>
<title>利益冲突检索</title>
<%@ include file="../inc/config.jsp" %>
</head>

<body class=page>
<table width="98%" align="center" cellspacing="0" cellpadding="0" border="0">
  <tr>
    <td>&nbsp;</td>
    <td width="108" height="30" align="center" background="../images/title_bg.gif">
      <script language=JavaScript>
document.write("<span class=\"title\">"+document.title+"</span>");
</script>
    </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="ClashSearch.jsp">
<table width="70%" align="center" border="0" cellspacing="1" cellpadding="0" class="table_bg">
  <tr>
    <td height="24" width="148"  align="right" class="title_bg"> 客户名称输入(模糊查询):</td>
    <td height="24" width="307" class="tr_bg1">
      <input name="customer_name" size="30" class="input">
      <input type="submit" value="检索" name="search" class="button" >
    </td>
  </tr>
</table>
</form>
<%
  if (rs != null) {
    rs.last();
%>
  共<%=rs.getRow()%>条记录
<%  rs.beforeFirst();%>
  <table width="98%" cellspacing="1" cellpadding="5"  height="25" align="center" border="0" class="table_bg">
    <tr class="title_bg">
      <td width="25%" align="center"> 客户名称</td>
      <td width="24%" align="center"> 案由</td>
      <td width="12%" align="center"> 案件类型</td>
      <td width="12%" align="center"> 收案时间</td>
    </tr>
  <%
    String customer_id, customer_name, case_reason, case_attribute, begin_date;
    while (rs.next()) {
      customer_name = rs.getString("customer_name");
      customer_id = rs.getString("customer_id");
      case_reason = rs.getString("case_reason");
      case_attribute = rs.getString("case_attribute");
      begin_date = rs.getString("begin_date");
      if (rs.getRow()!=(rs.getRow()/2*2)) {
  %>
  <tr  class="tr_bg1">
  <%  }
      else {
  %>
  <tr  class="tr_bg2">
  <%  }
  %>
      <td width="19%" align="right" nowrap><a href="ClientInfo.jsp?customer_id=<%=customer_id%>"><%=customer_name%></a></td>
      <td width="18%" align="right" nowrap><%if (case_reason != null) out.print(case_reason);%></a></td>
      <td width="18%" align="right" nowrap><%if (case_attribute != null) out.print(case_attribute);%></td>
      <td width="18%" align="center" nowrap><%if ((begin_date != null) && (!begin_date.equals(""))) out.print(begin_date.substring(0,10));%></td>
    </tr>
<%}%>
  </table>
<%}%>
</body>
</html>

⌨️ 快捷键说明

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