//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); } }
//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; } }