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

📄 testimonyamend.jsp

📁 这是一个法律事务所系统源码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%--
模块名称:律师见证
模块功能:修改
版    本:V1.0
著 作 人:SIMM
著作日期:2001-10-31
该模块所需的文件:BulletionAmend.jsp 
使用说明:
主要技术说明:
参考文献:法律事务设计书
修改历史:= = = = = = = = = = = = = = = = = = = = = = = = = =
	修改日期:
	修 改 人:
	修改理由:
	修改出处:
	= = = = = = = = = = = = = = = = = = = = = = = = = =

--%>
<%@ 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 = "",				//案件编码
  	 		caseReason = "",			//案由
    		beginDate = "",				//时间
    		caseObject = "",
    		mainContent = "",			//内容
    		referForeign = "",			//涉外信息
    		charged = "",				//是否收费
    		noPayReason = "",			//免费事由
    		lawyer = "",				//承办律师
    		customer = "",
    		customerID = "";
    		
  caseID = request.getParameter("caseID");
  String sql = "select CASE_REASON,BEGIN_DATE" +
  				", case_object" +
  				", main_content, refer_foreign" +
  				", charged, no_pay_reason, EMPLOYEE_name " +
  				", customer_name, customer_id" +
  				" from v_nonsueinfo where CASE_ID = '" + caseID + "'"; 		//查询记录
 
  ResultSet rs = db.executeQuery(sql);
  if (!rs.next())
  {
  	return;
  }
  else
  {
		caseReason = rs.getString("case_reason");
		beginDate = rs.getString("begin_date");			//时间
		if(beginDate == null) beginDate = "";			//判断空值,不显示为NULL
		else beginDate = beginDate.substring(0,10);		//时间格式转换
		
		caseObject = rs.getString("case_object");		//标的
		if(caseObject == null) caseObject = "";
    	
    	mainContent = rs.getString("main_content");		//内容
    	if(mainContent == null) mainContent = "";
    	referForeign = rs.getString("refer_foreign");	//涉外信息
    	charged = rs.getString("charged");				//是否收费
    	noPayReason = rs.getString("no_pay_reason");	//免费事由
    	if(noPayReason == null) noPayReason = "";
    	lawyer = rs.getString("employee_name");			//承办律师	
		if(lawyer == null) lawyer = "";
		customer = rs.getString("customer_name");
		if(customer == null) customer = "";
		customerID = rs.getString("customer_id");									
	}


//---------------------------------------
//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 = "民营";
    else if(cCustomerType.equals("gr")) cCustomerType = "个人";
    else if(cCustomerType.equals("qt")) cCustomerType = "其他";
        
  }

//END---------------------------------------------
%>



<html>

<head>
<title>律师见证修改</title>
<%@ include file="../inc/config.jsp" %>

<script language="javascript">
	//检查输入的合法性
	
  function checkForm() 
  {  	
    if (document.myForm.txtCaseID.value=="") 
    {
      MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide','Layer4','','hide')     
      alert("请输入案件编码!");
      document.myForm.txtCaseID.focus();
      return false;
    }
    if (document.myForm.txtLawyer.value=="") 
    {
      MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide','Layer4','','hide')     
      alert("请输入承办律师!");
      document.myForm.txtLawyer.focus();
      return false;
    }
    if (document.myForm.txtCaseReason.value=="") 
    {
      MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide','Layer4','','hide')     
      alert("请输入案由内容!");
      document.myForm.txtCaseReason.focus();
      return false;
    }
    if (document.myForm.txtBeginDate.value=="") 
    {
      MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide','Layer4','','hide')     
      alert("请输入开始时间!");
      document.myForm.txtBeginDate.focus();
      return false;
    }
    if ((document.myForm.txtCharged.value=="1") && 
    		(document.myForm.txtNoPayReason.value!=""))
    {
      MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide','Layer4','','hide')     
      alert("收费时不应该有免费原由!");
      document.myForm.txtNoPayReason.focus();
      return false;
    }
    if (document.myForm.txtMainContent.value.length>200) 
    {
      alert("见证内容长度不能超过200个字!");
      document.myForm.txtMainContent.focus();
      return false;
    }    
    return true;
  }
  
 </script>
