コード例 #1
0
        private DataSet GetData()
        {
            DateTime startDate = dteStartDate.SelectedDate.Value;
            DateTime endDate   = dteEndDate.SelectedDate.Value;

            Facade.IOrganisation    facOrganisation = new Facade.Organisation();
            Func <DateTime, string> dateFormatter   = (dateTime) => string.Format("{0} {1}", dateTime.ToString("MMM"), dateTime.Year);

            return(facOrganisation.GetClientRevenuePerMonthReport(startDate, endDate, IncludeTotalsPerClient, IncludeTotalsPerMonth, dateFormatter));
        }