예제 #1
0
 /// <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());
 }
예제 #2
0
 /// <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);
 }
예제 #3
0
        /// <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());
        }
예제 #4
0
 /// <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());
 }
예제 #5
0
 /// <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();
 }
예제 #6
0
 /// <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());
        }
예제 #8
0
 /// <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);
 }
예제 #9
0
 /// <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());
 }
예제 #10
0
 /// <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();
 }
예제 #11
0
 /// <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());
 }
예제 #13
0
 /// <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();
 }