示例#1
0
 public List <CommContracts.TherapyDoctorAdvice> getAllTherapy()
 {
     CommClient.TherapyDoctorAdvice therapy = new CommClient.TherapyDoctorAdvice();
     if (IsClinicOrInHospital)
     {
         if (CurrentRegistration != null)
         {
             return(therapy.getAllTherapyDoctorAdvice(CurrentRegistration.ID));
         }
         else
         {
             return(null);
         }
     }
     else
     {
         if (CurrentInHospital != null)
         {
             return(therapy.getAllInHospitalTherapyDoctorAdvice(CurrentInHospital.ID));
         }
         else
         {
             return(null);
         }
     }
 }
示例#2
0
        // 得到当前门诊患者的所有治疗单
        public List <CommContracts.TherapyDoctorAdvice> GetAllZhiLiao()
        {
            CommClient.TherapyDoctorAdvice therapy = new CommClient.TherapyDoctorAdvice();  // 治疗

            List <CommContracts.TherapyDoctorAdvice> list = new List <CommContracts.TherapyDoctorAdvice>();

            if (IsClinicOrInHospital)
            {
                if (CurrentRegistration != null)
                {
                    list = therapy.getAllTherapyDoctorAdvice(this.CurrentRegistration.ID);
                }
            }
            else
            {
                if (CurrentInpatient != null)
                {
                    list = therapy.getAllInHospitalTherapyDoctorAdvice(this.CurrentInpatient.ID);
                }
            }
            return(list);
        }