C# Class Rock.Model.AttendanceService

Data Access/Service class for Rock.Model.Attendance entity objects
Afficher le fichier Open project: SparkDevNetwork/Rock Class Usage Examples

Méthodes publiques

Méthode Description
Get ( System.DateTime date, int locationId, int scheduleId, int groupId, int personId ) : Attendance

Returns a specific Rock.Model.Attendance record.

GetAttendanceAnalyticsAttendeeDates ( List groupIds, System.DateTime start, System.DateTime end, List campusIds, bool includeNullCampusIds, List scheduleIds ) : DataSet

Gets the attendance analytics attendee dates.

GetAttendanceAnalyticsAttendeeFirstDates ( List GroupTypeIds, List groupIds, System.DateTime start, System.DateTime end, List campusIds, bool includeNullCampusIds, List scheduleIds ) : DataSet

Gets the attendance analytics attendee first dates.

GetAttendanceAnalyticsAttendeeLastAttendance ( List groupIds, System.DateTime start, System.DateTime end, List campusIds, bool includeNullCampusIds, List scheduleIds ) : DataSet

Gets the attendance analytics attendee last attendance.

GetAttendanceAnalyticsAttendees ( List groupIds, System.DateTime start, System.DateTime end, List campusIds, bool includeNullCampusIds, List scheduleIds, bool IncludeParentsWithChild, bool IncludeChildrenWithParents ) : DataSet

Gets the attendance analytics attendees.

GetAttendanceAnalyticsNonAttendees ( List GroupTypeIds, List groupIds, System.DateTime start, System.DateTime end, List campusIds, bool includeNullCampusIds, List scheduleIds, bool IncludeParentsWithChild, bool IncludeChildrenWithParents ) : DataSet

Gets the attendance analytics non attendees.

GetByDateAndLocation ( System.DateTime date, int locationId ) : IQueryable

Returns a queryable collection of Rock.Model.Attendance for a Rock.Model.Location on a specified date.

GetChartData ( ChartGroupBy groupBy, AttendanceGraphBy graphBy, System.DateTime startDate, System.DateTime endDate, string groupIds, string campusIds, int dataViewId ) : IEnumerable

Gets the chart data.

GetChartData ( ChartGroupBy groupBy = ChartGroupBy.Week, AttendanceGraphBy graphBy = AttendanceGraphBy.Total, System.DateTime startDate = null, System.DateTime endDate = null, string groupIds = null, string campusIds = null, int dataViewId = null, string scheduleIds = null ) : IEnumerable

Gets the chart data.

Private Methods

Méthode Description
GetAttendanceAnalyticsParameters ( List GroupTypeIds, List groupIds, System.DateTime start, System.DateTime end, List campusIds, bool includeNullCampusIds, List scheduleIds, bool IncludeParentsWithChild = null, bool IncludeChildrenWithParents = null ) : object>.Dictionary

Method Details

Get() public méthode

Returns a specific Rock.Model.Attendance record.
public Get ( System.DateTime date, int locationId, int scheduleId, int groupId, int personId ) : Attendance
date System.DateTime A representing the the date attended.
locationId int A representing the Id of the
scheduleId int A representing the Id of the
groupId int A representing the Id of the .
personId int A representing the Id of the
Résultat Attendance

GetAttendanceAnalyticsAttendeeDates() public static méthode

Gets the attendance analytics attendee dates.
public static GetAttendanceAnalyticsAttendeeDates ( List groupIds, System.DateTime start, System.DateTime end, List campusIds, bool includeNullCampusIds, List scheduleIds ) : DataSet
groupIds List The group ids.
start System.DateTime The start.
end System.DateTime The end.
campusIds List The campus ids.
includeNullCampusIds bool The include null campus ids.
scheduleIds List The schedule ids.
Résultat System.Data.DataSet

GetAttendanceAnalyticsAttendeeFirstDates() public static méthode

