예제 #1
0
 public AccountController(IWebSecurityService userService, IPersonService personService, IEmailHelper emailHelper, IAccountService accountService)
 {
     this.userService = userService;
     this.personService = personService;
     this.emailHelper = emailHelper;
     this.accountService = accountService;
 }
예제 #2
0
        public MainViewModel(IImagineCupService imagineCupService,
            IPersonService personService,
            IDreamsparkService dreamsparkService,
            IBlogService blogService)
        {
            _personService = personService;
            _imagineCupService = imagineCupService;
            _dreamsparkService = dreamsparkService;
            _blogService = blogService;

            blogLoaded = teamLoaded = false;
            ProgressBarVisibility = "Visible";
            IsIndeterminate = "True";
            GridVisibility = "Collapsed";
            ProgressRingVisibility = "Visible";
            ProgressRingActive = "True";

            LoadPeople();
            LoadEntries();

            ImagineCupDescription = _imagineCupService.GetDescription();
            ImagineCupImage = _imagineCupService.GetImageUrl();
            Prizes = _imagineCupService.GetPrizes();
            DreamsparkDescription = _dreamsparkService.GetBriefDescription();
        }
		public PersonDirectoryViewModel(IPersonService personService, IDispatcher dispatcher, IEventAggregator aggregator, IDialogService dialogService) 
			: base(personService, dispatcher, aggregator, dialogService)
		{
			personDirectory = new RangeEnabledObservableCollection<Person>();
			aggregator.GetEvent<PersonDirectoryUpdatedEvent>().Subscribe(OnPersonDirectoryUpdated, ThreadOption.BackgroundThread);
			aggregator.GetEvent<PersonDeletedEvent>().Subscribe(OnPersonDeleted, ThreadOption.UIThread);
		}
예제 #4
0
 public PersonReportService(ICommandExecutor executor, IRepository<Domain.Entity.User> userRepository, IPersonService personService)
 {
   _executor = executor;
   _personService = personService;
   _userRepository = userRepository;
   _userSession = new UserSession();
 }
예제 #5
0
        public ViewModelBase(IPersonService personService, IDispatcher dispatcher, IEventAggregator aggregator, IDialogService dialogService)
        {
            if (personService == null)
            {
                throw new ArgumentNullException("personService");
            }

            if (dispatcher == null)
            {
                throw new ArgumentNullException("dispatcher");
            }

            if (aggregator == null)
            {
                throw new ArgumentNullException("aggregator");
            }

            if (dialogService == null)
            {
                throw new ArgumentNullException("dialogService");
            }

            this.personService = personService;
            this.dispatcher = dispatcher;
            this.aggregator = aggregator;
            this.dialogService = dialogService;

            isBusy = false;
        }
예제 #6
0
        public PersonController()
        {
            var permissionRepository = new PermissionRepository();
            var churchRepository = new ChurchRepository();
            _personRepository = new PersonRepository(permissionRepository, churchRepository);
            var emailSender = new EmailSender(new MessageRepository(), new MessageRecepientRepository(), new MessageAttachmentRepository(), _personRepository);
            var churchEmailTemplateRepository = new ChurchEmailTemplatesRepository();
            var emailService = new EmailService(new UsernamePasswordRepository(permissionRepository), _personRepository, new GroupRepository(), emailSender, new EmailContentService(new EmailContentRepository()), churchEmailTemplateRepository, permissionRepository);
            var uploadPhotoRepository = new PhotoRepository();

            _personService = new PersonService(
                _personRepository,
                new PersonGroupRepository(_personRepository),
                permissionRepository,
                new PersonRoleRepository(),
                new PersonOptionalFieldRepository(),
                new RelationshipRepository(_personRepository),
                new ChurchMatcherRepository(),
                new GroupRepository(),
                new FamilyRepository(uploadPhotoRepository),
                emailService,
                new AddressRepository(),
                uploadPhotoRepository
                );
        }
예제 #7
0
파일: HomeTask.cs 프로젝트: rodmjay/Trul
 public HomeTask(ICountryService countryService, IPersonService personService, IMenuService menuService, IUserService userService)
 {
     this.countryService = countryService;
     this.personService = personService;
     this.menuService = menuService;
     this.userService = userService;
 }
