Ejemplo n.º 1
0
        private IList <BudgetReportData> GetCharDataInfoOfMonth()
        {
            var budgetReportDatas = new List <BudgetReportData>();

            for (var i = 1; i <= 12; i++)
            {
                var budgetReportData = new BudgetReportData {
                    Month = i
                };
                budgetReportDatas.Add(budgetReportData);
            }
            return(budgetReportDatas);
        }
Ejemplo n.º 2
0
        private IList <BudgetReportData> GetCharDataInfoOfYearAndQuarter(int quarter)
        {
            var budgetReportDatas = new List <BudgetReportData>();

            for (var i = 4; i >= 0; i--)
            {
                var year             = DateTime.Now.Year - i;
                var budgetReportData = new BudgetReportData {
                    Year = year, Quarter = quarter
                };
                budgetReportDatas.Add(budgetReportData);
            }

            return(budgetReportDatas);
        }
Ejemplo n.º 3
0
        private IList <BudgetReportData> GetCharDataInfoOfYearAndMonth(int month)
        {
            var budgetReportDatas = new List <BudgetReportData>();

            for (var i = 4; i >= 0; i--)
            {
                var year             = DateTime.Now.Year - i;
                var budgetReportData = new BudgetReportData {
                    Year = year, Month = month
                };
                budgetReportDatas.Add(budgetReportData);
            }

            return(budgetReportDatas);
        }