示例#1
0
        public byte[] Allcode_GetAll()
        {
            try
            {
                byte[]    byteReturn;
                AllCodeDA objAllCodeDA = new AllCodeDA();
                DataSet   ds           = objAllCodeDA.Allcode_GetAll();

                byteReturn = CompressionHelper.CompressDataSet(ds);
                return(byteReturn);
            }
            catch (Exception ex)
            {
                Common.log.Error(ex.ToString());
                return(new byte[0]);
            }
        }
示例#2
0
        bool Check_Connect(string p_ConnectionString)
        {
            try
            {
                AllCodeDA objAllCodeDA = new AllCodeDA();
                DataSet   ds           = objAllCodeDA.Allcode_GetAll();

                if (ds != null && ds.Tables.Count > 0)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            catch (Exception ex)
            {
                Common.log.Error(ex.ToString());
                return(false);
            }
        }