-- 作者:ajie5211
-- 发布时间:2018/11/9 9:28:00
-- [求助]组合多个统计结果用年月日
下面这种组合报错,怎么整?
Dim g As New GroupTableBuilder("统计表1", DataTables("订单查询与统计_Table2")) Dim dt1 As fxDataSource g.Groups.AddDef("下单日期", DateGroupEnum.Year, "年") g.Groups.AddDef("下单日期", "月") g.Groups.AddDef("下单日期", DateGroupEnum.Day, "日") g.Totals.AddDef("总线数", "接单",True) dt1 = g.BuildDataSource()
Dim g1 As New GroupTableBuilder("统计表2", DataTables("订单查询与统计_Table3")) Dim dt2 As fxDataSource g1.Groups.AddDef("下单日期", DateGroupEnum.Year, "年") g1.Groups.AddDef("下单日期", "月") g1.Groups.AddDef("下单日期", DateGroupEnum.Day, "日") g1.Totals.AddDef("取消线数", "取消",True) dt2 = g1.BuildDataSource()
dt1.Combine("年,月,日",dt2,"年,月,日") Tables("订单查询与统计_Table1").DataSource = dt1
错误提示如下 此主题相关图片如下:3333.png
|