Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     DateSelectorControl.CallbackPanelId = DailyRevenueCallbackPanel.ClientID;
     ProductSalesRevenue.SetData(SalesProvider.GetSalesGroupedByChannel(SalesStartDate, SalesEndDate));
     if (!IsCallback)
     {
         PopulateDailySalesData();
     }
 }
    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));
    }