From 317791fd282e31597066fcc6c0194b72e2382df7 Mon Sep 17 00:00:00 2001 From: hexiaomou Date: Tue, 26 Jun 2018 11:40:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=98=E6=AC=BE=E8=AE=A1?= =?UTF-8?q?=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/amarsoft/dict/als/manage/ColRelativeInfo.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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{