XAF实现交叉分析
如何实现如图的交叉分析?
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实现交叉分析的更多相关文章
- 11个Visual Studio代码性能分析工具
软件开发中的性能优化对程序员来说是一个非常重要的问题.一个小问题可能成为一个大的系统的瓶颈.但是对于程序员来说,通过自身去优化代码是十分困难的.幸运的是,有一些非常棒的工具可以帮助程序员进行代码分析和 ...
- JTS Geometry关系判断和分析
关系判断 Geometry之间的关系有如下几种: 相等(Equals): 几何形状拓扑上相等. 脱节(Disjoint): 几何形状没有共有的点. 相交(Intersects): 几何形状至少有一个共 ...
- 【转】Linux方向职业分析
引言: 据了解,Linux普通网络管理人员的月薪大约5000元左右,负责编程的Linux软件工程师月薪大约在8000元到12000元之间,Linux嵌入式软件开发人员的月薪大约在12000元以上. 影 ...
- 推荐一个利用 python 生成 pptx 分析报告的工具包:reportgen
reportgen v0.1.8 更新介绍 这段时间,我对 reportgen 进行了大工程量的修改和更新.将之前在各个文章中出现的函数进行了封装,同时也对现有工具包的一些逻辑进行了调整. 1.rep ...
- python 生成 pptx 分析报告的工具包:reportgen
python机器学习-sklearn挖掘乳腺癌细胞( 博主亲自录制) 网易云观看地址 https://study.163.com/course/introduction.htm?courseId=10 ...
- .NET 11 个 Visual Studio 代码性能分析工具
原文地址 软件开发中的性能优化对程序员来说是一个非常重要的问题.一个小问题可能成为一个大的系统的瓶颈.但是对于程序员来说,通过自身去优化代码是十分困难的.幸运的是,有一些非常棒的工具可以帮助程序员进行 ...
- 【Social listening实操】作为一个合格的“增长黑客”,你还得重视外部数据的分析!
本文转自知乎 作者:苏格兰折耳喵 ----------------------------------------------------- 在本文中,作者引出了"外部数据"这一概 ...
- 空间分析开源库GEOS
History of GEOS GEOS中Geometry的结构 GEOS分析功能简介 1.History of GEOS JTS Topology Suite是Ma ...
- 诸葛io | 精细化运营分析解决方案
类型: 定制服务 软件包: business intelligence internet media solution collateral 联系服务商 产品详情 解决方案 概要 数据监测 ? 异常发 ...
随机推荐
- RT2870移植到s3c2416后续验证无线…
我的无线网卡显示的事ra0,所以把下面的wlan0换成ra0即可:视自己的情况而定 1. 打开无线网卡电源 iwconfig wlan0 txpower on 2. 列出区域内的无线网络 iwlist ...
- Tornado 类与类组合降低耦合
- 【原创】5. MYSQL++ mysql_type_info类型
该类型是SQLBuffer的灵魂,它用来表示从SQL TYPE到C++ TYPE的相互转变.该类型被定义在type_info.h中.在这个头文件中,其实定义了三个类型,其中前两个都是在mysql_ty ...
- xamarin.droid自己的示例工程有些都装不上模拟器,是因为它的architectures选项没设对
也许是版本更迭导致的,有些老工程的architectures不对,如果x86不勾的话,是不能在genymotion的模拟器上跑的.
- caret 分类回归树 用法
http://topepo.github.io/caret/feature-selection-overview.html
- Ubuntu下成功安装台式机网卡realtek的rtl8188eu芯片驱动并实现AP功能
1,下载驱动 https://github.com/lwfinger/rtl8188eu 使用注意: https://github.com/lwfinger/rtl8188eu/issues/3 2. ...
- SEO网站结构优化
结构布局优化:用扁平化结构(层次结构超过三层小蜘蛛就不愿意爬了) 控制首页链接数量(中小网站100以内,页面导航.底部导航.锚文字链接等) 扁平化的目录层次(小蜘蛛跳转3次可以到达网站内任何一个内页, ...
- Visual Studio OpenCV 开发环境配置
因为VS配置OpenCV好多新手都很难一次配置成功,而且OpenCV库每新建一个项目都要配置很是麻烦,所以今天就给大家介绍一个“一劳永逸”的方法. 注:理论上只要VS和OpenCV是版本兼容的,该方法 ...
- SqlServer删除重复数据的方法
方法一 declare @max integer,@id integer open cur_rows fetch cur_rows into @id,@max begin set rowcount @ ...
- access denied for user 'root'@'localhost'
编辑mysql配置文件my.ini(在mysql的安装目录下,我的在D:\Program Files\MySQL\MySQL Server 5.0\my.ini),在[mysqld]这个条目下加入 s ...