法人客戶带值和经销商带值
This commit is contained in:
parent
13175e1c8f
commit
4c166172c2
@ -3,16 +3,29 @@ package com.tenwa.customer.controller.account;
|
||||
import java.util.List;
|
||||
|
||||
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_INFO;
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_INFO_TEMP;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
|
||||
public class CustomerAccountController {
|
||||
private String customer_id="";
|
||||
private String id="";
|
||||
private String account;
|
||||
|
||||
|
||||
public String getAccount() {
|
||||
return account;
|
||||
}
|
||||
|
||||
public void setAccount(String account) {
|
||||
this.account = account;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
@ -61,4 +74,13 @@ public class CustomerAccountController {
|
||||
}
|
||||
return "false";
|
||||
}
|
||||
|
||||
//´øÖµ
|
||||
public String selectAccountName(JBOTransaction tx) throws JBOException{
|
||||
BizObjectManager bs = JBOFactory.getBizObjectManager(CUSTOMER_INFO.CLASS_NAME,tx);
|
||||
BizObject dgc = bs.createQuery("customerid=:customerid").setParameter("customerid",customer_id).getSingleResult(false);
|
||||
String distributorName =dgc!=null?dgc.getAttribute("customername").toString():"";
|
||||
return distributorName;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -12,7 +12,8 @@ public class CustomerGroupCompanyHandler extends CommonHandler{
|
||||
JBOTransaction tx = JBOFactory.createJBOTransaction();
|
||||
String groupCompanyNumber = SerialNumberUtil.getGroupCompanyNumber(tx);
|
||||
tx.commit();
|
||||
// bo.setAttributeValue("group_no", groupCompanyNumber);
|
||||
//集团编号是否自动生成
|
||||
bo.setAttributeValue("group_no", groupCompanyNumber);
|
||||
super.initDisplayForAdd(bo);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user