/// <summary>
        /// tra ve dia chi cua so dien thoai
        /// </summary>
        /// <param name="PhoneNumber"></param>
        /// <returns></returns>
        public static string  GetDanhBa(string PhoneNumber)
        {
            if (!DanhBa.IsDienThoaiDiDong(PhoneNumber))
            {
                if (DanhBa.IsDienThoaiCoDinh(PhoneNumber))
                {
                    DataTable dt = new DataTable();

                    dt = new Data.DanhBa().GetDanhBa(PhoneNumber.Substring(PhoneNumber.Length - 8, 8));
                    string strDiaChi = "";
                    if (dt.Rows.Count > 0) // Co dia chi
                    {
                        strDiaChi = string.Format("[{0}]{1}", MaHoaDuLieu.GiaiMa(dt.Rows[0]["Name"].ToString()), MaHoaDuLieu.GiaiMa(dt.Rows[0]["Address"].ToString()));
                    }
                    dt.Dispose();
                    dt = null;

                    return(strDiaChi);
                }
            }
            return(string.Empty);
        }
        /// <summary>
        /// ham tra ve dia tri tu mot so dien thoai
        /// </summary>
        /// <param name="PhoneNumber"></param>
        /// <param name="KieuKhachHang"></param>
        /// <returns></returns>
        public static string GetAddressFromPhoneNumber(string PhoneNumber, out KieuKhachHangGoiDen KieuKhachHangGoi, out string MaDoiTac, out int Vung)
        {
            string DiaChi = "";
            KieuKhachHangGoiDen kieukhachgoi;
            bool   GiaiMa    = false;
            string _MaDoiTac = "";
            int    _Vung     = 0;

            DiaChi = new Data.DanhBa().GetAddressFromPhoneNumber(PhoneNumber, out kieukhachgoi, out GiaiMa, out _MaDoiTac, out _Vung);
            if ((DiaChi != null) && (DiaChi.Length > 0) && (GiaiMa))
            {
                DiaChi = MaHoaDuLieu.GiaiMa(DiaChi);
            }
            KieuKhachHangGoi = kieukhachgoi;

            MaDoiTac = "";
            Vung     = 0;
            if (KieuKhachHangGoi == KieuKhachHangGoiDen.KhachHangMoiGioi)
            {
                Vung     = _Vung;
                MaDoiTac = _MaDoiTac;
            }
            return(DiaChi);
        }
        /// <summary>
        /// Tra ve danh sach buu dien
        /// </summary>
        /// <returns></returns>
        public static List <DanhBaCongTy> GetDanhBa_BuuDien_5()
        {
            DataTable           dt = new Data.DanhBa().GetDanhBa_BuuDien_5();
            List <DanhBaCongTy> lstDanhBaCongTy = new List <DanhBaCongTy>();

            if (dt != null && dt.Rows.Count > 0)
            {
                foreach (DataRow item in dt.Rows)
                {
                    DanhBaCongTy objDanhBaCongTy = new DanhBaCongTy()
                    {
                        Name        = item["Name"] != null && item["Name"].ToString() != "" ? MaHoaDuLieu.GiaiMa(item["Name"].ToString()) : "",
                        Address     = item["Address"] != null && item["Address"].ToString() != "" ? MaHoaDuLieu.GiaiMa(item["Address"].ToString()) : "",
                        PhoneNumber = item["PhoneNumber"].ToString()
                    };
                    lstDanhBaCongTy.Add(objDanhBaCongTy);
                }
            }
            dt.Dispose();
            return(lstDanhBaCongTy);
        }