public void GoNext()
        {
            YellowstonePathology.Business.View.ClientLocationView clientLocationView = null;
            if (this.ListViewFavoriteClients.SelectedItem != null)
            {
                clientLocationView = this.ListViewFavoriteClients.SelectedItem as YellowstonePathology.Business.View.ClientLocationView;
            }
            else if (this.ListViewClientSearch.SelectedItem != null)
            {
                clientLocationView = this.ListViewClientSearch.SelectedItem as YellowstonePathology.Business.View.ClientLocationView;
            }

            if (clientLocationView != null)
            {
                this.m_Client = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientByClientId(clientLocationView.ClientId);
                this.m_FavoriteClientCollection.AddRecent(this.m_Client);

                if (this.m_Client != null)
                {
                    this.m_Client.ClientLocationCollection.SetCurrentLocation(clientLocationView.ClientLocationId);
                    UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, this.m_Client);
                    this.Return(this, args);
                }
            }
            this.ListViewFavoriteClients.SelectedIndex = -1;
        }
        public void GoNext()
        {
            YellowstonePathology.Business.View.ClientLocationView clientLocationView = null;
            if (this.ListViewFavoriteClients.SelectedItem != null)
            {
                clientLocationView = this.ListViewFavoriteClients.SelectedItem as YellowstonePathology.Business.View.ClientLocationView;
            }
            else if (this.ListViewClientSearch.SelectedItem != null)
            {
                clientLocationView = this.ListViewClientSearch.SelectedItem as YellowstonePathology.Business.View.ClientLocationView;
            }

            if (clientLocationView != null)
            {
                this.m_Client = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientByClientId(clientLocationView.ClientId);
                this.m_FavoriteClientCollection.AddRecent(this.m_Client);

                if (this.m_Client != null)
                {
                    this.m_Client.ClientLocationCollection.SetCurrentLocation(clientLocationView.ClientLocationId);
                    bool useRequisition = false;
                    if (this.CheckBoxUseRequisition.IsChecked == true)
                    {
                        useRequisition = true;
                    }
                    List <object> returnData = new List <object>();
                    returnData.Add(this.m_Client);
                    returnData.Add(useRequisition);
                    UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, returnData);
                    this.Return(this, args);
                }
            }
            this.ListViewFavoriteClients.SelectedIndex = -1;
        }
Example #3
0
        private void AliquotAndStainOrderPath_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case UI.Navigation.PageNavigationDirectionEnum.Next:
                if (this.ShowSpecimenMappingPage() == false)
                {
                    if (this.ShowCytologyClinicalHistoryPage() == false)
                    {
                        if (this.ShowAssignmentPage() == false)
                        {
                            if (this.ShowGrossEntryPage() == false)
                            {
                                this.ShowPaperScanningPage();
                            }
                        }
                    }
                }
                break;

            case UI.Navigation.PageNavigationDirectionEnum.Back:
                if (this.ShowPatientHistoryPage() == false)
                {
                    ShowProviderDistributionPage();
                }
                break;
            }
        }
Example #4
0
 private void HandleClientFound(UI.Navigation.PageNavigationReturnEventArgs e)
 {
     YellowstonePathology.Business.Client.Model.Client client = (YellowstonePathology.Business.Client.Model.Client)e.Data;
     this.m_ClientOrderReceivingHandler.IFoundAClient(client);
     Receiving.GetClientOrderPath getClientOrderPath = new Receiving.GetClientOrderPath(this.m_ClientOrderReceivingHandler, this.m_LoginPageWindow.PageNavigator);
     getClientOrderPath.Return += new Receiving.GetClientOrderPath.ReturnEventHandler(GetClientOrderPath_Return);
     getClientOrderPath.Start();
 }
Example #5
0
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     if (this.DataIsValid() == true)
     {
         UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null);
         this.Return(this, args);
     }
 }
Example #6
0
 private void HandleCommand(UI.Navigation.PageNavigationReturnEventArgs e)
 {
     switch ((ReceiveSpecimen.ReceiveSpecimenCommandTypeEnum)e.Data)
     {
     case ReceiveSpecimen.ReceiveSpecimenCommandTypeEnum.Finalize:
         this.m_LoginPageWindow.Close();
         break;
     }
 }
