C# Class RockWeb.Blocks.Reporting.MetricDetail

Inheritance: Rock.Web.UI.RockBlock, IDetailBlock
Exibir arquivo Open project: NewSpring/Rock

Private Properties

Property Type Description
BindMetricPartitionsGrid void
LoadDropDowns void
ReorderMetricPartitionsList void
SetEditMode void
SetMetricPartitionsListOrder void
ShowReadonlyDetails void
UpdateMetricPartionDetailForEntityType void

Public Methods

Method Description
ShowDetail ( int metricId ) : void

Shows the detail.

ShowDetail ( int metricId, int parentCategoryId ) : void

Shows the detail.

ShowEditDetails ( Metric metric ) : void

Shows the edit details.

gMetricPartitions_AddClick ( object sender, EventArgs e ) : void

Handles the AddClick event of the gMetricPartitions control.

Protected Methods

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

Handles the BlockUpdated event of the control.

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.

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.

ddlSourceType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the ddlSourceType control.

etpMetricPartitionEntityType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the etpMetricPartitionEntityType control.

gMetricPartitions_Delete ( object sender, RowEventArgs e ) : void

Handles the Delete event of the gMetricPartitions control.

gMetricPartitions_GridReorder ( object sender, Rock.Web.UI.Controls.GridReorderEventArgs e ) : void

Handles the GridReorder event of the gMetricPartitions control.

gMetricPartitions_RowSelected ( object sender, RowEventArgs e ) : void

Handles the RowSelected event of the gMetricPartitions control.

gMetricPartitions_ShowEdit ( System.Guid metricPartitionGuid ) : void

Shows the Metric Partition dialog for add/edit

mdMetricPartitionDetail_SaveClick ( object sender, EventArgs e ) : void

Handles the SaveClick event of the mdMetricPartitionDetail control.

rblScheduleSelect_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the rblScheduleSelect control.

Private Methods

Method Description
BindMetricPartitionsGrid ( ) : void

Binds the metric partitions grid.

LoadDropDowns ( ) : void

Loads the drop downs.

ReorderMetricPartitionsList ( List itemList, int oldIndex, int newIndex ) : void

Reorders the metric partitions list.

SetEditMode ( bool editable ) : void

Sets the edit mode.

SetMetricPartitionsListOrder ( List itemList ) : void

Sets the metric partitions list order.

ShowReadonlyDetails ( Metric metric ) : void

Shows the readonly details.

UpdateMetricPartionDetailForEntityType ( ) : void

Updates the type of the metric partion detail for entity.

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

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 metricId ) : void
metricId int The metric identifier.
return void

ShowDetail() public method

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

ShowEditDetails() public method

Shows the edit details.
public ShowEditDetails ( Metric metric ) : void
metric Metric The metric.
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

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

ddlSourceType_SelectedIndexChanged() protected method

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

etpMetricPartitionEntityType_SelectedIndexChanged() protected method

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

gMetricPartitions_AddClick() public method

Handles the AddClick event of the gMetricPartitions control.
public gMetricPartitions_AddClick ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

gMetricPartitions_Delete() protected method

Handles the Delete event of the gMetricPartitions control.
protected gMetricPartitions_Delete ( object sender, RowEventArgs e ) : void
sender object The source of the event.
e Rock.Web.UI.Controls.RowEventArgs The instance containing the event data.
return void

gMetricPartitions_GridReorder() protected method

Handles the GridReorder event of the gMetricPartitions control.
protected gMetricPartitions_GridReorder ( object sender, Rock.Web.UI.Controls.GridReorderEventArgs e ) : void
sender object The source of the event.
e Rock.Web.UI.Controls.GridReorderEventArgs The instance containing the event data.
return void

gMetricPartitions_RowSelected() protected method

Handles the RowSelected event of the gMetricPartitions control.
protected gMetricPartitions_RowSelected ( object sender, RowEventArgs e ) : void
sender object The source of the event.
e Rock.Web.UI.Controls.RowEventArgs The instance containing the event data.
return void

gMetricPartitions_ShowEdit() protected method

Shows the Metric Partition dialog for add/edit
protected gMetricPartitions_ShowEdit ( System.Guid metricPartitionGuid ) : void
metricPartitionGuid System.Guid The metric partition unique identifier.
return void

mdMetricPartitionDetail_SaveClick() protected method

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

rblScheduleSelect_SelectedIndexChanged() protected method

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