예제 #1
0
 public NumberOfCasesDeathsMorbidityMortalityTHModel()
 {
     Diagnoses = new MultipleDiagnosisModel();
     Regions   = new MultipleRegionTHModel();
     Zones     = new MultipleZoneTHModel();
     Provinces = new MultipleProvinceTHModel();
     Districts = new MultipleDistrictTHModel();
 }
예제 #2
0
        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);
            }
        }
예제 #3
0
        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;
        }
예제 #4
0
 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;
 }