public CompanyManagementViewModelFactory(IDialogManager dialogManager, IDangerRepository repository, IDangerViewModelFactory dangerViewModelFactory,
                                          IAssessmentViewModelFactory assessmentViewModelFactory, ICompanyContext companyContext)
 {
     m_DialogManager              = dialogManager;
     m_Repository                 = repository;
     m_DangerViewModelFactory     = dangerViewModelFactory;
     m_AssessmentViewModelFactory = assessmentViewModelFactory;
     m_CompanyContext             = companyContext;
 }
 public DangerManagementViewModel(IDialogManager dialogManager, IDangerRepository contextRepository, IDangerViewModelFactory dangerViewModelFactory, ICompanyContext companyContext)
 {
     Dialogs                          = dialogManager;
     m_Repository                     = contextRepository;
     m_DangerViewModelFactory         = dangerViewModelFactory;
     m_CompanyContext                 = companyContext;
     SelectedCompanyViewModel         = m_CompanyContext.companyViewModel;
     m_CompanyContext.CompanyChanged += (s, e) => UpdateSelectedCompanyViewModel();
 }
 public AssessmentManagementViewModel(IDangerRepository repository, IAssessmentViewModelFactory assessmentViewModelFactory, ICompanyContext companyContext)
 {
     m_Repository                     = repository;
     m_CompanyContext                 = companyContext;
     SelectedCompanyViewModel         = m_CompanyContext.companyViewModel;
     m_CompanyContext.CompanyChanged += (s, e) => UpdateSelectedCompanyViewModel();
     m_AssessmentViewModelFactory     = assessmentViewModelFactory;
     m_Status = Enum.GetValues(typeof(Status));
 }
Ejemplo n.º 4
0
 public CompanyManagementViewModel(IDialogManager dialogManager, [Import] IDangerRepository mRepository, [Import] ICompanyManagementViewModelFactory companyManagementViewModelFactory,
                                   [Import] IDangerViewModelFactory dangerViewModelFactory, [Import] ICompanyContext companyContext)
 {
     m_Repository = mRepository;
     m_Repository.ContextChanged        += (s, e) => Application.Current.Dispatcher.Invoke(LoadData);
     m_CompanyManagementViewModelFactory = companyManagementViewModelFactory;
     m_DangerViewModelFactory            = dangerViewModelFactory;
     m_CompanyContext = companyContext;
     m_CompanyContext.CompanyChanged += (s, e) => UpdateSelectedCompanyViewModel();
     ActivatedManagementViewModel     = 0;
     AddNewCompany = new AddNewCompanyCommand(this);
     LoadData();
     Dialogs = dialogManager;
     SelectFirstCompanyViewModel();
 }
 public ActionManagementViewModel(IDialogManager dialogManager, IAssessmentViewModelFactory assessmentViewModelFactory, IDangerRepository repository, ICompanyContext companyContext)
 {
     m_Repository     = repository;
     m_CompanyContext = companyContext;
     m_VMFactory      = new ViewModelFactory();
     m_Status         = Enum.GetValues(typeof(Status));
     m_CompanyContext.CompanyChanged += (s, e) => UpdateSelectedCompanyViewModel();
     SelectedCompanyViewModel         = m_CompanyContext.companyViewModel;
     m_AssessmentViewModelFactory     = assessmentViewModelFactory;
     vmFactory        = new ViewModelFactory();
     m_SelectedAction = new Action()
     {
         DueDate = DateTime.Now
     };
     Dialogs = dialogManager;
 }
Ejemplo n.º 6
0
 public ConsoleClient(
     IDepartmentGenerator departmentGenerator,
     IEmployeeGenerator employeeGenerator,
     IProjectGenerator projectGenerator,
     IReportGenerator reportGenerator,
     ICompanyContext companyContext,
     IWorkUnit unitOfWork,
     IXmlProvider xmlProvider)
 {
     this.departmentGenerator = departmentGenerator;
     this.employeeGenerator   = employeeGenerator;
     this.projectGenerator    = projectGenerator;
     this.reportGenerator     = reportGenerator;
     this.companyContext      = companyContext;
     this.unitOfWork          = unitOfWork;
     this.xmlProvider         = xmlProvider;
 }
