/// <summary> /// 保存数据验证 /// </summary> /// <returns></returns> protected override bool SaveValidation() { bool valResult = base.SaveValidation(); if (!valResult) { return(valResult); } if (group.CurrentValue?.IdentityValueIsNone() ?? true) { throw new Exception($"请设置操作功能:{Name} 的分组"); } if (!operationGroupService.Exist(group.CurrentValue.Id)) { throw new Exception("操作功能设置的分组: {group.CurrentValue.Id} 不存在"); } ActionCode = ActionCode?.ToUpper() ?? string.Empty; ControllerCode = ControllerCode?.ToUpper() ?? string.Empty; return(true); }