Esempio n. 1
0
        private void AddRandomTest(DateTime workDate)
        {
            List <int> exclusionList = new List <int>();

            exclusionList.Add(262);
            exclusionList.Add(197);

            Business.Search.ReportSearchList list = YellowstonePathology.Business.Gateway.ReportSearchGateway.GetPossibleRetrospectiveReviews(workDate);
            if (list.Count != 0)
            {
                int count = list.Count;

                double tenPercentOfCount = Math.Round((count * .1), 0);

                Random rnd = new Random();
                int    i   = 0;
                while (true)
                {
                    int    nextRnd = rnd.Next(0, count - 1);
                    string nextMasterAccessionNo = list[nextRnd].MasterAccessionNo;

                    Business.Test.AccessionOrder ao = Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(nextMasterAccessionNo, this);

                    if (ao.PanelSetOrderCollection.HasPanelSetBeenOrdered(exclusionList) == false)
                    {
                        YellowstonePathology.Business.Test.RetrospectiveReview.RetrospectiveReviewTest retrospectiveReviewTest = new YellowstonePathology.Business.Test.RetrospectiveReview.RetrospectiveReviewTest();
                        YellowstonePathology.Business.Test.TestOrderInfo            testOrderInfo         = new Business.Test.TestOrderInfo(retrospectiveReviewTest, null, false);
                        YellowstonePathology.Business.Visitor.OrderTestOrderVisitor orderTestOrderVisitor = new Business.Visitor.OrderTestOrderVisitor(testOrderInfo);
                        ao.TakeATrip(orderTestOrderVisitor);
                        Business.Test.PanelSetOrder pso = ao.PanelSetOrderCollection.GetPanelSetOrder(262);
                        pso.AssignedToId = 0;
                    }

                    i += 1;
                    if (i == tenPercentOfCount)
                    {
                        Business.Persistence.DocumentGateway.Instance.Push(this);
                        break;
                    }
                }
            }
            else
            {
                MessageBox.Show("There are no cases to choose from for this day.");
            }
        }
Esempio n. 2
0
 public BillingPath(Business.Search.ReportSearchList reportSearchList)
 {
     this.m_ReportSearchList = reportSearchList;
 }
Esempio n. 3
0
        private void MenuItemPrintSelected_Click(object sender, RoutedEventArgs e)
        {
            if (this.ListViewCaseList.SelectedItems.Count > 0)
            {
                YellowstonePathology.Business.PanelSet.Model.PanelSet panelSet = (YellowstonePathology.Business.PanelSet.Model.PanelSet)this.ComboBoxPanelSetType.SelectedItem;
                YellowstonePathology.Business.Search.ReportSearchList selectedItemList = new Business.Search.ReportSearchList();
                foreach (YellowstonePathology.Business.Search.ReportSearchItem item in ListViewCaseList.SelectedItems)
                {
                    selectedItemList.Add(item);
                }

                this.m_LabUI.PrintCaseList(panelSet.PanelSetName, DateTime.Today, selectedItemList);
            }
            else
            {
                MessageBox.Show("Select all the cases to batch", "No cases selected");
            }
        }
Esempio n. 4
0
 public BillingPath(Business.Search.ReportSearchList reportSearchList)
 {
     this.m_ReportSearchList = reportSearchList;
 }