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

📄 sueamend.jsp

📁 这是一个法律事务所系统源码
💻 JSP
📖 第 1 页 / 共 4 页
字号:
<%--
模块名称:诉讼案件
模块功能:案件修改
版    本:V1.0
著 作 人:谢永刚(ui) SIMM(java)
著作日期:2001-10-21
该模块所需的文件:
使用说明:
主要技术说明:
参考文献:法律事务设计书
修改历史:= = = = = = = = = = = = = = = = = = = = = = = = = =
	修改日期:
	修 改 人:
	修改理由:
	修改出处:
	= = = = = = = = = = = = = = = = = = = = = = = = = =

--%>

<%@ 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" />
<%@ page import="system.*" %>
<%
  Security auth = new Security();
  String scu_employee_id = (String)session.getAttribute("employee_id");
  if(scu_employee_id == null || scu_employee_id.equals(""))
  {
    response.sendRedirect(response.encodeRedirectURL("../Error/nonlogin.htm"));
  }
  String modelid = "Law023";         //	案件管理/顾问管理修改
  int authflag = auth.popedom(scu_employee_id, modelid);
  if(authflag == 0 || authflag == 2 || authflag == -1)
  {%>
  <jsp:forward page="../inc/noauth.jsp" >
  </jsp:forward>
<%}%>

