public QQImapService(ConfigurationService configurationService,DirectoryService directoryService)
 {
  
     this.directoryService = directoryService;
     this.configurationService = configurationService;
     this.savePath = directoryService.BaseDir;
     this.emailAccount = configurationService.ConfigDict["SenderQQEmail"];
     this.password = configurationService.ConfigDict["SenderPw"];        
 }
        public EmailDownloadService(ConfigurationService configurationService,DirectoryService directoryService)
        {
            this.directoryService = directoryService;
            this.configurationService = configurationService;
            this.savePath = directoryService.BaseDir;
            this.emailAccount = "*****@*****.**";
            this.password = "******";

        }
 public WaybillQueryManager(EMSLocalBarcodeService eMSLocalBarcodeService,
     DirectoryService DirectoryService,
        OrderService orderService
     )
 {
     this.orderService = orderService;
     this.DirectoryService = DirectoryService;
     this.eMSLocalBarcodeService = eMSLocalBarcodeService;
 }
 public ZdBpostWaybillPrinter(ZdBpostWaybillAnalyser zdBpostWaybillAnalyser
     , DirectoryService directoryService,
     ZdBpostDetailsProvider zdBpostDetailsProvider,
     JokeProvide jokeProvide
     )
 {
     this.jokeProvide = jokeProvide;
     this.zdBpostWaybillAnalyser = zdBpostWaybillAnalyser;
     this.directoryService = directoryService;
     this.zdBpostDetailsProvider = zdBpostDetailsProvider;
 }
 public ZdBpostWaybillInfoExtractor(ZdBpostWaybillAnalyser zdBpostWaybillAnalyser, 
     PdfTextExtractor pdfTextExtractor,
     BpostAddressLineCounter bpostAddressLineCounter,
     DirectoryService directoryService
     )
 {
     this.bpostAddressLineCounter = bpostAddressLineCounter;
     this.zdBpostWaybillAnalyser = zdBpostWaybillAnalyser;
     this.pdfTextExtractor = pdfTextExtractor;
     this.directoryService = directoryService;
 }
        public BusinessInvoiceBuilder(
            WaybillSettingFactory waybillSettingFactory,
            ZdBpostDetailsProvider zdBpostDetailsProvider,
            DirectoryService directoryService,
            ResourceReleaser resourceReleaser

            )
        {
           this.waybillSettingFactory = waybillSettingFactory;
           this.zdBpostDetailsProvider = zdBpostDetailsProvider;
           this.resourceReleaser = resourceReleaser;
           this.directoryService = directoryService;
        }
        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 OrderPrintViewModel(
            DirectoryService directoryService, 
            PrintService printService,
            IEventAggregator eventAggregator,
            EmailDownloadService emailDownloadService,
            IRegionManager regionManager
            )
        {
            this.eventAggregator = eventAggregator;
            this.directoryService = directoryService;
            this.printService = printService;
            this.emailDownloadService = emailDownloadService;
            this.regionManager = regionManager;

            this.eventAggregator.GetEvent<OnOrderCombinePrintClicked>().Subscribe(OnOrderCombinePrintClicked);
        }
 public DhlWaybillService(EmailService emailService,
     IDhlWaybillEmailBuilderFactory dhlWaybillEmailBuilderFactory,
     IDhlWaybillExcelBuilderFactory dhlWaybillExcelBuilderFactory,
     IWaybillPrinterFactory waybillPrinterFactory,
     ResourceReleaser resourceRelease,
     DirectoryService directoryService,
     WaybillSettingFactory waybillSettingFactory,
     BusinessInvoiceBuilder businessInvoiceBuilder,
     IWaybillInfoExtractorFactory waybillInfoExtractorFactory
     )
 {
     this.businessInvoiceBuilder = businessInvoiceBuilder;
     this.emailService = emailService;
     this.dhlWaybillEmailBuilderFactory = dhlWaybillEmailBuilderFactory;
     this.resourceRelease = resourceRelease;
     this.directoryService = directoryService;
     this.dhlWaybillExcelBuilderFactory = dhlWaybillExcelBuilderFactory;
     this.waybillSettingFactory = waybillSettingFactory;
     this.waybillPrinterFactory = waybillPrinterFactory;
     this.waybillInfoExtractorFactory = waybillInfoExtractorFactory;
 }
 public ZdBpostWaybillAnalyser(DirectoryService directoryService)
 {
     this.directoryService = directoryService;
 }
        public RecipientViewModel(
            RecipientService recipientService,
            ConfigurationService configurationService,
            IEventAggregator eventAggregator,
            DirectoryService directoryService,
            CnRecipientLabelBuilder cnLabelPrinter,
            AgentListService agentListSvc)
        {
            this.recipientService = recipientService;
            this.agentListSvc = agentListSvc;
            this.loadRecipientListCommand = new DelegateCommand(LoadRecipientList);

            this.removeRecipientCommand = new DelegateCommand<int?>(RemoveRecipient, CanExecuteRemoveRecipient);
            this.saveRecipientChangeCommand = new DelegateCommand<RecipientItemViewModel>(SaveRecipient, CanExeciteSaveRecipient);
            this.copyRecipientInfoCommand = new DelegateCommand(CopyRecipientInfo);

            this.cleanFilterTxtCommand = new DelegateCommand(() => this.FilterTxt = string.Empty);
            this.printCNAddressLabelCommand = new DelegateCommand(PrintCNAddressLabel, CanExecutePrintCNAddressLabel);
            this.addToNewOrderCommand = new DelegateCommand(AddToNewOrder, CanAddToNewOrder);
            this.addPhotoCommand = new DelegateCommand(AddPhotoFlag);
            this.addStampCommand = new DelegateCommand(AddStampFlat);

            this.eventAggregator = eventAggregator;
            this.cnLabelPrinter = cnLabelPrinter;
            this.directoryService = directoryService;

            this.PropertyChanged += new PropertyChangedEventHandler(RecipientViewModel_PropertyChanged);

            this.eventAggregator.GetEvent<ParseRawTextRecipientFinishedEvent>().Subscribe
                (OnParseRawTextRecipientFinished, ThreadOption.UIThread);
        }
 public ZdBpostDetailsProvider(DirectoryService directoryService)
 {
     this.directoryService = directoryService;
 }