public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Snf.Silver.ChartsAndReports;component/DistributorsMatOut2.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.MainChart = ((System.Windows.Controls.DataVisualization.Charting.Chart)(this.FindName("MainChart")));
     this.XDateAxis = ((System.Windows.Controls.DataVisualization.Charting.DateTimeAxis)(this.FindName("XDateAxis")));
     this.LoadingAnm = ((BIT.Silver.Controls.Loading)(this.FindName("LoadingAnm")));
     this.VolumeRadio = ((System.Windows.Controls.RadioButton)(this.FindName("VolumeRadio")));
     this.ValueRadio = ((System.Windows.Controls.RadioButton)(this.FindName("ValueRadio")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Snf.Silver.ChartsAndReports;component/DistributorsQuarterly.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.DistributorsChart = ((System.Windows.Controls.DataVisualization.Charting.Chart)(this.FindName("DistributorsChart")));
     this.Stack = ((System.Windows.Controls.DataVisualization.Charting.StackedColumnSeries)(this.FindName("Stack")));
     this.XDateAxis = ((System.Windows.Controls.DataVisualization.Charting.DateTimeAxis)(this.FindName("XDateAxis")));
     this.YAxis = ((System.Windows.Controls.DataVisualization.Charting.LinearAxis)(this.FindName("YAxis")));
     this.ExportToExcelBtn = ((System.Windows.Controls.Image)(this.FindName("ExportToExcelBtn")));
     this.LoadingAnm = ((BIT.Silver.Controls.Loading)(this.FindName("LoadingAnm")));
     this.VolumeRadio = ((System.Windows.Controls.RadioButton)(this.FindName("VolumeRadio")));
     this.ValueRadio = ((System.Windows.Controls.RadioButton)(this.FindName("ValueRadio")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Snf.Silver.ChartsAndReports;component/SalesPerChannelTotal.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.MainChart = ((System.Windows.Controls.DataVisualization.Charting.Chart)(this.FindName("MainChart")));
     this.Stack = ((System.Windows.Controls.DataVisualization.Charting.StackedColumnSeries)(this.FindName("Stack")));
     this.XDateAxis = ((System.Windows.Controls.DataVisualization.Charting.DateTimeAxis)(this.FindName("XDateAxis")));
     this.YAxis = ((System.Windows.Controls.DataVisualization.Charting.LinearAxis)(this.FindName("YAxis")));
     this.ExportToExcelBtn = ((System.Windows.Controls.Image)(this.FindName("ExportToExcelBtn")));
     this.LoadingAnm = ((BIT.Silver.Controls.Loading)(this.FindName("LoadingAnm")));
     this.VolumeRadio = ((System.Windows.Controls.RadioButton)(this.FindName("VolumeRadio")));
     this.ValueRadio = ((System.Windows.Controls.RadioButton)(this.FindName("ValueRadio")));
     this.UnitComobo = ((System.Windows.Controls.ComboBox)(this.FindName("UnitComobo")));
     this.DosageStack = ((System.Windows.Controls.StackPanel)(this.FindName("DosageStack")));
     this.DosageCombo = ((System.Windows.Controls.ComboBox)(this.FindName("DosageCombo")));
     this.ChannelsList = ((System.Windows.Controls.ListBox)(this.FindName("ChannelsList")));
 }
示例#4
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Snf.Silver.ChartsAndReports;component/MatOutChart.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.MainChart = ((System.Windows.Controls.DataVisualization.Charting.Chart)(this.FindName("MainChart")));
     this.BudgetF01Csr = ((System.Windows.Controls.DataVisualization.Charting.ColumnSeries)(this.FindName("BudgetF01Csr")));
     this.BudgetCsr = ((System.Windows.Controls.DataVisualization.Charting.ColumnSeries)(this.FindName("BudgetCsr")));
     this.F01Csr = ((System.Windows.Controls.DataVisualization.Charting.ColumnSeries)(this.FindName("F01Csr")));
     this.F02Csr = ((System.Windows.Controls.DataVisualization.Charting.ColumnSeries)(this.FindName("F02Csr")));
     this.ActualSalesCsr = ((System.Windows.Controls.DataVisualization.Charting.ColumnSeries)(this.FindName("ActualSalesCsr")));
     this.SalesInCsr = ((System.Windows.Controls.DataVisualization.Charting.ColumnSeries)(this.FindName("SalesInCsr")));
     this.F02MatOutLsr = ((System.Windows.Controls.DataVisualization.Charting.LineSeries)(this.FindName("F02MatOutLsr")));
     this.F02MatOutYAxis = ((System.Windows.Controls.DataVisualization.Charting.LinearAxis)(this.FindName("F02MatOutYAxis")));
     this.F01MatOutLsr = ((System.Windows.Controls.DataVisualization.Charting.LineSeries)(this.FindName("F01MatOutLsr")));
     this.F01MatOutYAxis = ((System.Windows.Controls.DataVisualization.Charting.LinearAxis)(this.FindName("F01MatOutYAxis")));
     this.ActualMatOutLsr = ((System.Windows.Controls.DataVisualization.Charting.LineSeries)(this.FindName("ActualMatOutLsr")));
     this.ActualMatOutYAxis = ((System.Windows.Controls.DataVisualization.Charting.LinearAxis)(this.FindName("ActualMatOutYAxis")));
     this.BudgetMatOutLsr = ((System.Windows.Controls.DataVisualization.Charting.LineSeries)(this.FindName("BudgetMatOutLsr")));
     this.BudgetMatOutYAxis = ((System.Windows.Controls.DataVisualization.Charting.LinearAxis)(this.FindName("BudgetMatOutYAxis")));
     this.SalesInMatOutLsr = ((System.Windows.Controls.DataVisualization.Charting.LineSeries)(this.FindName("SalesInMatOutLsr")));
     this.SalesInMatOutYAxis = ((System.Windows.Controls.DataVisualization.Charting.LinearAxis)(this.FindName("SalesInMatOutYAxis")));
     this.SalesInObjectiveMatOutLsr = ((System.Windows.Controls.DataVisualization.Charting.LineSeries)(this.FindName("SalesInObjectiveMatOutLsr")));
     this.SalesInObjectiveMatOutYAxis = ((System.Windows.Controls.DataVisualization.Charting.LinearAxis)(this.FindName("SalesInObjectiveMatOutYAxis")));
     this.ChartDateTimeAxis = ((System.Windows.Controls.DataVisualization.Charting.DateTimeAxis)(this.FindName("ChartDateTimeAxis")));
     this.SalesOutAxs = ((System.Windows.Controls.DataVisualization.Charting.LinearAxis)(this.FindName("SalesOutAxs")));
     this.LoadingAnm = ((BIT.Silver.Controls.Loading)(this.FindName("LoadingAnm")));
     this.PinkTableGrid = ((System.Windows.Controls.Grid)(this.FindName("PinkTableGrid")));
     this.SalesOutLabel = ((System.Windows.Controls.TextBlock)(this.FindName("SalesOutLabel")));
     this.SalesInLabel = ((System.Windows.Controls.TextBlock)(this.FindName("SalesInLabel")));
     this.MonthLabel = ((System.Windows.Controls.TextBlock)(this.FindName("MonthLabel")));
     this.MonthValueTxt = ((System.Windows.Controls.TextBlock)(this.FindName("MonthValueTxt")));
     this.MonthSalesInTxt = ((System.Windows.Controls.TextBlock)(this.FindName("MonthSalesInTxt")));
     this.MonthVarVsBLabel = ((System.Windows.Controls.TextBlock)(this.FindName("MonthVarVsBLabel")));
     this.MonthVarVsBTxt = ((System.Windows.Controls.TextBlock)(this.FindName("MonthVarVsBTxt")));
     this.MonthVarVsBSalesInTxt = ((System.Windows.Controls.TextBlock)(this.FindName("MonthVarVsBSalesInTxt")));
     this.MonthVarVsF2Label = ((System.Windows.Controls.TextBlock)(this.FindName("MonthVarVsF2Label")));
     this.MonthVarVsF2Txt = ((System.Windows.Controls.TextBlock)(this.FindName("MonthVarVsF2Txt")));
     this.MonthVarVsF2SalesInTxt = ((System.Windows.Controls.TextBlock)(this.FindName("MonthVarVsF2SalesInTxt")));
     this.MonthGrowthLabel = ((System.Windows.Controls.TextBlock)(this.FindName("MonthGrowthLabel")));
     this.MonthGrowthTxt = ((System.Windows.Controls.TextBlock)(this.FindName("MonthGrowthTxt")));
     this.MonthGrowthSalesInTxt = ((System.Windows.Controls.TextBlock)(this.FindName("MonthGrowthSalesInTxt")));
     this.YTDLabel = ((System.Windows.Controls.TextBlock)(this.FindName("YTDLabel")));
     this.YTDTxt = ((System.Windows.Controls.TextBlock)(this.FindName("YTDTxt")));
     this.YTDSalesInTxt = ((System.Windows.Controls.TextBlock)(this.FindName("YTDSalesInTxt")));
     this.VarVsBLabel = ((System.Windows.Controls.TextBlock)(this.FindName("VarVsBLabel")));
     this.VarVsBTxt = ((System.Windows.Controls.TextBlock)(this.FindName("VarVsBTxt")));
     this.VarVsBSalesInTxt = ((System.Windows.Controls.TextBlock)(this.FindName("VarVsBSalesInTxt")));
     this.VarVsF2Label = ((System.Windows.Controls.TextBlock)(this.FindName("VarVsF2Label")));
     this.VarVsF2Txt = ((System.Windows.Controls.TextBlock)(this.FindName("VarVsF2Txt")));
     this.VarVsF2SalesInTxt = ((System.Windows.Controls.TextBlock)(this.FindName("VarVsF2SalesInTxt")));
     this.YTDGrowthLabel = ((System.Windows.Controls.TextBlock)(this.FindName("YTDGrowthLabel")));
     this.YTDGrowthTxt = ((System.Windows.Controls.TextBlock)(this.FindName("YTDGrowthTxt")));
     this.YTDGrowthSalesInTxt = ((System.Windows.Controls.TextBlock)(this.FindName("YTDGrowthSalesInTxt")));
     this.YTGLabel = ((System.Windows.Controls.TextBlock)(this.FindName("YTGLabel")));
     this.YTGTxt = ((System.Windows.Controls.TextBlock)(this.FindName("YTGTxt")));
     this.YTGSalesInTxt = ((System.Windows.Controls.TextBlock)(this.FindName("YTGSalesInTxt")));
     this.YTGGrowthLabel = ((System.Windows.Controls.TextBlock)(this.FindName("YTGGrowthLabel")));
     this.YTGGrowthTxt = ((System.Windows.Controls.TextBlock)(this.FindName("YTGGrowthTxt")));
     this.YTGGrowthSalesInTxt = ((System.Windows.Controls.TextBlock)(this.FindName("YTGGrowthSalesInTxt")));
     this.ExportToExcelBtn = ((System.Windows.Controls.Image)(this.FindName("ExportToExcelBtn")));
     this.EditDataBtn = ((System.Windows.Controls.Image)(this.FindName("EditDataBtn")));
     this.VolumeRadio = ((System.Windows.Controls.RadioButton)(this.FindName("VolumeRadio")));
     this.ValueRadio = ((System.Windows.Controls.RadioButton)(this.FindName("ValueRadio")));
     this.DosageStack = ((System.Windows.Controls.StackPanel)(this.FindName("DosageStack")));
     this.DosageCombo = ((System.Windows.Controls.ComboBox)(this.FindName("DosageCombo")));
     this.UnitComobo = ((System.Windows.Controls.ComboBox)(this.FindName("UnitComobo")));
     this.F1Combo = ((System.Windows.Controls.ComboBox)(this.FindName("F1Combo")));
     this.MinAxisValue = ((System.Windows.Controls.TextBox)(this.FindName("MinAxisValue")));
     this.MaxAxisValue = ((System.Windows.Controls.TextBox)(this.FindName("MaxAxisValue")));
     this.SetAxisBtn = ((System.Windows.Controls.Button)(this.FindName("SetAxisBtn")));
     this.MatMinAxisValue = ((System.Windows.Controls.TextBox)(this.FindName("MatMinAxisValue")));
     this.MatMaxAxisValue = ((System.Windows.Controls.TextBox)(this.FindName("MatMaxAxisValue")));
     this.SetMatAxisBtn = ((System.Windows.Controls.Button)(this.FindName("SetMatAxisBtn")));
 }
        private void CreateChart()
        {
            // Create a Chart
            m_Chart = new System.Windows.Controls.DataVisualization.Charting.Chart();
            m_Chart.Title = "New Stats";
            m_Chart.Background = System.Windows.Media.Brushes.White;
            m_Chart.BorderBrush = null;

            m_XAxis = new System.Windows.Controls.DataVisualization.Charting.DateTimeAxis();
            m_XAxis.Orientation = System.Windows.Controls.DataVisualization.Charting.AxisOrientation.X;

            m_YAxis = new System.Windows.Controls.DataVisualization.Charting.CategoryAxis();
            m_YAxis.Orientation = System.Windows.Controls.DataVisualization.Charting.AxisOrientation.Y;

            m_Chart.Axes.Add(m_XAxis);

            this.Children.Add(m_Chart);
        }