public WaybillQueryManager(EMSLocalBarcodeService eMSLocalBarcodeService, DirectoryService DirectoryService, OrderService orderService ) { this.orderService = orderService; this.DirectoryService = DirectoryService; this.eMSLocalBarcodeService = eMSLocalBarcodeService; }
public OrderOperationViewModel( OrderService orderService, RecipientService recipientService, IEventAggregator eventAggregator, DhlWaybillService dhlWaybillService, CnRecipientLabelBuilder cnRecipientLabelBuilder, IRegionManager manager, PacketDeliveredReportService PacketDeliveredReportService, WaybillQueryManager SearchManager, DirectoryService directoryService, ProcessModeInfoProvider ProcessModeInfoProvider ) { this.ProcessModeInfoProvider = ProcessModeInfoProvider; this.SearchManager = SearchManager; this.manager = manager; this.orderService = orderService; this.recipientService = recipientService; this.eventAggregator = eventAggregator; this.dhlWaybillService = dhlWaybillService; this.cnRecipientLabelBuilder = cnRecipientLabelBuilder; this.directoryService = directoryService; this.PacketDeliveredReportService = PacketDeliveredReportService; this.loadOrderListCommand = new DelegateCommand(LoadOrderList); this.saveOrderCommand = new DelegateCommand(SaveOrder); this.cleanFilterTxtCommand = new DelegateCommand(CleanFilterTxt); this.selectAllCommand = new DelegateCommand(SelectAll); this.deSelectAllCommand = new DelegateCommand(DeSelectAll); this.deleteOrderCommand = new DelegateCommand(DeleteOrder); this.processWaybillCommand = new DelegateCommand<string>(ProcessWaybill); this.saveSelectedOrderCommand = new DelegateCommand(SaveSelectedOrder); this.showConfirmDialogCommand = new DelegateCommand(() => { IsShowConfirmDialog = true; }); this.cancelProcessCommand = new DelegateCommand(() => { IsShowConfirmDialog = false; }); this.printSelectedCnLabelCommand = new DelegateCommand(PrintSelectedCnLabel); this.printWaybillsCommand = new DelegateCommand(PrintWaybill); this.combinePrintCommand = new DelegateCommand(CombinationPrint); this.createDlogCommand = new DelegateCommand(CreateDLog); this.bringTodayCommand = new DelegateCommand(BringToday); this.bringYesterdayCommand = new DelegateCommand(BringToYesterday); this.eventAggregator.GetEvent<RecipientNewOrderAddedEvent>().Subscribe (OnRecipientNewOrderAdded, ThreadOption.UIThread); this.ModeList = this.ProcessModeInfoProvider.ModeList; this.SelectedDHLAgent = this.ModeList.Single(x => x.Name.StartsWith("中德快递")); }
public OrderViewModel(domain.Order order, domain.Recipient recipient, OrderService orderService) { this.order = order; this.order.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(OnOrder_PropertyChanged); this.orderService = orderService; this.recipient = recipient; }
public WelcomeViewModel(OrderService orderService) { this.orderService = orderService; }