Example #7
0
 private void ButtonUseSelectedClientOrder_Click(object sender, RoutedEventArgs e)
 {
     if (this.SelectedClientOrder != null)
     {
         this.m_ReturnClientOrder = this.SelectedClientOrder;
         UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null);
         this.Return(this, args);
     }
 }
Example #8
0
 private void HandleCommand(UI.Navigation.PageNavigationReturnEventArgs e)
 {
     switch ((ReceiveSpecimen.ReceiveSpecimenCommandTypeEnum)e.Data)
     {
     case ReceiveSpecimen.ReceiveSpecimenCommandTypeEnum.Finalize:
         this.m_ClientOrderReceivingHandler = new ClientOrderReceivingHandler(this.m_LoginPageWindow);
         this.ShowClientLookupPage();
         break;
     }
 }
Example #9
0
 private void CaseNotesPage_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
 {
     switch (e.PageNavigationDirectionEnum)
     {
         case UI.Navigation.PageNavigationDirectionEnum.Back:
             UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Back, null);
             this.m_LoginPageWindow.Close();
             break;
     }
 }
Example #10
0
 private void CaseNotesPage_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
 {
     switch (e.PageNavigationDirectionEnum)
     {
     case UI.Navigation.PageNavigationDirectionEnum.Back:
         UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Back, null);
         this.m_LoginPageWindow.Close();
         break;
     }
 }
Example #11
0
 private void ProviderDetailPage_Return_HandleCommand(UI.Navigation.PageNavigationReturnEventArgs e)
 {
     switch ((FinalizeAccessionCommandTypeEnum)e.Data)
     {
     case FinalizeAccessionCommandTypeEnum.ShowCaseNotes:
         YellowstonePathology.Business.Domain.CaseNotesKeyCollection caseNotesKeyCollection = new YellowstonePathology.Business.Domain.CaseNotesKeyCollection(this.m_AccessionOrder);
         CaseNotesPath caseNotesPath = new CaseNotesPath(this.m_PageNavigator, caseNotesKeyCollection);
         caseNotesPath.Return += new CaseNotesPath.ReturnEventHandler(CaseNotesPath_ProviderDetailPage_Return);
         caseNotesPath.Start();
         break;
     }
 }
Example #12
0
        private void HandleClientFound(UI.Navigation.PageNavigationReturnEventArgs e)
        {
            List <object> returnData = (List <object>)e.Data;

            YellowstonePathology.Business.Client.Model.Client client = (YellowstonePathology.Business.Client.Model.Client)returnData[0];
            bool useRequisition = (bool)returnData[1];

            this.m_ClientOrderReceivingHandler.IFoundAClient(client, useRequisition);
            Receiving.GetClientOrderPath getClientOrderPath = new Receiving.GetClientOrderPath(this.m_ClientOrderReceivingHandler, this.m_LoginPageWindow.PageNavigator);
            getClientOrderPath.Return += new Receiving.GetClientOrderPath.ReturnEventHandler(GetClientOrderPath_Return);
            getClientOrderPath.Start();
        }
Example #13
0
        private void SearchPath_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case UI.Navigation.PageNavigationDirectionEnum.Next:
                this.m_LoginUI.NotifyPropertyChanged("ReportSearchList");
                break;

            case UI.Navigation.PageNavigationDirectionEnum.Back:
                break;
            }
        }
 private void HandleReportNoSearch()
 {
     YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.TextBoxReportNo.Text);
     if (orderIdParser.ReportNo != null)
     {
         UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, this.TextBoxReportNo.Text);
         this.Return(this, args);
     }
     else
     {
         MessageBox.Show("The Report No is not valid.");
     }
 }
        private void BarcodeScanPort_ClientScanReceived(Business.BarcodeScanning.Barcode barcode)
        {
            this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Input, new System.Threading.ThreadStart(delegate()
            {
                int clientId  = Convert.ToInt32(barcode.ID);
                this.m_Client = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientByClientId(clientId);
                this.m_Client.ClientLocationCollection.SetCurrentLocationToMedicalRecordsOrFirst();

                UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, this.m_Client);
                this.Return(this, args);
            }
                                                                                                                       ));
        }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListBoxFlowCytometryPanelSets.SelectedItems.Count != 0)
     {
         YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet = (YellowstonePathology.Business.PanelSet.Model.PanelSet) this.ListBoxFlowCytometryPanelSets.SelectedItem;
         UI.Navigation.PageNavigationReturnEventArgs           args     = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, panelSet);
         this.Return(this, args);
     }
     else
     {
         MessageBox.Show("You must select a Flow Cytometry test type to continue.");
     }
 }
 private void ClientOrderSearch()
 {
     if (string.IsNullOrEmpty(this.TextBoxBigSkyControlId.Text) == false)
     {
         YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrderByExternalOrderId(this.TextBoxBigSkyControlId.Text);
         UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, clientOrder);
         this.Return(this, args);
     }
     else
     {
         MessageBox.Show("The Big Sky control Id entered is not valid.");
     }
 }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     if (this.DataIsValid() == true)
     {
         if (this.m_AccessionOrder.SvhMedicalRecord != null)
         {
             this.m_AccessionOrder.SvhMedicalRecord = this.m_AccessionOrder.SvhMedicalRecord.ToUpper();
         }
         YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Save();
         UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null);
         this.Return(this, args);
     }
 }
