public static void LoadAllCodeToMemory() { lock (s_lockerAllCode) { var ds = AllCodeDA.GetAllInAllCode(); s_allCodeCollectionInMemory = CBO <AllCodeInfo> .FillCollectionFromDataSet(ds); } }
public static List <Injection_Info> Get_All_Injection() { try { var ds = AllCodeDA.Get_All_Injection(); return(CBO <Injection_Info> .FillCollectionFromDataSet(ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <Injection_Info>()); } }
public List <Country_Info> Nation_Represent_GetAll() { try { DataSet _ds = AllCodeDA.Nation_Represent_GetAll(); return(CBO <Country_Info> .FillCollectionFromDataSet(_ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <Country_Info>()); } }
public List <AllCodeInfo> AllCode_Gets_List() { try { DataSet _ds = AllCodeDA.GetAllInAllCode(); return(CBO <AllCodeInfo> .FillCollectionFromDataSet(_ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <AllCodeInfo>()); } }
public byte[] AllCode_GetBy_CdNameCdType(string p_cdtype, string p_cdname) { try { byte[] byteReturn; AllCodeDA objAllCodeDA = new AllCodeDA(); DataSet ds = objAllCodeDA.AllCode_GetBy_CdNameCdType(p_cdtype, p_cdname); byteReturn = CompressionHelper.CompressDataSet(ds); return(byteReturn); } catch (Exception ex) { ErrorLog.log.Error(ex.ToString()); return(new byte[0]); } }
public byte[] AllCode_Gets() { try { byte[] byteReturn; AllCodeDA objAllCodeDA = new AllCodeDA(); DataSet ds = objAllCodeDA.AllCode_Gets(); byteReturn = CompressionHelper.CompressDataSet(ds); return(byteReturn); } catch (Exception ex) { ErrorLog.log.Error(ex.ToString()); return(new byte[0]); } }
static bool Check_Connect_DataBase() { try { AllCodeDA objAllCodeDA = new AllCodeDA(); DataSet ds = objAllCodeDA.AllCode_Gets(); if (ds != null && ds.Tables.Count > 0) { return(true); } else { return(false); } } catch (Exception ex) { ErrorLog.log.Error(ex.ToString()); return(false); } }