Esempio n. 1
0
 private void load_cboKhoiLop()
 {
     if (cboNamHoc.Text != "")
     {
         string maNamHoc = NAMHOC_BUS.LayNamHocHienTai().MANAMHOC;
         cboKhoiLop.Properties.DataSource    = KHOILOP_BUS.LayKhoiTheoNamHoc(maNamHoc);
         cboKhoiLop.Properties.DisplayMember = "TENKHOI";
         cboKhoiLop.Properties.ValueMember   = "MAKHOI";
     }
 }
Esempio n. 2
0
 private void load_cboKhoiLop()
 {
     if (cboNamHoc.Text != "")
     {
         string maNamHoc = cboNamHoc.EditValue.ToString();
         cboKhoiLop.Properties.DataSource    = KHOILOP_BUS.LayKhoiTheoNamHoc(maNamHoc);
         cboKhoiLop.Properties.DisplayMember = "TENKHOI";
         cboKhoiLop.Properties.ValueMember   = "MAKHOI";
     }
 }
Esempio n. 3
0
        //load_cboNamHocCu

        private void load_cboKhoiLopCu1()
        {
            if (cboNamHocCu.Text != "")
            {
                string maNamHoc = cboNamHocCu.EditValue.ToString();
                cboKhoiCu.Properties.DataSource    = KHOILOP_BUS.LayKhoiTheoNamHoc(maNamHoc);
                cboKhoiCu.Properties.DisplayMember = "TENKHOI";
                cboKhoiCu.Properties.ValueMember   = "MAKHOI";
                //cboKhoiCu.EditValue = null;
            }
            else
            {
                cboKhoiCu.Properties.DataSource = null;
            }
            cboKhoiCu.EditValue = null;
        }