예제 #1
0
        public ClientManagerInspectOrderPresenter(IKernel kernel, IClientManagerInspectOrderView view,
                                                  IClientOrderServiceForClientManager model)
        {
            _kernel = kernel;
            _view   = view;
            _model  = model;

            _view.Back        += () => Back();
            _view.RemoveOrder += () => RemoveOrder();
            _view.EditOrder   += () => EditOrder();
            _view.SearchOrder += () => SearchOrder();
        }
예제 #2
0
        public ClientManagerEditOrderProductCatalogPresenter(IKernel kernel, IClientManagerProductCatalogView view,
                                                             IClientOrderServiceForClientManager model, ClientOrder order)
        {
            this._kernel = kernel;
            this._view   = view;
            this._model  = model;
            this._order  = order;

            this._view.Back           += OnButtonAddProducts;
            this._view.ProductChecked += CheckedProduct;

            this._view.SetCatalog(this._model.GetProductCatalog());
        }
        public ClientManagerEditOrderSecondStepPresenter(IKernel kernel, IClientManagerAddOrderSecondStepView view,
                                                         IClientOrderServiceForClientManager model, IServiceForControlProductMovementInClientOrder editor, ClientOrder order)
        {
            this._kernel = kernel;
            this._view   = view;
            this._model  = model;
            this._order  = order;
            this._editor = editor;

            this._view.SetProductBasket(this._order.GetCloneProductList());

            this._view.Back           += Back;
            this._view.RemoveProducts += RemoveProducts;
            this._view.ConfirmOrder   += ConfirmOrder;
            this._view.AddProduct     += AddProduct;
        }
        public ClientManagerAddOrderSecondStepPresenter(IKernel kernel, IClientManagerAddOrderSecondStepView view,
                                                        IClientOrderServiceForClientManager model, IServiceForControlProductMovementInClientOrder productService,
                                                        ClientOrder order)
        {
            _kernel         = kernel;
            _view           = view;
            _order          = order;
            _model          = model;
            _productService = productService;


            _view.AddProduct     += AddProduct;
            _view.Back           += Back;
            _view.RemoveProducts += RemoveProducts;
            _view.ConfirmOrder   += ConfirmOrder;

            _view.SetProductBasket(_order.GetCloneProductList());
            _view.SetOrderPrice(order.TotalCost);
        }
예제 #5
0
 public ClientManagerInspectOrderPresenter(IKernel kernel, IClientManagerInspectOrderView view,
                                           IClientOrderServiceForClientManager model, ClientOrder order) : this(kernel, view, model)
 {
     _order = _model.GetNotPaidOrder(order.OrderId);
     _view.SetOrderInfo((ClientOrder)_order.Clone());
 }