C# Class RockWeb.Blocks.Reporting.DataViewDetail

Inheritance: Rock.Web.UI.RockBlock, IDetailBlock
Mostra file Open project: NewSpring/Rock

Public Methods

Method Description
BindDataTransformations ( RockContext rockContext ) : void

Binds the data transformations.

ShowDetail ( int dataViewId ) : void

Shows the detail.

ShowDetail ( int dataViewId, int parentCategoryId ) : void

Shows the detail.

ShowEditDetails ( DataView dataView ) : void

Shows the edit.

Protected Methods

Method Description
LoadViewState ( object savedState ) : void

Restores the view-state information from a previous user control request that was saved by the M:System.Web.UI.UserControl.SaveViewState method.

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.

SaveViewState ( ) : object

Saves any user control view-state changes that have occurred since the last page postback.

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.

btnPreview_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnPreview 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.

etpEntityType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the ddlEntityType control.

filterControl_DeleteClick ( object sender, EventArgs e ) : void

Handles the DeleteClick event of the filterControl control.

gReport_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gReport control.

groupControl_AddFilterClick ( object sender, EventArgs e ) : void

Handles the AddFilterClick event of the groupControl control.

groupControl_AddGroupClick ( object sender, EventArgs e ) : void

Handles the AddGroupClick event of the groupControl control.

groupControl_DeleteGroupClick ( object sender, EventArgs e ) : void

Handles the DeleteGroupClick event of the groupControl control.

Private Methods

Method Description
BindGrid ( Rock.Web.UI.Controls.Grid grid, DataView dataView, int fetchRowCount = null ) : bool

Binds the grid.

CreateFilterControl ( Control parentControl, DataViewFilter filter, string filteredEntityTypeName, bool setSelection, RockContext rockContext ) : void

Creates the filter control.

CreateFilterControl ( int filteredEntityTypeId, DataViewFilter filter, bool setSelection, RockContext rockContext ) : void

Creates the filter control.

DeleteDataViewFilter ( DataViewFilter dataViewFilter, DataViewFilterService service ) : void

Deletes the data view filter.

LoadDropDowns ( DataView dataView ) : void

Loads the drop downs.

SetEditMode ( bool editable ) : void

Sets the edit mode.

SetNewDataFilterGuids ( DataViewFilter dataViewFilter ) : void

Set the Guids on the datafilter and it's children to Guid.NewGuid

ShowPreview ( DataView dataView ) : void

Shows the preview.

ShowReadonlyDetails ( DataView dataView ) : void

Shows the readonly details.

ShowReport ( DataView dataView ) : void

Shows the report.

Method Details

BindDataTransformations() public method

Binds the data transformations.
public BindDataTransformations ( RockContext rockContext ) : void
rockContext Rock.Data.RockContext The rock context.
return void

LoadViewState() protected method

Restores the view-state information from a previous user control request that was saved by the M:System.Web.UI.UserControl.SaveViewState method.
protected LoadViewState ( object savedState ) : void
savedState object An that represents the user control state to be restored.
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

SaveViewState() protected method

Saves any user control view-state changes that have occurred since the last page postback.
protected SaveViewState ( ) : object
return object

ShowDetail() public method

Shows the detail.
public ShowDetail ( int dataViewId ) : void
dataViewId int The data view identifier.
return void

ShowDetail() public method

Shows the detail.
public ShowDetail ( int dataViewId, int parentCategoryId ) : void
dataViewId int The data view identifier.
parentCategoryId int The parent category id.
return void

ShowEditDetails() public method

Shows the edit.
public ShowEditDetails ( DataView dataView ) : void
dataView DataView The data view.
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

btnPreview_Click() protected method

Handles the Click event of the btnPreview control.
protected btnPreview_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

etpEntityType_SelectedIndexChanged() protected method

Handles the SelectedIndexChanged event of the ddlEntityType 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

filterControl_DeleteClick() protected method

Handles the DeleteClick event of the filterControl control.
protected filterControl_DeleteClick ( 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

groupControl_AddFilterClick() protected method

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

groupControl_AddGroupClick() protected method

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

groupControl_DeleteGroupClick() protected method

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