Exemplo n.º 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);
         }
     }
 }
Exemplo n.º 2
0
        // 得到当前门诊患者的所有西成药处方
        public List <CommContracts.MedicineDoctorAdvice> GetAllXiCheng()
        {
            CommClient.MedicineDoctorAdvice           recipe = new CommClient.MedicineDoctorAdvice(); // 处方
            List <CommContracts.MedicineDoctorAdvice> list   = new List <CommContracts.MedicineDoctorAdvice>();

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