protected void Page_Load(object sender, EventArgs e)
    {
        QLTaiKhoan.GetAll();
        listTAIKHOAN = QLTaiKhoan.listTAIKHOAN;

        GetData();

        int       maKQ  = LayMaKQ();
        KETQUAHOC kqHoc = new KETQUAHOC(maKQ, 0, "", false, "Chưa học", true);

        try
        {
            QLKetQuaHoc.Insert(kqHoc);
            string       time = DateTime.Now.ToString().Replace("/", "");
            KETQUADANGKY kqdk = new KETQUADANGKY(maKQ, hocVien.MAHV, maCTKH, time, "", "Online", true);
            QLKetQuaDangKy.Insert(kqdk);
        }
        catch (Exception)
        {
            Response.Redirect("\\404.html");
        }

        // SendEmail("Test", "*****@*****.**", "test");
        Response.Redirect("Regis.aspx");
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        QLHocVien.GetAll();
        listHOCVIEN = QLHocVien.listHOCVIEN;
        hocVien     = listHOCVIEN[1];

        GetData();
        int       maKQ  = LayMaKQ();
        KETQUAHOC kqHoc = new KETQUAHOC(maKQ, 0, "", false, "Chưa học", true);

        try
        {
            QLKetQuaHoc.Insert(kqHoc);
            string       time = DateTime.Now.ToString().Replace("/", "");
            KETQUADANGKY kqdk = new KETQUADANGKY(maKQ, hocVien.MAHV, maCTKH, time, "", "Online", true);
            QLKetQuaDangKy.Insert(kqdk);
        }
        catch (Exception)
        {
            Response.Redirect("\\404.html");
        }


        Response.Redirect("Index.aspx");
    }
 public bool Update(KETQUAHOC KETQUAHOC)
 {
     if (baseFunctions.Update(KETQUAHOC) > 0)
     {
         return(true);
     }
     return(false);
 }
 public bool Insert(KETQUAHOC KETQUAHOC)
 {
     if (baseFunctions.Add(KETQUAHOC) > 0)
     {
         return(true);
     }
     return(false);
 }