Пример #1
0
        public static DualStainCollection GetCollection(YellowstonePathology.Business.Test.Model.TestOrderCollection testOrderCollection)
        {
            DualStainCollection result        = new DualStainCollection();
            DualStainCollection allDualStains = DualStainCollection.GetAll();

            foreach (DualStain ds in allDualStains)
            {
                if (testOrderCollection.Exists(ds.FirstTest.TestId) == true && testOrderCollection.Exists(ds.SecondTest.TestId) == true)
                {
                    TestOrder firstTestOrder  = testOrderCollection.GetTestOrder(ds.FirstTest.TestId);
                    TestOrder secondTestOrder = testOrderCollection.GetTestOrder(ds.SecondTest.TestId);

                    if (firstTestOrder.NoCharge == false && secondTestOrder.NoCharge == false)
                    {
                        if (firstTestOrder.OrderedAsDual == true && secondTestOrder.OrderedAsDual == true)
                        {
                            if (result.Exists(ds) == false)
                            {
                                result.Add(ds);
                            }
                        }
                    }
                }
            }

            return(result);
        }
Пример #2
0
        public static ObservableCollection <object> GetAllAsObjectCollection()
        {
            ObservableCollection <object> result = new ObservableCollection <object>();
            DualStainCollection           dualStainCollection = GetAll();

            foreach (DualStain dualStain in dualStainCollection)
            {
                result.Add(dualStain);
            }
            return(result);
        }
Пример #3
0
        public static DualStainCollection GetAll()
        {
            DualStainCollection result    = new DualStainCollection();
            List <DualStain>    stainList = new List <DualStain>();

            stainList.Add((DualStain)YellowstonePathology.Business.Test.Model.TestCollectionInstance.GetClone("CD30CD20"));   // CD3CD20DualStain());
            stainList.Add((DualStain)YellowstonePathology.Business.Test.Model.TestCollectionInstance.GetClone("PAX5CD5"));    // PAX5CD5DualStain());
            stainList.Add((DualStain)YellowstonePathology.Business.Test.Model.TestCollectionInstance.GetClone("CK34P504RM")); // Cytokeratin34P504sRacemaseDualStain());
            stainList.Add((DualStain)YellowstonePathology.Business.Test.Model.TestCollectionInstance.GetClone("KI67MA"));     // Ki67MelanADualStain());
            stainList.Add((DualStain)YellowstonePathology.Business.Test.Model.TestCollectionInstance.GetClone("OSCRSMM"));    // OSCARSmoothMuscleMyosinDualStain());
            stainList.Add((DualStain)YellowstonePathology.Business.Test.Model.TestCollectionInstance.GetClone("TTFNPSNA"));   // TTF1NapsinADualStain());

            stainList.Sort(DualStain.CompareByTestName);
            foreach (DualStain stain in stainList)
            {
                result.Add(stain);
            }
            return(result);
        }
Пример #4
0
        public static DualStainCollection GetAll()
        {
            DualStainCollection result    = new DualStainCollection();
            List <DualStain>    stainList = new List <DualStain>();

            stainList.Add(new CD3CD20DualStain());
            stainList.Add(new CDX2VillinDualStain());
            stainList.Add(new Cytokeratin34P504sRacemaseDualStain());
            stainList.Add(new IgKappaIgLambdaDualStain());
            stainList.Add(new Ki67MelanADualStain());
            stainList.Add(new OSCARSmoothMuscleMyosinDualStain());
            stainList.Add(new PAX5Zap70DualStain());
            stainList.Add(new TTF1NapsinADualStain());

            stainList.Sort(DualStain.CompareByTestName);
            foreach (DualStain stain in stainList)
            {
                result.Add(stain);
            }
            return(result);
        }