Пример #1
0
        //KHI KÍCH BUTTON THÊM
        private void ThemHocKy()
        {
            ChucNang = "F9";
            HocKy_ThongTin HocKy = new HocKy_ThongTin();

            A.GiaoDien.QuanLyHocKy QLHK = new A.GiaoDien.QuanLyHocKy(ChucNang, HocKy);
            QLHK.DuLieu = new QuanLyHocKy.DuLieuTruyenVe(LayDuLieu);
            QLHK.ShowDialog(this);
            XacNhanXoa = 0;
            txtTimKiem.Focus();
        }
Пример #2
0
        //KHI KÍCH BUTTON SỬA THÔNG TIN
        private void SuaHocKy()
        {
            ChucNang = "F10";
            HocKy_ThongTin HocKy = new HocKy_ThongTin();

            HocKy.MaHocKy  = tbDanhSachHocKy.Rows[DongChon].Cells[0].Value.ToString();
            HocKy.TenHocKy = tbDanhSachHocKy.Rows[DongChon].Cells[1].Value.ToString();
            A.GiaoDien.QuanLyHocKy QLHK = new A.GiaoDien.QuanLyHocKy(ChucNang, HocKy);
            QLHK.DuLieu = new QuanLyHocKy.DuLieuTruyenVe(LayDuLieu);
            QLHK.ShowDialog(this);
            XacNhanXoa = 0;
            txtTimKiem.Focus();
        }
 //KHI KÍCH BUTTON THÊM
 private void ThemHocKy()
 {
     ChucNang = "F9";
     HocKy_ThongTin HocKy = new HocKy_ThongTin();
     A.GiaoDien.QuanLyHocKy QLHK = new A.GiaoDien.QuanLyHocKy(ChucNang, HocKy);
     QLHK.DuLieu = new QuanLyHocKy.DuLieuTruyenVe(LayDuLieu);
     QLHK.ShowDialog(this);
     XacNhanXoa = 0;
     txtTimKiem.Focus();
 }
 //KHI KÍCH BUTTON SỬA THÔNG TIN
 private void SuaHocKy()
 {
     ChucNang = "F10";
     HocKy_ThongTin HocKy = new HocKy_ThongTin();
     HocKy.MaHocKy = tbDanhSachHocKy.Rows[DongChon].Cells[0].Value.ToString();
     HocKy.TenHocKy = tbDanhSachHocKy.Rows[DongChon].Cells[1].Value.ToString();
     A.GiaoDien.QuanLyHocKy QLHK = new A.GiaoDien.QuanLyHocKy(ChucNang, HocKy);
     QLHK.DuLieu = new QuanLyHocKy.DuLieuTruyenVe(LayDuLieu);
     QLHK.ShowDialog(this);
     XacNhanXoa = 0;
     txtTimKiem.Focus();
 }