C# Class Rock.Model.AttendanceService

Data Access/Service class for Rock.Model.Attendance entity objects
Mostrar archivo Open project: SparkDevNetwork/Rock Class Usage Examples

Public Methods

Method 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

Method 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 method

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
return Attendance

GetAttendanceAnalyticsAttendeeDates() public static method

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.
return System.Data.DataSet

GetAttendanceAnalyticsAttendeeFirstDates() public static method

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.
return System.Data.DataSet

GetAttendanceAnalyticsAttendeeLastAttendance() public static method

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.
return System.Data.DataSet

GetAttendanceAnalyticsAttendees() public static method

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.
return System.Data.DataSet

GetAttendanceAnalyticsNonAttendees() public static method

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.
return System.Data.DataSet

GetByDateAndLocation() public method

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
return IQueryable

GetChartData() public method

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.
return IEnumerable

GetChartData() public method

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.
return IEnumerable