public void RemoveGradedStains(YellowstonePathology.Business.Test.Model.TestOrderCollection testOrderCollection) { foreach (StainResultItem stainResultItem in this) { if (stainResultItem.IsGraded == true) { YellowstonePathology.Business.Test.Model.TestOrder testOrder = testOrderCollection.Get(stainResultItem.TestOrderId); testOrderCollection.Remove(testOrder); } } }
public StainResultItemCollection GetGradedStains(YellowstonePathology.Business.Test.Model.TestOrderCollection testOrderCollection) { StainResultItemCollection result = new StainResultItemCollection(); foreach (StainResultItem stainresult in this) { YellowstonePathology.Business.Test.Model.TestOrder testOrder = testOrderCollection.Get(stainresult.TestOrderId); YellowstonePathology.Business.Test.Model.GradedTest gradedTest = YellowstonePathology.Business.Test.Model.TestCollectionInstance.GetClone(testOrder.TestId) as YellowstonePathology.Business.Test.Model.GradedTest; if (gradedTest != null) { result.Add(stainresult); } } return(result); }
public StainResultItemCollection GetMultiplexStains(YellowstonePathology.Business.Test.Model.TestOrderCollection testOrderCollection) { StainResultItemCollection result = new StainResultItemCollection(); foreach (StainResultItem stainresult in this) { if (stainresult.StainType == "Immunohistochemical" && stainresult.ClientAccessioned == false) { YellowstonePathology.Business.Test.Model.TestOrder testOrder = testOrderCollection.Get(stainresult.TestOrderId); if (testOrder.OrderedAsDual == true) { result.Add(stainresult); } } } return(result); }