コード例 #1
0
        public void TextBoxSearchANPN_KeyUp(object sender, KeyEventArgs args)
        {
            if (args.Key == Key.Return)
            {
                if (this.TextBoxSearchANPN.Text.Length >= 1)
                {
                    this.ReleaseLock();
                    this.m_PathologistUI.Save(true);
                    TextSearchHandler textSearchHandler = new TextSearchHandler(this.TextBoxSearchANPN.Text);
                    object            textSearchObject  = textSearchHandler.GetSearchObject();
                    if (textSearchObject is YellowstonePathology.Business.ReportNo)
                    {
                        YellowstonePathology.Business.ReportNo reportNo = (YellowstonePathology.Business.ReportNo)textSearchObject;
                        this.m_PathologistUI.DoReportNoSearch(reportNo.Value);
                    }
                    else if (textSearchObject is YellowstonePathology.Business.MasterAccessionNo)
                    {
                        YellowstonePathology.Business.MasterAccessionNo masterAccessionNo = (YellowstonePathology.Business.MasterAccessionNo)textSearchObject;
                        this.m_PathologistUI.DoMasterAccessionNoSearch(masterAccessionNo.Value);
                    }
                    else if (textSearchObject is YellowstonePathology.Business.PatientName)
                    {
                        YellowstonePathology.Business.PatientName patientName = (YellowstonePathology.Business.PatientName)textSearchObject;
                        this.m_PathologistUI.DoPatientNameSearch(patientName.FirstName, patientName.LastName);
                    }
                }

                if (this.ListViewSearchResults.Items.Count == 1)
                {
                    this.ListViewSearchResults.SelectedIndex = 0;
                }
            }
        }
コード例 #2
0
 private void TextBoxClientOrderSearch_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         if (this.TextBoxClientOrderSearch.Text.Length >= 1)
         {
             Surgical.TextSearchHandler textSearchHandler = new Surgical.TextSearchHandler(this.TextBoxClientOrderSearch.Text);
             object textSearchObject = textSearchHandler.GetSearchObject();
             if (textSearchObject is YellowstonePathology.Business.MasterAccessionNo)
             {
                 YellowstonePathology.Business.MasterAccessionNo masterAccessionNo = (YellowstonePathology.Business.MasterAccessionNo)textSearchObject;
                 this.m_ClientOrderUI.GetClientOrderListByMasterAccessionNo(masterAccessionNo.Value);
             }
             else if (textSearchObject is YellowstonePathology.Business.PatientName)
             {
                 YellowstonePathology.Business.PatientName patientName = (YellowstonePathology.Business.PatientName)textSearchObject;
                 this.m_ClientOrderUI.GetClientOrderListByPatientName(patientName);
             }
         }
     }
 }
コード例 #3
0
        public void TextBoxSearchANPN_KeyUp(object sender, KeyEventArgs args)
        {
            if (args.Key == Key.Return)
            {
                if (this.TextBoxSearchANPN.Text.Length >= 1)
                {
                    this.ReleaseLock();
                    this.m_PathologistUI.Save(true);
                    TextSearchHandler textSearchHandler = new TextSearchHandler(this.TextBoxSearchANPN.Text);
                    object textSearchObject = textSearchHandler.GetSearchObject();
                    if (textSearchObject is YellowstonePathology.Business.ReportNo)
                    {
                        YellowstonePathology.Business.ReportNo reportNo = (YellowstonePathology.Business.ReportNo)textSearchObject;
                        this.m_PathologistUI.DoReportNoSearch(reportNo.Value);
                    }
                    else if (textSearchObject is YellowstonePathology.Business.MasterAccessionNo)
                    {
                        YellowstonePathology.Business.MasterAccessionNo masterAccessionNo = (YellowstonePathology.Business.MasterAccessionNo)textSearchObject;
                        this.m_PathologistUI.DoMasterAccessionNoSearch(masterAccessionNo.Value);
                    }
                    else if (textSearchObject is YellowstonePathology.Business.PatientName)
                    {
                        YellowstonePathology.Business.PatientName patientName = (YellowstonePathology.Business.PatientName)textSearchObject;
                        this.m_PathologistUI.DoPatientNameSearch(patientName.FirstName, patientName.LastName);
                    }
                }

                if (this.ListViewSearchResults.Items.Count == 1)
                {
                    this.ListViewSearchResults.SelectedIndex = 0;
                }
            }
        }
コード例 #4
0
 private void TextBoxClientOrderSearch_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         if (this.TextBoxClientOrderSearch.Text.Length >= 1)
         {
             Surgical.TextSearchHandler textSearchHandler = new Surgical.TextSearchHandler(this.TextBoxClientOrderSearch.Text);
             object textSearchObject = textSearchHandler.GetSearchObject();
             if (textSearchObject is YellowstonePathology.Business.MasterAccessionNo)
             {
                 YellowstonePathology.Business.MasterAccessionNo masterAccessionNo = (YellowstonePathology.Business.MasterAccessionNo)textSearchObject;
                 this.m_ClientOrderUI.GetClientOrderListByMasterAccessionNo(masterAccessionNo.Value);
             }
             else if (textSearchObject is YellowstonePathology.Business.PatientName)
             {
                 YellowstonePathology.Business.PatientName patientName = (YellowstonePathology.Business.PatientName)textSearchObject;
                 this.m_ClientOrderUI.GetClientOrderListByPatientName(patientName);
             }
         }
     }
 }