示例#1
0
 private void fr_NhanVien_TraHang_Load(object sender, EventArgs e)
 {
     comb_NCC.DataSource    = NhaCungCap_BUL.getList();
     comb_NCC.SelectedIndex = 0;
     comb_NCC.DisplayMember = "TenNCC";
     getDonHang();
     CheckListDS();
 }
 private void fr_NhanVien_NhapHang_Load(object sender, EventArgs e)
 {
     comb_ncc.DataSource    = NhaCungCap_BUL.getList();
     comb_ncc.SelectedIndex = 0;
     comb_ncc.DisplayMember = "TenNCC";
     txt_HangHoa.Enabled    = false;
     checkList();
     chinhsuaChiTiet();
 }
        private void init()
        {
            List <LoaiHoang> listLoaihang = LoaiHang_BUL.getList();

            comb_loaihang.DataSource    = listLoaihang;
            comb_loaihang.DisplayMember = "TenLoai";
            List <NhanVien> listQuanLy = NhanVien_BUL.getListNhanVien();

            comb_quanly.DataSource    = listQuanLy;
            comb_quanly.DisplayMember = "HoTen";
            List <NhaCungCap> listNCC = NhaCungCap_BUL.getList();

            comb_ncc.DataSource    = listNCC;
            comb_ncc.DisplayMember = "TenNCC";
            txt_sltra.Enabled      = false;
            txt_sltra.Text         = "0";
        }