Ejemplo n.º 1
0
        //xem lịch thi
        private void btnTest_day_Click(object sender, EventArgs e)
        {
            controlStudent.TabPages.Clear();
            controlStudent.TabPages.Add(Tab_test_day);
            controlStudent.SelectedTab = Tab_test_day;


            dt_test_day.DataSource = BUS_Hoc_Sinh.Lay_lich_Thi(BUS_Hoc_Sinh.ID_Lop(hs.Lop));
        }
Ejemplo n.º 2
0
 public static void Sua_Thong_Tin(Hoc_Sinhh hs_new)
 {
     using (var QLTTN = new QLTTNDataContext())
     {
         var Querry = from _hs_ in QLTTN.NGUOIDUNGs
                      where _hs_.TaiKhoan == hs_new.Tai_Khoan
                      select _hs_;
         Querry.First().HoTen       = hs_new.Ho_Ten;
         Querry.First().CMND_TCC    = hs_new.CMND_TCC;
         Querry.First().Email       = hs_new.Email;
         Querry.First().NgaySinh    = hs_new.Ngay_Sinh;
         Querry.First().SoDienThoai = hs_new.SDT;
         Querry.First().MaLop       = BUS_Hoc_Sinh.ID_Lop(hs_new.Lop);
         QLTTN.SubmitChanges();
     }
 }