Class PackingServices


  • public class PackingServices
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String module  
      static java.lang.String resource  
    • Constructor Summary

      Constructors 
      Constructor Description
      PackingServices()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.Object> addPackLine​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> calcPackSessionAdditionalShippingCharge​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> clearLastPackage​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> clearPackAll​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> clearPackLine​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> completePack​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> incrementPackageSeq​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> packBulk​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      Create or update package lines.
      static java.math.BigDecimal setSessionPackageWeights​(PackingSession session, java.util.Map<java.lang.String,​java.lang.String> packageWeights)  
      static void setSessionShipmentBoxTypes​(PackingSession session, java.util.Map<java.lang.String,​java.lang.String> boxTypes)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • PackingServices

        public PackingServices()
    • Method Detail

      • addPackLine

        public static java.util.Map<java.lang.String,​java.lang.Object> addPackLine​(DispatchContext dctx,
                                                                                         java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • packBulk

        public static java.util.Map<java.lang.String,​java.lang.Object> packBulk​(DispatchContext dctx,
                                                                                      java.util.Map<java.lang.String,​? extends java.lang.Object> context)

        Create or update package lines.

        Context parameters:
        • selInfo - selected rows
        • iteInfo - orderItemIds
        • prdInfo - productIds
        • pkgInfo - package numbers
        • wgtInfo - weights to pack
        • numPackagesInfo - number of packages to pack per line (>= 1, default: 1)
          Packs the same items n times in consecutive packages, starting from the package number retrieved from pkgInfo.
        Parameters:
        dctx - the dispatch context
        context - the context
        Returns:
        returns the result of the service execution
      • incrementPackageSeq

        public static java.util.Map<java.lang.String,​java.lang.Object> incrementPackageSeq​(DispatchContext dctx,
                                                                                                 java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • clearLastPackage

        public static java.util.Map<java.lang.String,​java.lang.Object> clearLastPackage​(DispatchContext dctx,
                                                                                              java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • clearPackLine

        public static java.util.Map<java.lang.String,​java.lang.Object> clearPackLine​(DispatchContext dctx,
                                                                                           java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • clearPackAll

        public static java.util.Map<java.lang.String,​java.lang.Object> clearPackAll​(DispatchContext dctx,
                                                                                          java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • calcPackSessionAdditionalShippingCharge

        public static java.util.Map<java.lang.String,​java.lang.Object> calcPackSessionAdditionalShippingCharge​(DispatchContext dctx,
                                                                                                                     java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • completePack

        public static java.util.Map<java.lang.String,​java.lang.Object> completePack​(DispatchContext dctx,
                                                                                          java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • setSessionPackageWeights

        public static java.math.BigDecimal setSessionPackageWeights​(PackingSession session,
                                                                    java.util.Map<java.lang.String,​java.lang.String> packageWeights)
      • setSessionShipmentBoxTypes

        public static void setSessionShipmentBoxTypes​(PackingSession session,
                                                      java.util.Map<java.lang.String,​java.lang.String> boxTypes)