Exemplo n.º 1
0
 public FrontOrganizationController(IHostingEnvironment hostingEnvironment, IOrganizationAddressProvider organizationAddressProvider
                                    , IOrganizationTelecomProvider organizationTelecomProvider
                                    , IPersonProvider personProvider
                                    , IOrganizationTypeProvider organizationTypeProvider
                                    , IOrganizationProvider organizationProvider
                                    , IFrontOrganizationProvider frontOrganizationProvider
                                    , IMasterProvider masterProvider
                                    , IMasterListProvider masterListProvider
                                    , ICheckProvider checkProvider
                                    , IClaimCheck claimCheck
                                    , IClassificationProvider classificationProvider
                                    , Microsoft.AspNetCore.Identity.UserManager <SIPx.API.Models.SipUser> userManager)
 {
     _hostingEnvironment          = hostingEnvironment;
     _organizationAddressProvider = organizationAddressProvider;
     _organizationTelecomProvider = organizationTelecomProvider;
     _personProvider            = personProvider;
     _organizationTypeProvider  = organizationTypeProvider;
     _organizationProvider      = organizationProvider;
     _frontOrganizationProvider = frontOrganizationProvider;
     _masterProvider            = masterProvider;
     _masterListProvider        = masterListProvider;
     _checkProvider             = checkProvider;
     _claimCheck             = claimCheck;
     _classificationProvider = classificationProvider;
     _userManager            = userManager;
 }
Exemplo n.º 2
0
 public FrontPersonController(
     //IFrontUserProvider frontUserProvider
     IGenderProvider genderProvider
     , IPersonProvider personProvider
     , IRoleProvider roleProvider
     , IMasterListProvider masterListProvider
     , IProjectProvider projectProvider
     , IOrganizationProvider organizationProvider
     , IClassificationValueProvider classificationValueProvider
     , IFrontPersonProvider frontPersonProvider
     , ICheckProvider checkProvider
     , IClaimCheck claimCheck
     , IClassificationProvider classificationProvider
     , Microsoft.AspNetCore.Identity.UserManager <SIPx.API.Models.SipUser> userManager)
 {
     //          _frontUserProvider = frontUserProvider;
     _genderProvider              = genderProvider;
     _personProvider              = personProvider;
     _roleProvider                = roleProvider;
     _masterListProvider          = masterListProvider;
     _projectProvider             = projectProvider;
     _organizationProvider        = organizationProvider;
     _classificationValueProvider = classificationValueProvider;
     _frontPersonProvider         = frontPersonProvider;
     _checkProvider               = checkProvider;
     _claimCheck             = claimCheck;
     _classificationProvider = classificationProvider;
     _userManager            = userManager;
 }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            string fileName = args[0];
            IStringListProvider    stringListProvider = new StringListProvider(fileName);
            IPersonParser          parser             = new PersonParser();
            IPersonProviderFactory factory            = new PersonProviderFactory(stringListProvider, parser);


            IPersonProvider personProvider = factory.Create();

            var list = personProvider.GetPeople().ToList();

            list.Sort();
            IOutputPort output = new Displayer();

            output.Send(list);

            stringListProvider = new StringListProvider("sorted-names - list.txt");
            factory            = new PersonProviderFactory(stringListProvider, parser);
            personProvider     = factory.Create();
            output             = new Saver(personProvider);
            output.Send(list);
            Console.WriteLine("End");
            Console.ReadLine();
        }
 public PersonService(IDataBase db, IConsole console, ILogger logger, IPersonProvider personProvider)
 {
     _db             = db;
     _console        = console;
     _logger         = logger;
     _personProvider = personProvider;
 }
Exemplo n.º 5
0
        //  private readonly FrontPanels _frontPanels;

        public FrontController(IHostingEnvironment hostingEnvironment, IUserRoleProvider userRoleProvider
                               , IRoleProvider roleProvider
                               , IUserProvider userProvider
                               , IClassificationValueProvider classificationValueProvider
                               , IOrganizationProvider organizationProvider
                               , IPersonProvider personProvider
                               , IProjectProvider projectProvider
                               , IFrontUserPreferenceProvider frontUserPreferenceProvider
                               , IProcessProvider processProvider
                               , IFrontProcessProvider frontProcessProvider
                               , IContentProvider contentProvider
                               , IClaimCheck claimCheck
                               , IFrontProvider frontProvider
                               , Microsoft.AspNetCore.Identity.UserManager <SIPx.API.Models.SipUser> userManager)
        {
            _hostingEnvironment          = hostingEnvironment;
            _userRoleProvider            = userRoleProvider;
            _roleProvider                = roleProvider;
            _userProvider                = userProvider;
            _classificationValueProvider = classificationValueProvider;
            _organizationProvider        = organizationProvider;
            _personProvider              = personProvider;
            _projectProvider             = projectProvider;
            _frontUserPreferenceProvider = frontUserPreferenceProvider;
            _processProvider             = processProvider;
            _frontProcessProvider        = frontProcessProvider;
            _contentProvider             = contentProvider;
            _claimCheck    = claimCheck;
            _frontProvider = frontProvider;
            _userManager   = userManager;
        }
