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

📄 suesearchinfo.jsp

📁 这是一个法律事务所系统源码
💻 JSP
字号:
<%--
模块名称:案件管理-诉讼案件
模块功能:诉讼案件查询结果列表显示
版    本:V1.0
著 作 人:谢永刚(ui) SIMM(java)
著作日期:2001-11-26
该模块所需的文件: 
使用说明:
主要技术说明:
参考文献:法律事务设计书
修改历史:= = = = = = = = = = = = = = = = = = = = = = = = = =
	修改日期:
	修 改 人:
	修改理由:
	修改出处:
	= = = = = = = = = = = = = = = = = = = = = = = = = =

--%>

<%@ page language="java" import="java.util.Date,java.util.Locale,java.text.DateFormat"%>
<%@ page import="java.io.*,java.sql.*" contentType= "text/html; charset=gb2312" %>
<jsp:useBean id="db" class="dbconnection.DbConnection" scope="page" />
<%
  String num = request.getParameter("pagenum");
  int pagenum = 0, pagesize = 10, recordcount = 0, pagecount = 0;
  if ((num == null) || (num.equals("")))
    pagenum = 1;
  else
    pagenum = Integer.parseInt(num);  
 
//获取参数 --查询部分
  String caseID = "",
  		 caseAttribute = "",
  		 lawyer = "",         
  		 caseNo = "",
  		 customerName = "", 
  		 caseReason = "", 
  		 fromBeginDate = "", 
  		 toBeginDate = "",
  		 fromEndDate = "", 
  		 toEndDate = "";
  
  caseID = request.getParameter("txtCaseID");
  caseAttribute = request.getParameter("txtCaseAttribute");
  lawyer = request.getParameter("txtLawyer");      
  caseNo = request.getParameter("txtCaseNo");
  caseNo = new String(caseNo.getBytes("ISO8859_1")); 
  customerName = request.getParameter("txtCustomerName"); 
  customerName = new String(customerName.getBytes("ISO8859_1")); 
  caseReason = request.getParameter("txtCaseReason");
  caseReason = new String(caseReason.getBytes("ISO8859_1")); 
  fromBeginDate = request.getParameter("txtFromBeginDate");
  toBeginDate = request.getParameter("txtToBeginDate");         
  fromEndDate = request.getParameter("txtFromEndDate");
  toEndDate = request.getParameter("txtToEndDate");
  
  String condition = "";
  if ((caseID != null) && (!caseID.equals(""))) {
    condition = condition + " and case_id='" + caseID + "'";
  }         
  if ((caseAttribute != null) && (!caseAttribute.equals(""))) {
    condition = condition + " and case_attribute='" + caseAttribute + "'";
  }       
  if ((lawyer != null) && (!lawyer.equals(""))) {
    condition = condition + " and employee_id='" + lawyer + "'";
  }           
  if ((caseNo != null) && (!caseNo.equals(""))) {
    condition = condition + " and case_no like '%"  + caseNo + "%'";
  }         
  if ((customerName != null) && (!customerName.equals(""))) {
    condition = condition + " and customer_name like '%" + customerName + "%'";
  }               
  if ((caseReason != null) && (!caseReason.equals(""))) {
    condition = condition + " and case_reason like '%" + caseReason + "%'";
  }         
  if((fromBeginDate!=null) && (!fromBeginDate.equals("")))
		condition = condition + " and begin_date >= '" + fromBeginDate + "'";
  if((toBeginDate!=null) && (!toBeginDate.equals("")))
		condition = condition + " and begin_date <= '" + toBeginDate + "'";   
  if((fromEndDate!=null) && (!fromEndDate.equals("")))
		condition = condition + " and end_date >= '" + fromEndDate + "'";
  if((toEndDate!=null) && (!toEndDate.equals("")))
		condition = condition + " and end_date <= '" + toEndDate + "'";
//----------                   

  String sql = "select case_id, case_no, case_reason, begin_date, employee_name " + 
  						 "from V_SUEINFO " +
  						 " where CASE_TYPE = 'ssaj' and CASE_STATE = 'sazt' " + condition +			
  						 "order by begin_date DESC";				//ssaj----诉讼案件
  ResultSet rs = db.executeQuery(sql);

//分页处理
  if (rs != null) {
    rs.last();
    recordcount = rs.getRow();
    if (recordcount == recordcount/pagesize*pagesize)
      pagecount = recordcount/pagesize;
    else
      pagecount = recordcount/pagesize + 1;
    if (pagenum < 1)
      pagenum = 1;
    if (pagenum > pagecount)
      pagenum = pagecount;
    rs.absolute((pagenum-1)*pagesize+1);
  }
%>

<html>
<head>
<title>诉讼案件管理</title>
<%@ include file="../inc/config.jsp" %>
</head>

