コード例 #1
0
        private static IPayrollArticle[] CollectFromRelated(IDictionary <uint, IPayrollArticle[]> relatedDict,
                                                            IPayrollArticle article, IDictionary <uint, IPayrollArticle[]> pendingDict)
        {
            uint articleCode = article.ArticleCode();

            bool skipExecToPending = !relatedDict.ContainsKey(articleCode);

            if (skipExecToPending)
            {
                return(null);
            }

            var initialArticles = new IPayrollArticle[] { article };

            var relatedArticles = FindArticlesInDictionary(relatedDict, article);

            return(initialArticles.Concat(relatedArticles).ToArray());
        }