예제 #1
0
        private void LoadChucVu()
        {
            cboChucVu.Items.Clear();
            var danhSachCV = context.LayDanhSachChucVu();

            foreach (var cv in danhSachCV)
            {
                cboCVitem item = new cboCVitem();
                item.MaCV  = cv.machucvu.ToString().Trim();
                item.TenCV = cv.tenchucvu.ToString().Trim();
                item.TenCV = cv.machucvu.ToString().Trim();

                cboChucVu.Items.Add(item);
                cboTenChucVu.Items.Add(cv.tenchucvu.ToString().Trim());
            }
        }