public static string LogArticleInfo(IPayrollArticle article) { string relatedDescrip = article.RelatedArticles().Length.ToString(); string lineDefinition = string.Format("{0} - {1}\n", article.ConceptName(), relatedDescrip); lineDefinition += LogRelatedArticlesInfo(article); 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); }
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(IPayrollArticle article) { string lineDefinition = string.Format("\n\t{0} - {1} - {2}", article.ArticleName(), article.ConceptName(), article.ArticleCode()); return(lineDefinition); }
public static string LogHeaderInfo(IPayrollArticle article, IPayrollArticle[] articles) { string lineCountInfo = ""; if (articles == null) { lineCountInfo = "empty"; } else { lineCountInfo = string.Format("{0}", articles.Length); } string lineDefinition = string.Format("count - {0} - {1} - {2} - {3}", lineCountInfo, article.ArticleName(), article.ConceptName(), article.ConceptCode()); return(lineDefinition); }