public RetrospectiveReviewReport(YellowstonePathology.UI.RetrospectiveReviewList retrospectiveReviewList)
        {
            this.m_RetrospectiveReviewList = retrospectiveReviewList;

            YellowstonePathology.Document.Xps.PlainHeader header = new YellowstonePathology.Document.Xps.PlainHeader("Retrospective Reviews");
            YellowstonePathology.Document.Xps.PlainFooter footer = new YellowstonePathology.Document.Xps.PlainFooter(string.Empty);

            this.m_ReportDocument = new YellowstonePathology.Document.Xps.ReportDocument(header, footer);

            this.SetGrid();
        }
Esempio n. 2
0
 private void ButtonAddRandom_Click(object sender, RoutedEventArgs e)
 {
     if (this.m_RetrospectiveReviewList.Count == 0)
     {
         this.AddRandomTest(this.m_WorkDate);
         this.m_RetrospectiveReviewList = YellowstonePathology.Business.Gateway.ReportSearchGateway.GetRetrospectiveReviews(this.m_WorkDate);
         this.NotifyPropertyChanged("RetrospectiveReviewList");
     }
     else
     {
         MessageBox.Show("Unable to add random test because some already exist.");
     }
 }
Esempio n. 3
0
        private void ContextMenuDeleteReview_Click(object sender, RoutedEventArgs e)
        {
            if (this.ListViewReviews.SelectedItems.Count != 0)
            {
                foreach (UI.RetrospectiveReviewListItem item in this.ListViewReviews.SelectedItems)
                {
                    Business.Test.AccessionOrder ao  = Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(item.MasterAccessionNo, this);
                    Business.Test.PanelSetOrder  pso = ao.PanelSetOrderCollection.GetPanelSetOrder(item.ReportNo);
                    ao.PanelSetOrderCollection.Remove(pso);
                    Business.Persistence.DocumentGateway.Instance.Push(this);
                }

                this.m_RetrospectiveReviewList = YellowstonePathology.Business.Gateway.ReportSearchGateway.GetRetrospectiveReviews(this.m_WorkDate);
                this.NotifyPropertyChanged("RetrospectiveReviewList");
            }
        }
Esempio n. 4
0
        public RetrospectiveReviews()
        {
            if (DateTime.Today.DayOfWeek == DayOfWeek.Monday)
            {
                this.m_WorkDate = DateTime.Today.AddDays(-3);
            }
            else
            {
                this.m_WorkDate = DateTime.Today.AddDays(-1);
            }

            this.m_RetrospectiveReviewList = YellowstonePathology.Business.Gateway.ReportSearchGateway.GetRetrospectiveReviews(this.m_WorkDate);
            this.NotifyPropertyChanged("RetrospectiveReviewList");

            InitializeComponent();

            this.DataContext = this;
        }
Esempio n. 5
0
 private void ButtonAccessionOrderRefresh_Click(object sender, RoutedEventArgs e)
 {
     this.m_RetrospectiveReviewList = YellowstonePathology.Business.Gateway.ReportSearchGateway.GetRetrospectiveReviews(this.m_WorkDate);
     this.NotifyPropertyChanged(string.Empty);
 }
Esempio n. 6
0
 private void ButtonKillList_Click(object sender, RoutedEventArgs e)
 {
     this.m_RetrospectiveReviewList = YellowstonePathology.Business.Gateway.ReportSearchGateway.GetRetrospectiveReviewKillList();
     this.NotifyPropertyChanged("RetrospectiveReviewList");
 }