コード例 #1
0
 public HumAberrationModel
     (string language, DateTime startDate, DateTime endDate,
     long?regionId, long?rayonId, long?settlementId, string location,
     decimal threshold, int timeInterval, string timeIntervalText, int baseline, int lag, string[] dateFilter, string dateFilterText,
     string[] checkedDiagnosis, int?startAge, int?endAge, long?gender, string genderText, string[] checkedCaseClassification,
     bool useArchive)
     : base(
         language, startDate, endDate, regionId, rayonId, settlementId, location, threshold, timeInterval, timeIntervalText, baseline,
         lag, dateFilter, dateFilterText, useArchive)
 {
     StartAge                   = startAge;
     EndAge                     = endAge;
     Gender                     = gender;
     GenderText                 = genderText;
     MultipleDiagnosis          = new MultipleDiagnosisModel(checkedDiagnosis, (int)HACode.Human);
     MultipleCaseClassification = new MultipleCaseClassificationModel(checkedCaseClassification, (int)HACode.Human, false, true);
 }
コード例 #2
0
        public VetAberrationModel
            (string language, DateTime startDate, DateTime endDate,
            long?regionId, long?rayonId, long?settlementId, string location,
            decimal threshold, int timeInterval, string timeIntervalText, int baseline, int lag, string[] dateFilter, string dateFilterText,
            string[] checkedDiagnosis, long?caseType, string caseTypeText, long?reportType, string reportTypeText,
            string[] checkedCaseClassification,
            bool useArchive)
            : base(
                language, startDate, endDate, regionId, rayonId, settlementId, location, threshold, timeInterval, timeIntervalText, baseline,
                lag, dateFilter, dateFilterText, useArchive)
        {
            CaseTypeId     = caseType;
            CaseTypeText   = caseTypeText;
            ReportType     = reportType;
            ReportTypeText = reportTypeText;
            int intHACode = caseType == (long)CaseTypeEnum.Livestock ? (int)HACode.Livestock : (int)HACode.Avian;

            multipleDiagnosis          = new MultipleDiagnosisModel(checkedDiagnosis, intHACode);
            multipleCaseClassification = new MultipleCaseClassificationModel(checkedCaseClassification,
                                                                             intHACode, false, false);
        }