示例#1
0
 private void DrawLine(int x, int y, YellowstonePathology.Business.Test.PantherAliquotListItem pantherAliquotListItem, System.Drawing.Printing.PrintPageEventArgs e)
 {
     e.Graphics.DrawString(pantherAliquotListItem.MasterAccessionNo, new System.Drawing.Font("Verdana", 9), System.Drawing.Brushes.Black, new System.Drawing.PointF(x, y));
     e.Graphics.DrawString(pantherAliquotListItem.AccessionTime.ToString("MM/dd/yyy HH:mm"), new System.Drawing.Font("Verdana", 9), System.Drawing.Brushes.Black, new System.Drawing.PointF(x + 150, y));
     e.Graphics.DrawString(pantherAliquotListItem.PLastName, new System.Drawing.Font("Verdana", 9), System.Drawing.Brushes.Black, new System.Drawing.PointF(x + 350, y));
     e.Graphics.DrawString(pantherAliquotListItem.PFirstName, new System.Drawing.Font("Verdana", 9), System.Drawing.Brushes.Black, new System.Drawing.PointF(x + 500, y));
 }
示例#2
0
        private void PrintDocument_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
        {
            int count = 1;
            int x     = 50;
            int y     = 50;

            this.DrawHeader(x, y, e);
            y = y + 50;

            for (int i = 0; i < 30; i++)
            {
                YellowstonePathology.Business.Test.PantherAliquotListItem pantherAliquotListItem = this.m_PantherAliquotListItemQueue.Dequeue();
                this.DrawLine(x, y, pantherAliquotListItem, e);
                y      = y + 30;
                count += 1;
                if (this.m_PantherAliquotListItemQueue.Count == 0)
                {
                    break;
                }
            }

            if (this.m_PantherAliquotListItemQueue.Count == 0)
            {
                e.HasMorePages = false;
            }
            else
            {
                e.HasMorePages = true;
            }
        }
示例#3
0
        private void ContextMenuValidate_Click(object sender, RoutedEventArgs e)
        {
            if (this.ListViewPantherAliquots.SelectedItem != null)
            {
                YellowstonePathology.Business.Test.PantherAliquotListItem pantherAliquotListItem = (YellowstonePathology.Business.Test.PantherAliquotListItem) this.ListViewPantherAliquots.SelectedItem;
                YellowstonePathology.Business.Test.AccessionOrder         accessionOrder         = YellowstonePathology.Business.Persistence.DocumentGateway.Instance.PullAccessionOrder(pantherAliquotListItem.MasterAccessionNo, this);

                if (accessionOrder.SpecimenOrderCollection.HasPantherAliquot() == true)
                {
                    YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = accessionOrder.SpecimenOrderCollection.GetPantherAliquot();
                    aliquotOrder.Validated      = true;
                    aliquotOrder.ValidationDate = DateTime.Now;
                    YellowstonePathology.Business.Persistence.DocumentGateway.Instance.Push(accessionOrder, this);
                }

                this.m_PantherAliquotList = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPantherOrdersNotAliquoted();
                this.NotifyPropertyChanged("PantherAliquotList");
            }
        }