private void SetUpChart(OpenFlashChart.OpenFlashChart chart) { if (Period == PeriodType.Custom) { chart.Title = new Title("Shipping Report" + " ( From " + _startOrderDate.ToShortDateString() + " To " + _endOrderDate.ToShortDateString() + ")"); } else { chart.Title = new Title("Shipping Report" + " (" + ReportFilterUtilities.ConvertToPeriodText(Period) + ")"); } chart.Bgcolor = "#ffffff"; chart.Title.Style = "{font-size: 17px; font-family: Times New Roman; font-weight: bold; " + " color: #9bbde0; text-align: center; wmode: transparent; padding-bottom: 30px;}"; }
private void SetUpChart(OpenFlashChart.OpenFlashChart chart, DateTime startOrderDate, DateTime endOrderDate) { if (Period == PeriodType.Custom) { chart.Title = new Title(ReportFilterUtilities.ConvertToCustomerReportText(CustomerReport) + " ( From " + startOrderDate.ToShortDateString() + " To " + endOrderDate.ToShortDateString() + ")"); } else { chart.Title = new Title(ReportFilterUtilities.ConvertToCustomerReportText(CustomerReport) + " (" + ReportFilterUtilities.ConvertToPeriodText(Period) + ")"); } _yLegend = "Register"; _value = "RegisterCustomer"; }
private void SetUpChart(OpenFlashChart.OpenFlashChart chart, DateTime startOrderDate, DateTime endOrderDate) { if (IsDisplayTitle == "true") { if (Period == PeriodType.Custom) { chart.Title = new Title(ReportFilterUtilities.ConvertToSaleReportText(SaleReport) + " ( From " + startOrderDate.ToShortDateString() + " To " + endOrderDate.ToShortDateString() + ")"); } else { chart.Title = new Title(ReportFilterUtilities.ConvertToSaleReportText(SaleReport) + " (" + ReportFilterUtilities.ConvertToPeriodText(Period) + ")"); } } else { chart.Title = new Title(""); } if (SaleReport == SaleReportType.OrderTotals) { _yLegend = "Amount (" + CurrencyUtilities.BaseCurrencySymbol + ")"; _value = "Total"; } else if (SaleReport == SaleReportType.AverageOrderTotals) { _yLegend = "Amount (" + CurrencyUtilities.BaseCurrencySymbol + ")"; _value = "Average"; } else if (SaleReport == SaleReportType.NumberOfOrder) { _yLegend = "Orders"; _value = "NumberOfOrder"; } else if (SaleReport == SaleReportType.NumberOfItemsSold) { _yLegend = "Items"; _value = "Quantity"; } else if (SaleReport == SaleReportType.AverageItemPerOrder) { _yLegend = "Items"; _value = "AvgQuantity"; } }