示例#1
0
 /**
  * 取出公司对应的内部客商
  *
  * <p>作者:lpf 日期:2007-8-15
  */
 public static String getCorpCubasdoc(String pk_corp) {
   // String strWhere = " bd_cubasdoc.pk_corp1 = '" + pk_corp + "' ";
   // CustBasVO[] custbasVos = null;
   // try {
   // custbasVos =
   // OuterProxy.getCustManDocQuery().queryCustBasicInfo(strWhere,
   // getCorpPK());
   // } catch (BusinessException e) {
   // Logger.error(e.getMessage(), e);
   // }
   // if (custbasVos == null || custbasVos.length == 0)
   // return null;
   // return custbasVos[0].getPk_cubasdoc();
   String cubasstr = null;
   try {
     cubasstr = ClientInfo.getCorpCuBas(getCorpPK());
   } catch (BusinessException e) {
     Logger.error(e.getMessage(), e);
   }
   return cubasstr;
 }
示例#2
0
 /**
  * 不加入必须是内部筹投资单位的限制,只取出当前公司对应的内部客商
  *
  * <p>作者:lpf 日期:2007-8-15
  */
 public static String getCommonCurCorpCubasdoc() throws BusinessException {
   // String strWhere = " bd_cubasdoc.pk_corp1 = '" + getCorpPK() + "' ";
   // CustBasVO[] custbasVos =
   // OuterProxy.getCustManDocQuery().queryCustBasicInfo(strWhere,
   // getCorpPK());
   // if (custbasVos == null || custbasVos.length == 0)
   // throw new BusinessException(
   // nc.ui.ml.NCLangRes.getInstance().getStrByID("fbmcomm",
   // "UPPFBMComm-000153")/*
   // * @res
   // * "当前公司没有设置对应的内部客商!"
   // */);
   // if (custbasVos.length > 1) {
   // throw new BusinessException(
   // nc.ui.ml.NCLangRes.getInstance().getStrByID("fbmcomm",
   // "UPPFBMComm-000154")/*
   // * @res
   // * "当前公司设置对应的内部客商多于一个请处理!"
   // */);
   // }
   // return custbasVos[0].getPk_cubasdoc();
   return ClientInfo.getCorpCuBas(getCorpPK());
 }
示例#3
0
 /**
  * 得到当前公司PK
  *
  * <p>作者:lpf 日期:2007-10-10
  *
  * @return
  */
 public static String getCorpPK() {
   // TODO Auto-generated method stub
   return ClientInfo.getCorpPK();
 }