public void btn_Delete_QuaTrinhHocTap_Click(object sender, DirectEventArgs e) { try { foreach (var item in RowSelectionModel_BangCap.SelectedRows) { new BangCapUngVienController().Delete(int.Parse("0" + item.RecordID)); } btn_Edit_QuaTrinhHocTap.Disabled = true; btn_Delete_QuaTrinhHocTap.Disabled = true; GridPanel_BangCap.Reload(); RowSelectionModel_BangCap.ClearSelections(); } catch (Exception ex) { Dialog.ShowError(ex.Message); } }
private void resetTabPanelAfterUpdate() { img_anhdaidien.ImageUrl = "../../NhanSu/ImageNhanSu/No_person.jpg"; lblHoTen.Reset(); lblGioiTinh.Reset(); lblTTHN.Reset(); lblEmail.Reset(); lblTuoi.Reset(); lblQuocGia.Reset(); lblDanToc.Reset(); lblTinhThanh.Reset(); lblTonGiao.Reset(); lblNoiOHienNay.Reset(); lblChuyenNganh.Reset(); lblTruongDaoTao.Reset(); lblKinhNghiem.Reset(); lblUuDiem.Reset(); lblNhuocDiem.Reset(); GridPanel_ChungChi.Reload(); GridPanel_KinhNghiemLamViec.Reload(); GridPanel_BangCap.Reload(); GridPanel_TepTinDinhkem.Reload(); GridPanel_KetQuaPV.Reload(); }
protected void btnUpdateBangCap_Click(object sender, DirectEventArgs e) { try { BangCapUngVienController control = new BangCapUngVienController(); DAL.BangCapUngVien bcuv = new DAL.BangCapUngVien(); bcuv.KHOA = txt_khoa.Text; bcuv.MA_HT_DAOTAO = hdfHinhThucDaoTao.Text; bcuv.MA_TRINHDO = hdfTrinhDoBangCap.Text; bcuv.USERNAME = CurrentUser.ID.ToString(); bcuv.MA_TRUONG_DAOTAO = hdfMaTruongDaoTao.Text; bcuv.FR_KEY = decimal.Parse(hdfRecordID.Text); if (!string.IsNullOrEmpty(hdfMaChuyenNganh.Text)) { bcuv.MA_CHUYENNGANH = hdfMaChuyenNganh.Text; } if (Chk_DaTotNghiep.Checked == true) { bcuv.DA_TN = true; if (!string.IsNullOrEmpty(txtNamNhanBang.Text)) { bcuv.NGAY_NHANBANG = new DateTime(int.Parse("0" + txtNamNhanBang.Text), 1, 1); } bcuv.MA_XEPLOAI = hdfXepLoaiBangCap.Text; } else { hdfXepLoaiBangCap.Reset(); bcuv.DA_TN = false; bcuv.NGAY_NHANBANG = null; bcuv.MA_XEPLOAI = null; } if (!string.IsNullOrEmpty(txtTuNam.Text)) { bcuv.TU_NGAY = new DateTime(int.Parse(txtTuNam.Text), 1, 1); } if (!string.IsNullOrEmpty(txtDenNam.Text)) { bcuv.DEN_NGAY = new DateTime(int.Parse(txtDenNam.Text), 1, 1); } bcuv.DATE_CREATE = DateTime.Now; if (e.ExtraParams["Command"] == "Edit") { bcuv.ID = int.Parse("0" + RowSelectionModel_BangCap.SelectedRecordID); control.Update(bcuv); wdAddBangCap.Hide(); Dialog.ShowNotification("Cập nhật dữ liệu thành công!"); } else { control.Insert(bcuv); Dialog.ShowNotification("Thêm mới thành công!"); } if (e.ExtraParams["Close"] == "True") { wdAddBangCap.Hide(); } GridPanel_BangCap.Reload(); } catch (Exception ex) { X.Msg.Alert("Thông báo", ex.Message.ToString()); } }