Exemplo n.º 1
0
 public IResult <IPickableInventoryReturn> GetPickableInventoryForContext(FilterInventoryForPickingContextParameters parameters)
 {
     try
     {
         return(_warehouseOrderServiceProvider.GetInventoryItemsToPickWarehouseOrder((FilterInventoryForShipmentOrderParameters)parameters));
     }
     catch (Exception ex)
     {
         _exceptionLogger.LogException(ex);
         return(new FailureResult <IPickableInventoryReturn>(null, ex.Message));
     }
 }
Exemplo n.º 2
0
 public IResult <IPickableInventoryReturn> GetPickableInventoryForContext(FilterInventoryForPickingContextParameters parameters)
 {
     try
     {
         return(_salesServiceProvider.GetInventoryToPickForOrder((FilterInventoryForShipmentOrderParameters)parameters));
     }
     catch (Exception ex)
     {
         ex = ex.GetBaseException();
         _exceptionLogger.LogException(ex);
         return(new FailureResult <IPickableInventoryReturn>(null, ex.Message));
     }
 }
Exemplo n.º 3
0
        public static FilterInventoryForPickingContextParameters ParseCommon(this FilterInventoryForPickingContextParameters parameters, HttpActionContext actionContext)
        {
            //note: Using the values parsed from the querystring in the `ParseFilterParameters` method, these options can be removed from the ActionMethod's signature.
            //      However, it needs to be noted that any argument values which are provided by the route and are not querystring members need to remain referenced by the
            //      `ActionArguments` collection.
            parameters.LotKey            = actionContext.ActionArguments["lotKey"] as string;
            parameters.ProductKey        = actionContext.ActionArguments["productKey"] as string;
            parameters.LotType           = actionContext.ActionArguments["lotType"] as LotTypeEnum?;
            parameters.HoldType          = actionContext.ActionArguments["holdType"] as LotHoldType?;
            parameters.ProductType       = (actionContext.ActionArguments["productType"] ?? actionContext.ActionArguments["inventoryType"]) as ProductTypeEnum?;
            parameters.LocationKey       = actionContext.ActionArguments["warehouseLocationKey"] as string;
            parameters.PackagingKey      = actionContext.ActionArguments["packagingProductKey"] as string;
            parameters.TreatmentKey      = actionContext.ActionArguments["treatmentKey"] as string;
            parameters.LocationGroupName = actionContext.ActionArguments["locationGroupName"] as string;

            return(parameters);
        }
Exemplo n.º 4
0
 IResult <IPickableInventoryReturn> IPickInventoryServiceComponent.GetPickableInventoryForContext(FilterInventoryForPickingContextParameters parameters)
 {
     return(GetInventoryItemsToPickBatch((FilterInventoryForBatchParameters)parameters));
 }