示例#1
0
 public OperationsController(IOrganizationTasks orgTasks, IAuditTasks auditTasks, IUserTasks userTasks, IScreeningTasks screeningTasks)
 {
     this.orgTasks       = orgTasks;
     this.auditTasks     = auditTasks;
     this.userTasks      = userTasks;
     this.screeningTasks = screeningTasks;
 }
示例#2
0
 public LocationsController(ILocationTasks locationTasks, IEventTasks eventTasks, ICareerTasks careerTasks, IOrganizationTasks orgTasks)
 {
     this.locationTasks = locationTasks;
     this.eventTasks    = eventTasks;
     this.careerTasks   = careerTasks;
     this.orgTasks      = orgTasks;
 }
 public OrgResponsibilitiesController(IEventTasks eventTasks,
                                      IResponsibilityTasks responsibilityTasks,
                                      IOrganizationTasks organizationTasks)
 {
     this.eventTasks          = eventTasks;
     this.responsibilityTasks = responsibilityTasks;
     this.organizationTasks   = organizationTasks;
 }
示例#4
0
 public HomeController(IScreeningTasks screeningTasks,
                       IRequestTasks requestTasks,
                       IScreeningStatisticTasks screeningStatisticTasks,
                       IOrganizationTasks orgTasks)
 {
     this.screeningTasks          = screeningTasks;
     this.requestTasks            = requestTasks;
     this.screeningStatisticTasks = screeningStatisticTasks;
     this.orgTasks = orgTasks;
 }
示例#5
0
 public CareersController(IPersonTasks personTasks,
                          ICareerTasks careerTasks,
                          IOrganizationTasks organizationTasks,
                          ILocationTasks locationTasks)
 {
     this.personTasks       = personTasks;
     this.careerTasks       = careerTasks;
     this.organizationTasks = organizationTasks;
     this.locationTasks     = locationTasks;
 }
示例#6
0
 public UnitsController(IOrganizationTasks orgTasks,
                        IScreeningTasks screeningTasks,
                        ILuceneTasks luceneTasks,
                        IUserTasks userTasks,
                        ISourceTasks sourceTasks,
                        IAuditTasks auditTasks)
 {
     this.orgTasks       = orgTasks;
     this.screeningTasks = screeningTasks;
     this.luceneTasks    = luceneTasks;
     this.userTasks      = userTasks;
     this.sourceTasks    = sourceTasks;
     this.auditTasks     = auditTasks;
 }
示例#7
0
 public EventsController(ISourceTasks sourceTasks,
                         IEventTasks eventTasks,
                         IPersonTasks personTasks,
                         IResponsibilityTasks responsibilityTasks,
                         IOrganizationTasks orgTasks,
                         ILocationTasks locationTasks)
 {
     this.sourceTasks         = sourceTasks;
     this.eventTasks          = eventTasks;
     this.personTasks         = personTasks;
     this.responsibilityTasks = responsibilityTasks;
     this.orgTasks            = orgTasks;
     this.locationTasks       = locationTasks;
 }
示例#8
0
 public EventMatchingTasks(IEventTasks eventTasks,
                           ILuceneTasks luceneTasks,
                           ISourceAttachmentTasks sourceAttachmentTasks,
                           ILocationTasks locationTasks,
                           IJhroCaseQueries jhroCaseQueries,
                           IPersonTasks personTasks,
                           IOrganizationTasks orgTasks)
 {
     this.eventTasks            = eventTasks;
     this.luceneTasks           = luceneTasks;
     this.sourceAttachmentTasks = sourceAttachmentTasks;
     this.locationTasks         = locationTasks;
     this.jhroCaseQueries       = jhroCaseQueries;
     this.personTasks           = personTasks;
     this.orgTasks = orgTasks;
 }
示例#9
0
 public InitiateController(IRequestTasks requestTasks,
                           IUserTasks userTasks,
                           IPersonTasks personTasks,
                           IRequestPersonTasks requestPersonTasks,
                           IEmailTasks emailTasks,
                           ILuceneTasks luceneTasks,
                           IOrganizationTasks orgTasks)
 {
     this.requestTasks       = requestTasks;
     this.userTasks          = userTasks;
     this.personTasks        = personTasks;
     this.requestPersonTasks = requestPersonTasks;
     this.emailTasks         = emailTasks;
     this.luceneTasks        = luceneTasks;
     this.orgTasks           = orgTasks;
 }
