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

📄 advisoradd.jsp

📁 这是一个法律事务所系统源码
💻 JSP
📖 第 1 页 / 共 4 页
字号:
    if (num1 > 0) gid.setIDNumber("charge_id", gid.getIDNumber("charge_id")+1);

  } //if(num>0)

//END LAYER3----------------------------

//BEGIN LAYER5 ------处理客户新增信息


  String customer_id = request.getParameter("customer_id"),
  		customer_name = request.getParameter("customer_name"),
  		tempCustomer = request.getParameter("txtCustomer");
  if((num>0) && (customer_id != null) && (!customer_id.equals(""))
  	&& (customer_name != null) && (!customer_name.equals(""))
  	&& ((tempCustomer == null) || (tempCustomer.equals(""))))
  {   //客户记录存在时处理
    String link_man, telephone, mobile_telephone;
    String email, address, customer_type, customer_introduce, fax, enter_date, lawyer_id;
    customer_id = request.getParameter("customer_id");
    customer_name = es.getStr(request.getParameter("customer_name"));
    link_man = es.getStr(request.getParameter("link_man"));
    telephone = es.getStr(request.getParameter("telephone"));
    mobile_telephone = es.getStr(request.getParameter("mobile_telephone"));
    email = es.getStr(request.getParameter("email"));
    address = es.getStr(request.getParameter("address"));
    customer_type = request.getParameter("customer_type");
    customer_introduce = es.getStr(request.getParameter("customer_introduce"));
    fax = es.getStr(request.getParameter("fax"));
    enter_date = toDate; //request.getParameter("enter_date");  //
    lawyer_id = request.getParameter("txtLawyer");    //
    sql = "insert into t_customer(customer_id,customer_name";
    if (link_man!=null)
      sql = sql + ",link_man";
    if (telephone!=null)
      sql = sql + ",telephone";
    if (mobile_telephone!=null)
      sql = sql + ",mobile_telephone";
    if (email!=null)
      sql = sql + ",email";
    if (address!=null)
      sql = sql + ",address";
    if (customer_type!=null)
      sql = sql + ",customer_type";
    if (customer_introduce!=null)
      sql = sql + ",customer_introduce";
    if (fax!=null)
      sql = sql + ",fax";
    if ((enter_date!=null) && (!enter_date.equals("")))
      sql = sql + ",enter_date";
    if ((lawyer_id!=null) && (!lawyer_id.equals("")))
      sql = sql + ",lawyer_id";
    sql = sql + ") values('"+customer_id+"','"+customer_name+"'";
    if (link_man!=null)
      sql = sql + ",'" + link_man + "'";
    if (telephone!=null)
      sql = sql + ",'" + telephone + "'";
    if (mobile_telephone!=null)
      sql = sql + ",'" + mobile_telephone + "'";
    if (email!=null)
      sql = sql + ",'" + email + "'";
    if (address!=null)
      sql = sql + ",'" + address + "'";
    if (customer_type!=null)
      sql = sql + ",'" + customer_type + "'";
    if (customer_introduce!=null)
      sql = sql + ",'" + customer_introduce + "'";
    if (fax!=null)
      sql = sql + ",'" + fax + "'";
    if ((enter_date!=null) && (!enter_date.equals("")))
      sql = sql + ",'" + enter_date + "'";
    if ((lawyer_id!=null) && (!lawyer_id.equals("")))
      sql = sql + ",'" + lawyer_id + "'";
    sql = sql + ")";
    num1 = db.executeUpdate(sql);
    if (num1 <= 0) {%>  
		<script language="javascript">
  		alert("客户信息新增失败!");
		</script>
  	<%}else {
      gid.setIDNumber("customer_id", gid.getIDNumber("customer_id")+1);
      customerID = "KH" + es.digitToString(gid.getIDNumber("customer_id")+1);
    }       
  }	// if((num>0) && 
//END LAYER5--------------------------

  }	//if(str!=null)
%>


<html>
<head>
<title>顾问信息新增</title>
<%@ include file="../inc/config.jsp" %>
<script language="JavaScript">
<!--


//取费用编码流水号    
getCostIDNumberState=0
function getCostIDNumber()
{
	if((getCostIDNumberState%2) == 0)
		document.myForm.charge_id.value=document.myForm.txtCostIDNumber.value;
	else
		document.myForm.charge_id.value="";
	getCostIDNumberState++;
}                   

//取客户编码流水号    
getCustomerIDNumberState=0
function getCustomerIDNumber()
{
	if((getCustomerIDNumberState%2) == 0)
		document.myForm.customer_id.value=document.myForm.txtCustomerIDNumber.value;
	else
		document.myForm.customer_id.value="";
	getCustomerIDNumberState++;
}            

