private void btnLuuThongTin_Click(object sender, EventArgs e) { try { if (isInsert) { int _khoaHocId = 0; if (PhongHocLogic.Insert(LoadPhongHoc(), ref _khoaHocId)) { O2S_Common.Utilities.ThongBao.frmThongBao frmthongbao = new O2S_Common.Utilities.ThongBao.frmThongBao(Base.ThongBaoLable.THEM_MOI_THANH_CONG); frmthongbao.Show(); } else { O2S_Common.Utilities.ThongBao.frmThongBao frmthongbao = new O2S_Common.Utilities.ThongBao.frmThongBao(Base.ThongBaoLable.THEM_MOI_THAT_BAI); frmthongbao.Show(); } } else { if (PhongHocLogic.Update(LoadPhongHoc())) { O2S_Common.Utilities.ThongBao.frmThongBao frmthongbao = new O2S_Common.Utilities.ThongBao.frmThongBao(Base.ThongBaoLable.CAP_NHAT_THANH_CONG); frmthongbao.Show(); } else { O2S_Common.Utilities.ThongBao.frmThongBao frmthongbao = new O2S_Common.Utilities.ThongBao.frmThongBao(Base.ThongBaoLable.CAP_NHAT_THAT_BAI); frmthongbao.Show(); } } LoadGridPhongHoc(); } catch (Exception ex) { O2S_Common.Logging.LogSystem.Error(ex); } }