public MainFulfillmentViewModel( IInventoryHomeViewModel inventoryVm, IPicklistHomeViewModel picklistVm, IRmaHomeViewModel rmaVm, IViewModelsFactory<ICompleteShipmentViewModel> completeShipmentVmFactory, IRepositoryFactory<IOrderRepository> orderRepositoryFactory, IOrderService orderService, IAuthenticationContext authContext) { ViewTitle = new ViewTitleBase { Title = "Fulfillment", SubTitle = "FULFILLMENT SERVICE" }; _inventoryHomeVm = inventoryVm; _inventoryHomeVm.ParentViewModel = this; _picklistHomeVm = picklistVm; _picklistHomeVm.ParentViewModel = this; _rmaHomeVm = rmaVm; _rmaHomeVm.ParentViewModel = this; _completeShipmentVmFactory = completeShipmentVmFactory; _orderRepositoryFactory = orderRepositoryFactory; _authContext = authContext; _orderService = orderService; PopulateTabItems(); CompleteShipmentCommand = new DelegateCommand(RaiseCompleteShipment); CommonConfirmRequest = new InteractionRequest<Confirmation>(); CommonNotifyRequest = new InteractionRequest<Notification>(); }
public MainFulfillmentViewModel( IInventoryHomeViewModel inventoryVm, IPicklistHomeViewModel picklistVm, IRmaHomeViewModel rmaVm, IViewModelsFactory <ICompleteShipmentViewModel> completeShipmentVmFactory, IRepositoryFactory <IOrderRepository> orderRepositoryFactory, IOrderService orderService, IAuthenticationContext authContext) { ViewTitle = new ViewTitleBase { Title = "Fulfillment", SubTitle = "FULFILLMENT SERVICE".Localize() }; _inventoryHomeVm = inventoryVm; _inventoryHomeVm.ParentViewModel = this; _picklistHomeVm = picklistVm; _picklistHomeVm.ParentViewModel = this; _rmaHomeVm = rmaVm; _rmaHomeVm.ParentViewModel = this; _completeShipmentVmFactory = completeShipmentVmFactory; _orderRepositoryFactory = orderRepositoryFactory; _authContext = authContext; _orderService = orderService; PopulateTabItems(); CompleteShipmentCommand = new DelegateCommand(RaiseCompleteShipment); CommonConfirmRequest = new InteractionRequest <Confirmation>(); CommonNotifyRequest = new InteractionRequest <Notification>(); }