C# Class HBS.Data.Entities.SchedulingTimeTracking.Models.TimeTrackingManager

ファイルを表示 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 ( int userId, System.DateTime startDate, System.DateTime endDate ) : DailyTimeTrack
GetTimeTrackFromUserTimeTrackHistory ( UserTimeTrackHistory userTimeTrackHistory ) : TimeTrack
GetUserTimeTrackHistoryForSpecifiedPeriod ( string userName, System.DateTime startDate, System.DateTime endDate ) : CustomTimeTrack
GetUserTimeTrackHistoryForSpecifiedPeriod ( int companyId, int userId, System.DateTime startDate, System.DateTime endDate ) : TimeTrackReportViewModel
GetWeeklyClockInOutTimeByDate ( string userName, System.DateTime startDate, System.DateTime endDate ) : WeeklyTimeTrack
SetDefaultClockoutTimeStampToForgottenStamps ( string userName ) : void
TrackClockInOutTime ( int userId, string userName ) : void
UpdateClockInOutTime ( int timeTrackId, string stampDate, string selectedUser, string clockInTime, string clockOutTime, string updatedBy ) : TimeTrackErrorViewModel

Private Methods

Method Description
GetTimeTrackList ( IEnumerable userTimeTrackHistories, System.DateTime givenDate ) : IEnumerable

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.SchedulingTimeTracking.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.SchedulingTimeTracking.ViewModels.WeeklyTimeTrackWeekListViewModel

GetDailyClockInOutTimeByDate() public static method

public static GetDailyClockInOutTimeByDate ( int userId, System.DateTime startDate, System.DateTime endDate ) : DailyTimeTrack
userId int
startDate System.DateTime
endDate System.DateTime
return DailyTimeTrack

GetTimeTrackFromUserTimeTrackHistory() public static method

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

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

GetUserTimeTrackHistoryForSpecifiedPeriod() public static method

public static GetUserTimeTrackHistoryForSpecifiedPeriod ( int companyId, int userId, System.DateTime startDate, System.DateTime endDate ) : TimeTrackReportViewModel
companyId int
userId int
startDate System.DateTime
endDate System.DateTime
return HBS.Data.Entities.SchedulingTimeTracking.ViewModels.TimeTrackReportViewModel

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

TrackClockInOutTime() public static method

public static TrackClockInOutTime ( int userId, string userName ) : void
userId int
userName string
return void

UpdateClockInOutTime() public static method

public static UpdateClockInOutTime ( int timeTrackId, string stampDate, string selectedUser, string clockInTime, string clockOutTime, string updatedBy ) : TimeTrackErrorViewModel
timeTrackId int
stampDate string
selectedUser string
clockInTime string
clockOutTime string
updatedBy string
return HBS.Data.Entities.SchedulingTimeTracking.ViewModels.TimeTrackErrorViewModel