コード例 #1
0
 public List <CommContracts.MedicineDoctorAdvice> getAllZhong()
 {
     CommClient.MedicineDoctorAdvice MedicineDoctorAdvice = new CommClient.MedicineDoctorAdvice();
     if (IsClinicOrInHospital)
     {
         if (CurrentRegistration != null)
         {
             return(MedicineDoctorAdvice.getAllZhong(CurrentRegistration.ID));
         }
         else
         {
             return(null);
         }
     }
     else
     {
         if (CurrentInHospital != null)
         {
             return(MedicineDoctorAdvice.getAllInHospitalZhong(CurrentInHospital.ID));
         }
         else
         {
             return(null);
         }
     }
 }
コード例 #2
0
ファイル: HISGUIFeeVM.cs プロジェクト: xuebeibei/vsTest
        // 得到当前门诊患者的所有中药处方
        public List <CommContracts.MedicineDoctorAdvice> GetAllZhong()
        {
            CommClient.MedicineDoctorAdvice           recipe = new CommClient.MedicineDoctorAdvice(); // 处方
            List <CommContracts.MedicineDoctorAdvice> list   = new List <CommContracts.MedicineDoctorAdvice>();

            if (IsClinicOrInHospital)
            {
                if (CurrentRegistration != null)
                {
                    list = recipe.getAllZhong(this.CurrentRegistration.ID);
                }
            }
            else
            {
                if (CurrentInpatient != null)
                {
                    list = recipe.getAllInHospitalZhong(this.CurrentInpatient.ID);
                }
            }
            return(list);
        }
コード例 #3
0
 public bool SaveMedicineDoctorAdvice(CommContracts.MedicineDoctorAdvice medicineDoctorAdvice)
 {
     CommClient.MedicineDoctorAdvice myd = new CommClient.MedicineDoctorAdvice();
     return(myd.SaveMedicineDoctorAdvice(medicineDoctorAdvice));
 }