<%
//---------------------------------------
//BEGIN----案件信息处理部分
//-----------------------------------------
  String 	
  			caseID = "",					//案件编码  	 		
  			caseNo = "",					//案件编号(法院)
  	 		caseReason = "",			//案由
  	 		approveMan = "",			//审批人
  	 		lawyer = "",					//律师
  	 		caseType = "",				//案件类别
  	 		caseAttribute = "",					//案件属性
  	 		agentSide = "",							//委托角色
  	 		customer = "",							//委托人
  	 		referForeign = "",					//涉外信息
  	 		court = "",									//受理法院
  	 		defendantInfo = "",					//被告简介
  	 		plaintiffInfo = "",					//原告简介  	 							
    		beginDate = "",							//收案时间
    		endDate = "",								//结案时间
    		judgeLevel = "",						//审级
    		judgeToCustomerDate = "", 	//判决书递交客户时间
    		charged = "", 							//是否收费
    		noPayReason = "", 					//免费事由
    		proof = "", 								//相关证据
    		courtReport = "", 					//开庭报告
    		discussRecord = "", 				//案情讨论记录
    		courtBook = "", 						//法院文书    		
    		agentWord = "", 						//律师代理词
    		indictment = "", 						//律师起诉状
    		courtNote = "", 						//律师庭审笔录
    		readNote = "", 							//律师阅卷笔录
    		caseBrief = "", 						//办案小结
    		judgeResult = "", 					//判决结果
    		caseRemark = "", 							//备注    
    		customerID = "";
 
  caseID = request.getParameter("caseID");
  String sql =  "select case_no,case_reason " +
  				", approve_man, employee_name, case_type, case_attribute" +
  				", agent_side, refer_foreign, court, defendant_info " +
  				", plaintiff_info, begin_date, end_date,judge_level" +
  				", judge_to_customer_date, charged, no_pay_reason, proof" +
  				", court_report, discuss_record, court_book,agent_word, indictment" +
  				", court_note, read_note, case_brief, judge_result, case_remark" +  	
  				", customer_name, customer_id" +			
  				" from V_SUEINFO " +
  				" where CASE_ID = '" + caseID + "'"; 		//查询记录
  ResultSet rs = db.executeQuery(sql);
  if (!rs.next())
  {
  	return;
  }
  else
  {
			caseNo = rs.getString("case_no");					//案件编号(法院)
			if(caseNo == null) caseNo = "";			
  	 		caseReason = rs.getString("case_reason");			//案由  	 		
  	 
  	 		approveMan = rs.getString("approve_man");			//审批人
  	 		if(approveMan == null) approveMan = "";
  	 		lawyer = rs.getString("employee_name");					//律师
  	 		if(lawyer == null) lawyer = "";

  	 		caseType = rs.getString("case_type");				//案件类别
  	 		if(caseType == null)	caseType = "";
  	 		
  	 		caseAttribute = rs.getString("case_attribute");					//案件属性
  	 		if(caseAttribute == null) caseAttribute = "";    
  	 		else caseAttribute = caseAttribute.trim();
  	 		
  	 		agentSide = rs.getString("agent_side");						//委托角色
  	 		if(agentSide == null) agentSide = "";             
  	 		else agentSide = agentSide.trim();
  	 		
  	 		referForeign = rs.getString("refer_foreign");					//涉外信息
  	 		if(referForeign == null) referForeign = "";   
  	 		else referForeign = referForeign.trim();
  	 		
  	 		court = rs.getString("court");									//受理法院
  	 		if(court == null) court = "";
  	 		
  	 		defendantInfo = rs.getString("defendant_info");					//被告简介
  	 		if(defendantInfo == null) defendantInfo= "";
  	 		
  	 		plaintiffInfo = rs.getString("plaintiff_info");					//原告简介  	 							
  	 		if(plaintiffInfo == null) plaintiffInfo= "";
  	 		
    		beginDate = rs.getString("begin_date");							//收案时间    		    		
   			if(beginDate == null) beginDate = "";			//判断空值,不显示为NULL
			else beginDate = beginDate.substring(0,10);				//时间格式转换
				
			endDate = rs.getString("end_date");								//结案时间   					
			if(endDate == null) endDate = "";
			else	endDate = endDate.substring(0,10);					//时间格式转换
	
    		judgeLevel = rs.getString("judge_level");						//审级
    		if(judgeLevel == null) judgeLevel= "";
    		
    		judgeToCustomerDate = rs.getString("judge_to_customer_date"); 	//判决书递交客户时间
    		if(judgeToCustomerDate == null) judgeToCustomerDate= "";
    		
    		charged = rs.getString("charged"); 							//是否收费
    		if(charged == null) charged= "";
    		
    		noPayReason = rs.getString("no_pay_reason"); 					//免费事由
    		if(noPayReason == null) noPayReason= "";
    		
    		proof = rs.getString("proof"); 								//相关证据
    		if(proof == null) proof= "";
    		
    		courtReport = rs.getString("court_report"); 					//开庭报告
    		if(courtReport == null) courtReport= "";
    		
    		discussRecord = rs.getString("discuss_record"); 				//案情讨论记录
    		if(discussRecord == null) discussRecord= "";
    		
    		courtBook = rs.getString("court_book"); 						//法院文书    		
    		if(courtBook == null) courtBook= "";
    		
    		agentWord = rs.getString("agent_word"); 						//律师代理词
    		if(agentWord == null) agentWord= "";
    		
    		indictment = rs.getString("indictment"); 						//律师起诉状
    		if(indictment == null) indictment= "";
    		
    		courtNote = rs.getString("court_note"); 						//律师庭审笔录
    		if(courtNote == null) courtNote= "";
    		
    		readNote = rs.getString("read_note"); 							//律师阅卷笔录
    		if(readNote == null) readNote= "";
    		
    		caseBrief = rs.getString("case_brief"); 						//办案小结
    		if(caseBrief == null) caseBrief = "";
    		
    		judgeResult = rs.getString("judge_result"); 					//判决结果
    		if(judgeResult == null) judgeResult = "";
    		
    		caseRemark = rs.getString("case_remark"); 							//备注
    		if(caseRemark == null) caseRemark = "";                      
    		
    		customer = rs.getString("customer_name");                       //委托人
    		if(customer == null) customer = "";
    		customerID = rs.getString("customer_id");  
/**/	} 
	
	

//---------------------------------------
//BEGIN---法律顾问事务信息处理部分

	String sql2 = "select item_id,item_name,begin_time,spend_time,item_result " +
				" from t_caseafair where case_id='" + caseID + "' order by item_id"; 
	ResultSet rs1 = db.executeQuery(sql2);

	/*if(rs1 != null)
	{
		out.println(rs1.getRow());
		if(rs1.next()) 
		{caseID = rs1.getString(1);
		out.println("caseid:" + caseID);
		}
	}	
	else out.println("it is null");
*/
//END---法律顾问案件信息处理部分
//-----------------------------------------	

