Example #1
0
        private void frmHDN_Load(object sender, EventArgs e)
        {
            dgv.DataSource        = bus_hdn.LoadHDN();
            cbMaNCC.DataSource    = bus_ncc.LoadMaNCC();
            cbMaNCC.DisplayMember = "mancc";

            cbMaNhanVien.DataSource    = bus_nv.LoadMaNhanVien();
            cbMaNhanVien.DisplayMember = "manhanvien";
        }
Example #2
0
        private void CTHD_nhap_Load(object sender, EventArgs e)
        {
            dt = bus_sp.Load();
            cbMaSP.DataSource    = bus_sp.LoadMaSanPham();
            cbMaSP.DisplayMember = "masanpham";

            cbNhanVien.DataSource    = bus_nv.LoadMaNhanVien();
            cbNhanVien.DisplayMember = "manhanvien";
            cbNCC.DataSource         = bus_ncc.LoadMaNCC();
            cbNCC.DisplayMember      = "mancc";
            dgvHoaDon.DataSource     = bus_hdn.LoadHDN();
            dgvSanPham.DataSource    = bus_cthdn.LoadCTHDN();
        }