예제 #8
0
        private static void RunAllPersons(IPersonService client)
        {
            Console.WriteLine("All persons");

            var persons = client.GetAllPersons();
            ShowPersons(persons);
        }
예제 #9
0
 public PersonCommandService(IPersonService personService, IUnitOfWork unitOfWork, ICommandExecutor executor)
 {
    _personService = personService;
   _unitOfWork = unitOfWork;
   _executor = executor;
   _userSession = new UserSession();
 }
예제 #10
0
        public MainViewModel(IPersonService personService)
        {
            _personService = personService;

            _people = new ObservableCollection<PersonHeaderViewModel>();
            var task = _personService.LoadPeople();
            task.ContinueWith(t =>
             {
                 DispatcherHelper.CheckBeginInvokeOnUI(delegate
                 {
                     foreach (var person in t.Result)
                         _people.Add(new PersonHeaderViewModel
                         {
                             Id = person.Id,
                             FullName = String.Format("{0}, {1}",
                                 person.LastName,
                                 person.FirstName)
                         });
                 });
             });

            MessengerInstance.Register<PersonNameChanged>(this, message =>
            {
                var person = _people.FirstOrDefault(p =>
                    p.Id == message.PersonId);
                if (person != null)
                    person.FullName = String.Format("{0}, {1}",
                        message.LastName,
                        message.FirstName)
            });
        }
예제 #11
0
 public TripService(IEventParticipantService eventParticipant,
                    IDonationService donationService,
                    IGroupService groupService,
                    IFormSubmissionService formSubmissionService,
                    MinistryPlatform.Translation.Services.Interfaces.IEventService eventService,
                    IDonorService donorService,
                    IPledgeService pledgeService,
                    ICampaignService campaignService,
                    IPrivateInviteService privateInviteService,
                    ICommunicationService communicationService,
                    IContactService contactService,
                    IContactRelationshipService contactRelationshipService,
                    IConfigurationWrapper configurationWrapper,
                    IPersonService personService,
                    IServeService serveService,
                    IDestinationService destinationService)
 {
     _eventParticipantService = eventParticipant;
     _donationService = donationService;
     _groupService = groupService;
     _formSubmissionService = formSubmissionService;
     _mpEventService = eventService;
     _mpDonorService = donorService;
     _mpPledgeService = pledgeService;
     _campaignService = campaignService;
     _privateInviteService = privateInviteService;
     _communicationService = communicationService;
     _contactService = contactService;
     _contactRelationshipService = contactRelationshipService;
     _configurationWrapper = configurationWrapper;
     _personService = personService;
     _serveService = serveService;
     _destinationService = destinationService;
 }
예제 #12
0
        public static AttendeeListViewModel Create(Seminar seminar, IPersonService personService, string siteId)
        {
            Check.Require(seminar != null, "seminar is required.");
            Check.Require(personService != null, "personService is required.");

            var viewModel = new AttendeeListViewModel()
                                {
                                    Seminar = seminar,
                                };

            // pull the invitation list
            var invitations = viewModel.Seminar.Invitations.Where(a => a.Seminar.Site.Id == siteId).Select(a => a.Person).ToList();
            // pull applications
            var applications = viewModel.Seminar.Applications.Where(a => a.Seminar.Site.Id == siteId).ToList();
            // pull seminar people
            var seminarPeople = viewModel.Seminar.SeminarPeople;

            var people = new List<DisplayPerson>();

            people.AddRange(DetermineParticipation(personService, seminarPeople.Where(a => a.Paid).Select(a => a.Person).ToList(), siteId, registered: true));
            people.AddRange(DetermineParticipation(personService, seminarPeople.Where(a => !a.Paid).Select(a => a.Person).ToList(), siteId, accepted: true));
            people.AddRange(DetermineParticipation(personService, applications.Where(a => !a.IsPending && !a.IsApproved).Select(a => a.User.Person).ToList(), siteId, denied: true));
            people.AddRange(DetermineParticipation(personService, applications.Where(a => a.IsPending).Select(a => a.User.Person).ToList(), siteId, applied: true));
            people.AddRange(DetermineParticipation(personService, invitations.Where(a => !people.Select(b => b.Person).Contains(a)).ToList(), siteId, invite: true));

            viewModel.SeminarPeople = people;

            return viewModel;
        }
