예제 #1
0
            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);
            }
예제 #2
0
            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);
            }
예제 #3
0
            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);
            }
예제 #4
0
            public static string LogArticleInfo(IPayrollArticle article)
            {
                string lineDefinition = string.Format("\n\t{0} - {1} - {2}", article.ArticleName(), article.ConceptName(), article.ArticleCode());

                return(lineDefinition);
            }
예제 #5
0
            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);
            }