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.

在本课中,您将学习如何将分析功能添加到应用程序中。为此,您将将分析业务类和透视图模块添加到应用程序中。

  • 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.

  • 使用模块设计器将分析业务类添加到 MySolution.模块项目。如果使用实体框架作为 ORM,请在 DbContext 中注册分析类型。编辑业务对象_MySolutionDbContext.cs (MySolutionDbContext.vb),如下所示,然后重建解决方案。

  • 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.

  • 通过双击 MySolution.模块项目中显示的 MySolution.模块项目中的Module.cs(Module.vb)文件来调用它。在"导出的类型"部分中,找到引用的程序集 |DevExpress.持久.BaseImpl.v19.2 (DevExpress.持久.BaseImpl.v19.2) |分析节点。选择它并按空格键,或右键单击它,并在调用的菜单中选择"在应用程序中使用类型"。节点将以粗体标记。这意味着分析业务类将添加到应用程序模型中,此类将参与 UI 构造过程。

  • Rebuild your solution so that the changes made in the Designer are loaded to 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 框架提供数据透视图模块。引用此模块时,分析详细信息视图的 Self 属性将通过特殊的属性编辑器显示。在 WinForms 应用程序中,此属性编辑器使用数据透视网格库提供的透视网格控件和来自图表控件库的 ChartControl。在ASP.NET应用程序中,此属性编辑器使用由ASP.NET透视网格库提供的ASP.NET透视网格,以及图表控制库中的 WebChart 控件。这些控件允许最终用户生成汇总报告,以便快速轻松地分析大量数据。筛选、最高值显示、轴上的分层值排列以及宏和组总计等功能为最终用户提供了各种工具,以详细控制数据级别。

  • 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.

  • 要在 WinForms 应用程序中使用透视图模块,请将其添加到 WinForms 模块项目中。为此,在 MySolution.module.win 项目中查找WinModule.cs (WinModule.vb) 文件。双击此文件。将调用模块设计器。在工具箱中,导航到 DX.19.2:XAF 模块页面。将透视图表窗口窗体模块项目拖动到设计器的"必需模块"部分。生成项目。

  • 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 模块项目拖动到"设计器所需的模块"部分。生成项目。

  • 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 (). Task objects will be loaded as the data source for the pivot grid.

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

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

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

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

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

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

  • 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 调用的"图表向导"操作来指定图表的设置。

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

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

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.

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

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

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

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

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

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

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

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

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

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.

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

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

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

The Print PivotGrid () and Print Chart () 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/

您可以在主演示中看到上面演示的分析。主演示应用程序安装在%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/

.