Ejemplo n.º 7
0
        public WebWorkContext(HttpContextBase httpContext,
            IUserService userService,
            ILanguageService languageService,
            ICurrencyService currencyService,
            ICompanyContext companyContext,
            IGenericAttributeService genericAttributeService,
            IAuthenticationService authenticationService,
            LocalizationSettings localizationSettings)
        {
            this._httpContext = httpContext;
            this._userService = userService;
            this._languageService = languageService;
            this._currencyService = currencyService;
            this._companyContext = companyContext;
            this._authenticationService = authenticationService;
            this._genericAttributeService = genericAttributeService;

            this._localizationSettings = localizationSettings;
        }
Ejemplo n.º 8
0
        public AccountController(
           IWorkContext workContext,
           ICompanyContext companyContext,
           IWebHelper webHelper,
           
           IAuthenticationService authenticationService,
           IUserRegistrationService userRegistrationService,
           ILocalizationService localizationService,
           IDateTimeHelper dateTimeHelper,

           IUserService userService,
           IUserActivityService userActivityService,

           IBusinessPartnerService bpService,

           UserSettings userSettings,
           LocalizationSettings localizationSettings,
           CaptchaSettings captchaSettings,
           DateTimeSettings dateTimeSettings)
        {
            this._workContext = workContext;
            this._companyContext = companyContext;
            this._webHelper = webHelper;

            this._authenticationService = authenticationService;
            this._userRegistrationService = userRegistrationService;
            this._localizationService = localizationService;
            this._dateTimeHelper = dateTimeHelper;

            this._userService = userService;
            this._userActivityService = userActivityService;
            this._bpService = bpService;

            this._userSettings = userSettings;
            this._dateTimeSettings = dateTimeSettings;
            this._localizationSettings = localizationSettings;
            this._captchaSettings = captchaSettings;
        }
Ejemplo n.º 9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompanyService"/> class with specified <see cref="ICompanyContext"/> and <see cref="IUserContext"/>.
 /// </summary>
 /// <param name="context">A <see cref="ICompanyContext"/>.</param>
 /// <param name="userContext">A <see cref="IUserContext"/>.</param>
 public CompanyService(ICompanyContext context, IUserContext userContext)
 {
     _context     = context ?? throw new ArgumentNullException(nameof(context));
     _userContext = userContext ?? throw new ArgumentNullException();
 }
 public CompanyService(ICompanyContext companyContext, IOrderContext orderContext)
 {
     _companyContext = companyContext;
     _orderContext   = orderContext;
 }
Ejemplo n.º 11
0
 public CompanyConsumable(ICompanyContext companyContext)
 {
     _companyContext = companyContext;
 }
Ejemplo n.º 12
0
 public CompanyXmlProvider(ICompanyContext dbContext)
 {
     this.departmentsRepository = dbContext.Departments;
     this.employeesRepository   = dbContext.Employees;
 }
 public EmployeeService(ICompanyContext companyContext)
 {
     _companyContext = companyContext;
 }
Ejemplo n.º 14
0
 public CompanyManagmentService(ICompanyContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public CompanyRepository(ICompanyContext companyContext)
 {
     CompanyContext = companyContext;
 }
 public OrdersRepository(ICompanyContext companyContext)
 {
     _context = companyContext;
 }
 public CompanyRepository(ICompanyContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
Ejemplo n.º 18
0
 public CompanyUow(ICompanyContext context, IRepositoryProvider repositoryProvider) : base(context, repositoryProvider)
 {
 }
Ejemplo n.º 19
0
 public CompanyService(ICompanyContext companyContext, IOrderService orderService)
 {
     _companyContext = companyContext;
     _orderService   = orderService;
 }
 public OrderService(IOrderContext orderContext, ICompanyContext companyContext)
 {
     _orderContext   = orderContext;
     _companyContext = companyContext;
 }
 public CustomersRepository(ICompanyContext companyContext)
 {
     _context = companyContext;
 }