diff --git a/src_tenwa/com/tenwa/lease/flow/project/businessapply/AccountInfoManage.java b/src_tenwa/com/tenwa/lease/flow/project/businessapply/AccountInfoManage.java index 974d2156b..ecd2532ef 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/businessapply/AccountInfoManage.java +++ b/src_tenwa/com/tenwa/lease/flow/project/businessapply/AccountInfoManage.java @@ -8,6 +8,7 @@ import java.util.Set; import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP; import jbo.app.tenwa.customer.DISTRIBUTOR_ACCOUNT_TEMP; import jbo.app.tenwa.customer.DISTRIBUTOR_INFO_TEMP; +import jbo.app.tenwa.customer.DISTRIBUTOR_SUBSIDIARY_TEMP; import com.amarsoft.are.jbo.BizObject; import com.amarsoft.are.jbo.BizObjectManager; @@ -20,7 +21,17 @@ public class AccountInfoManage { private String flowunid; private String id; private String DISTRIBUTOR_NO; + private String distributorId; + + public String getDistributorId() { + return distributorId; + } + + public void setDistributorId(String distributorId) { + this.distributorId = distributorId; + } + public String getDISTRIBUTOR_NO() { return DISTRIBUTOR_NO; } @@ -86,5 +97,16 @@ public class AccountInfoManage { return distributorName; } + public String CheckZhuzhangHu(JBOTransaction tx)throws JBOException{ + + BizObjectManager bm=JBOFactory.getBizObjectManager(DISTRIBUTOR_SUBSIDIARY_TEMP.CLASS_NAME); + tx.join(bm); + List obj=bm.createQuery("is_mian='01' and distributor_id=:distributor_id").setParameter("distributor_id",this.getDistributorId()).getResultList(false); + if (obj.size()>0) { + return "false"; + } else { + return "true"; + } + } }