/// <summary> /// Delete catalog /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Delete(object sender, DirectEventArgs e) { try { var param = e.ExtraParams["Id"]; // parse id if (!int.TryParse(param, out var id) || id <= 0) { // parse error, show error Dialog.ShowError("Có lỗi xảy ra trong quá trình xử lý"); return; } // delete //Xoa bang luong SalaryBoardInfoController.DeleteByBoardListId(id); //delete salary column dynamic SalaryBoardDynamicColumnController.DeleteByCondition(id); //Xoa trong danh sach bang luong PayrollController.Delete(id); // reload data grdSalaryBoardList.Reload(); } catch (Exception ex) { Dialog.ShowError(ex.Message); } }