Example #19
0
        private void PatientLinkingPage_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case UI.Navigation.PageNavigationDirectionEnum.Back:
                this.DialogResult = false;
                break;

            case UI.Navigation.PageNavigationDirectionEnum.Next:
                break;
            }
            this.Close();
        }
 private void HandleReportNoSearch()
 {
     YellowstonePathology.Business.OrderIdParser orderIdParser = new Business.OrderIdParser(this.TextBoxReportNo.Text);
     if(orderIdParser.ReportNo != null)
     {
         UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, this.TextBoxReportNo.Text);
         this.Return(this, args);
     }
     else
     {
         MessageBox.Show("The Report No is not valid.");
     }
 }
Example #21
0
        private void ClientOrderPageConfirm_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case UI.Navigation.PageNavigationDirectionEnum.Next:
                this.m_LoginPageWindow.Close();
                break;

            case UI.Navigation.PageNavigationDirectionEnum.Back:
                this.ShowPatientNameLookupPage();
                break;
            }
        }
Example #22
0
        private void PatientHistoryPage_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case UI.Navigation.PageNavigationDirectionEnum.Next:
                this.StartAliquotAndStainOrderPath();
                break;

            case UI.Navigation.PageNavigationDirectionEnum.Back:
                this.ShowProviderDistributionPage();
                break;
            }
        }
Example #23
0
        private void FixationDetailsPage_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case UI.Navigation.PageNavigationDirectionEnum.Finish:
                this.m_LoginPageWindow.Close();
                break;

            case UI.Navigation.PageNavigationDirectionEnum.Back:
                this.m_LoginPageWindow.Close();
                break;
            }
        }
Example #24
0
        private void CytologyClinicalHistoryPage_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case UI.Navigation.PageNavigationDirectionEnum.Next:
                this.ShowPaperScanningPage();
                break;

            case UI.Navigation.PageNavigationDirectionEnum.Back:
                this.StartAliquotAndStainOrderPath();
                break;
            }
        }
Example #25
0
        private void ReviewClientOrderPath_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case UI.Navigation.PageNavigationDirectionEnum.Command:
                this.HandleCommand(e);
                break;

            case UI.Navigation.PageNavigationDirectionEnum.Finish:
                this.m_LoginPageWindow.Close();
                break;
            }
        }
Example #26
0
        private void CaseNoteDetailsPage_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case UI.Navigation.PageNavigationDirectionEnum.Next:
                this.m_PageNavigator.Navigate(this);
                break;

            case UI.Navigation.PageNavigationDirectionEnum.Back:
                this.m_PageNavigator.Navigate(this);
                break;
            }
        }
Example #27
0
        private void ClinicalHistoryPage_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case UI.Navigation.PageNavigationDirectionEnum.Next:
                this.ShowPatientLinkingPage();
                break;

            case UI.Navigation.PageNavigationDirectionEnum.Back:
                this.ShowPatientDetailsPage();
                break;
            }
        }
Example #28
0
        private void ClientLookupPage_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case UI.Navigation.PageNavigationDirectionEnum.Next:
                this.HandleClientFound(e);
                break;

            case UI.Navigation.PageNavigationDirectionEnum.Back:
                this.m_LoginPageWindow.Close();
                break;
            }
        }
Example #29
0
        private void FinalizeAccessionPath_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case UI.Navigation.PageNavigationDirectionEnum.Back:
                this.ShowAccessionOrderPage();
                break;

            case UI.Navigation.PageNavigationDirectionEnum.Finish:
                this.Return(this, e);
                break;
            }
        }
