Beispiel #1
0
        private void ReNewBtn_Click(object sender, RoutedEventArgs e)
        {
            var vm = this.DataContext as HISGUIPatientCardVM;

            CommClient.Patient client = new CommClient.Patient();
            vm.CurrentPatient.PatientCardNo     = client.getNewPatientCardNum();
            vm.CurrentPatient.PatientCardStatus = CommContracts.PatientCardStatusEnum.补办;

            CommContracts.PatientCardManage manage = new CommContracts.PatientCardManage();
            manage.Patient        = vm.CurrentPatient;
            manage.PatientID      = vm.CurrentPatient.ID;
            manage.CardNo         = vm.CurrentPatient.PatientCardNo;
            manage.CardManageEnum = CommContracts.CardManageEnum.补办卡;
            manage.UserID         = vm.CurrentUser.ID;

            string strMsg = "";

            if (vm.SavePatientCardManage(manage, ref strMsg))
            {
                MessageBox.Show("补办卡完成!");
                newPatientCard();
            }
            else
            {
                MessageBox.Show(strMsg);
            }
        }
Beispiel #2
0
        /// <summary>
        /// 新建卡
        /// </summary>
        private void newPatientCard()
        {
            CommClient.Patient patientClient = new CommClient.Patient();

            CommContracts.Patient tempPatient = new CommContracts.Patient();
            tempPatient.PID           = patientClient.getNewPID();
            tempPatient.PatientCardNo = patientClient.getNewPatientCardNum();

            var vm = this.DataContext as HISGUIPatientCardVM;

            vm.CurrentPatient = tempPatient;


            this.PatientMsgGrid.IsEnabled = true;
            this.bIsEdit            = false;
            this.EditBtn.IsEnabled  = false;
            this.LostBtn.IsEnabled  = false;
            this.ReNewBtn.IsEnabled = false;

            this.txt_Name.Focus();
            this.ManageCardRecordsList.SelectedItems.Clear();
            this.ManageCardRecordsList.ItemsSource = null;
        }