public BlockLabelPrinter(YellowstonePathology.Business.Test.AliquotOrderCollection aliquotOrderCollection, YellowstonePathology.Business.Test.AccessionOrder accessionOrder) { this.m_BlockLabelQueue = new Queue<Business.Label.Model.HistologyBlockPaperZPLLabel>(); foreach (YellowstonePathology.Business.Test.AliquotOrder aliquotOrder in aliquotOrderCollection) { if (aliquotOrder.IsBlock() == true) { if (aliquotOrder.LabelType == YellowstonePathology.Business.Specimen.Model.AliquotLabelType.PaperLabel == true) { YellowstonePathology.Business.OrderIdParser orderIdParser = new OrderIdParser(accessionOrder.MasterAccessionNo); if (orderIdParser.IsLegacyMasterAccessionNo == false) { string initials = Business.Helper.PatientHelper.GetPatientInitials(accessionOrder.PFirstName, accessionOrder.PLastName); Business.Label.Model.HistologyBlockPaperZPLLabel blockLabel = new Business.Label.Model.HistologyBlockPaperZPLLabel(aliquotOrder.AliquotOrderId, accessionOrder.PLastName, accessionOrder.PFirstName, aliquotOrder.Label, accessionOrder.MasterAccessionNo); this.m_BlockLabelQueue.Enqueue(blockLabel); aliquotOrder.Printed = true; } else { string reportNo = accessionOrder.PanelSetOrderCollection[0].ReportNo; string initials = Business.Helper.PatientHelper.GetPatientInitials(accessionOrder.PFirstName, accessionOrder.PLastName); Business.Label.Model.HistologyBlockPaperZPLLabel blockLabel = new Business.Label.Model.HistologyBlockPaperZPLLabel(aliquotOrder.AliquotOrderId, accessionOrder.PFirstName, accessionOrder.PLastName, aliquotOrder.Label, reportNo); this.m_BlockLabelQueue.Enqueue(blockLabel); aliquotOrder.Printed = true; } } } } }
public BlockLabelPrinter(YellowstonePathology.Business.Test.AliquotOrderCollection aliquotOrderCollection, YellowstonePathology.Business.Test.AccessionOrder accessionOrder) { this.m_BlockLabelQueue = new Queue <Business.Label.Model.HistologyBlockPaperZPLLabel>(); foreach (YellowstonePathology.Business.Test.AliquotOrder aliquotOrder in aliquotOrderCollection) { if (aliquotOrder.IsBlock() == true) { if (aliquotOrder.LabelType == YellowstonePathology.Business.Specimen.Model.AliquotLabelType.PaperLabel == true) { YellowstonePathology.Business.OrderIdParser orderIdParser = new OrderIdParser(accessionOrder.MasterAccessionNo); if (orderIdParser.IsLegacyMasterAccessionNo == false) { string initials = Business.Helper.PatientHelper.GetPatientInitials(accessionOrder.PFirstName, accessionOrder.PLastName); Business.Label.Model.HistologyBlockPaperZPLLabel blockLabel = new Business.Label.Model.HistologyBlockPaperZPLLabel(aliquotOrder.AliquotOrderId, accessionOrder.PLastName, accessionOrder.PFirstName, aliquotOrder.Label, accessionOrder.MasterAccessionNo); this.m_BlockLabelQueue.Enqueue(blockLabel); aliquotOrder.Printed = true; } else { string reportNo = accessionOrder.PanelSetOrderCollection[0].ReportNo; string initials = Business.Helper.PatientHelper.GetPatientInitials(accessionOrder.PFirstName, accessionOrder.PLastName); Business.Label.Model.HistologyBlockPaperZPLLabel blockLabel = new Business.Label.Model.HistologyBlockPaperZPLLabel(aliquotOrder.AliquotOrderId, accessionOrder.PFirstName, accessionOrder.PLastName, aliquotOrder.Label, reportNo); this.m_BlockLabelQueue.Enqueue(blockLabel); aliquotOrder.Printed = true; } } } } }
private void PrintRow() { StringBuilder result = new StringBuilder(); int xOffset = 0; result.Append("^XA"); for (int i = 0; i < 4; i++) { if (this.m_BlockLabelQueue.Count != 0) { Business.Label.Model.HistologyBlockPaperZPLLabel label = this.m_BlockLabelQueue.Dequeue(); label.AppendCommands(result, xOffset); xOffset += 325; } } result.Append("^XZ"); Business.Label.Model.ZPLPrinterTCP printer = new ZPLPrinterTCP("10.1.1.21"); printer.Print(result.ToString()); }
public BlockLabelPrinter(string aliquotOrderId, string aliquotLabel, string masterAccessionNo, string pLastName, string pFirstName) { this.m_BlockLabelQueue = new Queue<Business.Label.Model.HistologyBlockPaperZPLLabel>(); Business.Label.Model.HistologyBlockPaperZPLLabel blockLabel = new Business.Label.Model.HistologyBlockPaperZPLLabel(aliquotOrderId, pLastName, pFirstName, aliquotLabel, masterAccessionNo); this.m_BlockLabelQueue.Enqueue(blockLabel); }
public BlockLabelPrinter(string aliquotOrderId, string aliquotLabel, string masterAccessionNo, string pLastName, string pFirstName) { this.m_BlockLabelQueue = new Queue <Business.Label.Model.HistologyBlockPaperZPLLabel>(); Business.Label.Model.HistologyBlockPaperZPLLabel blockLabel = new Business.Label.Model.HistologyBlockPaperZPLLabel(aliquotOrderId, pLastName, pFirstName, aliquotLabel, masterAccessionNo); this.m_BlockLabelQueue.Enqueue(blockLabel); }