C# Class RockWeb.Blocks.CheckIn.AttendanceAnalytics

Inheritance: Rock.Web.UI.RockBlock
Datei anzeigen Open project: SparkDevNetwork/Rock

Public Methods

Method Description
GetPossibleAttendancesForDateRange ( Rock.DateRange dateRange, ChartGroupBy attendanceGroupBy ) : List

Gets the possible attendances for the date range.

LoadChartAndGrids ( ) : void

Loads the chart and any visible grids

LoadDropDowns ( ) : void

Loads the drop downs.

UpdatePossibleAttendances ( Rock.DateRange dateRange, ChartGroupBy attendanceGroupBy ) : void

Updates the possible attendance summary dates

Protected Methods

Method Description
Block_BlockUpdated ( object sender, EventArgs e ) : void

Handles the BlockUpdated event of the control.

OnInit ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Init event.

OnLoad ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Load event.

btnApply_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnApply control.

btnCheckinDetails_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnCheckinDetails control.

btnGraphBy_Click ( object sender, EventArgs e ) : void

Handles the Click events of the GraphBy buttons.

btnGroupBy_Click ( object sender, EventArgs e ) : void

Handles the Click event of the GroupBy buttons

btnShowByAttendees_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnShowByAttendees control.

btnShowByChart_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnShowByChart control.

ddlCheckinType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the ddlCheckinType control.

gAttendeesAttendance_GridRebind ( object sender, GridRebindEventArgs e ) : void

Handles the GridRebind event of the GAttendeesAttendance control.

gAttendeesAttendance_RowDataBound ( object sender, System.Web.UI.WebControls.GridViewRowEventArgs e ) : void

Handles the RowDataBound event of the gAttendeesAttendance control.

gChartAttendance_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gAttendance control.

lShowChartAttendanceGrid_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lShowGrid control.

lcAttendance_ChartClick ( object sender, ChartClickArgs e ) : void

Lcs the attendance_ chart click.

rptGroupTypes_ItemDataBound ( object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e ) : void

Handles the ItemDataBound event of the rptGroupTypes control.

Private Methods

Method Description
AddGroupControls ( Group group, RockCheckBoxList checkBoxList, GroupService service, bool showGroupAncestry ) : void

Adds the group controls.

AddGroupTypeControls ( GroupType groupType, HtmlGenericContainer liGroupTypeItem ) : void

Adds the group type controls.

BindAttendeesGrid ( bool isExporting = false ) : void

Binds the attendees grid.

BindChartAttendanceGrid ( ) : void

Binds the chart attendance grid.

BindChartAttendanceGrid ( IEnumerable chartData ) : void

Binds the chart attendance grid.

BuildGroupTypesUI ( ) : void

Builds the group types UI

CreateDynamicAttendanceGridColumns ( ) : void

Creates the dynamic attendance grid columns.

DisplayShowBy ( ShowBy showBy ) : void

Displays the results by chart or attendees.

GetAttendanceChartData ( ) : IEnumerable

Gets the chart data.

GetSelectedGroupIds ( ) : List

Gets the selected group ids.

GetSelectedGroupTypes ( ) : List

Gets the type of the selected template group (Check-In Type)

GetSetting ( string prefix, string key ) : string

Gets the setting.

LoadCurrentPageObjects ( List personIds ) : void

Loads the current page objects.

LoadSettings ( ) : void

Loads the attendance reporting settings from user preferences.

LogAndShowException ( Exception exception ) : void

Logs and shows the exception.

SaveSettings ( ) : void

Saves the attendance reporting settings to user preferences.

Method Details

Block_BlockUpdated() protected method

Handles the BlockUpdated event of the control.
protected Block_BlockUpdated ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

GetPossibleAttendancesForDateRange() public method

Gets the possible attendances for the date range.
public GetPossibleAttendancesForDateRange ( Rock.DateRange dateRange, ChartGroupBy attendanceGroupBy ) : List
dateRange Rock.DateRange The date range.
attendanceGroupBy ChartGroupBy The attendance group by type.
return List

LoadChartAndGrids() public method

Loads the chart and any visible grids
public LoadChartAndGrids ( ) : void
return void

LoadDropDowns() public method

Loads the drop downs.
public LoadDropDowns ( ) : void
return void

OnInit() protected method

Raises the E:System.Web.UI.Control.Init event.
protected OnInit ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
return void

OnLoad() protected method

Raises the E:System.Web.UI.Control.Load event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs The object that contains the event data.
return void

UpdatePossibleAttendances() public method

Updates the possible attendance summary dates
public UpdatePossibleAttendances ( Rock.DateRange dateRange, ChartGroupBy attendanceGroupBy ) : void
dateRange Rock.DateRange The date range.
attendanceGroupBy ChartGroupBy The attendance group by.
return void

btnApply_Click() protected method

Handles the Click event of the btnApply control.
protected btnApply_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

btnCheckinDetails_Click() protected method

Handles the Click event of the btnCheckinDetails control.
protected btnCheckinDetails_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

btnGraphBy_Click() protected method

Handles the Click events of the GraphBy buttons.
protected btnGraphBy_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

btnGroupBy_Click() protected method

Handles the Click event of the GroupBy buttons
protected btnGroupBy_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

btnShowByAttendees_Click() protected method

Handles the Click event of the btnShowByAttendees control.
protected btnShowByAttendees_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

btnShowByChart_Click() protected method

Handles the Click event of the btnShowByChart control.
protected btnShowByChart_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

ddlCheckinType_SelectedIndexChanged() protected method

Handles the SelectedIndexChanged event of the ddlCheckinType control.
protected ddlCheckinType_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

gAttendeesAttendance_GridRebind() protected method

Handles the GridRebind event of the GAttendeesAttendance control.
protected gAttendeesAttendance_GridRebind ( object sender, GridRebindEventArgs e ) : void
sender object The source of the event.
e GridRebindEventArgs The instance containing the event data.
return void

gAttendeesAttendance_RowDataBound() protected method

Handles the RowDataBound event of the gAttendeesAttendance control.
protected gAttendeesAttendance_RowDataBound ( object sender, System.Web.UI.WebControls.GridViewRowEventArgs e ) : void
sender object The source of the event.
e System.Web.UI.WebControls.GridViewRowEventArgs The instance containing the event data.
return void

gChartAttendance_GridRebind() protected method

Handles the GridRebind event of the gAttendance control.
protected gChartAttendance_GridRebind ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

lShowChartAttendanceGrid_Click() protected method

Handles the Click event of the lShowGrid control.
protected lShowChartAttendanceGrid_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

lcAttendance_ChartClick() protected method

Lcs the attendance_ chart click.
protected lcAttendance_ChartClick ( object sender, ChartClickArgs e ) : void
sender object The sender.
e Rock.Web.UI.Controls.ChartClickArgs The e.
return void

rptGroupTypes_ItemDataBound() protected method

Handles the ItemDataBound event of the rptGroupTypes control.
protected rptGroupTypes_ItemDataBound ( object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e ) : void
sender object The source of the event.
e System.Web.UI.WebControls.RepeaterItemEventArgs The instance containing the event data.
return void