Ejemplo n.º 1
0
 @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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
 /**
  * 获取车辆载重
  *
  * @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;
 }