Dim jb As New SQLJoinTableBuilder("查询表1","第一季度") jb.AddCols("单位","第一季度_1月","第一季度_2月","第一季度_3月") Dim d As fxDataSource = jb.BuildDataSource() jb = New SQLJoinTableBuilder("查询表1","第二季度") jb.AddCols("单位","第二季度_4月","第二季度_5月","第二季度_6月") Dim d1 As fxDataSource = jb.BuildDataSource() jb = New SQLJoinTableBuilder("查询表1","第三季度") jb.AddCols("单位","第三季度_7月","第三季度_8月","第三季度_9月") Dim d2 As fxDataSource = jb.BuildDataSource() d.Combine("单位",d1,"单位") d.Combine("单位",d2,"单位") d.Show("查询表1") Tables("查询表1").Visible = False DataTables("统计").DataRows.Clear Dim f As New Filler f.SourceTable = DataTables("查询表1") '指定数据来源 f.DataTable = DataTables("统计") '指定数据接收表 f.Fill() '填充数据 Tables("统计").AutoSizeCols MainTable = Tables("统计")
|