示例#1
0
        public IHttpActionResult getInvItemList(string WarehouseCode, string VendorCode)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }
            var invItemList = WavePickingHelper.getInvItemList(WarehouseCode, VendorCode);

            if (invItemList == null)
            {
                return(InternalServerError());
            }
            return(Ok(invItemList));
        }
示例#2
0
        public IHttpActionResult GeneratePickList(JObject data)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }
            IEnumerable <whiv1> invItemList = data["InvItemList"].ToObject <IEnumerable <whiv1> >();
            string warehouseCode            = data["WarehouseCode"].ToObject <string>();
            string waveBy = data["WaveBy"].ToObject <string>();

            IEnumerable <string> pickNos = WavePickingHelper.generatePickList(invItemList, warehouseCode, waveBy);

            if (pickNos == null)
            {
                return(InternalServerError());
            }
            return(Ok(pickNos));
        }