Пример #1
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     try
     {
         if (selectedRowIndex >= 0)
         {
             sp_DeNghiTheoPhongTrongTuanResult x = source[gridView1.GetDataSourceRowIndex(selectedRowIndex)];
             if (truyen != null)
             {
                 truyen(x);
                 this.DialogResult = DialogResult.OK;
             }
         }
         Close();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #2
0
 public bool ThemTKB(sp_DeNghiTheoPhongTrongTuanResult t)
 {
     try
     {
         TKBDangXep.Add(new QuanLyDaoTao.DataAccess.ThoiKhoaBieu()
         {
             BuoiHoc     = t.BuoiHoc,
             MaPC        = t.MaPC,
             MaPhong     = maPhong,
             CoDay       = false,
             DaThanhToan = false,
             BuoiHoc1    = BuoiHocBUS.LayThongTin(t.BuoiHoc)
         });
         Paint(t.MaPC, t.BuoiHoc, (int)thu, t.TietBatDau, t.SoTiet, t.TenMH, t.TenGV, t.MaLop, 1, t.MaGV, t.MaMH);
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }