/// <summary> /// Initializes a new instance of the <see cref="TransactionViewModel"/> class. /// </summary> public TransactionViewModel() { modelObject = new TransactionModel(); ConnectionString = KPIModel.InitializeTransaction(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config")); olapDataManager = new OlapDataManager(ConnectionString); olapDataManager.SetCurrentReport(CreateReport()); }
/// <summary> /// Initializes a new instance of the <see cref="ReportInFileViewModel"/> class. /// </summary> public ReportInFileViewModel() { ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config")); this.olapDataManager = new OlapDataManager(ConnectionString); ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config")); this.olapDataManager.LoadReportDefinitionFile(System.IO.Path.GetFullPath(@"Assets\Olap\Data\CubeModelTemplates\ReportDefenitionFile.xml")); this.olapDataManager.LoadReport(this.olapDataManager.Reports[0].Name); }
/// <summary> /// Initializes a new instance of the <see cref="DrillThroughReportViewModel"/> class. /// </summary> public DrillThroughReportViewModel() { ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config")); dataProvider = new AdomdDataProvider(ConnectionString); olapDataManager1 = new OlapDataManager(dataProvider); olapDataManager1.SetCurrentReport(ResellerSalesReport()); dataManager2 = new OlapDataManager(dataProvider); dataManager2.SetCurrentReport(ProductPromotionReport()); }
/// <summary> /// Initializes a new instance of the <see cref="OlapGridDemoViewModel"/> class. /// </summary> public OlapGridDemoViewModel() { if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_")) { ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config")); } else { ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config")); } olapDataManager = new OlapDataManager(ConnectionString); olapDataManager.SetCurrentReport(OlapGridDemoModel.Report()); }
/// <summary> /// Initializes a new instance of the <see cref="MDXQueryViewModel"/> class. /// </summary> public MDXQueryViewModel() { if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_")) { ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config")); } else { ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config")); } olapDataManager = new OlapDataManager(ConnectionString); olapDataManager.MdxQuery = CurrentMDXQuery = SimpleDimensions(); }
/// <summary> /// Initializes a new instance of the <see cref="TransactionViewModel"/> class. /// </summary> public TransactionViewModel() { modelObject = new TransactionModel(); if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_")) { ConnectionString = KPIModel.InitializeTransaction(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config")); } else { ConnectionString = KPIModel.InitializeTransaction(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config")); } olapDataManager = new OlapDataManager(ConnectionString); olapDataManager.SetCurrentReport(CreateReport()); }
/// <summary> /// Initializes a new instance of the <see cref="DrillThroughReportViewModel"/> class. /// </summary> public DrillThroughReportViewModel() { if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_")) { ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config")); } else { ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"..\..\..\common\Assets\Config\OLAPSample.config")); } dataProvider = new AdomdDataProvider(ConnectionString); olapDataManager1 = new OlapDataManager(dataProvider); olapDataManager1.SetCurrentReport(ResellerSalesReport()); dataManager2 = new OlapDataManager(dataProvider); dataManager2.SetCurrentReport(ProductPromotionReport()); }
/// <summary> /// Initializes a new instance of the <see cref="ReportInFileViewModel"/> class. /// </summary> public ReportInFileViewModel() { if (AppDomain.CurrentDomain.BaseDirectory.Contains("Binaries_")) { ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"..\..\common\Assets\Config\OLAPSample.config")); } else { ConnectionString = KPIModel.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); }
/// <summary> /// Initializes a new instance of the <see cref="ReportInCodeViewModel"/> class. /// </summary> public ReportInCodeViewModel() { ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config")); olapDataManager = new OlapDataManager(ConnectionString); olapDataManager.SetCurrentReport(SimpleReport()); }
/// <summary> /// Initializes a new instance of the <see cref="MDXQueryViewModel"/> class. /// </summary> public MDXQueryViewModel() { ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config")); olapDataManager = new OlapDataManager(ConnectionString); olapDataManager.MdxQuery = CurrentMDXQuery = SimpleDimensions(); }
/// <summary> /// Initializes a new instance of the <see cref="CellSelectionViewModel"/> class. /// </summary> public CellSelectionViewModel() { ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config")); olapDataManager = new OlapDataManager(ConnectionString); olapDataManager.SetCurrentReport(ProductSalesReport()); }
/// <summary> /// Initializes a new instance of the <see cref="MemberPropertiesViewModel"/> class. /// </summary> public MemberPropertiesViewModel() { ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config")); olapDataManager = new OlapDataManager(ConnectionString); olapDataManager.SetCurrentReport(ReportWithMemberProperties()); }
/// <summary> /// Initializes a new instance of the <see cref="GridPagingViewModel"/> class. /// </summary> public GridPagingViewModel() { ConnectionString = KPIModel.Initialize(System.IO.Path.GetFullPath(@"Assets\Config\OLAPSample.config")); olapDataManager = new OlapDataManager(ConnectionString); SetOlapDataManager(); }