private void LoadComboboxLopHoc(object sender, EventArgs e)
        {
            CboUtil.SetDataSource(comboBoxEditLop, _lopBUS.LayDTLop_MaNam_MaKhoi(
                                      CboUtil.GetValueItem(comboBoxEditNamHoc),
                                      CboUtil.GetValueItem(comboBoxEditKhoi)
                                      ), "MaLop", "TenLop", 0);

            comboBoxEditLop_SelectedIndexChanged(sender, e);
        }
Esempio n. 2
0
 /// <summary>
 /// Load lại combobox lớp học theo năm và khối
 /// </summary>
 private void LoadComboboxLopHoc(object sender, EventArgs e)
 {
     CboUtil.SetDataSource(comboBoxEditLop, _lopBUS.LayDTLop_MaNam_MaKhoi(
                               CboUtil.GetValueItem(comboBoxEditNamHoc),
                               CboUtil.GetValueItem(comboBoxEditKhoi)
                               ), "MaLop", "TenLop", 0);
     comboBoxEditLop_SelectedIndexChanged(sender, e);
     HienThiHoSoHocSinh(gridViewDSHocSinh.GetRowCellValue(0, "MaHocSinh"));
 }
 private void HienThi_DSLop()
 {
     gridControlDSLop.DataSource = _lopBUS.LayDTLop_MaNam_MaKhoi(CboUtil.GetValueItem(comboBoxEditNamHoc),
                                                                 CboUtil.GetValueItem(comboBoxEditKhoi));
     DisableControls(editing: false);
 }
Esempio n. 4
0
 private void HienThi_DSLop()
 {
     gridControlDSLop.DataSource = _lopBUS.LayDTLop_MaNam_MaKhoi(cmbNamHoc.SelectedValue.ToString(),
                                                                 cmbKhoi.SelectedValue.ToString());
     DisableControls(editing: false);
 }