/// <summary> /// Xóa /// </summary> /// <param name="listId"></param> private void OnDelete(List <int> listId) { DanhMucProcess processDanhMuc = new DanhMucProcess(); Mouse.OverrideCursor = Cursors.Wait; try { List <ClientResponseDetail> listClientResponseDetail = new List <ClientResponseDetail>(); List <DM_NHOM_DTO> lstNhom = new List <DM_NHOM_DTO>(); DM_NHOM_DTO obj = null; foreach (int id in listId) { obj = new DM_NHOM_DTO(); obj.ID = id; lstNhom.Add(obj); } bool ret = processDanhMuc.DanhSachNhom02(DatabaseConstant.Action.XOA, ref lstNhom, ref listClientResponseDetail); AfterDelete(ret, listId, listClientResponseDetail); } catch (System.Exception ex) { // Yêu cầu unlock dữ liệu UtilitiesProcess process = new UtilitiesProcess(); bool retUnlockData = process.UnlockData(DatabaseConstant.Module.DMDC, DatabaseConstant.Function.DC_DM_NHOM_DS, DatabaseConstant.Table.DM_NHOM, DatabaseConstant.Action.XOA, listId); this.Cursor = Cursors.Arrow; CommonFunction.ThongBaoLoi(ex); LLogging.WriteLog(System.Reflection.MethodInfo.GetCurrentMethod().ToString(), LLogging.LogType.ERR, ex); } Mouse.OverrideCursor = Cursors.Arrow; }