private void QLTK_LoadLoaiTaiKhoan() { List <LoaiTaiKhoanDTO> lsLoaiTaiKhoan = LoaiTaiKhoanBUS.LayDanhSachLoaiTaiKhoan(); cmbLoaiTaiKhoan.DataSource = lsLoaiTaiKhoan; cmbLoaiTaiKhoan.DisplayMember = "TenLoaiTaiKhoan"; cmbLoaiTaiKhoan.ValueMember = "MaLoaiTaiKhoan"; List <LoaiTaiKhoanDTO> lsLoaiTK = LoaiTaiKhoanBUS.LayDanhSachLoaiTaiKhoan(); LoaiTaiKhoanDTO ltk = new LoaiTaiKhoanDTO(); ltk.MaLoaiTaiKhoan = 0; ltk.TenLoaiTaiKhoan = "Tất cả"; lsLoaiTK.Insert(0, ltk); cmbTimKiemTheoLoaiTaiKhoan.DataSource = lsLoaiTK; }
private void QLLTK_LoadDanhSachLoaiTaiKhoanDaXoa(string timKiem = "") { List <LoaiTaiKhoanDTO> lsLoaiTaiKhoan = LoaiTaiKhoanBUS.LayDanhSachLoaiTaiKhoan(timKiem, false); dgvLoaiTaiKhoan.DataSource = lsLoaiTaiKhoan; }