예제 #13
0
        public MainViewModel(IPersonService personService, IEventAggregator evt)
        {
            this.Users = new ObservableCollection<Testtable>();
            this.personService = personService;
            this.evt = evt;

            AddUsers(personService.GetAllPersons());
        }
예제 #14
0
        private static void RunAllLivingPersons(IPersonService client)
        {
            Console.WriteLine("All living persons");
            Expression<Func<Person, bool>> expression = p => p.DeathDate == null;

            var persons = client.FindPersons(expression.ToExpressionNode());
            ShowPersons(persons);
        }
예제 #15
0
        private static void RunAllMalePersons(IPersonService client)
        {
            Console.WriteLine("All male persons");
            Expression<Func<Person, bool>> expression = p => p.Gender == Gender.Male;

            var persons = client.FindPersons(expression.ToExpressionNode());
            ShowPersons(persons);
        }
        public MainWindowViewModel(IPersonService personService, IDispatcher dispatcher, IEventAggregator aggregator, IDialogService dialogService)
            : base(personService, dispatcher, aggregator, dialogService)
        {
            PersonDirectoryViewModel = new PersonDirectoryViewModel(personService, dispatcher, aggregator, dialogService);
            PersonDetailsViewModel = new PersonDetailsViewModel(personService, dispatcher, aggregator, dialogService);

            AppStartCommand = new AsyncCommand(PersonDirectoryViewModel.RefreshAsync);
        }
예제 #17
0
 public CaseStudyController(IRepository<CaseStudy> casestudyRepository, IRepository<Seminar> seminarRepository, IRepositoryWithTypedId<User, Guid> userRepository, IRepository<SeminarPerson> seminarPersonRepository, IPersonService personService)
 {
     _casestudyRepository = casestudyRepository;
     _seminarRepository = seminarRepository;
     _userRepository = userRepository;
     _seminarPersonRepository = seminarPersonRepository;
     _personService = personService;
 }
 public FrmNotes(INotesManagerService notesService, IPersonService service)
 {
     _service = service;
     InitializeComponent();
     _presenter = new NotesManagerPresenter(this, notesService, _service);
     LoadAllNotes();
     RegisterViewEvents();
 }
예제 #19
0
 public WidgetController(IBus bus, IWidgetDetailsService widgetDetailsService, IPersonService personService, IVersionService versionService, IVersionRolesService versionRolesService)
 {
     _bus = bus;
     _widgetDetailsService = widgetDetailsService;
     _personService = personService;
     _versionService = versionService;
     _versionRolesService = versionRolesService;
 }
예제 #20
0
        private static void RunAllPersonsFromJapan(IPersonService client)
        {
            Console.WriteLine("All persons from Japan");
            Expression<Func<Person, bool>> expression = p => p.Residence == "Japan";

            var persons = client.FindPersons(expression.ToExpressionNode());
            ShowPersons(persons);
        }
예제 #21
0
        private static void RunAllPersonsOfAge100(IPersonService client)
        {
            Console.WriteLine("All persons of Age >= 100");
            Expression<Func<Person, bool>> expression = p => p.Age >= 100;

            var persons = client.FindPersons(expression.ToExpressionNode());
            ShowPersons(persons);
        }
        public PersonDetailsViewModel(IPersonService personService, IDispatcher dispatcher, IEventAggregator aggregator, IDialogService dialogService)
            : base(personService, dispatcher, aggregator, dialogService)
        {
            aggregator.GetEvent<SelectedPersonChangeEvent>().Subscribe(OnSelectedPersonChanged, ThreadOption.BackgroundThread);

            NewPersonCommand = new DelegateCommand(NewPerson);
            EditPersonCommand = new DelegateCommand(EditPerson, CanEditPerson);
            DeletePersonCommand = new DelegateCommand(DeletePerson, CanDeletePerson);
        }
예제 #23
0
        public DetailViewModel(IEventAggregator evt, IPersonService personService)
        {
            this.evt = evt;
            this.personService = personService;

            ListaTipova = new ObservableCollection<Testtable2>( personService.GetAllPersonTypes());

            evt.GetEvent<SelectedListEvent>().Subscribe(AddNewSelected);
        }
