private void tbChoose_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode != Keys.Enter)
            {
                return;
            }
            Neusoft.NFC.Interface.Classes.Function.ShowWaitForm("正在检索,请稍候...");
            Application.DoEvents();
            string sPatientNo;

            sPatientNo = tbChoose.Text.Trim();
            if (sPatientNo == "" || sPatientNo == null)
            {
                return;
            }
            cbChoose.Checked = false;
            ArrayList al = new ArrayList();

            if (sPatientNo.Length < 10)
            {
                sPatientNo    = sPatientNo.PadLeft(10, '0');
                tbChoose.Text = sPatientNo;
            }
            al = inpatient.QueryInpatientNOByPatientNO(sPatientNo);
            if (al.Count == 0)
            {
                MessageBox.Show("该住院号不存在", "提示");
                return;
            }
            isSelectTime = true;
            for (int i = 0; i < tvChoose.Nodes.Count; i++)
            {
                for (int j = 0; j < tvChoose.Nodes[i].Nodes.Count; j++)
                {
                    tvChoose.Nodes[i].Nodes[j].Checked = false;
                }
            }
            alPatient = new ArrayList();
            for (int i = 0; i < al.Count; i++)
            {
                info = inpatient.QueryPatientInfoByInpatientNO((al[i] as Neusoft.NFC.Object.NeuObject).ID);
                alPatient.Add(info);
            }
            alPatientInfo = alPatient;
            Neusoft.NFC.Interface.Classes.Function.HideWaitForm();
        }
Exemple #2
0
 public virtual System.Collections.ArrayList  QueryInpatientNOByPatientNO(string patientNo, bool tr)
 {
     Neusoft.HISFC.Management.RADT.InPatient manager = new Neusoft.HISFC.Management.RADT.InPatient();
     this.SetDB(manager);
     return(manager.QueryInpatientNOByPatientNO(patientNo, tr));
 }