Example #30
0
        private void DocumentScanningPage_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case UI.Navigation.PageNavigationDirectionEnum.Next:
                this.ShowPrintCytologyLabelsPage();
                break;

            case UI.Navigation.PageNavigationDirectionEnum.Back:
                this.ShowICDEntryPage();
                break;
            }
        }
        private void AliquotAndStainOrderPage_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
        {
            YellowstonePathology.Business.Task.Model.TaskOrder taskOrder = (YellowstonePathology.Business.Task.Model.TaskOrder)e.Data;
            switch (e.PageNavigationDirectionEnum)
            {
            case UI.Navigation.PageNavigationDirectionEnum.Next:
                this.Return(this, new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null));
                break;

            case UI.Navigation.PageNavigationDirectionEnum.Back:
                this.Return(this, new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Back, null));
                break;
            }
        }
Example #32
0
        private void ReviewClientOrderPath_Return(object sender, UI.Navigation.PageNavigationReturnEventArgs e)
        {
            switch (e.PageNavigationDirectionEnum)
            {
            case UI.Navigation.PageNavigationDirectionEnum.Command:
                this.HandleCommand(e);
                break;

            case UI.Navigation.PageNavigationDirectionEnum.Finish:
                this.m_ClientOrderReceivingHandler = new ClientOrderReceivingHandler(this.m_LoginPageWindow);
                this.ShowClientLookupPage();
                break;
            }
        }
 private void GetMRN()
 {
     if (string.IsNullOrEmpty(this.TextBoxSvhAccountNo.Text) == false)
     {
         YellowstonePathology.Business.ClientOrder.Model.ClientOrderCollection clientOrderCollection = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrdersBySvhAccountNo(this.TextBoxSvhAccountNo.Text);
         if (clientOrderCollection.Count == 1)
         {
             UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, clientOrderCollection[0]);
             this.Return(this, args);
         }
         else if (clientOrderCollection.Count > 1)
         {
             MessageBox.Show("More than one order was found. Please hold for IT.");
         }
         else
         {
             MessageBox.Show("No order was found. You will need to call the client and have them place an order.");
         }
     }
     else
     {
         MessageBox.Show("The SVH Account No entered is not valid.");
     }
 }
 private void ClientOrderSearch()
 {
     if (string.IsNullOrEmpty(this.TextBoxBigSkyControlId.Text) == false)
     {
         YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder = YellowstonePathology.Business.Gateway.ClientOrderGateway.GetClientOrderByExternalOrderId(this.TextBoxBigSkyControlId.Text);
         UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, clientOrder);
         this.Return(this, args);
     }
     else
     {
         MessageBox.Show("The Big Sky control Id entered is not valid.");
     }
 }
 private void ButtonBack_Click(object sender, RoutedEventArgs e)
 {
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Back, null);
     this.Return(this, args);
 }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Test.TechnicalOnly.TechnicalOnlyTest panelSetTechnicalOnly = new Business.Test.TechnicalOnly.TechnicalOnlyTest();
     if (this.m_AccessionOrder.PanelSetOrderCollection.HasGrossBeenOrdered() == true)
     {
         YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrderByTestId(48);
         if (panelSetOrder.AssignedToId == 0)
         {
             MessageBoxResult messageBoxResult = MessageBox.Show("A Gross Only has been ordered but the case has not been assigned.  Are you sure you want to continue?", "Assignement", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No);
             if (messageBoxResult == MessageBoxResult.Yes)
             {
                 UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null);
                 this.Return(this, args);
             }
         }
         else
         {
             UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null);
             this.Return(this, args);
         }
     }
     else if (this.m_AccessionOrder.PanelSetOrderCollection.HasUnassignedPanelSetOrder(panelSetTechnicalOnly.PanelSetId) == true)
     {
         MessageBoxResult messageBoxResult = MessageBox.Show("There is an order that has not been assigned are you sure you want to continue?", "Assignement", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No);
         if (messageBoxResult == MessageBoxResult.Yes)
         {
             UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null);
             this.Return(this, args);
         }
     }
     else
     {
         UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null);
         this.Return(this, args);
     }
 }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, this.AccessionDate);
     this.Return(this, args);
 }
 private void HandleEndOfPath()
 {
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null);
     this.Return(this, args);
 }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     this.m_ClientOrder.OrderedBy = YellowstonePathology.Business.User.SystemIdentity.Instance.User.DisplayName;
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null);
     this.Return(this, args);
 }
        private void ButtonNext_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Audit.Model.AliquotAndStainOrderAuditCollection aliquotAndStainOrderAuditCollection = new YellowstonePathology.Business.Audit.Model.AliquotAndStainOrderAuditCollection(this.m_AccessionOrder, this.m_AliquotAndStainOrderView.GetAliquotCollection());
            YellowstonePathology.Business.Audit.Model.AuditResult auditResult = aliquotAndStainOrderAuditCollection.Run2();

            if(auditResult.Status == YellowstonePathology.Business.Audit.Model.AuditStatusEnum.Failure)
            {
                if(aliquotAndStainOrderAuditCollection.FNAHasIntraOpAudit.Status == YellowstonePathology.Business.Audit.Model.AuditStatusEnum.Failure)
                {
                    MessageBoxResult answer = MessageBox.Show(aliquotAndStainOrderAuditCollection.FNAHasIntraOpAudit.Message.ToString() + "  Do you want to continue without ordering.", "Intraoperative Consultation", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No);
                    if(answer == MessageBoxResult.No)
                    {
                        return;
                    }
                }
                else
                {
                    MessageBox.Show(auditResult.Message);
                    return;
                }
            }

            if (this.m_StainAcknowledgementTaskOrderVisitor.TaskOrderStainAcknowlegedment != null)
            {
                if (this.ShowTaskOrderPage != null)
                {
                    CustomEventArgs.AcknowledgeStainOrderEventArgs args = new CustomEventArgs.AcknowledgeStainOrderEventArgs(this.m_StainAcknowledgementTaskOrderVisitor.TaskOrderStainAcknowlegedment);
                    this.ShowTaskOrderPage(this, args);
                }
            }
            else
            {
                UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, this.m_StainAcknowledgementTaskOrderVisitor.TaskOrderStainAcknowlegedment);
                this.Return(this, args);
            }
        }
 private void ButtonBack_Click(object sender, RoutedEventArgs e)
 {
     if (this.m_StainAcknowledgementTaskOrderVisitor.TaskOrderStainAcknowlegedment != null)
     {
         if (this.ShowTaskOrderPage != null)
         {
             CustomEventArgs.AcknowledgeStainOrderEventArgs args = new CustomEventArgs.AcknowledgeStainOrderEventArgs(this.m_StainAcknowledgementTaskOrderVisitor.TaskOrderStainAcknowlegedment);
             this.ShowTaskOrderPage(this, args);
         }
     }
     else
     {
         UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Back, this.m_StainAcknowledgementTaskOrderVisitor.TaskOrderStainAcknowlegedment);
         this.Return(this, args);
     }
 }
 private void TileMusclePathologyAnalysis_MouseUp(object sender, MouseButtonEventArgs e)
 {
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Finish, 76);
     this.Return(this, args);
 }
 private void HandleLeavePath()
 {
     this.m_ClientOrderReceivingHandler.ResetClientOrder();
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Back, null);
     this.Return(this, args);
 }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, this.m_SpecimenDescription);
     this.Return(this, args);
 }
 private void Hyperlink_Immunofluorescence(object sender, RoutedEventArgs e)
 {
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Finish, 67);
     this.Return(this, args);
 }
 private void TileHer2ByISH_MouseUp(object sender, MouseButtonEventArgs e)
 {
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Finish, 46);
     this.Return(this, args);
 }
 private void ButtonCaseNotes_Click(object sender, RoutedEventArgs e)
 {
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Command, FinalizeAccessionCommandTypeEnum.ShowCaseNotes);
     this.Return(this, args);
 }
 private void ButtonCreateClientOrder_Click(object sender, RoutedEventArgs e)
 {
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Command, Receiving.ClientOrderLookupPathCommandTypeEnum.CreateClientOrder);
     this.Return(this, args);
 }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListBoxFlowCytometryPanelSets.SelectedItems.Count != 0)
     {
         YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet = (YellowstonePathology.Business.PanelSet.Model.PanelSet)this.ListBoxFlowCytometryPanelSets.SelectedItem;
         UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, panelSet);
         this.Return(this, args);
     }
     else
     {
         MessageBox.Show("You must select a Flow Cytometry test type to continue.");
     }
 }
