string[] decimalControl = "kcsl".Split(‘,‘);----定义汇总字段
this.ReportProperty.IsGroupSummary = true;---开启汇总功能
public override List<Kingdee.BOS.Core.Report.SummaryField> GetSummaryColumnInfo(IRptParams filter)----传递参数,对过滤界面选择的分组字段相应的字段求和
{
List<Kingdee.BOS.Core.Report.SummaryField> list = new List<Kingdee.BOS.Core.Report.SummaryField>();
string[] sumField = decimalControl;
for (int i = 0; i < sumField.Count(); i++)
{
list.Add(new Kingdee.BOS.Core.Report.SummaryField(sumField[i], Kingdee.BOS.Core.Enums.BOSEnums.Enu_SummaryType.SUM));
}
return list;
}
时间: 2024-10-21 12:32:52