public static string LogResultInfo(IBookResult result) { IPayrollArticle article = result.Article(); IBookIndex element = result.Element(); string lineDefinition = string.Format("\n--- {0} - {1} - {2} - {3}", article.ArticleName(), article.ConceptName(), article.ArticleCode(), element.ToString()); foreach (var targetValue in result.TargetValues()) { lineDefinition += string.Format("\n\t--> {0} - {1}", targetValue, LogValueInfo(targetValue, result.Values())); } foreach (var resultValue in result.ResultValues()) { lineDefinition += string.Format("\n\t<-- {0} - {1}", resultValue, LogValueInfo(resultValue, result.Values())); } return(lineDefinition); }
public static string LogArticleInfo(IBookTarget target) { IPayrollArticle article = target.Article(); IBookIndex element = target.Element(); string lineDefinition = string.Format("\n--- {0} - {1} - {2} - {3}", article.ArticleName(), article.ConceptName(), article.ArticleCode(), element.ToString()); return(lineDefinition); }