示例#1
0
        public eClinicalExamination getOneClinicalExamination(int id)
        {
            var result             = cedal.getOneClinicalExamination(id);
            eClinicalExamination e = new eClinicalExamination();

            e.ClinicalExaminationId = result.ClinicalExaminationTypeID;
            e.Type        = result.Type;
            e.Description = result.Description;
            return(e);
        }
示例#2
0
        public List <eClinicalExamination> getAllClinicalExamination()
        {
            List <eClinicalExamination> ls = new List <eClinicalExamination>();

            foreach (ClinicalExamination record in cedal.getAllClinicalExamination())
            {
                eClinicalExamination temp = new eClinicalExamination();
                temp.ClinicalExaminationId = record.ClinicalExaminationTypeID;
                temp.Description           = record.Description;
                temp.Type = record.Type;
                ls.Add(temp);
            }
            return(ls);
        }
示例#3
0
 public bool updateClinicalExamination(eClinicalExamination e)
 {
     try
     {
         ClinicalExamination temp = new ClinicalExamination();
         temp.ClinicalExaminationTypeID = e.ClinicalExaminationId;
         temp.Description = e.Description;
         temp.Type        = e.Type;
         cedal.updateClinicalExamination(temp);
         return(true);
     }
     catch
     {
         return(false);
     }
 }