Пример #1
0
        public eClinicalExaminationResult getOneClinicalExaminationResult(int id)
        {
            var result = cerdal.getOneClinicalExaminationResult(id);
            eClinicalExaminationResult e = new eClinicalExaminationResult();

            e.ClinicalExaminationID       = result.ClinicalExaminationID;
            e.ClinicalExaminationResultID = result.ClinicalExaminationResultID;
            e.DoctorID            = result.DoctorID;
            e.ExaminationResultID = result.ExaminationResultID;
            e.Result = result.Result;
            return(e);
        }
Пример #2
0
        public List <eClinicalExaminationResult> getAllClinicalExaminationResult()
        {
            List <eClinicalExaminationResult> ls = new List <eClinicalExaminationResult>();

            foreach (ClinicalExaminationResult record in cerdal.getAllClinicalExaminationResult())
            {
                eClinicalExaminationResult temp = new eClinicalExaminationResult();
                temp.ClinicalExaminationID       = record.ClinicalExaminationID;
                temp.ClinicalExaminationResultID = record.ClinicalExaminationResultID;
                temp.DoctorID            = record.DoctorID;
                temp.ExaminationResultID = record.ExaminationResultID;
                temp.Result = record.Result;
                ls.Add(temp);
            }
            return(ls);
        }
Пример #3
0
 public bool updateClinicalExaminationResult(eClinicalExaminationResult e)
 {
     try
     {
         ClinicalExaminationResult temp = new ClinicalExaminationResult();
         temp.ClinicalExaminationID       = e.ClinicalExaminationID;
         temp.ClinicalExaminationResultID = e.ClinicalExaminationResultID;
         temp.DoctorID            = e.DoctorID;
         temp.ExaminationResultID = e.ExaminationResultID;
         temp.Result = e.Result;
         cerdal.updateClinicalExaminationResult(temp);
         return(true);
     }
     catch
     {
         return(false);
     }
 }