如何实现如图的交叉分析?

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.

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.v16.1 (DevExpress.Persistent.BaseImpl.EF.v16.1) | 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.

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

      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.16.1: XAF Modules page. Drag the PivotChartWindowsFormsModule item to the Designer's Required Modules section. Build the project.

  • 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.16.1: XAF Modules tab, and drag the PivotChartAspNetModule item to the Designer's Required Modules section. Build the project.

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

注意:这时候默认自己做的实体不会出现在分析下拉列表里面。

需要在一个地方做配置。

XAF实现交叉分析的更多相关文章

  1. 11个Visual Studio代码性能分析工具

    软件开发中的性能优化对程序员来说是一个非常重要的问题.一个小问题可能成为一个大的系统的瓶颈.但是对于程序员来说,通过自身去优化代码是十分困难的.幸运的是,有一些非常棒的工具可以帮助程序员进行代码分析和 ...

  2. JTS Geometry关系判断和分析

    关系判断 Geometry之间的关系有如下几种: 相等(Equals): 几何形状拓扑上相等. 脱节(Disjoint): 几何形状没有共有的点. 相交(Intersects): 几何形状至少有一个共 ...

  3. 【转】Linux方向职业分析

    引言: 据了解,Linux普通网络管理人员的月薪大约5000元左右,负责编程的Linux软件工程师月薪大约在8000元到12000元之间,Linux嵌入式软件开发人员的月薪大约在12000元以上. 影 ...

  4. 推荐一个利用 python 生成 pptx 分析报告的工具包:reportgen

    reportgen v0.1.8 更新介绍 这段时间,我对 reportgen 进行了大工程量的修改和更新.将之前在各个文章中出现的函数进行了封装,同时也对现有工具包的一些逻辑进行了调整. 1.rep ...

  5. python 生成 pptx 分析报告的工具包:reportgen

    python机器学习-sklearn挖掘乳腺癌细胞( 博主亲自录制) 网易云观看地址 https://study.163.com/course/introduction.htm?courseId=10 ...

  6. .NET 11 个 Visual Studio 代码性能分析工具

    原文地址 软件开发中的性能优化对程序员来说是一个非常重要的问题.一个小问题可能成为一个大的系统的瓶颈.但是对于程序员来说,通过自身去优化代码是十分困难的.幸运的是,有一些非常棒的工具可以帮助程序员进行 ...

  7. 【Social listening实操】作为一个合格的“增长黑客”,你还得重视外部数据的分析!

    本文转自知乎 作者:苏格兰折耳喵 ----------------------------------------------------- 在本文中,作者引出了"外部数据"这一概 ...

  8. 空间分析开源库GEOS

    History of GEOS GEOS中Geometry的结构 GEOS分析功能简介 1.History of GEOS J​T​S​ ​T​o​p​o​l​o​g​y​ ​S​u​i​t​e是Ma ...

  9. 诸葛io | 精细化运营分析解决方案

    类型: 定制服务 软件包: business intelligence internet media solution collateral 联系服务商 产品详情 解决方案 概要 数据监测 ? 异常发 ...

随机推荐

  1. 项目引入Solr时应该考虑的一些问题

    1.数据更新频率:每天数据增量有多大,随时更新还是定时更新 2.数据总量:数据要保存多长时间 3.一致性要求:期望多长时间内看到更新的数据,最长允许多长时间延迟 4.数据特点:数据源包括哪些,平均单条 ...

  2. window7 和ubuntu 双系统时 ubuntu不能引导怎么办?

    假如你的Ubuntu的 / 分区是sda9,又假如 /boot分区是 sda6,在终端下输入sudo -imount /dev/sda7 /mntmount /dev/sda6 /mnt/boot ( ...

  3. Lambda03 方法引用、类型判断、变量引用

    1 方法引用 1.1 方法引用的好处 方法引用结合 Lambda 可以引用已存在的方法,省略很多编码,而且可读性更强,它可以自动装配参数与返回值. 在编写lambda表达式的时候可以通过方法引用的方式 ...

  4. Win10系统优化/设置脚本

    Win10系统优化/设置脚本 用了很长时间win10了,用的过程中,发现了一些问题,关于系统基本的优化,和个人的使用习惯设置等等,做成了一个脚本,可以一键设置win10的系统设置,结合DWS对Win1 ...

  5. orzdba工具安装注意事项

    orzdba是一个监控mysql性能的一个比较好用的perl脚本,是淘宝开源的小工具,下载地址http://code.taobao.org/p/orzdba/src/trunk/ 配置过程中除了参照& ...

  6. 在英文Win7操作系统上部署C#开发的Web系统出现乱码的解决方法

    今天,迁移机器,把一个使用C#开发的Web系统部署到一台英文版Win7操作系统上,部署好以后,系统可以登录,只是网页上出现汉字乱码. 在这台电脑上,打开Word等文本编辑器,是可以正常输入.显示中文的 ...

  7. Yii2验证登录得User类

    Yii2中的  Class yii\web\User 是如果进行验证登录,如果我们使用User类验证登录会给我们减少很多麻烦.在此就拿Yii2中自带的登录功能进行说明. 配置.在应用配置文件compo ...

  8. Shiro——认证概述

    认证流程 身份认证流程 首先调用 Subject.login(token) 进行登录,其会自动委托给SecurityManager SecurityManager 负责真正的身份验证逻辑:它会委托给A ...

  9. SVN常见问题及解决方式(一)

    1.每天早上上班要update SVN,每天下班要commit SVN.2.查看是谁动了我的代码,右键 tortoise 后查看 log 日志.3.文件被别人删除,在空白处右击,show log,可以 ...

  10. 升级Ubuntu 12.04下的gcc到4.7

    我们知道C++11标准开始支持类内初始化(in-class initializer),Qt creator编译出现error,不支持这个特性,原因在于,Ubuntu12.04默认的是使用gcc4.6, ...