北汽产品显示输入的申请编号

This commit is contained in:
tangft 2019-01-02 19:12:49 +08:00
parent ba20499e6f
commit 2c8363516b
3 changed files with 46 additions and 0 deletions

View File

@ -86,6 +86,15 @@
alert("业务申请编号已被占用,请重新填写!!!");
return;
} */
var operationType="<%=operationType%>";
if("BAIC_MOTOR"==operationType){
alert(11);
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();");
frame_list.window.saveCompany(inputName,inputTel,projectNo);

View File

@ -0,0 +1,24 @@
package com.tenwa.flow.rent.carddeduct;
import jbo.com.tenwa.lease.comm.LB_EQUIPMENT_CAR_TEMP;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.are.jbo.JBOTransaction;
import com.amarsoft.awe.dw.handler.impl.CommonHandler;
public class ChooseDistirbutorName extends CommonHandler {
@Override
protected void afterUpdate(JBOTransaction tx, BizObject bo)
throws Exception {
BizObjectManager lectManage=JBOFactory.getFactory().getManager(LB_EQUIPMENT_CAR_TEMP.CLASS_NAME, tx);
BizObject lect = lectManage.createQuery("FLOWUNID=:flowunid").setParameter("flowunid", bo.getAttribute("FLOWUNID").toString()).getSingleResult(true);
if(lect!=null){
lect.setAttributeValue("VNDR_NAME", bo.getAttribute("DISTRIBUTOR_NAME").toString());
lectManage.saveObject(lect);
}
tx.commit();
}
}

View File

@ -7,6 +7,7 @@ import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP;
import jbo.app.tenwa.customer.CUSTOMER_PERSON;
import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP;
import jbo.app.tenwa.customer.DISTRIBUTOR_INFO;
import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT;
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT;
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP;
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO;
@ -433,4 +434,16 @@ public class CustomerInfoCheck {
}
return msg;
}
//如果是北汽的产品修改FLOW_BUSSINESS_OBJECT中的flow_key
public String changFlowKey(JBOTransaction tx) throws Exception{
BizObjectManager fboManage = JBOFactory.getBizObjectManager(FLOW_BUSSINESS_OBJECT.CLASS_NAME, tx);
BizObject fbo = fboManage.createQuery("FLOW_UNID=:flowunid").setParameter("flowunid", flowunid).getSingleResult(true);
if(fbo!=null){
fbo.setAttributeValue("FLOW_KEY", projectNo);
fboManage.saveObject(fbo);
tx.commit();
return "true";
}
return "false";
}
}