public frmThongKeMuonSach() { InitializeComponent(); cbbDauSach.DataSource = dauSachBUS.LayDSDauSach(); cbbDauSach.DisplayMember = "TenDauSach"; cbbDauSach.ValueMember = "MaDauSach"; }
public void NhomTheoDauSach() { List <DauSachDTO> lstDauSach = dauSachBUS.LayDSDauSach(); this.rpvTatCaSach.LocalReport.ReportEmbeddedResource = "Quản_lý_thư_viện_Tri_Thức.rptSachNhom.rdlc"; this.rpvTatCaSach.LocalReport.DataSources.Add(new ReportDataSource("dsDauSach", lstDauSach)); this.rpvTatCaSach.LocalReport.SubreportProcessing += new SubreportProcessingEventHandler(LocalReport_SubreportProcessing); this.rpvTatCaSach.RefreshReport(); }
private void frmBooks_Load(object sender, EventArgs e) { //load vao datagridview dataSach.AutoGenerateColumns = false; dataSach.DataSource = sachBUS.LayDSSach(); //load vao combobox Dau Sach cbbDauSach.DataSource = dausachBUS.LayDSDauSach(); cbbDauSach.DisplayMember = "TenDauSach"; cbbDauSach.ValueMember = "MaDauSach"; cbbDauSach.SelectedIndex = 0; }
private void frmNhapSach_Load(object sender, EventArgs e) { rdoNhapMoi.Checked = true; NhapSachMoi(); MaNhap = nhapSachBUS.phatSinhMa(); dtgv_Sach.AutoGenerateColumns = false; dtgv_Sach.DataSource = sachBUS.LayDSSach(); txtMaNhap.Text = MaNhap; // cbbDauSach.DataSource = dauSachBUS.LayDSDauSach(); cbbDauSach.DisplayMember = "TenDauSach"; cbbDauSach.ValueMember = "MaDauSach"; }