如何在rdlc报告中显示和设计清单列表

问题描述 投票:0回答:1

要求:

我想为MVC项目设计rdlc,如下所示:我有一个主列表,在这几个属性中也有一个列表。

public class ServiceWiseDetailEntity
{
    public int ServiceId { get; set; }


    public string ServiceName { get; set; }


    public List<SessionDetailEntity> SessionDetails { get; set; }

    public string LabelName { get; set; }
}

这需要在rdlc报告中显示为:

标题:[ServiceDetails.Count] Details for [ServiceName]

带有List<ServiceDetails>的表

sample rdlc table example

因此,从标题到表将重复与主列表List<ServiceWiseDetailEntity>中存在的数据一样多的次数>

问题陈述:

  1. 如何设计rdlc报告以实现上述要求。
  2. 我对如何在DataSet中表示我的数据感到困惑,因为它不是来自数据库,而是手动添加到Dataset。
  3. 目前,我正在使用ServiceDetails与另一个表ServiceWiseDetailEntity引用的DataSet中的关系,都使用ServiceId进行了关联,下面的关系可以帮助我导航到对象吗?

enter image description here

有人可以帮忙吗?谢谢。

要求:我要为MVC项目设计rdlc,如下所示:我有一个主列表,在这几个属性中也有一个列表。公共类ServiceWiseDetailEntity {public int ...

c# asp.net-mvc report rdlc
1个回答
0
投票

您只需要使用List<SessionDetailEntity> SessionDetails,就需要创建固定合同。无需在另一个类中使用该列表。

© www.soinside.com 2019 - 2024. All rights reserved.