在 rdlc 的总时间需要帮助 [英] need help in sum of time in rdlc
问题描述
我正在研究考勤管理系统.在我的项目中,我想在每日报告中显示员工的总工作时间.
I am working on attendance management system. In my project i want to display total worked hours of the employee in the daily report.
在我的数据库表中,我已经计算了每位员工的工作时间.现在我想在报告底部显示每个条目的总工作时间.
In my database table i have already calculated working hours for the each employee. Now i want to display Total worked hours of each and every entry at the bottom of the report.
例如
EmployeeId EmployeeName WorkedHours
1 ABC 04:00:25
2 XYZ 07:23:01
3 PQR 11:02:15
所以我想在 RDLC 的报告末尾显示所有 3 名员工的总数.
SO i want to display total of all 3 employees at the end of report in RDLC.
喜欢总计:22:25:42
请告诉我如何实现它?
推荐答案
您只需要在WorkedHours"列的页脚行添加=Sum(Fields!WorkedHours.Value)
.
You just need to add =Sum(Fields!WorkedHours.Value)
in footer row for "WorkedHours" column.
请参阅 MSDN 中的链接 http://msdn.microsoft.com/en-us/library/ms252113(v=vs.80).aspx
see the link in MSDN http://msdn.microsoft.com/en-us/library/ms252113(v=vs.80).aspx
这篇关于在 rdlc 的总时间需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!