示例#10
0
 public BackgroundTasks(ILuceneTasks luceneTasks,
                        IOrganizationTasks orgTasks,
                        IPersonTasks personTasks,
                        IEventTasks eventTasks,
                        IRequestTasks requestTasks,
                        IScreeningTasks screeningTasks,
                        ISourceTasks sourceTasks)
 {
     this.luceneTasks    = luceneTasks;
     this.orgTasks       = orgTasks;
     this.personTasks    = personTasks;
     this.eventTasks     = eventTasks;
     this.requestTasks   = requestTasks;
     this.screeningTasks = screeningTasks;
     this.sourceTasks    = sourceTasks;
 }
示例#11
0
 public SourceManagementTasks(IObjectSourceDuplicatesQuery objectSourceDuplicatesQuery,
                              ISourceTasks sourceTasks,
                              ISourceAttachmentTasks sourceAttachmentTasks,
                              IPersonTasks personTasks,
                              IEventTasks eventTasks,
                              IOrganizationTasks orgTasks,
                              ISourceQueries sourceQueries,
                              ILuceneTasks luceneTasks)
 {
     this.objectSourceDuplicatesQuery = objectSourceDuplicatesQuery;
     this.sourceTasks           = sourceTasks;
     this.sourceAttachmentTasks = sourceAttachmentTasks;
     this.personTasks           = personTasks;
     this.eventTasks            = eventTasks;
     this.orgTasks      = orgTasks;
     this.sourceQueries = sourceQueries;
     this.luceneTasks   = luceneTasks;
 }
示例#12
0
 public AuditTasks(IPersonTasks personTasks,
                   IEventTasks eventTasks,
                   IOrganizationTasks orgTasks,
                   IPersonChangeActivityQuery personChangeActivityQuery,
                   IPersonAuditable <Person> auditPersonQuery,
                   IPersonAuditable <Career> auditCareerQuery,
                   IPersonAuditable <PersonAlias> auditPersonAliasQuery,
                   IPersonAuditable <PersonSource> auditPersonSourceQuery,
                   IPersonAuditable <PersonPhoto> auditPersonPhotoQuery,
                   IPersonAuditable <PersonRelationship> auditPersonRelationshipQuery,
                   IPersonAuditable <ActionTaken> auditActionTakenQuery,
                   IPersonAuditable <PersonResponsibility> auditPersonResponsibilityQuery,
                   IPersonAuditable <PersonRestrictedNote> auditPersonRestrictedNoteQuery,
                   IDeletedProfilesStoredProcQuery oldDeletedProfilesQuery,
                   IAuditedEntityQuery auditedEntityQuery,
                   IModifiedProfilesStoredProcQuery oldModifiedProfilesQuery,
                   IAdminAuditQuery adminAuditQuery,
                   IEventRevisionsQuery eventRevisionsQuery,
                   IUnitRevisionsQuery unitRevisionsQuery,
                   IOperationRevisionsQuery operationRevisionsQuery)
 {
     this.personTasks = personTasks;
     this.eventTasks  = eventTasks;
     this.orgTasks    = orgTasks;
     this.personChangeActivityQuery      = personChangeActivityQuery;
     this.auditPersonQuery               = auditPersonQuery;
     this.auditCareerQuery               = auditCareerQuery;
     this.auditPersonAliasQuery          = auditPersonAliasQuery;
     this.auditPersonSourceQuery         = auditPersonSourceQuery;
     this.auditPersonPhotoQuery          = auditPersonPhotoQuery;
     this.auditPersonRelationshipQuery   = auditPersonRelationshipQuery;
     this.auditActionTakenQuery          = auditActionTakenQuery;
     this.auditPersonResponsibilityQuery = auditPersonResponsibilityQuery;
     this.auditPersonRestrictedNoteQuery = auditPersonRestrictedNoteQuery;
     this.oldDeletedProfilesQuery        = oldDeletedProfilesQuery;
     this.auditedEntityQuery             = auditedEntityQuery;
     this.oldModifiedProfilesQuery       = oldModifiedProfilesQuery;
     this.adminAuditQuery         = adminAuditQuery;
     this.eventRevisionsQuery     = eventRevisionsQuery;
     this.unitRevisionsQuery      = unitRevisionsQuery;
     this.operationRevisionsQuery = operationRevisionsQuery;
 }
