private void ReadCardBtn_Click(object sender, RoutedEventArgs e)
        {
            // 读卡
            //var vm = this.DataContext as HISGUIFeeVM;
            //if (InManageCheck.IsChecked.Value)
            //{
            //    MyCurrentInpatient = vm?.ReadNewInHospital(7);
            //}
            //else if (LeaveManageCheck.IsChecked.Value)
            //{
            //    MyCurrentInpatient = vm?.ReadCurrentInHospital(9);
            //}
            //else if (RecallManageCheck.IsChecked.Value)
            //{
            //    MyCurrentInpatient = vm?.ReadLeavedPatient(9);
            //}

            //updateInDateToView();
            //updateLeaveDateToView();
            String strPatientCardNum = Interaction.InputBox("请输入就诊卡卡号", "读卡", "", 100, 100);

            if (string.IsNullOrEmpty(strPatientCardNum))
            {
                return;
            }

            var vm = this.DataContext as HISGUIFeeVM;

            CommContracts.Patient tempPatient = new CommContracts.Patient();

            CommClient.Patient patientClient = new CommClient.Patient();

            string ErrorMsg = "";

            tempPatient       = patientClient.ReadCurrentPatientByPatientCardNum(strPatientCardNum, ref ErrorMsg);
            vm.CurrentPatient = tempPatient;

            CommClient.InHospital           registrationClient = new CommClient.InHospital();
            List <CommContracts.InHospital> InHospitalList     = registrationClient.GetAllInHospitalList(0, vm.CurrentPatient.Name);

            if (InHospitalList == null || InHospitalList.Count() <= 0)
            {
                return;
            }

            MyCurrentInpatient = InHospitalList.ElementAt(0);


            updateInDateToView();
            updateLeaveDateToView();
        }
 private void UpdateAllWait()
 {
     if (this.InManageCheck.IsChecked.Value)
     {
         this.AllWaitList.View = this.Resources["inApplyColumn"] as GridView;
         CommClient.InHospitalApply mydApply = new CommClient.InHospitalApply();
         AllWaitList.ItemsSource = mydApply.GetAllInHospitalApply(CommContracts.InHospitalApplyEnum.未处理);
     }
     else if (this.LeaveManageCheck.IsChecked.Value)
     {
         CommClient.InHospital myd = new CommClient.InHospital();
         this.AllWaitList.View   = this.Resources["inHospitalColumn"] as GridView;
         AllWaitList.ItemsSource = myd.GetAllInHospitalList();
     }
     else if (this.RecallManageCheck.IsChecked.Value)
     {
         CommClient.LeaveHospital myd = new CommClient.LeaveHospital();
         this.AllWaitList.View   = this.Resources["leaveHospitalColumn"] as GridView;
         AllWaitList.ItemsSource = myd.GetAllLeaveHospitalList();
     }
 }
예제 #3
0
 // 得到所有需要收费的住院患者
 public List <CommContracts.InHospital> GetAllInHospitalChargePatient()
 {
     CommClient.InHospital myd = new CommClient.InHospital();
     return(myd.GetAllInHospitalList());
 }
예제 #4
0
 // 获得当前医生的住院患者
 public List <CommContracts.InHospital> GetDoctorInHospitalPatients(int EmployeeID = 0)
 {
     CommClient.InHospital myd = new CommClient.InHospital();
     return(myd.GetAllInHospitalList(EmployeeID));
 }