Пример #1
0
        public PantherOrdersDialog()
        {
            this.m_PantherAliquotList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPantherOrdersNotAliquoted();
            this.m_PantherHPVOrderList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPantherOrdersNotAcceptedHPV();
            this.m_PantherNGCTOrderList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPantherOrdersNotAcceptedNGCT();
            this.m_PantherHPV1618OrderList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPantherOrdersNotAcceptedHPV1618();
            this.m_PantherTrichomonasOrderList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPantherOrdersNotAcceptedTrichomonas();
            this.m_PantherWHPOrderList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPantherOrdersNotFinalWHP();

            InitializeComponent();
            this.DataContext = this;

            this.Closing += PantherOrdersDialog_Closing;
        }
Пример #2
0
 private void ComboBoxListType_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if(this.IsLoaded == true)
     {
         switch (this.ComboBoxListType.SelectedIndex)
         {
             case 0:
                 this.m_PantherHPVOrderList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPantherOrdersNotAcceptedHPV();
                 break;
             case 1:
                 this.m_PantherHPVOrderList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPantherOrdersNotFinalHPV();
                 break;
             case 2:
                 this.m_PantherHPVOrderList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPantherOrdersFinalHPV();
                 break;
         }
         this.NotifyPropertyChanged("PantherHPVOrderList");
     }
 }
Пример #3
0
        private void ButtonFinalizeWHP_Click(object sender, RoutedEventArgs e)
        {
            if(this.ComboBoxListTypeWHP.SelectedIndex == 0)
            {
                foreach(YellowstonePathology.Business.Test.PantherOrderListItem pantherOrderListItem in this.ListViewWHPOrders.SelectedItems)
                {
                    YellowstonePathology.Business.Test.AccessionOrder accessionOrder = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(pantherOrderListItem.MasterAccessionNo, this);
                    this.FinalWHPCase(accessionOrder, pantherOrderListItem.ReportNo);
                    YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Push(accessionOrder, this);
                }

                this.m_PantherWHPOrderList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPantherOrdersNotFinalWHP();
                this.NotifyPropertyChanged("PantherWHPOrderList");
            }
            else
            {
                MessageBox.Show("Select WHP cases not final", "Already Final");
            }
        }