示例#1
0
文件: TVDangerPlan.cs 项目: 4bb/Bao
            //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);
                }
            }
示例#2
0
文件: TVDangerPlan.cs 项目: 4bb/Bao
            //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;
                }
            }