</head>

<body class="page">

<!--显示工具条-->
<form name="myForm" METHOD="post" action="TestimonyAmendRun.jsp">
<div id="Layer1" style="Position:absolute; top:70px; width:98%; height:236px; z-index:1; visibility: visible"> 
  <table border="0" cellspacing="0" cellpadding="0" height="25" >
    <tr class="tr_bg1" align="center"> 
      <td  class="table_bg"  colspan="11" height="1" ></td>
    </tr>
    <tr class="tr_bg1" align="center"> 
      <td class="table_bg" width="1" ></td>
      <td onClick="MM_showHideLayers('Layer1','','show','Layer2','','hide','Layer3','','hide','Layer4','','hide')" style="cursor:hand"  class="tr_bg2" width="70" >案件信息</td>
      <td class="table_bg" width="1"></td>
      <td  onClick="MM_showHideLayers('Layer1','','hide','Layer2','','show','Layer3','','hide','Layer4','','hide')"  style="cursor:hand" width="70">费用信息</td>
      <td  class="table_bg" width="1"></td>
      <td  onClick="MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','show','Layer4','','hide')"  style="cursor:hand" width="90">其他费用列表</td>
      <td  class="table_bg" width="1"></td>
      <td  onClick="MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','hide','Layer4','','show')"  style="cursor:hand" width="80">委托人信息</td>
      <td  class="table_bg" width="1"></td>
    </tr>
  </table>
  <table align="center" border="0" cellspacing="1" cellpadding="5" class="table_bg" width="100%">
    <tr> 
      <td width="18%"  align="right" class="title_bg"> 编 码:</td>
      <td width="28%" class="tr_bg1"> 
        <input name="txtCaseID" size="12" class="input" readOnly value=<%=caseID%>>
        <font color="#FF0000">* </font>
      </td>
      <td width="19%"  align="right" class="title_bg"> </td>
      <td width="35%" class="tr_bg1"> 
        <input type="hidden" name="txtCaseObject" size="12" class="input" value=<%=caseObject%>>
      </td>
    </tr>
    
    <tr> 
      <td align=right width=18% class="title_bg"> 承办律师:</td>
      <td class="tr_bg1" width="28%"> 
        <select name="txtLawyer" class="select" >        
        <%
        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");
          if (employee_name.equals(lawyer))
          {%>
        <option value=<%=employee_id%> selected><%=employee_name%></option>
        <%}else{%>
        <option value=<%=employee_id%>><%=employee_name%></option>
      <%}
       } %>
        </select><font color="#FF0000">* </font>
      </td>      
      <td align=right width=19% class="title_bg"> 见证时间:</td>
      <td width=35% class="tr_bg1" > 
        <input type="text" name="txtBeginDate" maxlength="10" size="10" value=<%=beginDate%> class="input"  readOnly>
        <img src="../images/datetime.gif" border="0" align="absmiddle" 
                  alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(txtBeginDate);return false" width="16" height="16"> 
        <font color="#FF0000">* </font>
      </td>
    </tr>
    <tr> 
      <td align="right" width="18%" class="title_bg"> 案由:</td>
      <td class="tr_bg1" colspan="3"> 
        <input name="txtCaseReason" size="51" class="input" value=<%=caseReason%>>
        <font color="#FF0000">* </font>
      </td>
    </tr>
    <tr> 
      <td align="right" width="18%" class="title_bg"> 见证内容:</td>
      <td colspan="3" class="tr_bg1"> 
        <textarea name="txtMainContent" cols="80" wrap="VIRTUAL" rows="3" class="input" value=<%=mainContent%>><%=mainContent%></textarea>
      </td>
    </tr>
    <tr> 
      <td align=right width=18% class="title_bg"> 涉外信息:</td>

⌨️ 快捷键说明

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