Ejemplo n.º 1
0
 public NumberOfCasesDeathsMorbidityMortalityTHModel()
 {
     Diagnoses = new MultipleDiagnosisModel();
     Regions   = new MultipleRegionTHModel();
     Zones     = new MultipleZoneTHModel();
     Provinces = new MultipleProvinceTHModel();
     Districts = new MultipleDistrictTHModel();
 }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
 }