public static void LoadAllCodeToMemory() { lock (SLockerAllCode) { var ds = MemmoryDA.GetAllCode(); var lstAllCode = CBO <AllCodeInfo> .FillCollectionFromDataSet(ds); _sAllCodeCollectionInMemory = lstAllCode; } }
public List <AllCodeInfo> GetAllCode() { List <AllCodeInfo> list = new List <AllCodeInfo>(); try { var ds = MemmoryDA.GetAllCode(); list = CBO <AllCodeInfo> .FillCollectionFromDataSet(ds); } catch (Exception ex) { NaviCommon.Common.log.Error(ex.ToString()); } return(list); }
public List <NationInfo> GetNation() { List <NationInfo> list = new List <NationInfo>(); try { MemmoryDA _da = new MemmoryDA(); list = CBO <NationInfo> .FillCollectionFromDataSet(_da.GetNation()); } catch (Exception ex) { NaviCommon.Common.log.Error(ex.ToString()); } return(list); }