コード例 #1
0
ファイル: N_SKSR_SAVE.java プロジェクト: 1003771635/NC632
 @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;
 }
コード例 #2
0
 @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;
 }
コード例 #3
0
ファイル: BillWeightCheck.java プロジェクト: yuxx3/nc65_yinhe
 /**
  * 获取车辆载重
  *
  * @param cvehicleid
  * @return
  */
 private UFDouble loadVehicleWight(String cvehicleid) {
   UFDouble weight = null;
   try {
     if (this.vehicleIndex.containsKey(cvehicleid)) {
       return this.vehicleIndex.get(cvehicleid);
     }
     VehicleVO vehicleVO = this.getVehicleQueryService().getVehicleVo(cvehicleid);
     if (vehicleVO != null) {
       weight = vehicleVO.getNload();
       this.vehicleIndex.put(cvehicleid, weight);
     }
   } catch (Exception e) {
     ExceptionUtils.wrappException(e);
   }
   return weight;
 }