示例#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);
     }
 }