public RouteListWorkingJournalViewModel( RouteListJournalFilterViewModel filterViewModel, IUnitOfWorkFactory unitOfWorkFactory, ICommonServices commonServices, IRouteListRepository routeListRepository, IFuelRepository fuelRepository, ICallTaskRepository callTaskRepository, BaseParametersProvider baseParametersProvider, IExpenseParametersProvider expenseParametersProvider, ISubdivisionRepository subdivisionRepository, IAccountableDebtsRepository accountableDebtsRepository, IGtkTabsOpener gtkTabsOpener) : base(filterViewModel, unitOfWorkFactory, commonServices) { TabName = "Работа кассы с МЛ"; _routeListRepository = routeListRepository ?? throw new ArgumentNullException(nameof(routeListRepository)); _fuelRepository = fuelRepository ?? throw new ArgumentNullException(nameof(fuelRepository)); _callTaskRepository = callTaskRepository ?? throw new ArgumentNullException(nameof(callTaskRepository)); _baseParametersProvider = baseParametersProvider ?? throw new ArgumentNullException(nameof(baseParametersProvider)); _expenseParametersProvider = expenseParametersProvider ?? throw new ArgumentNullException(nameof(expenseParametersProvider)); _subdivisionRepository = subdivisionRepository ?? throw new ArgumentNullException(nameof(subdivisionRepository)); _accountableDebtsRepository = accountableDebtsRepository ?? throw new ArgumentNullException(nameof(accountableDebtsRepository)); _gtkTabsOpener = gtkTabsOpener ?? throw new ArgumentNullException(nameof(gtkTabsOpener)); UseSlider = false; NotifyConfiguration.Enable(); NotifyConfiguration.Instance.BatchSubscribeOnEntity <RouteList>(OnRouteListChanged); InitPopupActions(); }
public CallTaskDlg(int callTaskId) { this.Build(); UoWGeneric = UnitOfWorkFactory.CreateForRoot <CallTask>(callTaskId); _employeeRepository = new EmployeeRepository(); _bottleRepository = new BottlesRepository(); _callTaskRepository = new CallTaskRepository(); _phoneRepository = new PhoneRepository(); _deliveryPointJournalFilterViewModel = new DeliveryPointJournalFilterViewModel(); TabName = Entity.Counterparty?.Name; labelCreator.Text = $"Создатель : {Entity.TaskCreator?.ShortName}"; ConfigureDlg(); }
public TasksView( IEmployeeRepository employeeRepository, IBottlesRepository bottleRepository, ICallTaskRepository callTaskRepository, IPhoneRepository phoneRepository) { this.Build(); this.employeeRepository = employeeRepository; this.bottleRepository = bottleRepository; this.callTaskRepository = callTaskRepository; this.phoneRepository = phoneRepository; UoW = UnitOfWorkFactory.CreateWithoutRoot(); this.TabName = "Журнал задач для обзвона"; ConfigureDlg(); }
public CallTaskDlg() { this.Build(); UoWGeneric = UnitOfWorkFactory.CreateWithNewRoot <CallTask>(); _employeeRepository = new EmployeeRepository(); _bottleRepository = new BottlesRepository(); _callTaskRepository = new CallTaskRepository(); _phoneRepository = new PhoneRepository(); _deliveryPointJournalFilterViewModel = new DeliveryPointJournalFilterViewModel(); TabName = "Новая задача"; Entity.CreationDate = DateTime.Now; Entity.Source = TaskSource.Handmade; Entity.TaskCreator = _employeeRepository.GetEmployeeForCurrentUser(UoW);; Entity.EndActivePeriod = DateTime.Now.AddDays(1); createTaskButton.Sensitive = false; ConfigureDlg(); }
public BusinessTasksJournalViewModel( CallTaskFilterViewModel filterViewModel, BusinessTasksJournalFooterViewModel footerViewModel, IUnitOfWorkFactory unitOfWorkFactory, ICommonServices commonServices, IEmployeeRepository employeeRepository, IBottlesRepository bottleRepository, ICallTaskRepository callTaskRepository, IPhoneRepository phoneRepository, IOrganizationProvider organizationProvider, ICounterpartyContractRepository counterpartyContractRepository, CounterpartyContractFactory counterpartyContractFactory, IRoboAtsCounterpartyJournalFactory roboAtsCounterpartyJournalFactory, IContactsParameters contactsParameters ) : base(filterViewModel, unitOfWorkFactory, commonServices) { TabName = "Журнал задач для обзвона"; this.employeeRepository = employeeRepository; this.bottleRepository = bottleRepository; this.callTaskRepository = callTaskRepository; this.phoneRepository = phoneRepository; this.organizationProvider = organizationProvider ?? throw new ArgumentNullException(nameof(organizationProvider)); this.counterpartyContractRepository = counterpartyContractRepository ?? throw new ArgumentNullException(nameof(counterpartyContractRepository)); this.counterpartyContractFactory = counterpartyContractFactory ?? throw new ArgumentNullException(nameof(counterpartyContractFactory)); this.footerViewModel = footerViewModel; this.commonServices = commonServices ?? throw new ArgumentNullException(nameof(commonServices)); _roboAtsCounterpartyJournalFactory = roboAtsCounterpartyJournalFactory ?? throw new ArgumentNullException(nameof(roboAtsCounterpartyJournalFactory)); _contactsParameters = contactsParameters ?? throw new ArgumentNullException(nameof(contactsParameters)); actionsViewModel = new BusinessTasksJournalActionsViewModel(new EmployeeJournalFactory()); RegisterTasks(); var threadLoader = DataLoader as ThreadDataLoader <BusinessTaskJournalNode>; FinishJournalConfiguration(); UpdateOnChanges( typeof(ClientTask), typeof(PaymentTask) ); DataLoader.ItemsListUpdated += (sender, e) => GetStatistics(); }
public CallTaskWorker( ICallTaskFactory callTaskFactory, ICallTaskRepository callTaskRepository, IOrderRepository orderRepository, IEmployeeRepository employeeRepository, IPersonProvider personProvider, IUserService userService, IErrorReporter errorReporter, ITaskCreationInteractive taskCreationInteractive = null ) { this.callTaskFactory = callTaskFactory ?? throw new ArgumentNullException(nameof(callTaskFactory)); this.callTaskRepository = callTaskRepository ?? throw new ArgumentNullException(nameof(callTaskRepository)); this.orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository)); this.employeeRepository = employeeRepository ?? throw new ArgumentNullException(nameof(employeeRepository)); this.personProvider = personProvider ?? throw new ArgumentNullException(nameof(personProvider)); this.userService = userService; this.errorReporter = errorReporter; TaskCreationInteractive = taskCreationInteractive; }
public TasksView( IEmployeeRepository employeeRepository, IBottlesRepository bottleRepository, ICallTaskRepository callTaskRepository, IPhoneRepository phoneRepository, IEmployeeJournalFactory employeeJournalFactory, IDeliveryPointRepository deliveryPointRepository) { this.Build(); _employeeRepository = employeeRepository; _bottleRepository = bottleRepository; _callTaskRepository = callTaskRepository; _phoneRepository = phoneRepository; _employeeJournalFactory = employeeJournalFactory ?? throw new ArgumentNullException(nameof(employeeJournalFactory)); _deliveryPointRepository = deliveryPointRepository ?? throw new ArgumentNullException(nameof(deliveryPointRepository)); UoW = UnitOfWorkFactory.CreateWithoutRoot(); this.TabName = "Журнал задач для обзвона"; ConfigureDlg(); }
public TaskController(ICallTaskRepository callTaskRepository, IEventEsb eventEsb) { this.callTaskRepository = callTaskRepository; eventEsbRabbitMq = eventEsb; }