예제 #1
0
        private void CallBtn_Click(object sender, RoutedEventArgs e)
        {
            var vm = this.DataContext as HISGUIDoctorVM;

            vm.IsClinicOrInHospital = true;
            String strPatientCardNum = Interaction.InputBox("请输入就诊卡卡号", "读卡", "", 100, 100);

            if (string.IsNullOrEmpty(strPatientCardNum))
            {
                return;
            }
            CommClient.Patient patientClient = new CommClient.Patient();
            string             ErrorMsg      = "";

            CommContracts.Patient patient = patientClient.ReadCurrentPatientByPatientCardNum(strPatientCardNum, ref ErrorMsg);



            CommClient.Registration           registrationClient = new CommClient.Registration();
            List <CommContracts.Registration> list = registrationClient.GetPatientRegistrations(patient.ID, DateTime.Now);

            if (list == null || list.Count() <= 0)
            {
                return;
            }
            vm.CurrentRegistration = list.ElementAt(0);
        }
예제 #2
0
        // 查找某个患者的挂号记录
        public CommContracts.Registration GetPatientRegistrations(int PatientID, DateTime?DateTime = null)
        {
            CommClient.Registration           myd  = new CommClient.Registration();
            List <CommContracts.Registration> list = myd.GetPatientRegistrations(PatientID, DateTime);

            if (list == null)
            {
                return(null);
            }
            else if (list.Count() <= 0)
            {
                return(null);
            }

            return(list.ElementAt(0));

            //return new CommContracts.Registration();
        }
예제 #3
0
        private void FindBtn_Click(object sender, RoutedEventArgs e)
        {
            if (this.GuaHaoJiLuGrid.Visibility != Visibility.Visible)
            {
                this.GuaHaoGrid.Visibility     = Visibility.Collapsed;
                this.GuaHaoJiLuGrid.Visibility = Visibility.Visible;
            }

            var vm = this.DataContext as HISGUIFeeVM;

            if (vm.CurrentPatient == null)
            {
                return;
            }
            CommClient.Registration registrationClient = new CommClient.Registration();

            List <CommContracts.Registration> list = registrationClient.GetPatientRegistrations(vm.CurrentPatient.ID);

            GuaHaoJiLuList.ItemsSource = list;
        }
예제 #4
0
 // 查找某个患者挂号情况
 public List <CommContracts.Registration> GetPatientRegistrations(int PatientID)
 {
     CommClient.Registration myd = new CommClient.Registration();
     return(myd.GetPatientRegistrations(PatientID));
 }