예제 #1
0
 public YellowstonePathology.Business.Test.Model.TestOrderCollection GetSelectedTestOrders()
 {
     YellowstonePathology.Business.Test.Model.TestOrderCollection result = new YellowstonePathology.Business.Test.Model.TestOrderCollection();
     foreach (XElement specimenElement in this.m_View.Elements("SpecimenOrder"))
     {
         foreach (XElement aliquotElement in specimenElement.Elements("AliquotOrder"))
         {
             foreach (XElement testOrderElement in aliquotElement.Elements("TestOrder"))
             {
                 bool selected = Convert.ToBoolean(testOrderElement.Element("IsSelected").Value);
                 if (selected == true)
                 {
                     string testOrderId = testOrderElement.Element("TestOrderId").Value;
                     foreach (YellowstonePathology.Business.Test.PanelOrder panelOrder in this.m_PanelSetOrder.PanelOrderCollection)
                     {
                         foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in panelOrder.TestOrderCollection)
                         {
                             if (testOrderId == testOrder.TestOrderId)
                             {
                                 result.Add(testOrder);
                                 break;
                             }
                         }
                     }
                 }
             }
         }
     }
     return(result);
 }
예제 #2
0
        public YellowstonePathology.Business.Test.Model.TestOrderCollection GetTestOrders(YellowstonePathology.Business.Test.Model.TestOrderCollection testForPanelSetCollection)
        {
            YellowstonePathology.Business.Test.Model.TestOrderCollection result = new YellowstonePathology.Business.Test.Model.TestOrderCollection();
            foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in testForPanelSetCollection)
            {
                if (testOrder.AliquotOrder.SpecimenOrderId == this.SpecimenOrderId)
                {
                    result.Add(testOrder);
                }
            }

            return(result);
        }
예제 #3
0
        public YellowstonePathology.Business.Test.Model.TestOrderCollection GetTestOrderCollection(string reportNo, YellowstonePathology.Business.Test.AliquotOrderCollection aliquotOrderCollection)
        {
            YellowstonePathology.Business.Test.Model.TestOrderCollection result        = new YellowstonePathology.Business.Test.Model.TestOrderCollection();
            YellowstonePathology.Business.Test.PanelSetOrder             panelSetOrder = this.GetPanelSetOrder(reportNo);

            foreach (YellowstonePathology.Business.Test.PanelOrder panelOrder in panelSetOrder.PanelOrderCollection)
            {
                foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in panelOrder.TestOrderCollection)
                {
                    if (aliquotOrderCollection.Exists(testOrder.AliquotOrderId) == true)
                    {
                        result.Add(testOrder);
                    }
                }
            }
            return(result);
        }
예제 #4
0
 public YellowstonePathology.Business.Test.Model.TestOrderCollection GetTestOrders()
 {
     YellowstonePathology.Business.Test.Model.TestOrderCollection result = new YellowstonePathology.Business.Test.Model.TestOrderCollection();
     foreach (YellowstonePathology.Business.Test.PanelOrder panelOrder in this.PanelOrderCollection)
     {
         foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in panelOrder.TestOrderCollection)
         {
             result.Add(testOrder);
         }
     }
     return result;
 }
예제 #5
0
 public YellowstonePathology.Business.Test.Model.TestOrderCollection GetTestOrderCollection(YellowstonePathology.Business.Test.AliquotOrderCollection aliquotOrderCollection)
 {
     YellowstonePathology.Business.Test.Model.TestOrderCollection result = new YellowstonePathology.Business.Test.Model.TestOrderCollection();
     foreach (YellowstonePathology.Business.Test.PanelOrder panelOrder in this.PanelOrderCollection)
     {
         foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in panelOrder.TestOrderCollection)
         {
             if (aliquotOrderCollection.Exists(testOrder.AliquotOrderId) == true)
             {
                 result.Add(testOrder);
             }
         }
     }
     return result;
 }
예제 #6
0
        public YellowstonePathology.Business.Test.Model.TestOrderCollection GetTestOrders(YellowstonePathology.Business.Test.Model.TestOrderCollection testForPanelSetCollection)
        {
            YellowstonePathology.Business.Test.Model.TestOrderCollection result = new YellowstonePathology.Business.Test.Model.TestOrderCollection();
            foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in testForPanelSetCollection)
            {
                if (testOrder.AliquotOrder.SpecimenOrderId == this.SpecimenOrderId)
                {
                    result.Add(testOrder);
                }
            }

            return result;
        }
 public YellowstonePathology.Business.Test.Model.TestOrderCollection GetSelectedTestOrders()
 {
     YellowstonePathology.Business.Test.Model.TestOrderCollection result = new YellowstonePathology.Business.Test.Model.TestOrderCollection();
     foreach (XElement specimenElement in this.m_View.Elements("SpecimenOrder"))
     {
         foreach (XElement aliquotElement in specimenElement.Elements("AliquotOrder"))
         {
             foreach (XElement testOrderElement in aliquotElement.Elements("TestOrder"))
             {
                 bool selected = Convert.ToBoolean(testOrderElement.Element("IsSelected").Value);
                 if (selected == true)
                 {
                     string testOrderId = testOrderElement.Element("TestOrderId").Value;
                     foreach (YellowstonePathology.Business.Test.PanelOrder panelOrder in this.m_PanelSetOrder.PanelOrderCollection)
                     {
                         foreach (YellowstonePathology.Business.Test.Model.TestOrder testOrder in panelOrder.TestOrderCollection)
                         {
                             if (testOrderId == testOrder.TestOrderId)
                             {
                                 result.Add(testOrder);
                                 break;
                             }
                         }
                     }
                 }
             }
         }
     }
     return result;
 }