public WorkingOrderViewModel(IWorkingOrderService workingOrdersService, IEventAggregator eventAggregator, IRegionManager regionManager)
        {
            _workingOrdersService = workingOrdersService;
            _eventAggregator      = eventAggregator;
            _regionManager        = regionManager;

            ChooseItemCommand = new DelegateCommand(OpenOrder);
            InitWorkingOrderList();
            _eventAggregator.GetEvent <OpenOrderServiceEvent>().Subscribe(OnOpenOrderChangedEvent, ThreadOption.UIThread);
        }
        public OrderViewModelX(IEventAggregator eventAggregator, IServiceFactory serviceFactory,
                               IProductListService productService, IRegionManager regionManager,
                               IReportService reportService, IWorkingOrderService workingOrderService) //
        {
            _eventAggregator     = eventAggregator;
            _serviceFactory      = serviceFactory;
            _productService      = productService;
            _regionManager       = regionManager;
            _reportService       = reportService;
            _workingOrderService = workingOrderService;

            GetProductList();
            BindCommands();
            GetCompanyRepLists();

            IsActive         = true;
            IsActiveChanged += OrderViewModel_IsActiveChanged;
            _eventAggregator.GetEvent <OrderLoadedEvent>().Publish(string.Empty);
        }