Exemple #1
0
        public static IList<KhachHangInfo> LayDsKhachHangForReport(String tuKhoa)
        {
            KhachHangData m_KHData = new KhachHangData();
            DataTable m_DT = m_KHData.TimKiemKhachHang(tuKhoa);

            IList<KhachHangInfo> dS = new List<KhachHangInfo>();

            foreach (DataRow Row in m_DT.Rows)
            {
                KhachHangInfo KH = new KhachHangInfo();

                KH.MaKH = Convert.ToString(Row["MaKH"]);
                KH.TenKH = Convert.ToString(Row["TenKH"]);
                KH.DiaChi = Convert.ToString(Row["DiaChi"]);
                KH.DienThoai = Convert.ToString(Row["DienThoai"]);

                dS.Add(KH);
            }
            return dS;
        }