示例#1
0
        private void CTHD_ban_Load(object sender, EventArgs e)
        {
            dt = bus_sp.Load();

            cbMaSanPham.DataSource    = dt;
            cbMaSanPham.DisplayMember = "masanpham";

            cbMaNhanVien.DataSource    = bus_nv.LoadMaNhanVien();
            cbMaNhanVien.DisplayMember = "manhanvien";

            dgvCTHD.DataSource = bus_cthdb.LoadCTHDB();

            dgvHoaDon.DataSource = bus_hdb.LoadHDB();
        }
示例#2
0
 private void frmHDB_Load(object sender, EventArgs e)
 {
     dgv.DataSource             = bus_hdb.LoadHDB();
     cbMaNhanVien.DataSource    = bus_nv.LoadMaNhanVien();
     cbMaNhanVien.DisplayMember = "manhanvien";
 }