Exemplo n.º 1
0
        public async Task SetUpProperties(int anOrderId)
        {
            OrderHead = await OrderHeadDataAccess.GetOrderHeadById(anOrderId);

            Containers    = (await ContainerTypeDataAccess.GetAllContainerTypes()).ToList();
            OrderReceived = new OrderReceivedModel()
            {
                ReceivedNum = await OrderReceivedDataAccess.GetNextReceivedNumberForOrderId(anOrderId)
            };
        }
Exemplo n.º 2
0
        public async Task SetUpProperties(int?anOrderNumber)
        {
            if (anOrderNumber != null && anOrderNumber != 0)
            {
                int tempOrderHead = anOrderNumber ?? 0; //Just turns the int? to an int
                OrderHead = await OrderHeadDataAccess.GetOrderHeadById(tempOrderHead);

                if (OrderHead == null)
                {
                    Message               = new PopUpMessageModel();
                    Message.Text          = "No Order found";
                    Message.IsMessageGood = false;
                }
            }
        }