婴幼儿毛衣编织,soe-951,爱上恶魔总裁
这篇我们学习水晶报表,报表呈现的数据源是ienumerable<t>。比如下面的数据:
using system; using system.collections.generic; using system.linq; using system.web; using insus.net.models; namespace insus.net.entities { public class machineentity { public ienumerable<machine> machines() { return new list<machine>() { { new machine() { key =1, modelnumber ="tc03q", brand ="qt", manufacturedate = convert.todatetime("2008/12/31")} }, { new machine() { key =2, modelnumber ="mh26u", brand ="hw", manufacturedate = convert.todatetime("2012/03/09")} }, { new machine() { key =3, modelnumber ="dw569", brand ="xm", manufacturedate = convert.todatetime("2015/07/25")} } }; } } }
新建水晶报表:
按next铵钮,略过group by。
铵next铵钮,略过filter fields。
报表创建ok。
根据这篇《asp.net mvc项目实现basepage基类用作aspx.cs网页继承》
我们还得在basepage基类中,重载另一个方法:
在.aspx.cs网页中,就可以使用上面的方法:
程序运行:
学习完毕。
希望对你有所帮助。
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Net Core Web Api项目与在NginX下发布的方法
asp.net core3.1 引用的元包dll版本兼容性问题解决方案
IdentityServer4实现.Net Core API接口权限认证(快速入门)
ASP.NET Core MVC通过IViewLocationExpander扩展视图搜索路径的实现
网友评论