简体   繁体   English

C#中的rdlc报告,ASP.net

[英]rdlc report in C#, ASP.net

In report I have follwing Coloumns 在报告中,我关注了Coloumns

TIN_Number,Period,Tax_pay,Tax_credited

i have period in 4 quater per year. 我每年有4个季度。 for example If I am giving period between 200704 to 200903 than it is printing 200706,200709,200712,200803,200806,200809,200812,200903 for one TIN number on one row each having same TIN number. 例如如果我给之间周期200704200903比正在打印200706,200709,200712,200803,200806,200809,200812,200903一个TIN号码上的一个行的每个具有相同数目TIN。 I want to seprate this period in quarter wise formate. 我想把这一时期分为四分之一。 i want to display sum of total tax_pay and Tax_credited as per quater per year. 我想显示每年每季度合计的tax_pay和Tax_credited的总和。 please give me solution. 请给我解决方案。 thank u 感谢你

How you want your report is not really clear - why do you need TIN_Number in your data if you don't want to report against it? 您想要报告的方式还不是很清楚-如果您不想针对该报告进行报告,为什么在数据中需要TIN_Number?

Regardless, from whatever you have stated, you need to add group on period field and in group footer, add sum of tax_pay and tax_credited. 无论如何,无论您说了什么,都需要在period字段中添加组,并在组页脚中添加tax_pay和tax_credited之和。

Create a formula field, named 'first_of_month'. 创建一个名为“ first_of_month”的公式字段。 Assuming that the period is a string field, add the following to the formula's text: 假设句点是一个字符串字段,请将以下内容添加到公式的文本中:

//convert period to a date at the first of the month
//creating a date field gives you formatting flexibility.
Date({TABLE.period}[1 to 4], {TABLE.period}[5 to 6], 1)

Insert a group using the {@first_of_month} as its source. 使用{@first_of_month}作为来源插入一个组。 Choose 'for each quarter' from the 'This section will be printed:" combobox. 从“将打印此部分:”组合框中选择“每个季度”。

Add summary fields to the group's footer section 将摘要字段添加到组的页脚部分

Move group 'above'/'outside' the group on the TIN 将群组移到TIN上方/上方

** edit ** **编辑**

another option would be to create a 'quarter' formula and group on it. 另一个选择是创建一个“季度”公式并在其上分组。 The formula's text would be (again, assuming that it is a string): 公式的文本将是(再次假设它是一个字符串):

//get month and convert to number
Numbervar MM := ToNumber({TABLE.period}[5 to 6]);

//calculate quarter
Ceiling(MM/3);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM