diff --git a/src/com/amarsoft/dict/als/manage/ColRelativeInfo.java b/src/com/amarsoft/dict/als/manage/ColRelativeInfo.java index 71326a833..0fc85028a 100644 --- a/src/com/amarsoft/dict/als/manage/ColRelativeInfo.java +++ b/src/com/amarsoft/dict/als/manage/ColRelativeInfo.java @@ -33,6 +33,15 @@ public class ColRelativeInfo { .setParameter("distributorID", distributorID).getSingleResult(false); return bo2 != null?bo2.getAttribute("acc_number").getString():""; } + + //根据合同ID获取客户名称 + public static String getCustomerNameBycontractID(String contractID) throws JBOException{ + BizObject bo = JBOFactory.createBizObjectQuery(LB_UNION_LESSEE.CLASS_NAME,"CONTRACT_ID=:CONTRACT_ID and IS_MAIN='Y'") + .setParameter("CONTRACT_ID", contractID).getSingleResult(false); + return bo != null?bo.getAttribute("customer_name").getString():""; + } + + //根据客户ID获取客户名称 public static String getCustNameByCUSTID(String custID) throws JBOException{