예제 #1
0
 public void Util_BindData()
 {
     DateTime firstItemDate = DateTime.Now;
     List<List<int>> dataset = new List<List<int>>();
     List<string> labels = new List<string>();
     OrderApi orderApi = new OrderApi();
     OrderReportData report = new OrderReportData();
     Criteria<OrderProperty> orderCriteria = new Criteria<OrderProperty>();
     orderCriteria.PagingInfo = new PagingInfo(orderApi.RequestInformationRef.PagingSize);
     orderCriteria = Util_GetDates(orderCriteria);
     report = orderApi.GetReport(orderCriteria);
     dataset.Add(Util_GetDateValues(report));
     labels = Util_GetDateLabels(report);
     TrendTimeLineChart.LoadSplitData(StartDate, StartDate, labels.ToArray(), dataset.ToArray());
 }
예제 #2
0
    public void Util_BindData()
    {
        DateTime firstItemDate = DateTime.Now;
        List<List<int>> dataset = new List<List<int>>();
        List<string> labels = new List<string>();
        OrderApi orderApi = new OrderApi();
        OrderReportData report = new OrderReportData();
        Criteria<OrderProperty> orderCriteria = new Criteria<OrderProperty>();
        orderCriteria.PagingInfo = new PagingInfo(orderApi.RequestInformationRef.PagingSize);

        orderCriteria = Util_GetDates(orderCriteria);

        report = orderApi.GetReport(orderCriteria);

        ltr_count.Text = report.TotalOrders.ToString() + " " + GetMessage("lbl total orders with a value of") + " " + orderApi.RequestInformationRef.CommerceSettings.CurrencyAlphaISO + orderApi.RequestInformationRef.CommerceSettings.CurrencySymbol + report.Dates.OrderValue(orderApi.RequestInformationRef.CommerceSettings.CurrencyId);

        dataset.Add(Util_GetDateValues(report));
        labels = Util_GetDateLabels(report);

        TrendTimeLineChart.LoadSplitData(StartDate, StartDate, labels.ToArray(), dataset.ToArray());
    }