@Override protected AggReceiptNew[] processBP( Object userObj, AggReceiptNew[] clientFullVOs, AggReceiptNew[] originBills) { nc.itf.erp.IReceiptNewMaintain operator = NCLocator.getInstance().lookup(nc.itf.erp.IReceiptNewMaintain.class); AggReceiptNew[] bills = null; try { bills = operator.save(clientFullVOs, originBills); } catch (BusinessException e) { ExceptionUtils.wrappBusinessException(e.getMessage()); } return bills; }
/** * 通过校验受理情况,确认操作按钮是否可见 * * @param centercorpid * @param date */ public static boolean isMakeBtnVisible() { if (!isSettleCenter()) { return true; // 结算单位按钮可见 } ICommon icom = NCLocator.getInstance().lookup(ICommon.class); String pk_corp = ClientEnvironment.getInstance().getCorporation().getPrimaryKey(); UFDate date = ClientEnvironment.getInstance().getDate(); try { return icom.isStartProcess(pk_corp, date).booleanValue(); } catch (BusinessException e) { Logger.error(e.getMessage(), e); } return true; }
@Override protected AggOperatingincome[] processBP( Object userObj, AggOperatingincome[] clientFullVOs, AggOperatingincome[] originBills) { for (int i = 0; clientFullVOs != null && i < clientFullVOs.length; i++) { clientFullVOs[i].getParentVO().setStatus(VOStatus.UPDATED); } AggOperatingincome[] bills = null; try { nc.itf.erp.IOperatingincomeMaintain operator = NCLocator.getInstance().lookup(nc.itf.erp.IOperatingincomeMaintain.class); bills = operator.unapprove(clientFullVOs, originBills); } catch (BusinessException e) { ExceptionUtils.wrappBusinessException(e.getMessage()); } return bills; }
/** * 取出公司对应的内部客商 * * <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; }