Exemplo n.º 6
0
 private void FillFromOrder(IUnitOfWork uow, CallTask callTask, IPersonProvider personProvider, Order order)
 {
     callTask.Counterparty     = uow.GetById <Counterparty>(order.Client.Id);
     callTask.DeliveryPoint    = uow.GetById <DeliveryPoint>(order.DeliveryPoint.Id);
     callTask.TaskState        = CallTaskStatus.Reconciliation;
     callTask.AssignedEmployee = uow.GetById <Employee>(personProvider.GetDefaultEmployeeForCallTask());
     callTask.SourceDocumentId = order.Id;
 }
Exemplo n.º 7
0
 public FrontPanels(IClassificationValueProvider classificationValueProvider, IContentProvider contentProvider, IProcessProvider processProvider, IOrganizationProvider organizationProvider, IPersonProvider personProvider, IProjectProvider projectProvider)
 {
     _classificationValueProvider = classificationValueProvider;
     _contentProvider             = contentProvider;
     _processProvider             = processProvider;
     _organizationProvider        = organizationProvider;
     _personProvider  = personProvider;
     _projectProvider = projectProvider;
 }
Exemplo n.º 8
0
        public PersonViewModel(IFileHandlerFactory fileHandlerFactory, IPersonProvider personProvider)
        {
            _fileHandlerFactory = fileHandlerFactory;
            _personProvider     = personProvider;

            LoadPersons();

            SavePersonsCommand   = new DelegateCommand(SavePersons, CanSavePersons);
            ImportPersonsCommand = new DelegateCommand <ImportPayload>(ImportPersons, CanImportPersons);
        }
Exemplo n.º 9
0
 public CallTaskPanelView(IPersonProvider personProvider, IEmployeeRepository employeeRepository, ICommonServices commonServices)
 {
     if (commonServices == null)
     {
         throw new ArgumentNullException(nameof(commonServices));
     }
     _personProvider     = personProvider ?? throw new ArgumentNullException(nameof(personProvider));
     _employeeRepository = employeeRepository ?? throw new ArgumentNullException(nameof(employeeRepository));
     Build();
     _callTaskPermissionResult = commonServices.CurrentPermissionService.ValidateEntityPermission(typeof(CallTask));
 }
 public ClassificationValueController(IPersonProvider personProvider, IDateLevelProvider dateLevelProvider, IMasterListProvider masterListProvider, IClassificationValueProvider classificationValueProvider, IMasterProvider masterProvider, ICheckProvider checkProvider, IClaimCheck claimCheck, IClassificationProvider classificationProvider, Microsoft.AspNetCore.Identity.UserManager <SIPx.API.Models.SipUser> userManager)
 {
     _personProvider              = personProvider;
     _dateLevelProvider           = dateLevelProvider;
     _masterListProvider          = masterListProvider;
     _classificationValueProvider = classificationValueProvider;
     _masterProvider              = masterProvider;
     _checkProvider          = checkProvider;
     _claimCheck             = claimCheck;
     _classificationProvider = classificationProvider;
     _userManager            = userManager;
 }
Exemplo n.º 11
0
 public PersonRelationController(IPersonRelationTypeProvider personRelationTypeProvider
                                 , IPersonProvider personProvider
                                 , IPersonRelationProvider personRelationProvider
                                 , ICheckProvider checkProvider
                                 , IClaimCheck claimCheck
                                 , Microsoft.AspNetCore.Identity.UserManager <SIPx.API.Models.SipUser> userManager)
 {
     _personRelationTypeProvider = personRelationTypeProvider;
     _personProvider             = personProvider;
     _personRelationProvider     = personRelationProvider;
     _checkProvider = checkProvider;
     _claimCheck    = claimCheck;
     _userManager   = userManager;
 }
