Пример #1
0
 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;
                 }
             }
         }
     }
 }
Пример #2
0
 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;
                 }
             }
         }
     }
 }
Пример #3
0
        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());
        }
Пример #4
0
 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);
 }
Пример #5
0
 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);
 }