--
Dim t As Table = Tables("用户管理")
Dim g As Subtotalgroup
t.SubtotalGroups.Clear()
t.GroupAboveData = False
t.TreeVisible = False
t.SpillNode = True
g = New Subtotalgroup
g.Aggregate = AggregateEnum.Count
g.GroupOn = "来电时间"
g.TotalOn = "来电内容"
g.Caption = "{0}月 接单小计"
g.DateGroup = DateGroupEnum.Month
t.SubtotalGroups.Add(g)
g = New Subtotalgroup
g.Aggregate = AggregateEnum.Sum
g.GroupOn = "来电时间"
g.TotalOn = "是否解决"
g.Caption = "{0}月 处理完成小计"
g.DateGroup = DateGroupEnum.Month
t.SubtotalGroups.Add(g)
g = New SubtotalGroup
g.Aggregate = AggregateEnum.Count
g.GroupOn = "来电时间"
g.TotalOn = "来电内容"
g.Caption = "{0}年 接单统计"
g.DateGroup = DateGroupEnum.Year
t.SubtotalGroups.Add(g)
g = New SubtotalGroup
g.Aggregate = AggregateEnum.Sum
g.GroupOn = "来电时间"
g.TotalOn = "是否解决"
g.Caption = "{0}年 处理完成统计"
g.DateGroup = DateGroupEnum.Year
t.SubtotalGroups.Add(g)
g = New Subtotalgroup
g.Aggregate = AggregateEnum.Count
g.GroupOn = "*"
g.TotalOn = "来电内容"
g.Caption = "接单总计"
t.SubtotalGroups.Add(g)
g = New Subtotalgroup
g.Aggregate = AggregateEnum.Sum
g.GroupOn = "*"
g.TotalOn = "是否解决"
g.Caption = "处理完成总计"
t.SubtotalGroups.Add(g)
t.Subtotal()