예제 #1
0
 public static void LoadAllCodeToMemory()
 {
     lock (s_lockerAllCode)
     {
         var ds = AllCodeDA.GetAllInAllCode();
         s_allCodeCollectionInMemory = CBO <AllCodeInfo> .FillCollectionFromDataSet(ds);
     }
 }
예제 #2
0
 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>());
     }
 }
예제 #3
0
 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>());
     }
 }
예제 #4
0
 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>());
     }
 }
예제 #5
0
파일: AllcodeAS.cs 프로젝트: dangtq72/BDS
        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]);
            }
        }
예제 #6
0
파일: AllcodeAS.cs 프로젝트: dangtq72/BDS
        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]);
            }
        }
예제 #7
0
파일: AllcodeAS.cs 프로젝트: dangtq72/BDS
        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);
            }
        }