private void ButtonTestBlockPrinter_Click(object sender, RoutedEventArgs e) { YellowstonePathology.Business.Common.Block block = new Business.Common.BlockV1(); block.CassetteColumn = 3; block.ReportNo = "XXX-9999"; block.BlockTitle = "XX"; block.PatientInitials = "XX"; block.BlockId = "999999"; block.PrintRequested = true; YellowstonePathology.Business.Common.BlockCollection blockCollection = new Business.Common.BlockCollection(); blockCollection.Add(block); YellowstonePathology.Business.Common.PrintMate.Print(blockCollection); }
private void AddIC() { YellowstonePathology.Business.Test.Model.Test iCTest = YellowstonePathology.Business.Test.Model.TestCollection.GetAllTests().GetTest(194); string patientInitials = YellowstonePathology.Business.Helper.PatientHelper.GetPatientInitials(this.m_AccessionOrder.PFirstName, this.m_AccessionOrder.PLastName); YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_SpecimenOrder.AliquotOrderCollection.AddBlock(this.m_SpecimenOrder, YellowstonePathology.Business.Specimen.Model.AliquotLabelType.DirectPrint, this.m_AccessionOrder.AccessionDate.Value); YellowstonePathology.Business.Visitor.OrderTestVisitor orderTestVisitor = new Business.Visitor.OrderTestVisitor(this.m_AccessionOrder.PanelSetOrderCollection[0].ReportNo, iCTest, iCTest.OrderComment, null, false, this.m_AliquotOrder, false, false, this.m_AccessionOrder.TaskOrderCollection); this.m_AccessionOrder.TakeATrip(orderTestVisitor); YellowstonePathology.Business.Common.BlockCollection blockCollection = new Business.Common.BlockCollection(); YellowstonePathology.Business.Test.AliquotOrderCollection blocksToPrintCollection = this.m_SpecimenOrder.AliquotOrderCollection.GetUnPrintedBlocks(); blockCollection.FromAliquotOrderItemCollection(blocksToPrintCollection, this.m_AccessionOrder.PanelSetOrderCollection[0].ReportNo, patientInitials, this.m_AccessionOrder.PrintMateColumnNumber, true); YellowstonePathology.Business.Common.PrintMate.Print(blockCollection); blocksToPrintCollection.SetPrinted(); }