Ejemplo n.º 1
0
        /// <summary>
        /// 计算父节点每个月份要支付的成本
        /// </summary>
        /// <param name="costAccounts"></param>
        /// <param name="months"></param>
        private void CalcParentMonthCost(List <BsonDocument> costAccounts, List <string> months)
        {
            CostBll costBll = CostBll._(_ctx);

            foreach (var month in months)
            {
                costBll.CalcParentValue(costAccounts, month);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 计算父节点每个季度份要支付的成本
        /// </summary>
        /// <param name="costAccounts"></param>
        /// <param name="months"></param>
        private void CalcParentSeasonCost(List <BsonDocument> costAccounts, Season season)
        {
            CostBll costBll = CostBll._(_ctx);

            foreach (var seasonMonth in season.SeasonMonth)//遍历季度
            {
                string key = seasonMonth.key;
                costBll.CalcParentValue(costAccounts, key);
            }
        }