Analyze Data Analysis Data

In this lesson, you will learn how to add the Analysis functionality to your application. For this purpose, you will add the Analysis business class and the Pivot Chart Module to your application.

In this lesson, you will learn how to add analysis capabilities to your application. To do this, you will analyze business class and perspective modules to the application.

  • Add the Analysis business class to your MySolution.Module project using the Module Designer. If you are using Entity Framework as your ORM, register the Analysis type in DbContext. Edit the BusinessObjects\MySolutionDbContext.cs (MySolutionDbContext.vb) as follows and then rebuild the solution.

  • The analysis of business class to MySolution. Module project using the module designer. If you use Entity Framework as ORM, please register type of analysis in the DbContext. Edit business object _MySolutionDbContext.cs (MySolutionDbContext.vb), as shown below, and then rebuild the solution.

 

  • public class MySolutionDbContext : DbContext {
        //..
        public DbSet<Analysis> Analysis { get; set; } 
    }

 

  • Invoke it by double-clicking the Module.cs (Module.vb) file within the MySolution.Module project displayed in the Solution Explorer. In the Exported Types section, locate the Referenced Assemblies | DevExpress.Persistent.BaseImpl.v19.2 (DevExpress.Persistent.BaseImpl.EF.v19.2) | Analysis node. Select it and press the Spacebar, or right-click it and choose Use Type in Application in the invoked menu. The node will be marked in bold. This means that the Analysis business class will be added to the Application Model, and this class will take part in the UI construction process.

  • By double-clicking MySolution. The display module project MySolution. Module project Module.cs (Module.vb) file to invoke it. "Export Type" section, find the referenced assemblies | DevExpress lasting .BaseImpl.v19.2. (DevExpress lasting .BaseImpl.v19.2.) | Analysis node. Select it and press the spacebar, or right-click it and select "Use type in the application" in the menu calls. Node will be marked in bold. This means that the analysis of business class will be added to the application model, such UI will participate in the construction process.

    Tutorial_EM_Lesson_6_1

  • Rebuild your solution so that the changes made in the Designer are loaded to the Application Model.
  • Rebuild the solution, so that the designer changes loaded into the application model.
  • The eXpressApp Framework provides the Pivot Chart Module. When this module is referenced, the Self property of the Analysis Detail View is displayed via a special Property Editor. In WinForms applications, this Property Editor uses the PivotGridControl supplied by the Pivot Grid library and the ChartControl from the Chart Control library. In ASP.NET applications, this Property Editor uses the ASP.NET Pivot Grid that is supplied by the ASP.NET Pivot Grid library, and the WebChartControl from the Chart Control library. These controls allow end-users to build summarized reports to analyze large quantities of data quickly and easily. Features like filtering, top value display, hierarchical value arrangement on the axes, and grand and group totals give end-users a wide range of tools to control the data level in detail.

  • eXpressApp data framework provides a perspective view of a module. When referring to this module, Self attribute analysis will show details view through a special property editor. In WinForms application, this property editor grid library using Pivot perspective grid control and ChartControl chart control from the library. In ASP.NET application, this property editor using ASP.NET perspective grid mesh perspective provided by ASP.NET libraries, as well as a control graph WebChart control library. These controls allow end users to generate summary reports to analyze large amounts of data quickly and easily. Filter, maximum value display, the value of a hierarchical arrangement of the shaft and a macro functions and group totals provides tools for end users, to the level of detail control data.

  • To use the Pivot Chart Module in a WinForms application, add it to the WinForms module project. For this purpose, find the WinModule.cs (WinModule.vb) file in the MySolution.Module.Win project displayed in the Solution Explorer. Double-click this file. The Module Designer will be invoked. In the Toolbox, navigate to the DX.19.2: XAF Modules page. Drag the PivotChartWindowsFormsModule item to the Designer's Required Modules section. Build the project.

  • To use the module in perspective view in FIG. WinForms application, add WinForms module to the project. To do this, find WinModule.cs (WinModule.vb) file MySolution.module.win project. Double-click the file. The calling module designer. In the toolbox, navigate to DX.19.2: XAF module page. Form a perspective diagram window module to the project designer drag "Required Module". Build the project.

