public Global BuildGlobal(int ukprn)
 {
     return(new Global()
     {
         LARSVersion = _larsReferenceDataService.LARSCurrentVersion(),
         UKPRN = ukprn
     });
 }
Beispiel #2
0
 public Global BuildGlobal()
 {
     return(new Global()
     {
         LARSVersion = _larsReferenceDataService.LARSCurrentVersion(),
         UKPRN = _fileDataService.UKPRN()
     });
 }
Beispiel #3
0
 public Global BuildGlobal(int ukprn)
 {
     return(new Global()
     {
         LARSVersion = _larsReferenceDataService.LARSCurrentVersion(),
         OrgVersion = _organisationReferenceDataService.OrganisationVersion(),
         PostcodeDisadvantageVersion = _postcodesReferenceDataService.PostcodesCurrentVersion(),
         UKPRN = ukprn
     });
 }
 public Global BuildGlobal(int ukprn)
 {
     return(new Global()
     {
         LARSVersion = _larsReferenceDataService.LARSCurrentVersion(),
         Year = Attributes.YearValue,
         CollectionPeriod = Attributes.CollectionPeriodValue,
         UKPRN = ukprn
     });
 }
Beispiel #5
0
        public Global BuildGlobal()
        {
            return(new Global()
            {
                LARSVersion = _larsReferenceDataService.LARSCurrentVersion(),
                Year = Attributes.YearValue,

                // ToDo: implement AcademicYear service over InternalCache for "CollectionPeriod" to calculate value.
                // This attribute is not used by rulebase at present 10/09/18.
                CollectionPeriod = Attributes.CollectionPeriodValue,
                UKPRN = _fileDataService.UKPRN()
            });
        }
        public Global BuildGlobal()
        {
            var ukprn       = _fileDataService.UKPRN();
            var orgFundings = _organisationReferenceDataService.OrganisationFundingForUKPRN(ukprn).Where(f => f.OrgFundFactType == Attributes.OrgFundFactorTypeEFA1619).ToList();

            return(new Global()
            {
                AreaCostFactor1618 = orgFundings.FirstOrDefault(f => f.OrgFundEffectiveFrom == _orgFundingAppliesFrom && f.OrgFundFactor == Attributes.OrgFundFactorHistoricAreaCost)?.OrgFundFactValue,
                DisadvantageProportion = orgFundings.FirstOrDefault(f => f.OrgFundEffectiveFrom == _orgFundingAppliesFrom && f.OrgFundFactor == Attributes.OrgFundFactorHistoricDisadvantageFundingProportion)?.OrgFundFactValue,
                HistoricLargeProgrammeProportion = orgFundings.FirstOrDefault(f => f.OrgFundEffectiveFrom == _orgFundingAppliesFrom && f.OrgFundFactor == Attributes.OrgFundFactorHistoricLargeProgProportion)?.OrgFundFactValue,
                LARSVersion = _larsReferenceDataService.LARSCurrentVersion(),
                OrgVersion = _organisationReferenceDataService.OrganisationVersion(),
                PostcodesVersion = _postcodesReferenceDataService.PostcodesCurrentVersion(),
                ProgrammeWeighting = orgFundings.FirstOrDefault(f => f.OrgFundEffectiveFrom == _orgFundingAppliesFrom && f.OrgFundFactor == Attributes.OrgFundFactorHistoriProgCostWeigting)?.OrgFundFactValue,
                RetentionFactor = orgFundings.FirstOrDefault(f => f.OrgFundEffectiveFrom == _orgFundingAppliesFrom && f.OrgFundFactor == Attributes.OrgFundFactorHistoricRetention)?.OrgFundFactValue,
                SpecialistResources = orgFundings.FirstOrDefault(f => f.OrgFundFactor == Attributes.OrgFundFactorSpecialistResources)?.OrgFundFactValue == "1" ? true : false,
                UKPRN = ukprn
            });
        }