예제 #24
0
 public WorkerController(IWorkerService workerService, 
     IPersonService personService,
     IImageService  imageServ,
     IWorkerCache wc)
 {
     this.wcache = wc;
     this.serv = workerService;
     this.imageServ = imageServ;
 }
    public HomeController(IPersonService personService)
    {
 /*       IEnumerable<Person> people = personService.GetAll();
        Person person;
        for (int i = 0; i < 100; i++)
        {
            person = people.ElementAt(i);
            Trace.WriteLine(string.Format("{0} {1}", person.FirstName, person.LastName));
        }*/
    }
 public SeminarApplicationController(IRepository<Application> applicationRepository, IFirmService firmService, INotificationService notificationService, IEventService eventService, IPictureService pictureService, IPersonService personService, IRepositoryFactory repositoryFactory)
 {
     _applicationRepository = applicationRepository;
     _firmService = firmService;
     _notificationService = notificationService;
     _eventService = eventService;
     _pictureService = pictureService;
     _personService = personService;
     _repositoryFactory = repositoryFactory;
 }
예제 #27
0
 public OrganizationService(IUnitOfWork unitOfWork, IOrganizationRepository organizationRepository, IPersonService personService, IWebSecurityService userService, IEmailHelper emailHelper, ILocationRepository locationRepository, ISubscriptionService subscriptionService, ICategoryService categoryService)
 {
     this.unitOfWork = unitOfWork;
     this.organizationRepository = organizationRepository;
     this.personService = personService;
     this.userService = userService;
     this.emailHelper = emailHelper;
     this.locationRepository = locationRepository;
     this.subscriptionService = subscriptionService;
     this.categoryService = categoryService;
 }
예제 #28
0
 public AccountController(IWebSecurityService webSecurityService, IPersonService personService, IAccountService accountService, IEmailHelper emailHelper, IWorkflowInstanceService workflowInstanceService, IWorkflowService workflowService)
 {
     this.webSecurityService = webSecurityService;
     this.personService = personService;
     this.accountService = accountService;
     this.emailHelper = emailHelper;
     this.workflowInstanceService = workflowInstanceService;
     this.workflowService = workflowService;
     
     Boolean.TryParse(ConfigurationManager.AppSettings["RequireSignUpVerification"], out requireVerification);
 }
예제 #29
0
        public EchipaViewModel(IPersonService personService)
        {
            _personService = personService;

            MembriVisibility = "Collapsed";
            AlumnusVisibility = "Collapsed";
            WannabeVisibility = "Collapsed";

            ProgressBarVisibility = "Visible";
            IsIndeterminate = "True";

            LoadPeople();
        }
예제 #30
0
 public AttendeeController(IRepository<Seminar> seminarRespository, IRepositoryWithTypedId<User, Guid> userRepository, IRepository<SeminarPerson> seminarPersonRepository
                         , IRepository<Person> personRepository, IRepository<Firm> firmRepository
                         , IPersonService personService, IRegistrationService registrationService, IFirmService firmService, Agribusiness.Web.Services.INotificationService notificationService)
 {
     _seminarRespository = seminarRespository;
     _userRepository = userRepository;
     _seminarPersonRepository = seminarPersonRepository;
     _personRepository = personRepository;
     _firmRepository = firmRepository;
     _personService = personService;
     _registrationService = registrationService;
     _firmService = firmService;
     _notificationService = notificationService;
 }
예제 #31
0
        public ResetPasswordForm(IPersonService personService)
        {
            InitializeComponent();

            _personService = personService;
        }
예제 #32
0
 public ChildcareController(IChildcareService childcareService, IEventService eventService, IPersonService personService, IUserImpersonationService userImpersonationService, IAuthenticationRepository authenticationRepository) : base(userImpersonationService, authenticationRepository)
 {
     _childcareService = childcareService;
     _eventService     = eventService;
     _personService    = personService;
 }
