C# Класс Rock.Model.AttendanceService

Data Access/Service class for Rock.Model.Attendance entity objects
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Get() публичный метод

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
Результат Attendance

GetAttendanceAnalyticsAttendeeDates() публичный статический метод

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.
Результат System.Data.DataSet

GetAttendanceAnalyticsAttendeeFirstDates() публичный статический метод

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.
Результат System.Data.DataSet

GetAttendanceAnalyticsAttendeeLastAttendance() публичный статический метод

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.
Результат System.Data.DataSet

GetAttendanceAnalyticsAttendees() публичный статический метод

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.
Результат System.Data.DataSet

GetAttendanceAnalyticsNonAttendees() публичный статический метод

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.
Результат System.Data.DataSet

GetByDateAndLocation() публичный метод

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
Результат IQueryable

GetChartData() публичный метод

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.
Результат IEnumerable

GetChartData() публичный метод

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.
Результат IEnumerable