C# Class RockWeb.Blocks.Reporting.ReportDetail

Inheritance: Rock.Web.UI.RockBlock, IDetailBlock
Datei anzeigen Open project: NewSpring/Rock

Public Methods

Method Description
ShowDetail ( int reportId ) : void

Shows the detail.

ShowDetail ( int reportId, int parentCategoryId ) : void

Shows the detail.

ShowEditDetails ( Report report ) : void

Shows the edit.

Protected Methods

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

Handles the DeleteClick event of the FieldsPanelWidget 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.

OnPreRender ( EventArgs e ) : void

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

btnAddField_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnAddField control.

btnCancel_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnCancel control.

btnCopy_Click ( object sender, EventArgs e ) : void

Handles the Click event of the Copy button control.

btnDelete_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnDelete control.

btnEdit_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnEdit control.

btnSave_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnSave control.

btnToggleResults_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnToggleResults control.

ddlFields_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the ddlFields control.

etpEntityType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the etpEntityType control.

gReport_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gReport control.

lbDataView_Click ( object sender, EventArgs e ) : void

Private Methods

Method Description
AddFieldPanelWidget ( System.Guid reportFieldGuid, ReportFieldType reportFieldType, string fieldSelection, bool showExpanded, RockContext rockContext, bool setReportFieldValues = false, ReportField reportField = null ) : void

Adds the field panel widget.

BindGrid ( Report report ) : void

Binds the grid.

CreateFieldTypeSpecificControls ( ReportFieldType reportFieldType, string fieldSelection, PanelWidget panelWidget, RockContext rockContext ) : void

Creates the data select controls.

GetDataSelectComponent ( RockContext rockContext, int dataSelectComponentId ) : DataSelectComponent

Creates a DataSelectComponent instance from a unique identifier.

GetSelectedFieldTypeSelection ( RockDropDownList ddlFields ) : FieldTypeSelection

Gets the selected field type select.

IsAuthorizedForAllReportComponents ( string reportAction, Report report, RockContext rockContext, string &authorizationMessage ) : bool

Determines whether [is authorized for all report components] [the specified report].

LoadDropDowns ( ) : void

Loads the drop downs.

LoadDropdownsForEntityType ( int entityTypeId ) : void

Loads the DataView and Fields dropdowns based on the selected EntityType

LoadFieldsDropDown ( RockDropDownList ddlFields ) : void

Loads the fields drop down.

PopulateFieldPanelWidget ( PanelWidget panelWidget, ReportField reportField, ReportFieldType reportFieldType, string fieldSelection, RockContext rockContext ) : void

Populates the field panel widget.

SelectedFieldTypeSupportsSorting ( PanelWidget panelWidget ) : bool

Selecteds the field type supports sorting.

SetEditMode ( bool editable ) : void

Sets the edit mode.

ShowReadonlyDetails ( Report report ) : void

Shows the readonly details.

SortPanelWidgets ( string eventParam, string values ) : void

Sorts the panel widgets.

Method Details

FieldsPanelWidget_DeleteClick() protected method

Handles the DeleteClick event of the FieldsPanelWidget control.
protected FieldsPanelWidget_DeleteClick ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
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

OnPreRender() protected method

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

ShowDetail() public method

Shows the detail.
public ShowDetail ( int reportId ) : void
reportId int The report identifier.
return void

ShowDetail() public method

Shows the detail.
public ShowDetail ( int reportId, int parentCategoryId ) : void
reportId int The report identifier.
parentCategoryId int The parent category id.
return void

ShowEditDetails() public method

Shows the edit.
public ShowEditDetails ( Report report ) : void
report Report The data view.
return void

btnAddField_Click() protected method

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

btnCancel_Click() protected method

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

btnCopy_Click() protected method

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

btnDelete_Click() protected method

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

btnEdit_Click() protected method

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

btnSave_Click() protected method

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

btnToggleResults_Click() protected method

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

ddlFields_SelectedIndexChanged() protected method

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

etpEntityType_SelectedIndexChanged() protected method

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

gReport_GridRebind() protected method

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

lbDataView_Click() protected method

protected lbDataView_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void