Exemplo n.º 12
0
 public PageSectionProcessConditionController(
     IPageSectionContentConditionProvider pageSectionContentConditionProvider
     , IContentProvider contentProvider
     , IContentTypeProvider contentTypeProvider
     , IContentTypeGroupProvider contentTypeGroupProvider
     , IPersonProvider personProvider
     , IProcessTypeStageTypeProvider processTypeStageTypeProvider
     , IRoleProvider roleProvider
     , IProcessTypeGroupProvider processTypeGroupProvider
     , IProcessTypeProvider processTypeProvider
     , IPageSectionProcessConditionProvider pageSectionProcessConditionProvider
     , IPageSectionProcessConditionTypeProvider pageSectionProcessConditionTypeProvider
     , IUserProvider userProvider
     , IOrganizationProvider organizationProvider
     , IProjectProvider projectProvider
     , ILanguageProvider languageProvider
     , IClassificationProvider classificationProvider
     , ISecurityLevelProvider securityLevelProvider
     , IMasterListProvider masterListProvider
     , IMasterProvider masterProvider
     , ICheckProvider checkProvider
     , IClaimCheck claimCheck
     , Microsoft.AspNetCore.Identity.UserManager <SIPx.API.Models.SipUser> userManager)
 {
     _masterProvider = masterProvider;
     _pageSectionContentConditionProvider = pageSectionContentConditionProvider;
     _contentProvider              = contentProvider;
     _contentTypeProvider          = contentTypeProvider;
     _contentTypeGroupProvider     = contentTypeGroupProvider;
     _personProvider               = personProvider;
     _processTypeStageTypeProvider = processTypeStageTypeProvider;
     _roleProvider                            = roleProvider;
     _processTypeGroupProvider                = processTypeGroupProvider;
     _processTypeProvider                     = processTypeProvider;
     _pageSectionProcessConditionProvider     = pageSectionProcessConditionProvider;
     _pageSectionProcessConditionTypeProvider = pageSectionProcessConditionTypeProvider;
     _userProvider                            = userProvider;
     _organizationProvider                    = organizationProvider;
     _projectProvider                         = projectProvider;
     _languageProvider                        = languageProvider;
     _classificationProvider                  = classificationProvider;
     _securityLevelProvider                   = securityLevelProvider;
     _masterListProvider                      = masterListProvider;
     _checkProvider                           = checkProvider;
     _claimCheck  = claimCheck;
     _userManager = userManager;
 }
Exemplo n.º 13
0
 public FrontClassificationValueController(IDateLevelProvider dateLevelProvider
                                           , IClassificationProvider classificationProvider
                                           , IPersonProvider personProvider
                                           , IFrontClassificationValueProvider frontClassificationValueProvider
                                           , IClaimCheck claimCheck
                                           , IClassificationValueProvider classificationValueProvider
                                           , IFrontProvider frontProvider
                                           , Microsoft.AspNetCore.Identity.UserManager <SIPx.API.Models.SipUser> userManager)
 {
     _dateLevelProvider                = dateLevelProvider;
     _classificationProvider           = classificationProvider;
     _personProvider                   = personProvider;
     _frontClassificationValueProvider = frontClassificationValueProvider;
     _claimCheck = claimCheck;
     _classificationValueProvider = classificationValueProvider;
     _frontProvider = frontProvider;
     _userManager   = userManager;
 }
Exemplo n.º 14
0
 public OrganizationPositionController(IPersonProvider personProvider, IPositionProvider positionProvider
                                       , ICheckProvider checkProvider
                                       , IMasterListProvider masterListProvider
                                       , IOrganizationPositionProvider organizationPositionProvider
                                       , IMasterProvider masterProvider
                                       , IClaimCheck claimCheck
                                       , IOrganizationProvider organizationProvider
                                       , Microsoft.AspNetCore.Identity.UserManager <SIPx.API.Models.SipUser> userManager)
 {
     _personProvider               = personProvider;
     _positionProvider             = positionProvider;
     _checkProvider                = checkProvider;
     _masterListProvider           = masterListProvider;
     _organizationPositionProvider = organizationPositionProvider;
     _masterProvider               = masterProvider;
     _claimCheck           = claimCheck;
     _organizationProvider = organizationProvider;
     _userManager          = userManager;
 }
