C# Class HBS.Data.Entities.TimeTracking.Models.TimeTrackManager

Mostra file Open project: heartbeatservice/HeartbeatServiceSolution

Public Methods

Method Description
DeleteTimeTrackRecord ( int timeTrackId, string loggedInUserName ) : bool
GetClockInOutTime ( string userName, System.DateTime startDate, System.DateTime endDate ) : WeeklyTimeTrackWeekListViewModel
GetCurrentDayClockInOutTime ( string userName ) : DailyTimeTrack
GetCurrentWeekClockInOutTime ( string userName ) : WeeklyTimeTrackWeekListViewModel
GetDailyClockInOutTimeByDate ( string userName, System.DateTime startDate, System.DateTime endDate ) : DailyTimeTrack
GetTimeTrackFromUserTimeTrackHistory ( UserTimeTrackHistory userTimeTrackHistory ) : TimeTrack
GetUserAndHistory ( string userName, System.DateTime startDate ) : void
GetUserTimeTrackHistoryForSpecifiedPeriod ( string userName, System.DateTime startDate, System.DateTime endDate ) : CustomTimeTrack
GetWeeklyClockInOutTimeByDate ( string userName, System.DateTime startDate, System.DateTime endDate ) : WeeklyTimeTrack
SetDefaultClockoutTimeStampToForgottenStamps ( string userName ) : void

Private Methods

Method Description
GetTimeTrackList ( IEnumerable userTimeTrackHistories, System.DateTime givenDate ) : IEnumerable
TrackClockInOutTime ( string userName ) : void
UpdateClockInOutTime ( int timeTrackId, string stampDate, string selectedUser, string clockInTime, string clockOutTime, string updatedBy ) : TimeTrackErrorViewModel

Method Details

DeleteTimeTrackRecord() public static method

public static DeleteTimeTrackRecord ( int timeTrackId, string loggedInUserName ) : bool
timeTrackId int
loggedInUserName string
return bool

GetClockInOutTime() public static method

public static GetClockInOutTime ( string userName, System.DateTime startDate, System.DateTime endDate ) : WeeklyTimeTrackWeekListViewModel
userName string
startDate System.DateTime
endDate System.DateTime
return HBS.Data.Entities.TimeTracking.ViewModels.WeeklyTimeTrackWeekListViewModel

GetCurrentDayClockInOutTime() public static method

public static GetCurrentDayClockInOutTime ( string userName ) : DailyTimeTrack
userName string
return DailyTimeTrack

GetCurrentWeekClockInOutTime() public static method

public static GetCurrentWeekClockInOutTime ( string userName ) : WeeklyTimeTrackWeekListViewModel
userName string
return HBS.Data.Entities.TimeTracking.ViewModels.WeeklyTimeTrackWeekListViewModel

GetDailyClockInOutTimeByDate() public static method

public static GetDailyClockInOutTimeByDate ( string userName, System.DateTime startDate, System.DateTime endDate ) : DailyTimeTrack
userName string
startDate System.DateTime
endDate System.DateTime
return DailyTimeTrack

GetTimeTrackFromUserTimeTrackHistory() public static method

public static GetTimeTrackFromUserTimeTrackHistory ( UserTimeTrackHistory userTimeTrackHistory ) : TimeTrack
userTimeTrackHistory HBS.Data.Entities.TimeTracking.EF.UserTimeTrackHistory
return TimeTrack

GetUserAndHistory() public static method

public static GetUserAndHistory ( string userName, System.DateTime startDate ) : void
userName string
startDate System.DateTime
return void

GetUserTimeTrackHistoryForSpecifiedPeriod() public static method

public static GetUserTimeTrackHistoryForSpecifiedPeriod ( string userName, System.DateTime startDate, System.DateTime endDate ) : CustomTimeTrack
userName string
startDate System.DateTime
endDate System.DateTime
return CustomTimeTrack

GetWeeklyClockInOutTimeByDate() public static method

public static GetWeeklyClockInOutTimeByDate ( string userName, System.DateTime startDate, System.DateTime endDate ) : WeeklyTimeTrack
userName string
startDate System.DateTime
endDate System.DateTime
return WeeklyTimeTrack

SetDefaultClockoutTimeStampToForgottenStamps() public static method

public static SetDefaultClockoutTimeStampToForgottenStamps ( string userName ) : void
userName string
return void