示例#13
0
        protected override ValidationResult IsValid(object value, ValidationContext validationContext)
        {
            UnitViewModel vm = (UnitViewModel)validationContext.ObjectInstance;

            IOrganizationTasks orgTasks = ServiceLocator.Current.GetInstance <IOrganizationTasks>();
            Unit existing = orgTasks.GetUnit(vm.UnitName);

            if (vm.Id > 0)  // editing a unit
            {
                Unit thisUnit = orgTasks.GetUnit(vm.Id);
                if (thisUnit != null && existing != null && thisUnit.Id != existing.Id)
                {
                    return(CheckDates(vm, existing));
                }
            }
            else  // creating a new unit
            {
                return(CheckDates(vm, existing));
            }

            return(ValidationResult.Success);
        }
示例#14
0
 public PersonTasks(INHibernateRepository <Person> personRepo,
                    INHibernateRepository <ProfileStatus> profileStatusRepo,
                    INHibernateRepository <Ethnicity> ethnicityRepo,
                    INHibernateRepository <PersonAlias> personAliasRepo,
                    INHibernateRepository <PersonRelationship> personRelationshipRepo,
                    INHibernateRepository <PersonRelationshipType> personRelationshipTypeRepo,
                    INHibernateRepository <ActiveScreening> activeScreeningRepo,
                    INHibernateRepository <PersonRestrictedNote> restrictedNoteRepo,
                    INHibernateRepository <AdminExportedPersonProfile> exportPersonRepo,
                    IPersonRelationshipTypeNameQuery personRelationshipTypeNameQuery,
                    IPersonDataTablesQuery personDataTablesQuery,
                    IPersonQueries personQueries,
                    IOrganizationTasks orgTasks,
                    IMergeStoredProcQueries mergeQueries,
                    ILuceneTasks luceneTasks,
                    IAttachedSourceQueries attachedSourceQueries,
                    IWordExportPersonService exportService)
 {
     this.personRepo                      = personRepo;
     this.profileStatusRepo               = profileStatusRepo;
     this.ethnicityRepo                   = ethnicityRepo;
     this.personAliasRepo                 = personAliasRepo;
     this.personRelationshipRepo          = personRelationshipRepo;
     this.personRelationshipTypeRepo      = personRelationshipTypeRepo;
     this.activeScreeningRepo             = activeScreeningRepo;
     this.restrictedNoteRepo              = restrictedNoteRepo;
     this.exportPersonRepo                = exportPersonRepo;
     this.personRelationshipTypeNameQuery = personRelationshipTypeNameQuery;
     this.personDataTablesQuery           = personDataTablesQuery;
     this.personQueries                   = personQueries;
     this.orgTasks              = orgTasks;
     this.mergeQueries          = mergeQueries;
     this.luceneTasks           = luceneTasks;
     this.attachedSourceQueries = attachedSourceQueries;
     this.exportService         = exportService;
 }
示例#15
0
 public HierarchiesController(IOrganizationTasks orgTasks)
 {
     this.orgTasks = orgTasks;
 }
示例#16
0
 public UnitSourcesController(IOrganizationTasks orgTasks, ISourceTasks sourceTasks, ISourceAttachmentTasks sourceAttachmentTasks)
 {
     this.orgTasks              = orgTasks;
     this.sourceTasks           = sourceTasks;
     this.sourceAttachmentTasks = sourceAttachmentTasks;
 }
示例#17
0
 public UnitsController(IOrganizationTasks orgTasks, ILuceneTasks luceneTasks)
 {
     this.orgTasks    = orgTasks;
     this.luceneTasks = luceneTasks;
 }
示例#18
0
 public OperationAliasesController(IOrganizationTasks orgTasks)
 {
     this.orgTasks = orgTasks;
 }
示例#19
0
 public UnitOperationsController(IOrganizationTasks orgTasks)
 {
     this.orgTasks = orgTasks;
 }
示例#20
0
 public RanksController(IOrganizationTasks orgTasks)
 {
     this.orgTasks = orgTasks;
 }
示例#21
0
 public UnitLocationsController(IOrganizationTasks orgTasks, ILocationTasks locationTasks)
 {
     this.orgTasks      = orgTasks;
     this.locationTasks = locationTasks;
 }