Esempio n. 1
0
        private void SaveMedicineCharge(CommContracts.DoctorAdviceBase tempAdvice)
        {
            var vm = this.DataContext as HISGUINurseVM;

            var advice = tempAdvice as CommContracts.MedicineDoctorAdvice;

            if (advice == null)
            {
                return;
            }

            CommContracts.InjectionBill injectionBill = new CommContracts.InjectionBill();
            injectionBill.MedicineDoctorAdviceID = advice.ID;
            injectionBill.UserID      = vm.CurrentUser.ID;
            injectionBill.CurrentTime = DateTime.Now;

            CommClient.InjectionBill myd = new CommClient.InjectionBill();
            if (myd.SaveInjectionBill(injectionBill))
            {
                tempAdvice.ExecuteEnum = CommContracts.ExecuteEnum.已执行;
                bool?bResult = vm?.UpdateDoctorAdvice(tempAdvice);
                if (bResult.HasValue && bResult.Value)
                {
                    MessageBox.Show("保存成功!");
                    UpdateAllChage();
                    return;
                }
            }
            else
            {
                MessageBox.Show("保存失败!");
                return;
            }
        }
Esempio n. 2
0
 // 更新医嘱
 public bool UpdateDoctorAdvice(CommContracts.DoctorAdviceBase doctorAdvice)
 {
     CommClient.DoctorAdviceBase myd = new CommClient.DoctorAdviceBase();
     return(myd.UpdateExecuteEnum(doctorAdvice.ID, doctorAdvice.ExecuteEnum));
 }