Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SalesReasonAnalysisViewModel"/> class.
 /// </summary>
 public SalesReasonAnalysisViewModel()
 {
     ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config"));
     olapDataManager  = new OlapDataManager(ConnectionString);
     olapDataManager.SetCurrentReport(OlapReport());
     olapDataManager.CurrentReport.ChartSettings.LabelsVisibility = true;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportInFileViewModel"/> class.
 /// </summary>
 public ReportInFileViewModel()
 {
     ConnectionString     = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config"));
     this.olapDataManager = new OlapDataManager(ConnectionString);
     this.olapDataManager.LoadReportDefinitionFile(System.IO.Path.GetFullPath(@"Assets\Olap\Data\CubeModelTemplates\ReportDefenitionFile.xml"));
     this.olapDataManager.LoadReport(this.olapDataManager.Reports[0].Name);
 }
Ejemplo n.º 3
0
 public PagingViewModel()
 {
     ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config"));
     if (ConnectionString != string.Empty)
     {
         dataManager = new OlapDataManager(ConnectionString);
         SetOlapDataManager();
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportsinCodeViewModel"/> class.
 /// </summary>
 public ReportsinCodeViewModel()
 {
     ConnectionString     = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config"));
     showAllMemberCommand = new DelegateCommand <bool>(ToggleShowAllMember);
     chartTypeCommand     = new DelegateCommand <object>(ToggleSelection);
     reportTypeCommand    = new DelegateCommand <object>(ToggleReportSelection);
     olapDataManager      = new OlapDataManager(ConnectionString);
     olapDataManager.SetCurrentReport(SimpleReport());
 }
Ejemplo n.º 5
0
 public PieChartViewModel()
 {
     ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config"));
     if (ConnectionString != String.Empty)
     {
         dataManager = new OlapDataManager(ConnectionString);
         dataManager.SetCurrentReport(SimpleDimensions());
         dataManager.CurrentReport.ChartSettings.LabelsVisibility = true;
     }
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XAMLConfigViewModel"/> class.
 /// </summary>
 public XAMLConfigViewModel()
 {
     if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_"))
     {
         olapConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config"));
     }
     else
     {
         olapConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config"));
     }
 }
 public OlapChartConfiguration()
 {
     InitializeComponent();
     if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_"))
     {
         this.designerSettings.ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config"));
     }
     else
     {
         this.designerSettings.ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config"));
     }
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DrillTypesViewModel"/> class.
 /// </summary>
 public DrillTypesViewModel()
 {
     if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_"))
     {
         ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config"));
     }
     else
     {
         ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config"));
     }
     olapDataManager = new OlapDataManager(ConnectionString);
     olapDataManager.SetCurrentReport(CreateOlapReport("Drill Member"));
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChartAppearanceViewModel"/> class.
 /// </summary>
 public ChartAppearanceViewModel()
 {
     if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_"))
     {
         ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config"));
     }
     else
     {
         ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config"));
     }
     olapDataManager = new OlapDataManager(ConnectionString);
     olapDataManager.SetCurrentReport(SimpleDimensions());
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SalesReasonAnalysisViewModel"/> class.
 /// </summary>
 public SalesReasonAnalysisViewModel()
 {
     if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_"))
     {
         ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config"));
     }
     else
     {
         ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config"));
     }
     olapDataManager = new OlapDataManager(ConnectionString);
     olapDataManager.SetCurrentReport(OlapReport());
     olapDataManager.CurrentReport.ChartSettings.LabelsVisibility = true;
 }
Ejemplo n.º 11
0
 public PagingViewModel()
 {
     if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_"))
     {
         ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config"));
     }
     else
     {
         ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config"));
     }
     if (ConnectionString != string.Empty)
     {
         dataManager = new OlapDataManager(ConnectionString);
         SetOlapDataManager();
     }
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportsinCodeViewModel"/> class.
 /// </summary>
 public ReportsinCodeViewModel()
 {
     if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_"))
     {
         ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config"));
     }
     else
     {
         ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config"));
     }
     showAllMemberCommand = new DelegateCommand <bool>(ToggleShowAllMember);
     chartTypeCommand     = new DelegateCommand <object>(ToggleSelection);
     reportTypeCommand    = new DelegateCommand <object>(ToggleReportSelection);
     olapDataManager      = new OlapDataManager(ConnectionString);
     olapDataManager.SetCurrentReport(SimpleReport());
 }
Ejemplo n.º 13
0
 public PieChartViewModel()
 {
     if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_"))
     {
         ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config"));
     }
     else
     {
         ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config"));
     }
     if (ConnectionString != String.Empty)
     {
         dataManager = new OlapDataManager(ConnectionString);
         dataManager.SetCurrentReport(SimpleDimensions());
         dataManager.CurrentReport.ChartSettings.LabelsVisibility = true;
     }
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportInFileViewModel"/> class.
 /// </summary>
 public ReportInFileViewModel()
 {
     if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_"))
     {
         ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config"));
     }
     else
     {
         ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config"));
     }
     this.olapDataManager = new OlapDataManager(ConnectionString);
     if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_"))
     {
         this.olapDataManager.LoadReportDefinitionFile(System.IO.Path.GetFullPath(@"..\..\common\Assets\Common\Data\CubeModelTemplates\ReportDefenitionFile.xml"));
     }
     else
     {
         this.olapDataManager.LoadReportDefinitionFile(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Common\Data\CubeModelTemplates\ReportDefenitionFile.xml"));
     }
     this.olapDataManager.LoadReport(this.olapDataManager.Reports[0].Name);
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DrillStateViewModel"/> class.
 /// </summary>
 public DrillStateViewModel()
 {
     ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config"));
     olapDataManager  = new OlapDataManager(ConnectionString);
     olapDataManager.SetCurrentReport(CreateOlapReport());
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SalesOfProductsAnalysisViewModel"/> class.
 /// </summary>
 public SalesOfProductsAnalysisViewModel()
 {
     ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config"));
     olapDataManager  = new OlapDataManager(ConnectionString);
     olapDataManager.SetCurrentReport(OlapReport());
 }
Ejemplo n.º 17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MDXQueryViewModel"/> class.
 /// </summary>
 public MDXQueryViewModel()
 {
     ConnectionString         = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config"));
     olapDataManager          = new OlapDataManager(ConnectionString);
     olapDataManager.MdxQuery = CurrentMDXQuery = SimpleDimensions();
 }
Ejemplo n.º 18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KPIViewModel"/> class.
 /// </summary>
 public KPIViewModel()
 {
     ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config"));
     olapDataManager  = new OlapDataManager(ConnectionString);
     olapDataManager.SetCurrentReport(SimpleDimensions());
 }
Ejemplo n.º 19
0
 public OlapChartConfiguration()
 {
     InitializeComponent();
     this.designerSettings.ConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config"));
 }
Ejemplo n.º 20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XAMLConfigViewModel"/> class.
 /// </summary>
 public XAMLConfigViewModel()
 {
     olapConnectionString = OlapChartModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config"));
 }