Ejemplo n.º 1
0
        public DataTable LoadClassByGrade(string makhoi)
        {
            DataTable dtKhoi;

            dtKhoi = nienKhoaBUS.GetClassByYear(cbKhoaHoc.SelectedValue.ToString(), makhoi);
            return(dtKhoi);
        }
Ejemplo n.º 2
0
        private void cbKhoaHoc_SelectedIndexChanged(object sender, EventArgs e)
        {
            getcbKhoaHoc("", cbKhoaHoc.SelectedItem.ToString(), "");
            removeAllNode();
            string idYear   = cbKhoaHoc.SelectedValue.ToString();
            var    dtKhoi10 = nienKhoaBUS.GetClassByYear(idYear, "1");

            addRowsToNode(dtKhoi10, 0);
            //Khoi 11
            var dtKhoi11 = nienKhoaBUS.GetClassByYear(idYear, "2");

            addRowsToNode(dtKhoi11, 1);
            //Khoi 12
            var dtKhoi12 = nienKhoaBUS.GetClassByYear(idYear, "3");

            addRowsToNode(dtKhoi12, 2);
            tvDanhSachLop.ExpandAll();
        }