//-----------------------------------------
//BEGIN---费用信息部分--------------------

  String charge_id = "",
   		 charge_sum = "",
   		 case_id = "",
   		 case_reason = "", 
   		 part_proportion = "", 
   		 case_object = "", 
   		 time_limit = "";
  String payment_method = "", 
  		receive_time = "", 
  		charge_standard = "", 
  		discount = "", 
  		discount_person = "",
   		charge_person = "", 
  		currency_kind = "", 
  		comment = "";
  sql = "select a.charge_id, a.charge_sum, a.case_id,  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 + " from t_charge a where";
  sql = sql + " a.case_id = '" + caseID + "'";  
  sql = sql + " and a.charge_type = 'ht'";
  rs = db.executeQuery(sql);
  if (rs.next()) {
    charge_id = rs.getString("charge_id");
    charge_sum = rs.getString("charge_sum");
    if ((charge_sum.indexOf(".")) >= 0) {
      charge_sum=charge_sum + "00";
      charge_sum=charge_sum.substring(0,charge_sum.indexOf(".")+3);
    }
    part_proportion = rs.getString("part_proportion");
    if(part_proportion == null) part_proportion = "";
    case_object = rs.getString("case_object");
    if(case_object == null) 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");
    if(charge_standard == null) charge_standard = "";
    discount = rs.getString("discount");             
    if(discount == null) discount = "";
    discount_person = rs.getString("discount_person");
    if(discount_person == null) discount_person = "";
    charge_person = rs.getString("charge_person");   
    if(charge_person == null) charge_person = "";
    currency_kind = rs.getString("currency_kind");
    comment = rs.getString("comment");            
    if(comment == null) comment = "";
    
    if(time_limit != null) time_limit = time_limit.substring(0,10);
    else time_limit = "";
    
    if(receive_time != null) receive_time = receive_time.substring(0,10);
    else receive_time = "";    
  }
//END---------------------------------------------     
//-------------------------------------------
//BEGIN  其他费用列表显示

  sql = "select charge_id, charge_name, charge_sum,";
  sql = sql + " payment_method, receive_time,";
  sql = sql + " charge_person, currency_kind";
  sql = sql + " from t_charge  where";
  sql = sql + " case_id = '" + caseID + "'";  
  sql = sql + " and charge_type = 'qt'";     
  ResultSet rs2 = db.executeQuery(sql);
           
//END--------------------------------------------- 
//-------------------------------------------
//BEGIN--客户信息处理---c

  String cLinkMan = "",
  		cCustomerID = "",
  		cCustomerName = "", 
  		cTelephone = "", 
  		cMobile = "",
  		cFax = "", 
  		cEmail = "", 
  		cCustomerType = "",
  		engCustomerType = "",	//拼音代号 
  		cAddress = "", 
  		cCustomerIntroduce = "";
  sql = "select link_man, customer_name, telephone,";
  sql = sql + "mobile_telephone, fax, email, customer_type, address,";
  sql = sql + "customer_introduce from t_customer where customer_id='";
  sql = sql + customerID + "'";       
  rs = db.executeQuery(sql);
  if (rs.next()) {
    cLinkMan = rs.getString("link_man");
    if(cLinkMan == null) cLinkMan = "";             
    
    cCustomerID = customerID;
    cCustomerName = rs.getString("customer_name"); 
    if(cCustomerName == null) cCustomerName = "";        
    
    cTelephone = rs.getString("telephone");       
    if(cTelephone == null) cTelephone = "";         
    
    cMobile = rs.getString("mobile_telephone");          
    if(cMobile == null) cMobile = "";    
    
    cFax = rs.getString("fax");                 
    if(cFax == null) cFax = "";            
    
    cEmail = rs.getString("email");                 
    if(cEmail == null) cEmail = "";       
    
    cCustomerType = rs.getString("customer_type");    
    
    cAddress = rs.getString("address");                
    if(cAddress == null) cAddress = "";             
    
    cCustomerIntroduce = rs.getString("customer_introduce");        
    if(cCustomerIntroduce == null) cCustomerIntroduce = "";     
    
    if(cCustomerType != null) engCustomerType = cCustomerType;
    
    if(cCustomerType == null) cCustomerType = "";   
    else if(cCustomerType.equals("zf")) cCustomerType = "政府";
    else if(cCustomerType.equals("gq")) cCustomerType = "国企";
    else if(cCustomerType.equals("sz")) cCustomerType = "三资";
    else if(cCustomerType.equals("my")) cCustomerType = "民营";

⌨️ 快捷键说明

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