/// <summary> /// Xử lý duyệt /// </summary> private void Duyet() { DanhMucProcess danhmucProcess = new DanhMucProcess(); Mouse.OverrideCursor = Cursors.Wait; try { List <int> lstID = new List <int>(); List <ClientResponseDetail> listResponseDetail = new List <ClientResponseDetail>(); foreach (DataRow row in grDanhSach.SelectedItems) { if ((int)row[2] > 0) { lstID.Add((int)row[2]); } } if (danhmucProcess.DuyetPhanHeGD(lstID.ToArray(), ref listResponseDetail)) { LMessage.ShowMessage("M.DanhMuc.ucDonViDS.XoaThanhCong", LMessage.MessageBoxType.Information); } else { LMessage.ShowMessage("M.DanhMuc.ucDonViDS.XoaKhongThanhCong", LMessage.MessageBoxType.Warning); } LoadDuLieu(); } catch (System.Exception ex) { this.Cursor = Cursors.Arrow; if (ex.GetType() == typeof(CustomException)) { new frmThongBaoLoi(ex.Message, ex.InnerException).ShowDialog(); } else if (ex.InnerException.GetType() == typeof(CustomException)) { new frmThongBaoLoi(ex.InnerException.Message, ex.InnerException).ShowDialog(); } else { new frmThongBaoLoi("M.DanhMuc.ucDonViDS.LoiXoaDuLieu", ex).ShowDialog(); } LLogging.WriteLog(ex.TargetSite.Name, LLogging.LogType.ERR, ex); } Mouse.OverrideCursor = Cursors.Arrow; }