Beispiel #1
0
            //private static void InitCache(string custom)
            //{
            //    //ContainerPlanList = GetContainerPlanbyCustom();
            //}

            public static TVDangerPlan Load(string tID)
            {
                if (TVDangerPlanCache.ContainsKey(tID))
                {
                    return(TVDangerPlanCache[tID]);
                }
                else
                {
                    TVDangerPlan cp = new TVDangerPlan();

                    cp.ID = tID;
                    cp.Select();

                    if (cp != null)
                    {
                        TVDangerPlanCache.Add(tID, cp);
                    }

                    return(cp);
                }
            }
Beispiel #2
0
            //private static void InitCache(string custom)
            //{
            //    //ContainerPlanList = GetContainerPlanbyCustom();
            //}
            public static TVDangerPlan Load(string tID)
            {
                if (TVDangerPlanCache.ContainsKey(tID))
                {
                    return TVDangerPlanCache[tID];
                }
                else
                {
                    TVDangerPlan cp = new TVDangerPlan();

                    cp.ID = tID;
                    cp.Select();

                    if (cp != null)
                    {
                        TVDangerPlanCache.Add(tID, cp);
                    }

                    return cp;
                }
            }