客户名称根据申请编号显示

This commit is contained in:
tangft 2019-01-09 19:44:00 +08:00
parent 31e8c1cc18
commit 3ef2df03b5
4 changed files with 28 additions and 16 deletions

View File

@ -87,20 +87,20 @@
return;
} */
var operationType="<%=operationType%>";
if("BAIC_MOTOR"==operationType){
var sReturn = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","changFlowKey","projectNo="+projectNo+",flowunid=<%=sFlowUnid%>");
if("false"==sReturn){
return "申请编号保存错误!!!";
}
}
if(customerType=="01"||customerT=="01"){//·¨ÈË
//as_save("myiframe0","frame_list.window.saveCompany();");
// if("BAIC_MOTOR"==operationType){
var sReturn = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","changFlowKey","projectNo="+projectNo+",flowunid=<%=sFlowUnid%>");
if("false"==sReturn){
return "申请编号保存错误!!!";
}
// }
frame_list.window.saveCompany(inputName,inputTel,projectNo);
//as_save(0);
}
if(customerType=="03"||customerT=="03"){//×ÔÈ»ÈË
frame_list.window.saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo);
frame_list.window.saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo,operationType);
//as_save("myiframe0","frame_list.window.as_save(0);");
}
}

View File

@ -424,7 +424,7 @@
} */
}
function saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo){//±£´æ
function saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo,operationType){//±£´æ
//校验申请人手机号和配偶手机号是否重复
var RepeatReault = "";
var customerType = "03";
@ -544,14 +544,13 @@
var certid=getItemValue(0,0,"CERTID");
<%-- var customerid=RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerAction","updateCustomerId",'certid='+certid+',flowunid=<%=flowunid%>'); --%>
// setItemValue(0,0,"customerid",customerid);
as_save("0","saveCertInfo('"+inputName+"','"+inputTel+"','"+leasfrom+"','"+projectSource+"','"+projectNo+"')");
as_save("0","saveCertInfo('"+inputName+"','"+inputTel+"','"+leasfrom+"','"+projectSource+"','"+projectNo+"','"+operationType+"')");
return true;
};
}
function saveCertInfo(inputName,inputTel,leasfrom,projectSource,projectNo){
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoManage","saveCertInfo",'projectNo='+projectNo+',inputName='+inputName+',inputTel='+inputTel+',project_source='+projectSource+',leas_from='+leasfrom+',idexpiry='+getItemValue(0,0,"idexpiry")+',certtype='+getItemValue(0,0,"certtype")+',customerid='+getItemValue(0,0,"customerid")+',flowunid=<%=flowunid%>,certid='+getItemValue(0,0,"certid")+',name='+getItemValue(0,0,"name")+',userid=<%=CurUser.getUserID()%>,orgid=<%=CurUser.getOrgID()%>');
function saveCertInfo(inputName,inputTel,leasfrom,projectSource,projectNo,operationType){
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoManage","saveCertInfo",'projectNo='+projectNo+',inputName='+inputName+',operationType='+operationType+',inputTel='+inputTel+',project_source='+projectSource+',leas_from='+leasfrom+',idexpiry='+getItemValue(0,0,"idexpiry")+',certtype='+getItemValue(0,0,"certtype")+',customerid='+getItemValue(0,0,"customerid")+',flowunid=<%=flowunid%>,certid='+getItemValue(0,0,"certid")+',name='+getItemValue(0,0,"name")+',userid=<%=CurUser.getUserID()%>,orgid=<%=CurUser.getOrgID()%>');
if(sResult == "SUCCESS"){
parent.reloadSelf();
}

View File

@ -22,7 +22,7 @@ public class CompanyHandler extends CommonHandler{
BizObject fbo = fbom.createQuery("flow_unid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(true);
String pname = fbo.getAttribute("proj_name").getString();
pname = pname.substring(0, pname.indexOf("-"));
fbo.setAttributeValue("proj_name", pname+"-"+proj_name);
// fbo.setAttributeValue("proj_name", pname+"-"+proj_name);
fbom.saveObject(fbo);
BizObject lpit=lpitManage.createQuery("flowunid='"+bo.getAttribute("FLOWUNID").getString()+"'").getSingleResult(true);

View File

@ -50,6 +50,7 @@ public class CustomerInfoManage {
private String inputTel;
private String distributorCode;
private String projectNo;
private String operationType;
public String getDistributorCode() {
return distributorCode;
@ -271,6 +272,13 @@ public class CustomerInfoManage {
public void setProjectNo(String projectNo) {
this.projectNo = projectNo;
}
public String getOperationType() {
return operationType;
}
public void setOperationType(String operationType) {
this.operationType = operationType;
}
public String saveCustomerFamilyFormal(JBOTransaction tx){
try{
@ -389,9 +397,14 @@ public class CustomerInfoManage {
}
//update ÏîÄ¿Ãû³Æ
if(buss != null){
String projName = buss.getAttribute("proj_name").toString();
projName = projName.split("-")[0].toString();
buss.setAttributeValue("proj_name", projName + "-" + fullname);
if("BAIC_MOTOR".equals(operationType)){
buss.setAttributeValue("FLOW_KEY", projectNo);
buss.setAttributeValue("proj_name", projectNo + "-" + fullname);
}else{
String projName = buss.getAttribute("proj_name").toString();
projName = projName.split("-")[0].toString();
buss.setAttributeValue("proj_name", projName + "-" + fullname);
}
}
busObj.saveObject(buss);
bm.saveObject(proj);