c# - 此字段无法在 Crystal 报表中汇总
问题描述
int((Sum({@Tot_Ot},{ReportEmpAttendanceView.EmpId}))/60)+((Sum({@Tot_Ot},{ReportEmpAttendanceView.EmpId}) mod 60)/100)
这里@Tot_Ot 无法总结。@Tot_Ot 公式看起来像这样
HOUR({@Over_Time})*60+MINUTE({@Over_Time})
这里@Over_Time 公式看起来像这样
else if {@USER}="b3" then
if {ReportEmpAttendanceView.Sts}='H' then
time(00,00,00)
else if {ReportEmpAttendanceView.Sts}='W' and {@COUNT1}<>1 and time({ReportEmpAttendanceView.OTHour})<>time(00,00,00) then
time(00,00,00)
else if {@COUNT1}<>0 then
time({ReportEmpAttendanceView.OTHour})
else
time({ReportEmpAttendanceView.OTHour})
当我使用这个@COUNT1 字段时会出现这里问题。使用这个@COUNT1 字段,超时打印完全符合我的要求。但是当我尝试以打印方式对加班求和时无法总结。@COUNT1 字段如下所示。
Shared Numbervar count1 ;
if ({ReportEmpAttendanceView.Sts}="W") and count1<>0 then
(
0;
count1:=0;
)
else if ({ReportEmpAttendanceView.Sts}="W") and count1<>1 and time({ReportEmpAttendanceView.OTHour})<>time(00,00,00) then
(
1;
count1:=1;
)
解决方案
推荐阅读
- javascript - 时刻不返回日期范围
- session - Eclispe Milo 处理 ActivateSessionRequest 中缺少的 Sever Nonce
- airflow - 为什么气流错误“无法连接到本地 MySQL 服务器”以及如何解决?
- pandas - 使用 pandas 对数据进行分组,但是如何保持组的顺序并在两列行上进行数学运算?
- c# - 发现不可能发布简单的ajax
- ms-access - 访问 sActualFieldValue
- android - 如何在我的应用中禁用 Android TV 支持?清单抱怨缺少 LEANBACK_LAUNCHER
- c++ - C++ 我想避免使用指针,而是使用 STL 和引用来维护小型数据缓存
- java - 通过 SMTP 发送 ICS 文件在 Outlook 中未正确显示?
- html - 在悬停菜单链接时保留图像