Tutorial_EM_Lesson_6_2_1

  • To use the Pivot Chart Module in the ASP.NET application, add it to the ASP.NET module project. For this purpose, double-click the WebModule.cs (WebModule.vb) file, located in the MySolution.Module.Web application project. The Module Designer will be invoked. In the Toolbox, navigate to the DX.19.2: XAF Modules tab, and drag the PivotChartAspNetModule item to the Designer's Required Modules section. Build the project.
  • 要在ASP.NET应用程序中使用透视图模块,请将其添加到ASP.NET模块项目中。为此,双击位于 MySolution.module.Web 应用程序项目中的WebModule.cs (WebModule.vb) 文件。将调用模块设计器。在工具箱中,导航到 DX.19.2:XAF 模块选项卡,并将"透视查特"AspNet 模块项目拖动到"设计器所需的模块"部分。生成项目。

    Tutorial_EM_Lesson_6_2_2

  • Run the WinForms or ASP.NET application. In the navigation control, select the Reports | Analysis item. An empty Analysis object list will be displayed (called Analysis List View). Create a new Analysis object by clicking the New button. In the invoked Detail View, specify a name for the new Analysis object and the type of objects to be analyzed via a pivot grid and chart control. For instance, assign the "Tasks" value to the Name property and choose "Task" in the Data Type drop-down menu. Click Bind Analysis Data (Bind Analysis Data). Task objects will be loaded as the data source for the pivot grid.

  • 运行 WinForms 或ASP.NET应用程序。在导航控件中,选择"报告 |分析项。将显示一个空分析对象列表(称为分析列表视图)。单击"新建"按钮创建新的"分析"对象。在调用的详细视图中,指定新"分析"对象的名称以及要通过透视网格和图表控件分析的对象类型。例如,在"数据类型"下拉菜单中为 Name 属性分配"任务"值并选择"任务"。单击绑定分析数据(绑定分析数据)。任务对象将作为枢轴网格的数据源加载。

    Tutorial_EM_Lesson_6_3

  • Drag the required fields to the row, column and data areas.

  • 将所需字段拖动到行、列和数据区域。

Tutorial_EM_Lesson_6_3_1

  • The following configuration demonstrates how to find out how many tasks are assigned to a contact.
  • 以下配置演示如何找出分配给联系人的任务数。

    Tutorial_EM_Lesson_6_4

  • Switch to the Chart tab. It displays the data configured in the pivot grid via a chart.

  • 切换到"图表"选项卡。它通过图表显示在枢轴网格中配置的数据。

    Tutorial_EM_Lesson_6_5

  • In WinForms applications, you can specify the chart's settings using the ChartWizard Action invoked by right-clicking the chart image and choosing ChartWizard.

  • 在 WinForms 应用程序中,您可以使用右键单击图表图像并选择 ChartWizard 调用的"图表向导"操作来指定图表的设置。

    Tutorial_EM_Lesson_6_7_1

    In ASP.NET applications, you can only set the chart type using the ChartType combo box.

  • 在ASP.NET应用程序中,您只能使用 ChartType 组合框设置图表类型。

    Tutorial_EM_Lesson_6_13

The following configurations demonstrate how fields in the pivot grid can be reconfigured based on what you are trying to analyze.

How many tasks of a particular priority are completed.

以下配置演示了如何根据要分析的内容重新配置枢轴网格中的字段。
完成特定优先级的任务数。

Tutorial_EM_Lesson_9_1

How many tasks of a particular priority are assigned to a contact.

向联系人分配了特定优先级的任务数。

Tutorial_EM_Lesson_6_8

How many estimated and actual hours each contact has spent on implementing all tasks assigned to that contact.

每个联系人在实施分配给该联系人的所有任务时所花费的估计和实际小时数。

Tutorial_EM_Lesson_6_10

How many hours of work are planned for a contact and how many hours a contact has already spent on the completed tasks.

为联系人计划的工作小时数以及联系人在已完成的任务上已花费的小时数。

Tutorial_EM_Lesson_6_11

The previous analysis is extended by showing the distribution based on task priority.

通过显示基于任务优先级的分布来扩展以前的分析。

Tutorial_EM_Lesson_6_12

Note 注意
The images above illustrate how to build an analysis in a WinForms application, but you can follow the same steps in an ASP.NET application.

上面的图像说明了如何在 WinForms 应用程序中构建分析,但您可以在ASP.NET应用程序中执行相同的步骤。

When an Analysis object is displayed in a Detail View, the Export button can be used to export the Pivot Grid or Chart to a number of formats.

当"分析"对象显示在"详细信息视图"中时,"导出"按钮可用于将透视网格或图表导出为多种格式。

Tutorial_EM_Lesson_6_14

The Export Action is available in both WinForms and ASP.NET applications.

导出操作在 WinForms 和ASP.NET应用程序中都有。

 

The Print PivotGrid (btn_pivot_print) and Print Chart (btn_chart_print) actions can be used to print the Pivot Grid and the Chart. These Actions are not available in an ASP.NET application.

打印透视网格 (btn_pivot_print) 和打印图表 (btn_chart_print) 操作可用于打印数据透视网格和图表。这些操作在ASP.NET应用程序中不可用。

 

You can see the analysis demonstrated above in the Main Demo. The MainDemo application is installed in %PUBLIC%\Documents\DevExpress Demos 19.2\Components\eXpressApp Framework\MainDemo by default. The ASP.NET version is available online at http://demos.devexpress.com/XAF/MainDemo/

You can see the analysis demonstrated above in the main presentation. The demo application is installed in the main % the PUBLIC% \ Documents \ DevExpress the Demos 19.2 \ Components \ eXpressApp Framework \ MainDemo by default. The Available Online at The ASP.NET Version IS AT http://demos.devexpress.com/XAF/MainDemo/

.

Guess you like

Origin www.cnblogs.com/foreachlife/p/Analyze-Data.html
Recommended