// -->
</script>
<script language="JavaScript">
<!--
FileCount=0
RealFileCount=0
function addfile()
{
FileCount++;
RealFileCount++;
spFileCount.innerText=RealFileCount;
tempTxt="<table id=sp"+FileCount+" border='0' cellspacing='0' cellpadding='0' height='25' width='100%' >"
tempTxt+="<tr class='tr_bg1' align='center'>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='35%' > "
tempTxt+="<input type='text' name='txtTranCont"+FileCount+"' size='30' class='input'>"
tempTxt+="</td>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='15%'   > "
tempTxt+="<input type='text' name='txtBeginTime"+FileCount+"' maxlength='10' size='10' value='' class='input'  readOnly>"
tempTxt+="<img src='../images/datetime.gif' border='0' align='absmiddle' alt='弹出日历下拉菜单' onClick='fPopUpCalendarDlg(txtBeginTime"+FileCount+");return false' width='16' height='16'></td>"
tempTxt+="<td  class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='15%'> "
tempTxt+="<input type='text' name='txtSpendTime"+FileCount+"' size='10' class='input'>"
tempTxt+="</td>"
tempTxt+="<td  class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='25%'> "
tempTxt+="<input type='text' name='txtResult"+FileCount+"' size='20' class='input'>"
tempTxt+="</td>"
tempTxt+="<td  class='table_bg'><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='10%'><a href='#'><img src='../images/del.gif' width='16' height='16' alt='删除' onClick=\"sp"+FileCount+".style.display='none';txtTranCont"+FileCount+".value='';RealFileCount--;spFileCount.innerText=RealFileCount;form1.txtTranCont"+FileCount+".text='';\" style='cursor:hand' border='0'></a></td>"
tempTxt+="<td  class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="</tr>"
tempTxt+="<tr class='tr_bg1' align='center'> "
tempTxt+="<td  class='table_bg'  colspan='11' height='1' ></td>"
tempTxt+="</tr>"
tempTxt+="</table>"
document.myForm.txtFileCount.value=FileCount
attach.insertAdjacentHTML("BeforeEnd",tempTxt);
}

FileCount1=0
RealFileCount1=0
function addfile1()
{
FileCount1++;
RealFileCount1++;
spFileCount1.innerText=RealFileCount1;
tempTxt="<table id=sp"+FileCount1+" border='0' cellspacing='0' cellpadding='0' height='25' width='100%' >"
tempTxt+="<tr class='tr_bg1' align='center'>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='11%' >"
tempTxt+="<input type='text' name='txtTranCont'+FileCount1+'' size='6' class='input'>"
tempTxt+="</td>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='23%' >"
tempTxt+="<input type='text' name='txt32"+FileCount1+"' size='20' class='input'>"
tempTxt+="</td>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='12%' >"
tempTxt+="<input type='text' name='txt32'+FileCount1+'' size='8' class='input'>"
tempTxt+="</td>"
tempTxt+="<td class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='17%'>"
tempTxt+="<input type='text' name='fromDate"+FileCount1+"' maxlength='10' size='10' value='' class='input'  readOnly>"
tempTxt+="<img src='../images/datetime.gif' border='0' align='absmiddle' alt='弹出日历下拉菜单' onClick='fPopUpCalendarDlg(fromDate"+FileCount1+");return false' width='16' height='16'></td>"
tempTxt+="<td  class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='12%'>"
tempTxt+="<input type='text' name='textfield32' size='6' class='input'>"
tempTxt+="</td>"
tempTxt+="<td  class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='9%'>"
tempTxt+="<input type='text' name='textfield3' size='6' class='input'>"
tempTxt+="</td>"
tempTxt+="<td  class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='8%'>"
tempTxt+="<input type='text' name='textfield32' size='6' class='input'>"
tempTxt+="</td>"
tempTxt+="<td  class='table_bg'><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="<td width='8%'><a href='#'><img src='../images/del.gif' width='16' height='16' alt='删除' onClick=\"sp"+FileCount1+".style.display='none';RealFileCount1--;spFileCount1.innerText=RealFileCount1;form1.txtTranCont"+FileCount1+".text='';\" style='cursor:hand' border='0'></a></td>"
tempTxt+="<td  class='table_bg' ><img src='../images/c.gif' width='1' height='1'></td>"
tempTxt+="</tr>"
tempTxt+="<tr class='tr_bg1' align='center'> "
tempTxt+="<td  class='table_bg'  colspan='17' height='1' ></td>"
tempTxt+="</tr>"
tempTxt+="</table>"
attach1.insertAdjacentHTML("BeforeEnd",tempTxt);
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}


//-->
</script>
</head>

<body class=page>
<script language="javascript">     

//检测合同金额输入的合法性
  function checkNumber(num) {
    var legalchar=new Array("1","2","3","4","5","6","7","8","9","0",".");
    var t="";
    var dot = 0;
    for(i=0;i<num.length;i++) {
      n=num.substr(i,1);
      for(j=0;j<legalchar.length;j++) {
        if(n==legalchar[j]) {
          if (n==".")
            dot = dot + 1;
          break;
        }
      }
      if (j == legalchar.length)
        t = t + n;
    }

⌨️ 快捷键说明

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