private void XuLyTable()
        {
            DataTable dtData = oBKQHT_MonThiTotNghiep_Lop.GetAllMon(Program.IDNamHoc);
            DataRow   drNew;

            try
            {
                // add DiemToanKhoa
                drNew                 = dtThanhPhan.NewRow();
                drNew["KyHieu"]       = "TBTK";
                drNew["TenThanhPhan"] = "Điểm TB toàn khóa";
                drNew["GiaTri"]       = 7;
                dtThanhPhan.Rows.Add(drNew);

                if (dtData != null)
                {
                    for (int i = 0; i < dtData.Rows.Count; i++)
                    {
                        drNew                 = dtThanhPhan.NewRow();
                        drNew["KyHieu"]       = dtData.Rows[i]["MaMonHoc"];
                        drNew["TenThanhPhan"] = dtData.Rows[i]["TenMonHoc"];
                        drNew["GiaTri"]       = 7;
                        dtThanhPhan.Rows.Add(drNew);
                    }
                }
            }
            catch
            { }
        }
Esempio n. 2
0
        private void frmDangKyThiLaiTotNghiepKhoaTruoc_Load(object sender, EventArgs e)
        {
            cmbMonHoc.Properties.DataSource = oBKQHT_MonThiTotNghiep_Lop.GetAllMon(0);
            DataTable dtTemp = oBDM_Lop.GetDanhSachLop(new DM_LopInfo(), Program.NamHoc);

            repositoryLop.DataSource  = dtTemp;
            repositoryLop1.DataSource = dtTemp;
            repositoryLop2.DataSource = dtTemp;
        }