示例#1
0
 public LocationListViewModel(List <LocationViewModel> modelList, SchoolComparisonListModel comparisonList, string locationOrPostcode, string orderBy = "", bool openOnly = false, string searchMethod = "Random")
     : base(modelList, comparisonList, orderBy)
 {
     OpenOnly           = openOnly;
     LocationOrPostcode = locationOrPostcode;
     SearchMethod       = searchMethod;
 }
示例#2
0
 public BenchmarkSchoolModel(SchoolComparisonListModel schoolComparisonList)
 {
     Urn       = schoolComparisonList.HomeSchoolUrn;
     Name      = schoolComparisonList.HomeSchoolName;
     Type      = schoolComparisonList.HomeSchoolType;
     EstabType = schoolComparisonList.HomeSchoolFinancialType;
 }
示例#3
0
 public BenchmarkChartListViewModel(List <ChartViewModel> modelList, SchoolComparisonListModel comparisonList, List <ChartViewModel> chartGroups,
                                    ComparisonType comparisonType, BenchmarkCriteria advancedCriteria, SimpleCriteria simpleCriteria, BestInClassCriteria bicCriteria,
                                    FinancialDataModel benchmarkSchoolData, EstablishmentType estabType, EstablishmentType searchedEstabType, string schoolArea, string selectedArea,
                                    string latestTermAcademies, string latestTermMaintained, ComparisonArea areaType, string laCode, long?urn, int basketSize,
                                    TrustComparisonListModel trustComparisonList = null, List <EstablishmentViewModelBase> comparisonSchools = null, bool excludePartial = false)
     : base(modelList, comparisonList)
 {
     this.ChartGroups               = chartGroups;
     this.AdvancedCriteria          = advancedCriteria;
     this.SimpleCriteria            = simpleCriteria;
     this.BicCriteria               = bicCriteria;
     this.ComparisonType            = comparisonType;
     this.BenchmarkSchoolData       = benchmarkSchoolData;
     this.EstablishmentType         = estabType;
     this.SearchedEstablishmentType = searchedEstabType;
     this.SchoolArea           = schoolArea;
     this.SelectedArea         = selectedArea;
     this.TrustComparisonList  = trustComparisonList;
     this.LatestTermAcademies  = latestTermAcademies;
     this.LatestTermMaintained = latestTermMaintained;
     this.AreaType             = areaType;
     this.LaCode            = laCode;
     this.URN               = urn;
     this.BasketSize        = basketSize;
     this.ComparisonSchools = comparisonSchools;
     this.ExcludePartial    = excludePartial;
 }
示例#4
0
 public TrustListViewModel(List <AcademyTrustViewModel> modelList, SchoolComparisonListModel comparisonList, string searchType, string nameKeyword, string locationKeyword, string laKeyword, string orderBy = "")
     : base(modelList, null, orderBy)
 {
     SearchType      = searchType;
     NameKeyword     = nameKeyword;
     LocationKeyword = locationKeyword;
     LaKeyword       = laKeyword;
 }
示例#5
0
 public SchoolCharacteristicsViewModel(SchoolViewModel school, SchoolComparisonListModel comparisonList, BenchmarkCriteria benchmarkCriteria)
 {
     base.ComparisonList        = comparisonList;
     this.BenchmarkSchool       = school;
     this.SchoolCharacteristics = BuildSchoolCharacteristics(school);
     this.BenchmarkCriteria     = benchmarkCriteria;
     this.BuildGeneralCriteriaVMs();
     this.BuildSenCriteriaVMs();
     this.BuildPerformanceCriteriaVMs();
     this.BuildWorkforceCriteriaVMs();
 }
示例#6
0
 public SchoolViewModel(EdubaseDataObject schoolContextDataModel, SchoolComparisonListModel comparisonList, SchoolComparisonListModel manualComparisonList)
     : this(schoolContextDataModel, comparisonList)
 {
     this.ManualComparisonList = manualComparisonList;
 }
示例#7
0
 public SchoolViewModel(EdubaseDataObject schoolContextDataModel, SchoolComparisonListModel comparisonList) : this(schoolContextDataModel)
 {
     base.ComparisonList = comparisonList;
 }
示例#8
0
 public SchoolViewModel(SchoolComparisonListModel comparisonList) : this((EdubaseDataObject)null)
 {
     base.ComparisonList = comparisonList;
 }
示例#9
0
 public SearchedSchoolListViewModel(List <SchoolSearchResultViewModel> modelList, SchoolComparisonListModel comparisonList, string searchType, string nameKeyword, string locationKeyword, string laKeyword, string orderBy = "")
     : base(modelList, comparisonList, orderBy)
 {
     SearchType      = searchType;
     NameKeyword     = nameKeyword;
     LocationKeyword = locationKeyword;
     LaKeyword       = laKeyword;
 }
示例#10
0
 public AcademyTrustViewModel(int uid, int companyNo, string name, Task <IEnumerable <EdubaseDataObject> > academiesListBuilderTask, SchoolComparisonListModel comparisonList = null)
     : this(uid, companyNo, name)
 {
     this.AcademiesListBuilderTask = academiesListBuilderTask;
     base.ComparisonList           = comparisonList;
 }
示例#11
0
 public ViewModelListBase(List <T> modelList, SchoolComparisonListModel comparisonList, string orderBy = "")
 {
     this.SchoolComparisonList = comparisonList;
     this.ModelList            = modelList;
     this.OrderBy = orderBy;
 }
 public TrustViewModel(int uid, int companyNo, SchoolComparisonListModel comparisonList = null)
     : this(uid, companyNo)
 {
     base.ComparisonList = comparisonList;
 }
 public SchoolListViewModel(List <SchoolViewModel> modelList, SchoolComparisonListModel comparisonList, string orderBy = "")
     : base(modelList, comparisonList, orderBy)
 {
 }
 public SchoolViewModelWithNoDefaultSchool(SchoolComparisonListModel schoolComparisonList, SchoolComparisonListModel manualComparisonList) : base(null, schoolComparisonList, manualComparisonList)
 {
 }
 public LaListViewModel(List <LaViewModel> modelList, SchoolComparisonListModel comparisonList, string orderBy = "", bool openOnly = false, string searchMethod = "Random")
     : base(modelList, comparisonList, orderBy)
 {
     OpenOnly     = openOnly;
     SearchMethod = searchMethod;
 }
示例#16
0
 public SchoolSearchResultViewModel(SchoolSearchResult schoolContextDataModel, SchoolComparisonListModel comparisonList)
 {
     ContextDataModel    = schoolContextDataModel;
     base.ComparisonList = comparisonList;
 }
 public FederationViewModel(long uid, SchoolComparisonListModel comparisonList = null)
     : this(uid)
 {
     base.ComparisonList = comparisonList;
 }
示例#18
0
 public AcademyTrustViewModel(int uid, int companyNo, string name, List <SchoolViewModel> academiesList, SchoolComparisonListModel comparisonList = null)
     : this(uid, companyNo, name)
 {
     this.AcademiesList  = academiesList;
     base.ComparisonList = comparisonList;
 }