public frmQuyChe() { InitializeComponent(); pKQHT_QuyCheInfo = new KQHT_QuyCheInfo(); oBKQHT_QuyChe = new cBKQHT_QuyChe(); lstQuyChe = new List <KQHT_QuyCheInfo>(); lstQuyChe = oBKQHT_QuyChe.GetList(pKQHT_QuyCheInfo); }
private void barbtnXoaQC_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (ThongBaoChon("Bạn có chắc chắn xóa?") == DialogResult.Yes) { try { oBKQHT_QuyChe.Delete(pKQHT_QuyCheInfo); pKQHT_QuyCheInfo.KQHT_QuyCheID = 0; GetData(); lstQuyChe = oBKQHT_QuyChe.GetList(pKQHT_QuyCheInfo); // ghi log GhiLog("Xóa quy chế '" + pKQHT_QuyCheInfo.TenQuyChe + "'", "Xóa", this.Tag.ToString()); XoaThanhCong(); } catch { XoaThatBai(); } } }