Click here to Skip to main content
15,899,313 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
A.O.A
i have a report that shows Overtime of a employee of particular month.
i want to calculate the total no. of overtime in footer

this is how i'm calculating overtime

--"tout" is EmployeeLeavingtime
--"otLimint" is the Timelimit (like if ShiftEndTime is 6:00PM then overtime will be
--calculated if tout is > 6:30)
--shiftendTime is (6:00PM)

string timeOut = r["TimeOut"].ToString();
Time tOUT = new Time(timeOut);
Time OtLimit = new Time(18, 30, 00);

if (tOUT > OtLimit)
{
DateTime ShiftendTime = Convert.ToDateTime(r["ShiftEndTime"].ToString());
DateTime Out = Convert.ToDateTime(r["TimeOut"].ToString());
TimeSpan span = Out.Subtract(ShiftendTime);

r["OTHrs"] = span.ToString().Replace("-","");
}

im using
Sum(Fields!TotalLH.Value) in Report footer expression
but this is not showing Total in runtime
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900