コード例 #1
0
        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);
        }
コード例 #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"));
 }
コード例 #3
0
 private void HienThi_DSLop()
 {
     gridControlDSLop.DataSource = _lopBUS.LayDTLop_MaNam_MaKhoi(CboUtil.GetValueItem(comboBoxEditNamHoc),
                                                                 CboUtil.GetValueItem(comboBoxEditKhoi));
     DisableControls(editing: false);
 }
コード例 #4
0
 private void HienThi_DSLop()
 {
     gridControlDSLop.DataSource = _lopBUS.LayDTLop_MaNam_MaKhoi(cmbNamHoc.SelectedValue.ToString(),
                                                                 cmbKhoi.SelectedValue.ToString());
     DisableControls(editing: false);
 }