예제 #1
0
        public ActionResult OrderFulfillmentComplete(string serialNumber, int orderId, int?destinationId)
        {
            ViewBag.mainTitle = "Order Fulfillment";
            var order   = _labelService.GetOrder(orderId);
            var aresult = _labelService.Associate(serialNumber);
            var model   = new OrderFulfillmentViewModel
            {
                OrderId       = orderId,
                DestinationId = destinationId,
                Expected      = order.ExpectedHeadNumber,
                Count         = order.ReceivedHeadNumber,
                Message       = aresult ? string.Empty : "Invalid SN",
            };

            return(View(model));
        }