private void ButtonPrintLabels_Click(object sender, RoutedEventArgs e)
        {
            this.m_AliquotAndStainOrderView.SetEmbeddingComments();
            YellowstonePathology.Business.Test.AliquotOrderCollection     selectedAliquots    = this.m_AliquotAndStainOrderView.GetSelectedAliquots();
            YellowstonePathology.Business.Label.Model.AliquotOrderPrinter aliquotOrderPrinter = new Business.Label.Model.AliquotOrderPrinter(selectedAliquots, this.m_AccessionOrder);

            if (this.m_AccessionOrder.SpecimenOrderCollection.HasBlocks() == true && string.IsNullOrEmpty(this.m_AccessionOrder.CassetteColor))
            {
                MessageBox.Show("You must select the Cassette Color before printing.");
                return;
            }

            if (this.m_AccessionOrder.SpecimenOrderCollection.HasCellBlocks() == true && string.IsNullOrEmpty(this.m_AccessionOrder.CassetteColor))
            {
                MessageBox.Show("You must select the Cassette Color before printing.");
                return;
            }

            aliquotOrderPrinter.Print();
            this.m_AliquotAndStainOrderView.SetAliquotChecks(false);

            this.PrintSelectedSlides();

            MessageBox.Show("The selected items have been submitted to the printer.");
        }
예제 #2
0
        private void PrintBlock()
        {
            YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetSurgical();
            if (panelSetOrder == null)
            {
                panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection[0];
            }

            this.m_AliquotOrder.Printed = false;
            YellowstonePathology.Business.Test.AliquotOrderCollection     blocksToPrintCollection = this.m_SpecimenOrder.AliquotOrderCollection.GetUnPrintedBlocks();
            YellowstonePathology.Business.Label.Model.AliquotOrderPrinter aliquotOrderPrinter     = new Business.Label.Model.AliquotOrderPrinter(blocksToPrintCollection, this.m_AccessionOrder);
            aliquotOrderPrinter.Print();
        }
        private void ButtonPrintLabels_Click(object sender, RoutedEventArgs e)
        {
            //this.Save(false);

            YellowstonePathology.Business.Test.AliquotOrderCollection     selectedAliquots    = this.m_AliquotAndStainOrderView.GetSelectedAliquots();
            YellowstonePathology.Business.Label.Model.AliquotOrderPrinter aliquotOrderPrinter = new Business.Label.Model.AliquotOrderPrinter(selectedAliquots, this.m_AccessionOrder);

            if (aliquotOrderPrinter.HasCassettesToPrint() == true)
            {
                if (this.m_AccessionOrder.PrintMateColumnNumber == 0)
                {
                    MessageBox.Show("You must select the Cassette Color before printing.");
                    return;
                }
            }

            aliquotOrderPrinter.Print();
            //YellowstonePathology.Business.Persistence.DocumentGateway.Instance.SubmitChanges(this.m_AccessionOrder, false);
            this.m_AliquotAndStainOrderView.SetAliquotChecks(false);

            this.PrintSelectedSlides();

            MessageBox.Show("The selected items have been submitted to the printer.");
        }
예제 #4
0
        private void PrintBlock()
        {
            YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetSurgical();
            if (panelSetOrder == null) panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection[0];

            this.m_AliquotOrder.Printed = false;
            YellowstonePathology.Business.Test.AliquotOrderCollection blocksToPrintCollection = this.m_SpecimenOrder.AliquotOrderCollection.GetUnPrintedBlocks();
            YellowstonePathology.Business.Label.Model.AliquotOrderPrinter aliquotOrderPrinter = new Business.Label.Model.AliquotOrderPrinter(blocksToPrintCollection, this.m_AccessionOrder);
            aliquotOrderPrinter.Print();
        }
        private void ButtonPrintLabels_Click(object sender, RoutedEventArgs e)
        {
            //this.Save(false);

            YellowstonePathology.Business.Test.AliquotOrderCollection selectedAliquots = this.m_AliquotAndStainOrderView.GetSelectedAliquots();
            YellowstonePathology.Business.Label.Model.AliquotOrderPrinter aliquotOrderPrinter = new Business.Label.Model.AliquotOrderPrinter(selectedAliquots, this.m_AccessionOrder);

            if (aliquotOrderPrinter.HasCassettesToPrint() == true)
            {
                if (this.m_AccessionOrder.PrintMateColumnNumber == 0)
                {
                    MessageBox.Show("You must select the Cassette Color before printing.");
                    return;
                }
            }

            aliquotOrderPrinter.Print();
            //YellowstonePathology.Business.Persistence.DocumentGateway.Instance.SubmitChanges(this.m_AccessionOrder, false);
            this.m_AliquotAndStainOrderView.SetAliquotChecks(false);

            this.PrintSelectedSlides();

            MessageBox.Show("The selected items have been submitted to the printer.");
        }