public YellowstonePathology.Business.Test.AliquotOrderCollection GetAliquotCollection() { YellowstonePathology.Business.Test.AliquotOrderCollection result = new Business.Test.AliquotOrderCollection(); foreach (XElement specimenElement in this.m_View.Elements("SpecimenOrder")) { foreach (XElement aliquotElement in specimenElement.Elements("AliquotOrder")) { foreach (YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder in this.m_AccessionOrder.SpecimenOrderCollection) { if (specimenOrder.SpecimenOrderId == specimenElement.Element("SpecimenOrderId").Value) { foreach (YellowstonePathology.Business.Test.AliquotOrder aliquotOrder in specimenOrder.AliquotOrderCollection) { if (aliquotOrder.AliquotOrderId.ToString() == aliquotElement.Element("AliquotOrderId").Value) { result.Add(aliquotOrder); break; } } break; } } } } return(result); }
public YellowstonePathology.Business.Test.AliquotOrderCollection GetAliquotsWithSelectedTests() { YellowstonePathology.Business.Test.AliquotOrderCollection result = new Business.Test.AliquotOrderCollection(); foreach (XElement specimenElement in this.m_View.Elements("SpecimenOrder")) { foreach (XElement aliquotElement in specimenElement.Elements("AliquotOrder")) { foreach (XElement testElement in aliquotElement.Elements("TestOrder")) { bool selected = Convert.ToBoolean(testElement.Element("IsSelected").Value); if (selected == true) { foreach (YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder in this.m_AccessionOrder.SpecimenOrderCollection) { if (specimenOrder.SpecimenOrderId == specimenElement.Element("SpecimenOrderId").Value) { foreach (YellowstonePathology.Business.Test.AliquotOrder aliquotOrder in specimenOrder.AliquotOrderCollection) { if (aliquotOrder.AliquotOrderId.ToString() == aliquotElement.Element("AliquotOrderId").Value) { result.Add(aliquotOrder); break; } } break; } } } } } } return result; }
public YellowstonePathology.Business.Test.AliquotOrderCollection GetAliquotsWithSelectedTests() { YellowstonePathology.Business.Test.AliquotOrderCollection result = new Business.Test.AliquotOrderCollection(); foreach (XElement specimenElement in this.m_View.Elements("SpecimenOrder")) { foreach (XElement aliquotElement in specimenElement.Elements("AliquotOrder")) { foreach (XElement testElement in aliquotElement.Elements("TestOrder")) { bool selected = Convert.ToBoolean(testElement.Element("IsSelected").Value); if (selected == true) { foreach (YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder in this.m_AccessionOrder.SpecimenOrderCollection) { if (specimenOrder.SpecimenOrderId == specimenElement.Element("SpecimenOrderId").Value) { foreach (YellowstonePathology.Business.Test.AliquotOrder aliquotOrder in specimenOrder.AliquotOrderCollection) { if (aliquotOrder.AliquotOrderId.ToString() == aliquotElement.Element("AliquotOrderId").Value) { result.Add(aliquotOrder); break; } } break; } } } } } } return(result); }
public YellowstonePathology.Business.Test.AliquotOrderCollection GetAliquotCollection() { YellowstonePathology.Business.Test.AliquotOrderCollection result = new Business.Test.AliquotOrderCollection(); foreach (XElement specimenElement in this.m_View.Elements("SpecimenOrder")) { foreach (XElement aliquotElement in specimenElement.Elements("AliquotOrder")) { foreach (YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder in this.m_AccessionOrder.SpecimenOrderCollection) { if (specimenOrder.SpecimenOrderId == specimenElement.Element("SpecimenOrderId").Value) { foreach (YellowstonePathology.Business.Test.AliquotOrder aliquotOrder in specimenOrder.AliquotOrderCollection) { if (aliquotOrder.AliquotOrderId.ToString() == aliquotElement.Element("AliquotOrderId").Value) { result.Add(aliquotOrder); break; } } break; } } } } return result; }