Exemplo n.º 15
0
 public SearchController(ISearchProvider searchProvider
                         , IClassificationValueProvider classificationValueProvider
                         , IContentProvider contentProvider
                         , IOrganizationProvider organizationProvider
                         , IPersonProvider personProvider
                         , IProcessProvider processProvider
                         , IProjectProvider projectProvider
                         , IClaimCheck claimCheck
                         , Microsoft.AspNetCore.Identity.UserManager <SIPx.API.Models.SipUser> userManager)
 {
     _searchProvider = searchProvider;
     _classificationValueProvider = classificationValueProvider;
     _contentProvider             = contentProvider;
     _organizationProvider        = organizationProvider;
     _personProvider  = personProvider;
     _processProvider = processProvider;
     _projectProvider = projectProvider;
     _claimCheck      = claimCheck;
     _userManager     = userManager;
 }
Exemplo n.º 16
0
 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;
 }
Exemplo n.º 17
0
 public FrontProjectController(IPersonProvider personProvider
                               , ISecurityLevelProvider securityLevelProvider
                               , IProjectProvider projectProvider
                               , IProjectTypeProvider projectTypeProvider
                               , IFrontProjectProvider frontProjectProvider
                               , IMasterProvider masterProvider
                               , IMasterListProvider masterListProvider
                               , ICheckProvider checkProvider
                               , IClaimCheck claimCheck
                               , IClassificationProvider classificationProvider
                               , Microsoft.AspNetCore.Identity.UserManager <SIPx.API.Models.SipUser> userManager)
 {
     _personProvider         = personProvider;
     _securityLevelProvider  = securityLevelProvider;
     _projectProvider        = projectProvider;
     _projectTypeProvider    = projectTypeProvider;
     _frontProjectProvider   = frontProjectProvider;
     _masterProvider         = masterProvider;
     _masterListProvider     = masterListProvider;
     _checkProvider          = checkProvider;
     _claimCheck             = claimCheck;
     _classificationProvider = classificationProvider;
     _userManager            = userManager;
 }
Exemplo n.º 18
0
 public Saver(IPersonProvider provider)
 {
     _provider = provider;
 }
Exemplo n.º 19
0
 public AddQuoteCommand(IDataStoreProvider dataStoreProvider, IPersonProvider personProvider)
 {
     _dataStoreProvider = dataStoreProvider;
     _personProvider    = personProvider;
 }
 public PersonController(IPersonProvider personProvider)
 {
     _PersonProvider = personProvider;
 }
Exemplo n.º 21
0
 public AddressModel(IPersonProvider personProvider)
 {
     _personProvider = personProvider;
 }
Exemplo n.º 22
0
 public IndexModel(IPersonProvider personProvider)
 {
     _personProvider = personProvider;
 }
Exemplo n.º 23
0
 public CatLoaderService(IPersonProvider personProvider, IAggregationService aggregationService)
 {
     _personProvider     = personProvider;
     _aggregationService = aggregationService;
 }
Exemplo n.º 24
0
 public PeopleVariableHandler(IPersonProvider personProvider, IDataStoreProvider dataStoreProvider)
 {
     _personProvider    = personProvider;
     _dataStoreProvider = dataStoreProvider;
 }
Exemplo n.º 25
0
 public PersonService(IPersonProvider personsProvider)
 {
     _personsProvider = personsProvider;
 }
 public AccountController(IPersonTypesProvider typesProvider, IPersonProvider personProvider)
 {
     _typesProvider  = typesProvider;
     _personProvider = personProvider;
 }
Exemplo n.º 27
0
        public CallTask CreateTask(IUnitOfWork uow, IEmployeeRepository employeeRepository, IPersonProvider personProvider, CallTask newTask = null, object source = null, string creationComment = null)
        {
            CallTask callTask = newTask ?? new CallTask();

            FillNewTask(uow, callTask, employeeRepository);

            switch (source)
            {
            case Order order:
                FillFromOrder(uow, callTask, personProvider, order);
                break;
            }

            if (creationComment != null)
            {
                callTask.AddComment(uow, creationComment, employeeRepository);
            }
            return(callTask);
        }
Exemplo n.º 28
0
 public CallTaskPanelView(IPersonProvider personProvider, IEmployeeRepository employeeRepository)
 {
     this.Build();
     this.personProvider     = personProvider;
     this.employeeRepository = employeeRepository;
 }
 public HomeController(IPersonProvider personProvider)
 {
     _personProvider = personProvider;
 }