namespace YLErp.Modules.EodModule.SettlementModule { /// /// 结算检查结果 /// public class EodCheckResult { List _errorList; public string Step { get; set; } public IEnumerable ErrorMessages { get { return _errorList; } } public void AppendError(string errorMsg) { if (_errorList == null) { _errorList = new List(); } _errorList.Add(errorMsg); } public void AppendError(string action, string errorMsg) { if (_errorList == null) { _errorList = new List(); } _errorList.Add(action + "出错," + errorMsg); } public EodCheckResult AppendErrors(IEnumerable errors) { if (errors is null || !errors.Any()) { return this; } if (_errorList == null) { _errorList = new List(errors); } else { _errorList.AddRange(errors); } return this; } } }