예제 #33
0
 public UsersApiController(IEmailService emailService, IPersonService personService, IAspNetUserRoleService aspNetUserRoleService)
 {
     _emailService          = emailService;
     _personService         = personService;
     _aspNetUserRoleService = aspNetUserRoleService;
 }
예제 #34
0
 public PersonController(IPersonService personService,
                         IMapper mapper)
 {
     this.personService = personService;
     this.mapper        = mapper;
 }
 public WorkflowRequest(IPersonService personService, WorkflowMasterVM requestVm)
 {
     _personService    = personService;
     _WorkflowMasterVm = requestVm;
 }
 public AttendancesController(IGroupService groupService, IAttendanceService attendanceService, IPersonService personService, IPersonAttendanceService personAttendanceService)
 {
     //
 }
 public PersonPostCommand(IPersonService personService, ILogger logger)
 {
     _personService = personService;
     _logger        = logger.ForContext <PersonPostCommand>();
 }
        public ApplicationServicePerson(IPersonService personService, IPersonMapper personMapper)

        {
            _personService = personService;
            _personMapper  = personMapper;
        }
 public PersonsController(IPersonService personService)
 {
     _personService = personService ?? throw new ArgumentNullException(nameof(personService));
 }
예제 #40
0
 public PeopleController(IPersonService personService) => _personService = personService;
예제 #41
0
 public PersonController(IPersonService service, IAutoMappingService mapper)
 {
     _service = service;
     _mapper  = mapper;
 }
예제 #42
0
 public PersonsController(
     IMapper mapper,
     IPersonService personService) : base(mapper)
 {
     _personService = personService;
 }
 public NotesManagerPresenter(INotesManagerView view, INotesManagerService notesService, IPersonService personService)
 {
     _personService = personService;
     _notesService  = notesService;
     _view          = view;
 }
예제 #44
0
 public AdminProcessesController(IProductService productService, ICategoryService categoryService, IBrandService brandService, IPersonService personService, IProductDetailService productDetailService, ISliderImageService sliderImageService)
 {
     _productService       = productService;
     _categoryService      = categoryService;
     _brandService         = brandService;
     _personService        = personService;
     _productDetailService = productDetailService;
     _sliderImageService   = sliderImageService;
 }
예제 #45
0
 public UserService(TodoContext context, IPersonService personService, IConfiguration config)
 {
     _context       = context;
     _config        = config;
     _personService = personService;
 }
예제 #46
0
 public RegisterPageVM(IPersonService service)
 {
     this.service = service;
 }
 public PersonController(IPersonService personService, IMapper mapper)
 {
     _personService = personService;
     _mapper        = mapper;
 }
예제 #48
0
 public PersonFacade(IPersonService personService, IMapper mapper)
 {
     _personService = personService;
     _mapper        = mapper;
 }
 public WorkflowRequest(IPersonService personService)
 {
     _personService = personService;
 }
예제 #50
0
 public HomeController(IPersonService personService)
 {
     _personService = personService;
 }
예제 #51
0
 public AdminController(IPersonService personService)
 {
     _personService = personService;
 }
예제 #52
0
 public PersonController(ILogger <PersonController> logger, IPersonService personService)
 {
     _logger        = logger;
     _personService = personService;
 }
예제 #53
0
 // مقدار دهی شی پرسن سرویس در کانستراکتور
 public PersonController(IPersonService service)
 {
     _service = service;
 }
 public PersonsController(IPersonService personService)
 {
     _personService = personService;
 }
예제 #55
0
 public PersonController(IPersonService personService, ILogger <PersonController> logger, IMapper mapper)
 {
     this.personService = personService;
     _logger            = logger;
     _mapper            = mapper;
 }
예제 #56
0
 public PersonController(IPersonService personService)
 {
     this.personService = personService;
 }
예제 #57
0
 public GetAllPersonsHandler(IPersonService service)
 {
     this.service = service;
 }
예제 #58
0
 public LoginController(IPersonService service)
 {
     Service = service;
 }
 public AccountController(UserManager <ApplicationUser> userManager, IPersonService personService)
 {
     _userManager   = userManager;
     _personService = personService;
 }
예제 #60
0
 public PersonController(IPersonService personService,
                         ICountryService countryService)
 {
     this.personService  = personService;
     this.countryService = countryService;
 }