Analyze Data 分析数据的更多相关文章

  1. jQuery1.9.1源码分析--数据缓存Data模块

    jQuery1.9.1源码分析--数据缓存Data模块 阅读目录 jQuery API中Data的基本使用方法介绍 jQuery.acceptData(elem)源码分析 jQuery.data(el ...

  2. jQuery 2.0.3 源码分析 数据缓存

    历史背景: jQuery从1.2.3版本引入数据缓存系统,主要的原因就是早期的事件系统 Dean Edwards 的 ddEvent.js代码 带来的问题: 没有一个系统的缓存机制,它把事件的回调都放 ...

  3. [转] Oracle analyze 命令分析

    转自:http://blog.sina.com.cn/s/blog_682841ba0101bncp.html 1.analyze table t1 compute statistics for ta ...

  4. 新秀nginx源代码分析数据结构篇(四)红黑树ngx_rbtree_t

    新秀nginx源代码分析数据结构篇(四)红黑树ngx_rbtree_t Author:Echo Chen(陈斌) Email:chenb19870707@gmail.com Blog:Blog.csd ...

  5. HDFS源码分析数据块校验之DataBlockScanner

    DataBlockScanner是运行在数据节点DataNode上的一个后台线程.它为所有的块池管理块扫描.针对每个块池,一个BlockPoolSliceScanner对象将会被创建,其运行在一个单独 ...

  6. Data - 大数据生态圈

    本文内容来自网络,对原文内容和格式做了细微调整,并配图以便阅读理解. 如想查看初始信息,请点击原文. 00 引言 大数据本身是个很宽泛的概念,Hadoop生态圈(或者泛生态圈)基本上都是为了处理超过单 ...

  7. Data - 大数据分析学习之路

    一.大数据分析的五个基本方面 可视化分析 大数据分析的使用者有大数据分析专家,同时还有普通用户,但是他们二者对于大数据分析最基本的要求就是可视化分析,因为可视化分析能够直观的呈现大数据特点,同时能够非 ...

  8. 科学计算:Python 分析数据找问题,并图形化

    对于记录的数据,如何用 Python 进行分析.或图形化呢? 本文将介绍 numpy, matplotlib, pandas, scipy 几个包,进行数据分析.与图形化. 准备环境 Python 环 ...

  9. 使用winpcap多线程抓包,以及简单的分析数据包

    刚开始使用winpcap数据包的时候,我在抓包的时候使用了 pcap_loop(adhandle, 0, packet_handler, NULL); 这个回调函数进行抓包.同时在回调函数中分析IP地 ...

随机推荐

  1. idea object is not a member of package

    可能的原因: 1. pom.xml 依赖的工程没有deploy, 所有需要本地install改工程 2. 工程以来的库没有加入到 pom.xml中 3. 以上都没有问题,则右键该工程 => ma ...

  2. Chrome快捷键吐血整理

    Chrom是平时开发过程中最常用到的浏览器,使用快捷键操作Chrome能提高我们的使用效率,而且可以脱离鼠标进行操作.本篇博客就对平时我们常用的Chrome快捷键做一个整理总结.大家拿走不谢,哈哈~~ ...

  3. luogu P3807 【模板】卢卡斯定理

    求 C(n,n+m)%p C(m,n)%p=C(m%p,n%p)*C(m/p,n/p) #include<cstdio> #include<cstring> #include& ...

  4. 记录我的 python 学习历程-Day05 字典/字典的嵌套

    一.字典的初识 为什么要有字典 字典与列表同属容器型数据类型,同样可以存储大量的数据,但是,列表的数据关联性不强,并且查询速度比较慢,只能按照顺序存储. 什么是字典 先说一下什么叫可变与不可变的数据类 ...

  5. seaborn 数据可视化(二)带有类别属性的数据可视化

    Seaborn的分类图分为三类,将分类变量每个级别的每个观察结果显示出来,显示每个观察分布的抽象表示,以及应用统计估计显示的权重趋势和置信区间: 第一个包括函数swarmplot()和stripplo ...

  6. 【HTTP】267- HTTP 的15个常见知识点复习

    前言 自从入职新公司到现在,我们前端团队内部一直在做 ?每周一练 的知识复习计划,我之前整理了一个 [每周一练 之 数据结构与算法] (https://juejin.im/post/5ce2a20e6 ...

  7. ruby 使用 rqrcode 生成二维码

    参考:  https://github.com/whomwah/rqrcode 1.  gem 'rqrcode' 2.  在helper中: require 'base64' def generat ...

  8. Vue中兄弟组件间传值-(Bus/总线/发布订阅模式/观察者)

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  9. Cisco学习记录(一):Cisco Packet Tracer官网下载方法

    通过Cisco Packet Tracer学习计算机网络知识 本人大三狗一枚,一直以来都在学java, python, web开发的我,经过一番决定,毅然决然要开始深入学习计算机网络!通过Cisco ...

  10. Oracle用户、角色、权限

    一.Oracle权限 系统权限:系统规定用户使用数据库的权限.(系统权限是对用户而言) 对象权限:某种权限用户对其它用户的表或视图的存取权限.(是针对表或视图而言的) 1.Oracle系统权限 ​ o ...