コード例 #1
0
        private void HienThiTenNV()
        {
            DataTable dt = nv.ListToDataTable(nv.SelectAll());

            comboBoxTenNhanVien.DataSource    = dt;
            comboBoxTenNhanVien.DisplayMember = "TenNV";
            comboBoxTenNhanVien.ValueMember   = "MaNV";
        }
コード例 #2
0
        private void HienThiTenHH()
        {
            DataTable dt = hh.ListToDataTable(hh.SelectAll());

            comboBoxTenHang.DataSource    = dt;
            comboBoxTenHang.DisplayMember = "TenHH";
            comboBoxTenHang.ValueMember   = "MaHH";
        }
コード例 #3
0
        private void HienThiTenKH()
        {
            DataTable dt = kh.ListToDataTable(kh.SelectAll());

            comboBoxTenKhachHang.DataSource    = dt;
            comboBoxTenKhachHang.DisplayMember = "TenKH";
            comboBoxTenKhachHang.ValueMember   = "MaKH";
        }
コード例 #4
0
        //Hien thi,them loai
        private void HienThiTenLoai()
        {
            DataTable dt = loai.ListToDataTable(loai.SelectAll());

            comboBoxTenLoai.DataSource    = dt;
            comboBoxTenLoai.DisplayMember = "TenLoai";
            comboBoxTenLoai.ValueMember   = "MaLoai";
        }