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)); } }
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)); } }
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); }
IResult <IPickableInventoryReturn> IPickInventoryServiceComponent.GetPickableInventoryForContext(FilterInventoryForPickingContextParameters parameters) { return(GetInventoryItemsToPickBatch((FilterInventoryForBatchParameters)parameters)); }