public void LoadContent(int productId)
    {
        using (ProductsProvider productsProvider = new ProductsProvider()) {
            Contact projectManager = productsProvider.GetProjectManager(productId);
            Contact supportManager = productsProvider.GetSupportManager(productId);
            Plant   plant          = productsProvider.GetPlant(productId);

            FillPlantInfo(plant);
            FillSupportManagerInfo(supportManager);
            FillProjectManagerInfo(projectManager);
        }
        DateTime startDate = GetSalesStartDate();
        DateTime endDate   = GetSalesEndDate();

        RevenueByChannelChart.SetData(SalesProvider.GetSalesGroupedByChannel(productId, startDate, endDate));
        RevenueByRegionChart.SetData(SalesProvider.GetSalesGroupedByRegion(productId, startDate, endDate));
        RevenueBySectorChart.SetData(SalesProvider.GetSalesGroupedBySector(productId, startDate, endDate));
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     ProductSalesRevenue.SetData(SalesProvider.GetSalesGroupedBySector(SalesStartDate, SalesEndDate));
 }
 protected override IEnumerable <ChartData> GetChartSalesRevenueCollection(DateTime startDate, DateTime endDate)
 {
     return(SalesProvider.GetSalesGroupedBySector(startDate, endDate));
 }