Example #1
0
        public QLNhanVien()
        {
            InitializeComponent();
            //dataGrid.DataContext = nv.LayAllNV();
            cmbdsnv.SelectedIndex = 0;
            btnpre.Content        = "<";
            btnfirst.Content      = "<<";
            var db = this.FindResource("Caffein") as ViewModel.Caffein;

            db.CurPage = 1;
            int totalPage;

            db.ViewNhanVien      = nv.LayViewNV(db.CurPage, ViewModel.Caffein.PageSize, out totalPage);
            dataGrid.DataContext = db.ViewNhanVien;
            db.TotalPage         = totalPage;
        }
Example #2
0
        private void btnRefreshTKNhanVien_Click(object sender, RoutedEventArgs e)
        {
            txtID.Text    = "";
            txtCMND.Text  = "";
            txtTenNV.Text = "";
            txtSDT.Text   = "";

            NhanVien nv = new NhanVien();

            dgvTKNhanVien.DataContext = nv.LayViewNV();
        }
Example #3
0
 public TKNhanVien()
 {
     InitializeComponent();
     dgvTKNhanVien.DataContext = nv.LayViewNV();
 }