Esempio n. 1
0
 public static void GetUser_DoanhNghiep()
 {
     try
     {
         UserInfoDA _UserInfoDA = new UserInfoDA();
         DataSet    _ds         = _UserInfoDA.UserInfo_GetByType((decimal)NaviCommon.Enum_User_Type.DoanhNghiep);
         c_lst_UserDoanhNghiep = NaviCommon.CBO <User_Info> .FillCollectionFromDataSet(_ds);
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
     }
 }
Esempio n. 2
0
        public byte[] UserInfo_GetByType(decimal p_type)
        {
            try
            {
                UserInfoDA _UserInfoDA = new UserInfoDA();
                byte[]     byteReturn;
                DataSet    _ds = _UserInfoDA.UserInfo_GetByType(p_type);

                byteReturn = CompressionHelper.CompressDataSet(_ds);
                return(byteReturn);
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
                return(new byte[0]);
            }
        }