예제 #1
0
 public List <CommContracts.MedicineDoctorAdvice> getAllXiCheng()
 {
     CommClient.MedicineDoctorAdvice MedicineDoctorAdvice = new CommClient.MedicineDoctorAdvice();
     if (IsClinicOrInHospital)
     {
         if (CurrentRegistration != null)
         {
             return(MedicineDoctorAdvice.getAllXiCheng(CurrentRegistration.ID));
         }
         else
         {
             return(null);
         }
     }
     else
     {
         if (CurrentInHospital != null)
         {
             return(MedicineDoctorAdvice.getAllInHospitalXiCheng(CurrentInHospital.ID));
         }
         else
         {
             return(null);
         }
     }
 }
예제 #2
0
        // 得到当前门诊患者的所有处方
        public List <CommContracts.MedicineDoctorAdvice> GetAllMedicineDoctorAdvice()
        {
            CommClient.MedicineDoctorAdvice           recipe = new CommClient.MedicineDoctorAdvice(); // 处方
            List <CommContracts.MedicineDoctorAdvice> list   = new List <CommContracts.MedicineDoctorAdvice>();

            if (IsClinicOrInHospital)
            {
                if (CurrentRegistration != null)
                {
                    list.AddRange(recipe.getAllXiCheng(CurrentRegistration.ID));
                    list.AddRange(recipe.getAllZhong(CurrentRegistration.ID));
                }
            }
            else
            {
                if (CurrentInpatient != null)
                {
                    list = recipe.getAllInHospitalXiCheng(CurrentInpatient.ID);
                    list = recipe.getAllInHospitalXiCheng(CurrentInpatient.ID);
                }
            }
            return(list);
        }