Exemple #1
0
        public QLKhachHangUS()
        {
            InitializeComponent();
            btnpre.Content   = "<";
            btnfirst.Content = "<<";
            var db = this.FindResource("Caffein") as ViewModel.Caffein;

            db.CurPage            = 1;
            cmbdskh.SelectedIndex = 0;
            //dataGrid.DataContext = kh.LayViewKH();
            int totalPage;

            db.ViewKhachHang     = kh.LayViewKH(db.CurPage, ViewModel.Caffein.PageSize, out totalPage);
            dataGrid.DataContext = db.ViewKhachHang;
            db.TotalPage         = totalPage;
        }
Exemple #2
0
        public TKKhachHang()
        {
            KhachHang kh = new KhachHang();

            InitializeComponent();
            dgvTKKhachHang.DataContext = kh.LayViewKH();
        }
Exemple #3
0
        private void btnRefreshTKKhachHang_Click(object sender, RoutedEventArgs e)
        {
            txtID.Text   = "";
            txtCMND.Text = "";
            txtHT.Text   = "";
            txtSDT.Text  = "";
            KhachHang kh = new KhachHang();

            //dgvHoaDonBan.DataContext = hdb.LayHDBan_QL();
            dgvTKKhachHang.DataContext = kh.LayViewKH();
        }