private void crystalReportViewer1_Load(object sender, EventArgs e) { NhaCungCap report = new NhaCungCap(); report.SetDataSource(NhaCungCapCtr.DanhSachNhaCungCap()); crystalReportViewer1.ReportSource = report; }
public void loadCombox() { NhaCungCapCtr nccCtr = new NhaCungCapCtr(); cbbNhaCC.DataSource = nccCtr.GetData(); cbbNhaCC.ValueMember = "MaNCC"; cbbNhaCC.DisplayMember = "TenNCC"; }
private void LoadcmbKhachHang() { NhaCungCapCtr khctr = new NhaCungCapCtr(); cmbKhachHang.DataSource = khctr.GetData(); cmbKhachHang.DisplayMember = "TenNCC"; cmbKhachHang.ValueMember = "MaNCC"; cmbKhachHang.SelectedIndex = 0; }
public void SearchLookup() { //// Bảng Vật Liệu var vlCtr = new VatLieuCtr(); risMaHang.DataSource = vlCtr.LoadData4C(); risMaHang.DisplayMember = "MaHang"; risMaHang.ValueMember = "MaHang"; // Bảng Nhà Cung Cấp var nccCtr = new NhaCungCapCtr(); NhaCungCaptxt.Properties.DataSource = nccCtr.LoadData1C(); NhaCungCaptxt.Properties.DisplayMember = "TenNhaCungCap"; NhaCungCaptxt.Properties.ValueMember = "TenNhaCungCap"; // Bảng Kho var khoCtr = new KhoCtr(); KhoCongTytxt.Properties.DataSource = khoCtr.LoadData1C(); KhoCongTytxt.Properties.DisplayMember = "ID"; KhoCongTytxt.Properties.ValueMember = "ID"; }