Example #1
0
        private void LoadOrder()
        {
            OrderInfoDto order = null;

            if (!string.IsNullOrEmpty(OrderNumber))
            {
                using (IUnitOfWork uow = UnitOfWorkFactory.Instance.Start(DataStoreResolver.CRMDataStoreKey))
                {
                    OrderFacade facade = new OrderFacade(uow);
                    order = facade.RetrieveOrderInfo(OrderNumber, new OrderInfoConverter());
                }

                if (order != null)
                {
                    lblMsg.Visible  = false;
                    ucOrder.Visible = true;
                    ucOrder.LoadData(order);
                }
                else
                {
                    lblMsg.Visible  = true;
                    ucOrder.Visible = false;
                }
            }
        }
Example #2
0
        private void LoadSelectedOrder(object orderId)
        {
            OrderInfoDto order = null;

            using (IUnitOfWork uow = UnitOfWorkFactory.Instance.Start(DataStoreResolver.CRMDataStoreKey))
            {
                OrderFacade facade = new OrderFacade(uow);
                order = facade.RetrieveOrderInfo(orderId, new OrderInfoConverter());
                order.OrderCommands = facade.GetOrderCommands(order.StatusId);
            }

            LoadOrderInfo(order);
        }
        private void LoadSelectedOrder(object orderId)
        {
            OrderInfoDto order = null;

            using (IUnitOfWork uow = UnitOfWorkFactory.Instance.Start(DataStoreResolver.CRMDataStoreKey))
            {
                OrderFacade facade = new OrderFacade(uow);
                order = facade.RetrieveOrderInfo(orderId, new OrderInfoConverter());
            }

            if (order != null)
            {
                ucOrder.Visible = true;
                ucOrder.LoadData(order);
            }
            else
            {
                ucOrder.Visible = false;
            }
        }