Example #1
0
        private void TimKiemTheoYeuCau(int s)
        {
            KhachHangDTO thongtin = LayThongTinTimKiem();

            if (s == 1)
            {
                gcDanhSachKhachHang.DataSource = KhachHangBUS.DSKHTheoTen(thongtin);
            }
            else if (s == 2)
            {
                gcDanhSachKhachHang.DataSource = KhachHangBUS.DSKHTheoTenDiaChi(thongtin);
            }
            else if (s == 3)
            {
                gcDanhSachKhachHang.DataSource = KhachHangBUS.DSKHTheoTenLoaiKhach(thongtin);
            }
            else if (s == 4)
            {
                gcDanhSachKhachHang.DataSource = KhachHangBUS.DSKHTheoTenDiaChiLoaiKhach(thongtin);
            }
            else if (s == 5)
            {
                gcDanhSachKhachHang.DataSource = KhachHangBUS.DSKHTheoLoaiKhach(thongtin);
            }
            else if (s == 6)
            {
                gcDanhSachKhachHang.DataSource = KhachHangBUS.DSKHTheoLoaiKhachDiaChi(thongtin);
            }
            else if (s == 7)
            {
                gcDanhSachKhachHang.DataSource = KhachHangBUS.DSKHTheoDiaChi(thongtin);
            }
            else if (s == 8)
            {
                gcDanhSachKhachHang.DataSource = KhachHangBUS.DanhSachKhachHang();
            }
            else if (s == 9)
            {
                gcDanhSachKhachHang.DataSource = KhachHangBUS.DSKHTheoCMND(thongtin);
            }
            else if (s == 10)
            {
                gcDanhSachKhachHang.DataSource = KhachHangBUS.DSKHTheoTenDiaChiLoaiKhachCMND(thongtin);
            }
            else if (s == 11)
            {
                gcDanhSachKhachHang.DataSource = KhachHangBUS.DSKHTheoTenDiaChiCMND(thongtin);
            }
            else if (s == 12)
            {
                gcDanhSachKhachHang.DataSource = KhachHangBUS.DSKHTheoTenLoaiKhachCMND(thongtin);
            }
            else if (s == 13)
            {
                gcDanhSachKhachHang.DataSource = KhachHangBUS.DSKHLoaiKhachCMND(thongtin);
            }
            else if (s == 14)
            {
                gcDanhSachKhachHang.DataSource = KhachHangBUS.DSKHDiaChiLoaiKhachCMND(thongtin);
            }
            else if (s == 15)
            {
                gcDanhSachKhachHang.DataSource = KhachHangBUS.DSKHDiaChiCMND(thongtin);
            }
            else if (s == 16)
            {
                gcDanhSachKhachHang.DataSource = KhachHangBUS.DSKHTheoTenCMND(thongtin);
            }
        }