Exemplo n.º 1
0
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListBoxSearchList.SelectedItem != null)
     {
         YellowstonePathology.Business.Search.ReportSearchItem           reportSearchItem = (YellowstonePathology.Business.Search.ReportSearchItem) this.ListBoxSearchList.SelectedItem;
         YellowstonePathology.UI.CustomEventArgs.ReportNoReturnEventArgs eventArgs        = new CustomEventArgs.ReportNoReturnEventArgs(reportSearchItem.ReportNo);
         this.Next(this, eventArgs);
     }
     else
     {
         MessageBox.Show("You need to select a case before continuing.");
     }
 }
Exemplo n.º 2
0
 private void AccessionOrderPage_Next(object sender, CustomEventArgs.ReportNoReturnEventArgs e)
 {
     YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(e.ReportNo);
     if (panelSetOrder.PanelSetId == 3 ||
         panelSetOrder.PanelSetId == 14 ||
         panelSetOrder.PanelSetId == 15 ||
         panelSetOrder.PanelSetId == 61 ||
         panelSetOrder.PanelSetId == 62 ||
         panelSetOrder.PanelSetId == 116)
     {
         YellowstonePathology.UI.Login.FinalizeAccession.FinalizeCytologyPath finalizeCytologyPath = new YellowstonePathology.UI.Login.FinalizeAccession.FinalizeCytologyPath(
             this.m_ClientOrder, this.m_AccessionOrder,
             e.ReportNo, this.m_PageNavigator);
         finalizeCytologyPath.Return += new YellowstonePathology.UI.Login.FinalizeAccession.FinalizeCytologyPath.ReturnEventHandler(CytologyFinalizationPath_Return);
         finalizeCytologyPath.Finish += new YellowstonePathology.UI.Login.FinalizeAccession.FinalizeCytologyPath.FinishEventHandler(CytologyFinalizationPath_Finish);
         finalizeCytologyPath.Start();
     }
     else
     {
         FinalizeAccession.FinalizeAccessionPath finalizeAccessionPath = new FinalizeAccession.FinalizeAccessionPath(e.ReportNo, this.m_PageNavigator, this.m_AccessionOrder);
         finalizeAccessionPath.Return += new FinalizeAccession.FinalizeAccessionPath.ReturnEventHandler(FinalizeAccessionPath_Return);
         finalizeAccessionPath.Start();
     }
 }
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListBoxSearchList.SelectedItem != null)
     {
         YellowstonePathology.Business.Search.ReportSearchItem reportSearchItem = (YellowstonePathology.Business.Search.ReportSearchItem)this.ListBoxSearchList.SelectedItem;
         YellowstonePathology.UI.CustomEventArgs.ReportNoReturnEventArgs eventArgs = new CustomEventArgs.ReportNoReturnEventArgs(reportSearchItem.ReportNo);
         this.Next(this, eventArgs);
     }
     else
     {
         MessageBox.Show("You need to select a case before continuing.");
     }
 }
Exemplo n.º 4
0
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     if (IsOkToGoNext() == true)
     {
         if (this.m_AccessionOrder.PanelSetOrderCollection.Count == 0)
         {
             MessageBox.Show("You need to order something before you can Finalize this case.");
         }
         else if (this.ListViewPanelSetOrder.SelectedItem != null)
         {
             if (this.Next != null)
             {
                 YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Save();
                 YellowstonePathology.UI.CustomEventArgs.ReportNoReturnEventArgs returnEventArgs = new CustomEventArgs.ReportNoReturnEventArgs(((YellowstonePathology.Business.Test.PanelSetOrder) this.ListViewPanelSetOrder.SelectedItem).ReportNo);
                 this.Next(this, returnEventArgs);
             }
         }
         else
         {
             MessageBox.Show("You need to select the report in the list to Finalize.");
         }
     }
 }
Exemplo n.º 5
0
 private void ButtonNext_Click(object sender, RoutedEventArgs e)
 {
     if (IsOkToGoNext() == true)
     {
         if (this.m_AccessionOrder.PanelSetOrderCollection.Count == 0)
         {
             MessageBox.Show("You need to order something before you can Finalize this case.");
         }
         else if (this.ListViewPanelSetOrder.SelectedItem != null)
         {
             if (this.Next != null)
             {
                 YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Save();
                 YellowstonePathology.UI.CustomEventArgs.ReportNoReturnEventArgs returnEventArgs = new CustomEventArgs.ReportNoReturnEventArgs(((YellowstonePathology.Business.Test.PanelSetOrder)this.ListViewPanelSetOrder.SelectedItem).ReportNo);
                 this.Next(this, returnEventArgs);
             }
         }
         else
         {
             MessageBox.Show("You need to select the report in the list to Finalize.");
         }
     }
 }