Ejemplo n.º 1
0
 public BlockLabelPrinter(string aliquotOrderId, string aliquotLabel, string masterAccessionNo, string pLastName, string pFirstName)
 {
     this.m_BlockLabelQueue = new Queue<BlockLabel>();
     BlockLabel blockLabel = new BlockLabel();
     blockLabel.FromAliquotOrder(aliquotOrderId, aliquotLabel, masterAccessionNo, pLastName, pFirstName);
     this.m_BlockLabelQueue.Enqueue(blockLabel);
 }
Ejemplo n.º 2
0
 public BlockLabelPrinter(YellowstonePathology.Business.Test.AliquotOrderCollection aliquotOrderCollection, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
 {
     this.m_BlockLabelQueue = new Queue <BlockLabel>();
     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)
                 {
                     BlockLabel blockLabel = new BlockLabel();
                     blockLabel.FromAliquotOrder(aliquotOrder.AliquotOrderId, aliquotOrder.Label, accessionOrder.MasterAccessionNo, accessionOrder.PLastName, accessionOrder.PFirstName);
                     this.m_BlockLabelQueue.Enqueue(blockLabel);
                     aliquotOrder.Printed = true;
                 }
                 else
                 {
                     string           reportNo   = accessionOrder.PanelSetOrderCollection[0].ReportNo;
                     BlockLabelLegacy blockLabel = new BlockLabelLegacy();
                     blockLabel.FromLegacyAliquotOrder(aliquotOrder.AliquotOrderId, aliquotOrder.Label, reportNo, accessionOrder.PLastName, accessionOrder.PFirstName);
                     this.m_BlockLabelQueue.Enqueue(blockLabel);
                     aliquotOrder.Printed = true;
                 }
             }
         }
     }
 }
Ejemplo n.º 3
0
 public BlockLabelPrinter(YellowstonePathology.Business.Test.AliquotOrderCollection aliquotOrderCollection, YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
 {
     this.m_BlockLabelQueue = new Queue<BlockLabel>();
     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)
                 {
                     BlockLabel blockLabel = new BlockLabel();
                     blockLabel.FromAliquotOrder(aliquotOrder.AliquotOrderId, aliquotOrder.Label, accessionOrder.MasterAccessionNo, accessionOrder.PLastName, accessionOrder.PFirstName);
                     this.m_BlockLabelQueue.Enqueue(blockLabel);
                     aliquotOrder.Printed = true;
                 }
                 else
                 {
                     string reportNo = accessionOrder.PanelSetOrderCollection[0].ReportNo;
                     BlockLabelLegacy blockLabel = new BlockLabelLegacy();
                     blockLabel.FromLegacyAliquotOrder(aliquotOrder.AliquotOrderId, aliquotOrder.Label, reportNo, accessionOrder.PLastName, accessionOrder.PFirstName);
                     this.m_BlockLabelQueue.Enqueue(blockLabel);
                     aliquotOrder.Printed = true;
                 }
             }
         }
     }
 }
Ejemplo n.º 4
0
        public BlockLabelPrinter(string aliquotOrderId, string aliquotLabel, string masterAccessionNo, string pLastName, string pFirstName)
        {
            this.m_BlockLabelQueue = new Queue <BlockLabel>();
            BlockLabel blockLabel = new BlockLabel();

            blockLabel.FromAliquotOrder(aliquotOrderId, aliquotLabel, masterAccessionNo, pLastName, pFirstName);
            this.m_BlockLabelQueue.Enqueue(blockLabel);
        }