Beispiel #1
0
        protected TimeSpan GetTotalTimespan(Int32 TimesheetID)
        {
            int PeriodID = Int32.Parse(Request.Params["id"]);
            String Username = Request.Params["username"];

            TFS.Intranet.Data.Billing.TimeEntryCollection col = new TFS.Intranet.Data.Billing.TimeEntryController().FetchByTimesheetID(TimesheetID);

            TimeSpan totalTime = new TimeSpan(0);
            foreach (TFS.Intranet.Data.Billing.TimeEntry timeentry in col)
            {
                totalTime = totalTime.Add(GetTimeDifference(timeentry.Timein, timeentry.Timeout));
            }
            return totalTime;
        }
Beispiel #2
0
        protected TimeSpan GetTotalTimespan(Int32 TimesheetID)
        {
            int    PeriodID = Int32.Parse(Request.Params["id"]);
            String Username = Request.Params["username"];

            TFS.Intranet.Data.Billing.TimeEntryCollection col = new TFS.Intranet.Data.Billing.TimeEntryController().FetchByTimesheetID(TimesheetID);

            TimeSpan totalTime = new TimeSpan(0);

            foreach (TFS.Intranet.Data.Billing.TimeEntry timeentry in col)
            {
                totalTime = totalTime.Add(GetTimeDifference(timeentry.Timein, timeentry.Timeout));
            }
            return(totalTime);
        }