Example #50
0
 private void TileUniversalPCR_MouseUp(object sender, MouseButtonEventArgs e)
 {
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Finish, 80);
     this.Return(this, args);
 }
 private void TileKrasBrafReflex_MouseUp(object sender, MouseButtonEventArgs e)
 {
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Finish, 30);
     this.Return(this, args);
 }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Save();
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null);
     this.Return(this, args);
 }
        public void GoNext()
        {
            YellowstonePathology.Business.View.ClientLocationView clientLocationView = null;
            if (this.ListViewFavoriteClients.SelectedItem != null)
            {
                clientLocationView = this.ListViewFavoriteClients.SelectedItem as YellowstonePathology.Business.View.ClientLocationView;
            }
            else if (this.ListViewClientSearch.SelectedItem != null)
            {
                clientLocationView = this.ListViewClientSearch.SelectedItem as YellowstonePathology.Business.View.ClientLocationView;
            }

            if (clientLocationView != null)
            {
                this.m_Client = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientByClientId(clientLocationView.ClientId);
                this.m_FavoriteClientCollection.AddRecent(this.m_Client);

                if (this.m_Client != null)
                {
                    this.m_Client.ClientLocationCollection.SetCurrentLocation(clientLocationView.ClientLocationId);
                    UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, this.m_Client);
                    this.Return(this, args);
                }
            }
            this.ListViewFavoriteClients.SelectedIndex = -1;
        }
 private void TileTrichomonas_MouseUp(object sender, MouseButtonEventArgs e)
 {
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Finish, 61);
     this.Return(this, args);
 }
 private void TileProthrombin_MouseUp(object sender, MouseButtonEventArgs e)
 {
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Finish, 33);
     this.Return(this, args);
 }
        private void BarcodeScanPort_ClientScanReceived(Business.BarcodeScanning.Barcode barcode)
        {
            this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Input, new System.Threading.ThreadStart(delegate()
            {
                int clientId = Convert.ToInt32(barcode.ID);
                this.m_Client = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientByClientId(clientId);
                this.m_Client.ClientLocationCollection.SetCurrentLocationToMedicalRecordsOrFirst();

                UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, this.m_Client);
                this.Return(this, args);
            }
            ));
        }
 private void TileCysticFibrosis_MouseUp(object sender, MouseButtonEventArgs e)
 {
     UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Finish, 2);
     this.Return(this, args);
 }
 private void ButtonUseSelectedClientOrder_Click(object sender, RoutedEventArgs e)
 {
     if (this.SelectedClientOrder != null)
     {
          this.m_ReturnClientOrder = this.SelectedClientOrder;
         UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null);
         this.Return(this, args);
     }
 }
        private void ButtonNext_Click(object sender, RoutedEventArgs e)
        {
            this.m_ClientOrderDetail.Received = true;
            this.m_ClientOrderDetail.DateReceived = DateTime.Now;

            this.m_ClientOrderMedia.HasBarcode = true;
            this.m_ClientOrderMedia.HasSpecimenId = true;
            this.m_ClientOrderMedia.Description = this.m_ClientOrderDetail.Description;
            this.m_ClientOrderMedia.SpecimenNumber = this.ClientOrderDetail.SpecimenNumber.ToString();
            this.m_ClientOrderMedia.CollectionDate = this.ClientOrderDetail.CollectionDate;
            if (!this.m_ClientOrderMedia.CollectionDate.HasValue)
            {
                this.m_ClientOrderMedia.CollectionDate = DateTime.Now;
            }

            UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null);
            this.Return(this, args);
        }
 public void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     if (string.IsNullOrEmpty(this.m_AccessionOrder.PatientId) == true || this.m_AccessionOrder.PatientId == "0")
     {
         MessageBoxResult messageBoxResult = MessageBox.Show("This patient is not linked, are you sure you want to continue.", "Patient Not Linked.", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No);
         if (messageBoxResult == MessageBoxResult.Yes)
         {
             UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null);
             this.Return(this, args);
         }
     }
     else
     {
         UI.Navigation.PageNavigationReturnEventArgs args = new UI.Navigation.PageNavigationReturnEventArgs(UI.Navigation.PageNavigationDirectionEnum.Next, null);
         this.Return(this, args);
     }
 }