Gets the attendance analytics attendee first dates.
public static GetAttendanceAnalyticsAttendeeFirstDates ( List GroupTypeIds, List groupIds, System.DateTime start, System.DateTime end, List campusIds, bool includeNullCampusIds, List scheduleIds ) : DataSet
GroupTypeIds List The group type ids.
groupIds List The group ids.
start System.DateTime The start.
end System.DateTime The end.
campusIds List The campus ids.
includeNullCampusIds bool The include null campus ids.
scheduleIds List The schedule ids.
Résultat System.Data.DataSet

GetAttendanceAnalyticsAttendeeLastAttendance() public static méthode

Gets the attendance analytics attendee last attendance.
public static GetAttendanceAnalyticsAttendeeLastAttendance ( List groupIds, System.DateTime start, System.DateTime end, List campusIds, bool includeNullCampusIds, List scheduleIds ) : DataSet
groupIds List The group ids.
start System.DateTime The start.
end System.DateTime The end.
campusIds List The campus ids.
includeNullCampusIds bool The include null campus ids.
scheduleIds List The schedule ids.
Résultat System.Data.DataSet

GetAttendanceAnalyticsAttendees() public static méthode

Gets the attendance analytics attendees.
public static GetAttendanceAnalyticsAttendees ( List groupIds, System.DateTime start, System.DateTime end, List campusIds, bool includeNullCampusIds, List scheduleIds, bool IncludeParentsWithChild, bool IncludeChildrenWithParents ) : DataSet
groupIds List The group ids.
start System.DateTime The start.
end System.DateTime The end.
campusIds List The campus ids.
includeNullCampusIds bool The include null campus ids.
scheduleIds List The schedule ids.
IncludeParentsWithChild bool The include parents with child.
IncludeChildrenWithParents bool The include children with parents.
Résultat System.Data.DataSet

GetAttendanceAnalyticsNonAttendees() public static méthode

Gets the attendance analytics non attendees.
public static GetAttendanceAnalyticsNonAttendees ( List GroupTypeIds, List groupIds, System.DateTime start, System.DateTime end, List campusIds, bool includeNullCampusIds, List scheduleIds, bool IncludeParentsWithChild, bool IncludeChildrenWithParents ) : DataSet
GroupTypeIds List The group type ids.
groupIds List The group ids.
start System.DateTime The start.
end System.DateTime The end.
campusIds List The campus ids.
includeNullCampusIds bool The include null campus ids.
scheduleIds List The schedule ids.
IncludeParentsWithChild bool The include parents with child.
IncludeChildrenWithParents bool The include children with parents.
Résultat System.Data.DataSet

GetByDateAndLocation() public méthode

Returns a queryable collection of Rock.Model.Attendance for a Rock.Model.Location on a specified date.
public GetByDateAndLocation ( System.DateTime date, int locationId ) : IQueryable
date System.DateTime A representing the date attended.
locationId int A representing the Id of the
Résultat IQueryable

GetChartData() public méthode

Gets the chart data.
public GetChartData ( ChartGroupBy groupBy, AttendanceGraphBy graphBy, System.DateTime startDate, System.DateTime endDate, string groupIds, string campusIds, int dataViewId ) : IEnumerable
groupBy ChartGroupBy The group by.
graphBy AttendanceGraphBy The graph by.
startDate System.DateTime The start date.
endDate System.DateTime The end date.
groupIds string The group ids.
campusIds string The campus ids. Include the keyword 'null' in the list to include CampusId is null
dataViewId int The data view identifier.
Résultat IEnumerable

GetChartData() public méthode

Gets the chart data.
public GetChartData ( ChartGroupBy groupBy = ChartGroupBy.Week, AttendanceGraphBy graphBy = AttendanceGraphBy.Total, System.DateTime startDate = null, System.DateTime endDate = null, string groupIds = null, string campusIds = null, int dataViewId = null, string scheduleIds = null ) : IEnumerable
groupBy ChartGroupBy The group by.
graphBy AttendanceGraphBy The graph by.
startDate System.DateTime The start date.
endDate System.DateTime The end date.
groupIds string The group ids.
campusIds string The campus ids. Include the keyword 'null' in the list to include CampusId is null
dataViewId int The data view identifier.
scheduleIds string The schedule ids.
Résultat IEnumerable