<body class=page>
<script language="javascript">
	//选择删除
   function selectID() {
     var a = document.all.item("rel");
     var case_ids = "";
     var flag=0;
     if (a!=null)
       if (a.length!=null)
	 for (i=0; i<a.length; i++)  {
	   if(a(i).checked) {
             if (case_ids == "")
               case_ids = a(i).value;
             else
               case_ids = case_ids + "," + a(i).value;
             flag=1;
           }
	 }
	 else
	 {
	   if(a.checked) {
	     case_ids = a.value;
	     flag=1;
	   }
         }
       if (!flag)
       {
         alert("请选择项目!")
         return false;
       }
      if(!window.confirm("确定要删除选中的项目吗?"))
      {
        return false;
      }
      else {
        document.thisForm.case_ids.value=case_ids;
        document.thisForm.submit();
        return true;
      }
   }
   
   //------------------------------------------------------
   //选择结案归档
   //------------------------------------------
   function selectArchive()
   {
     var a = document.all.item("rel");
     var case_ids = "";
     var flag=0;
     if (a!=null)
       if (a.length!=null)
	 for (i=0; i<a.length; i++)  {
	   if(a(i).checked) {
             if (case_ids == "")
               case_ids = a(i).value;
             else
               case_ids = case_ids + "," + a(i).value;
             flag=1;
           }
	 }
	 else
	 {
	   if(a.checked) {
	     case_ids = a.value;
	     flag=1;
	   }
         }
       if (!flag)
       {
         alert("请选择项目!")
         return false;
       }
      if(!window.confirm("确定要归档选中的项目吗?"))
      {
        return false;
      }
      else {
      	document.thisForm.action = "SueArchive.jsp";		//案件收案处理模块
        document.thisForm.case_ids.value=case_ids;
        document.thisForm.submit();
        return true;
      }   
   
   }
   
   //处理go to page
   function go() {
     document.thisForm.action="Sue.jsp";
     document.thisForm.submit();
   }

   function keygo() {
     if(event.keyCode==13){
	document.thisForm.action="Sue.jsp";
	document.thisForm.submit();
     }
     else {
       if (event.keyCode<48 || event.keyCode>57) {
         alert("请输入数字!");
         document.thisForm.pagenum.value="";
         event.returnValue=false;
       }
     }
   }   
   
</script>
<!--显示工具条-->
<table width="98%" align="center" cellspacing="0" cellpadding="0" border="0">
  <tr> 
    <td><a href="Sue.jsp"><img src="../images/all.gif" height="22" border="0" width="88"></a>
    <a href="SueAdd.jsp"><img src="../images/add.gif" alt="增加内容" width="79" height="22" border="0"  ></a>
    <img src="../images/delete.gif" alt="删除选中的内容" onClick="return selectID();" style="cursor:hand" width="79" height="22">
    <a href="SueSearch.jsp"><img src="../images/query.gif" alt="查询内容"   width="79" height="22" border="0"></a>
    <img src="../images/archive.gif" alt="结案选中的项目" onClick="return selectArchive();"  style="cursor:hand"  width="79" height="22"></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>
<!--显示工具条结束-->
<!--显示分页-->
<%@ include file="../inc/page1.jsp" %>
<!--显示分页结束-->    
<!--显示内容-->    
   
<form name="thisForm" METHOD="post" action="SueDel.jsp">  
<table width="98%" cellspacing="1" cellpadding="0"  height="25" align="center" border="0" class="table_bg">
   
  		<tr class="title_bg">     
      <td height="25" width="5%" align="center"> 
        <input  name="chkCheckAll" type="checkbox" enabled onclick="CheckAll();">    
      </td>    
      <td width="10%" align="center"> 
        <div align="center">  
          案件代码  
        </div>  
      </td>   
      <td width="12%" align="center"> 案件编号</td>   
      <td width="56%" align="center"> 
        <div align="center">  
          案由  
        </div>  
      </td>   
      <td width="9%" align="center"> 
        <div align="center">  
          承办律师  
        </div>  
      </td>   
      <td width="8%" align="center"> 操作</td>   
    </tr>   
    

    <%
    String 	beginDate = "";
    		
    for (int i=1;(i<=pagesize)&&(pagecount > 0);i++) 
    {
			//if(!rs.next()) break;
			//if(i==0) rs.first();				//游标回到首记录位置
			caseID = rs.getString("case_id");
			caseNo = rs.getString("case_no");
			if(caseNo == null) caseNo = "";
			caseReason = rs.getString("case_reason");
			if(caseReason == null) caseReason = "";
			beginDate = rs.getString("begin_date");
			if(beginDate == null) beginDate = "";			//判断空值,不显示为NULL
			else beginDate = beginDate.substring(0,10);					//时间格式转换
			
			lawyer = rs.getString("employee_name");
			if(lawyer == null) lawyer = "";
			
    	if(i%2 == 0)
    	{
    %>
    <tr class="tr_bg1">
    <%
    	}
    	else
    	{
    %>
    <tr class="tr_bg2">
    <%
    	}
    %>     
      <td height="25" width="5%" align="center"> 
        <input  name="rel" type="checkbox" enabled value=<%=caseID%>>   
      </td>   
      <td width="10%" align="right"><%=caseID%></td>   
      <td width="12%" align="right"><%=caseNo%></td>   
      <td width="56%" align="right"> <a href="SueInfo.jsp?caseID=<%=caseID%>"><%=caseReason%></a></td>   
      <td width="9%" align="right"> <%=lawyer%></td>   
      <td width="8%" align="center"> <a href="SueAmend.jsp?caseID=<%=caseID%>"><img src="../images/edit.gif" width="18" height="13" border="0" alt="修改" ></a></td>   
    </tr>   
    <%    
    if (!rs.next())
        break;
    }
    %>
               
  </table>   
  <input type="hidden" name="case_ids">
</form>   
<!--显示内容结束-->
<!--显示分页-->
<!--显示分页结束-->    
</body>    
</html>    

⌨️ 快捷键说明

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