public NumberOfCasesDeathsMorbidityMortalityTHModel() { Diagnoses = new MultipleDiagnosisModel(); Regions = new MultipleRegionTHModel(); Zones = new MultipleZoneTHModel(); Provinces = new MultipleProvinceTHModel(); Districts = new MultipleDistrictTHModel(); }
public NumberOfCasesDeathsMonthTHModel() { Diagnoses = new MultipleDiagnosisModel(); Regions = new MultipleRegionTHModel(); Zones = new MultipleZoneTHModel(); Provinces = new MultipleProvinceTHModel(); //TODO: check if switch to separate model solution//Districts = new MultipleProvinceDistrictTreeTHModel(); DistrictCheckedItems = new string[0]; Language = ModelUserContext.CurrentLanguage; if (Language == Localizer.lngThai) { Year = ThaiCalendarHelper.GregorianYearToThai(Year); } }
public NumberOfCasesDeathsMorbidityMortalityTHModel (string lang, DateTime startDate, DateTime endDate, string[] diagnoses, string[] regions, string[] zones, string[] provinces, long?caseClassification, long?organizationId, List <PersonalDataGroup> forbiddenGroups, bool useArchive) : base(lang, startDate, endDate, useArchive) { Diagnoses = new MultipleDiagnosisModel(diagnoses); Regions = new MultipleRegionTHModel(regions); Zones = new MultipleZoneTHModel(zones); Provinces = new MultipleProvinceTHModel(provinces); CaseClassification = caseClassification; OrganizationId = organizationId; ForbiddenGroups = forbiddenGroups; }
public NumberOfCasesDeathsMonthTHModel (string lang, int year, int reportModeIndex, string[] diagnoses, string[] regions, string[] zones, string[] provinces, string[] districts, long?caseClassification, long?organizationId, List <PersonalDataGroup> forbiddenGroups, bool useArchive) : base(lang, year, useArchive) { ReportModeIndex = reportModeIndex; Diagnoses = new MultipleDiagnosisModel(diagnoses); Regions = new MultipleRegionTHModel(regions); Zones = new MultipleZoneTHModel(zones); Provinces = new MultipleProvinceTHModel(provinces); //TODO: check if switch to separate model solution//Districts = new MultipleProvinceDistrictTreeTHModel(districts); DistrictCheckedItems = districts ?? new string[0]; CaseClassification = caseClassification; OrganizationId = organizationId; ForbiddenGroups = forbiddenGroups; }