C# Class RockWeb.Blocks.Groups.GroupDetail

Inheritance: Rock.Web.UI.RockBlock, IDetailBlock
ファイルを表示 Open project: SparkDevNetwork/Rock

Private Properties

Property Type Description
BindGroupMemberAttributesGrid void
BindGroupMemberAttributesInheritedGrid void
BindGroupRequirementsGrid void
BindInheritedAttributes void
BindLocationsGrid void
BindMemberWorkflowTriggersGrid void
GetAllowedGroupTypes IQueryable
GetGroup Group
HideDialog void
LoadDropDowns void
ReorderAttributeList void
ReorderMemberWorkflowTriggerList void
SetAttributeListOrder void
SetEditMode void
SetHighlightLabelVisibility void
SetMemberWorkflowTriggerListOrder void
SetScheduleControls void
SetScheduleDisplay void
ShowDialog void
ShowDialog void
ShowEditDetails void
ShowGroupTypeEditDetails void
ShowReadonlyDetails void
ShowSelectedPane void

Public Methods

Method Description
GetBreadCrumbs ( PageReference pageReference ) : List

Returns breadcrumbs specific to the block that should be added to navigation based on the current page reference. This function is called during the page's oninit to load any initial breadcrumbs.

ShowDetail ( int groupId ) : void

Shows the detail.

ShowDetail ( int groupId, int parentGroupId ) : void

Shows the detail.

Protected Methods

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

Handles the BlockUpdated event of the control.

ContentItemUrl ( int contentItemId ) : string

Contents the item URL.

EventItemOccurrenceUrl ( int eventItemOccurrenceId ) : string

Events the item occurrence URL.

FormatTriggerType ( object type, object qualifier ) : string

Formats the type of the trigger.

GetTabClass ( object property ) : string

Gets the tab class.

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.

RegistrationInstanceUrl ( int registrationInstanceId ) : string

Registrations the instance URL.

SaveViewState ( ) : object

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

ShowTriggerQualifierControls ( ) : void

Shows the trigger qualifier controls.

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.

ddlGroupType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the ddlGroupType control.

ddlParentGroup_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the ddlParentGroup control.

ddlTriggerType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the ddlTriggerType control.

dlgGroupMemberAttribute_SaveClick ( object sender, EventArgs e ) : void

Handles the SaveClick event of the dlgGroupMemberAttribute control.

dlgLocations_SaveClick ( object sender, EventArgs e ) : void

Handles the SaveClick event of the dlgLocations control.

dlgMemberWorkflowTriggers_SaveClick ( object sender, EventArgs e ) : void

Handles the SaveClick event of the dlgGroupMemberAttribute control.

gGroupMemberAttributesInherited_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gGroupMemberAttributesInherited control.

gGroupMemberAttributes_Add ( object sender, EventArgs e ) : void

Handles the Add event of the gGroupMemberAttributes control.

gGroupMemberAttributes_Delete ( object sender, RowEventArgs e ) : void

Handles the Delete event of the gGroupMemberAttributes control.

gGroupMemberAttributes_Edit ( object sender, RowEventArgs e ) : void

Handles the Edit event of the gGroupMemberAttributes control.

gGroupMemberAttributes_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gGroupMemberAttributes control.

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

Handles the GridReorder event of the gGroupMemberAttributes control.

gGroupMemberAttributes_ShowEdit ( System.Guid attributeGuid ) : void

Gs the group member attributes_ show edit.

gGroupRequirements_Add ( object sender, EventArgs e ) : void

Handles the Add event of the gGroupRequirements control.

gGroupRequirements_Delete ( object sender, RowEventArgs e ) : void

Handles the Delete event of the gGroupRequirements control.

gGroupRequirements_Edit ( object sender, RowEventArgs e ) : void

Handles the Edit event of the gGroupRequirements control.

gGroupRequirements_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gGroupRequirements control.

gGroupRequirements_ShowEdit ( System.Guid groupRequirementGuid ) : void

Shows the modal dialog to add/edit a Group Requirement

gLocations_Add ( object sender, EventArgs e ) : void

Handles the Add event of the gLocations control.

gLocations_Delete ( object sender, RowEventArgs e ) : void

Handles the Delete event of the gLocations control.

gLocations_Edit ( object sender, RowEventArgs e ) : void

Handles the Edit event of the gLocations control.

gLocations_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gLocations control.

gLocations_ShowEdit ( System.Guid locationGuid ) : void

Gs the locations_ show edit.

gMemberWorkflowTriggers_Add ( object sender, EventArgs e ) : void

Handles the Add event of the gMemberWorkflowTriggers control.

gMemberWorkflowTriggers_Delete ( object sender, RowEventArgs e ) : void

Handles the Delete event of the gMemberWorkflowTriggers control.

gMemberWorkflowTriggers_Edit ( object sender, RowEventArgs e ) : void

Handles the Edit event of the gMemberWorkflowTriggers control.

gMemberWorkflowTriggers_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gMemberWorkflowTriggers control.

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

Handles the GridReorder event of the gMemberWorkflowTriggers control.

gMemberWorkflowTriggers_ShowEdit ( System.Guid memberWorkflowTriggersGuid ) : void

Gs the group attributes_ show edit.

lbLocationType_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbProperty control.

mdGroupRequirement_SaveClick ( object sender, EventArgs e ) : void

Handles the SaveClick event of the mdGroupRequirement control.

rblScheduleSelect_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the rblScheduleSelect control.

Private Methods

Method Description
BindGroupMemberAttributesGrid ( ) : void

Binds the group member attributes grid.

BindGroupMemberAttributesInheritedGrid ( ) : void

Binds the group member attributes inherited grid.

BindGroupRequirementsGrid ( ) : void

Binds the group requirements grid.

BindInheritedAttributes ( int inheritedGroupTypeId, AttributeService attributeService ) : void

Binds the inherited attributes.

BindLocationsGrid ( ) : void

Binds the locations grid.

BindMemberWorkflowTriggersGrid ( ) : void

Binds the group type attributes grid.

GetAllowedGroupTypes ( Group parentGroup, RockContext rockContext ) : IQueryable

Gets the allowed group types.

GetGroup ( int groupId, RockContext rockContext = null ) : Group

Gets the group.

HideDialog ( ) : void

Hides the dialog.

LoadDropDowns ( RockContext rockContext ) : void

Loads the drop downs.

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

Reorders the attribute list.

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

Reorders the group type role list.

SetAttributeListOrder ( List attributeList ) : void

Sets the attribute list order.

SetEditMode ( bool editable ) : void

Sets the edit mode.

SetHighlightLabelVisibility ( Group group, bool readOnly ) : void

Sets the highlight label visibility.

SetMemberWorkflowTriggerListOrder ( List itemList ) : void

Sets the group type role list order.

SetScheduleControls ( GroupTypeCache groupType, Group group ) : void
SetScheduleDisplay ( ) : void
ShowDialog ( bool setValues = false ) : void

Shows the dialog.

ShowDialog ( string dialog, bool setValues = false ) : void

Shows the dialog.

ShowEditDetails ( Group group ) : void

Shows the edit details.

ShowGroupTypeEditDetails ( GroupTypeCache groupType, Group group, bool setValues ) : void

Shows the group type edit details.

ShowReadonlyDetails ( Group group ) : void

Shows the readonly details.

ShowSelectedPane ( ) : void

Shows the selected pane.

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

ContentItemUrl() protected method

Contents the item URL.
protected ContentItemUrl ( int contentItemId ) : string
contentItemId int The content item identifier.
return string

EventItemOccurrenceUrl() protected method

Events the item occurrence URL.
protected EventItemOccurrenceUrl ( int eventItemOccurrenceId ) : string
eventItemOccurrenceId int The event item occurrence identifier.
return string

FormatTriggerType() protected method

Formats the type of the trigger.
protected FormatTriggerType ( object type, object qualifier ) : string
type object The type.
qualifier object The qualifier.
return string

GetBreadCrumbs() public method

Returns breadcrumbs specific to the block that should be added to navigation based on the current page reference. This function is called during the page's oninit to load any initial breadcrumbs.
public GetBreadCrumbs ( PageReference pageReference ) : List
pageReference PageReference The .
return List

GetTabClass() protected method

Gets the tab class.
protected GetTabClass ( object property ) : string
property object The property.
return string

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

RegistrationInstanceUrl() protected method

Registrations the instance URL.
protected RegistrationInstanceUrl ( int registrationInstanceId ) : string
registrationInstanceId int The registration instance identifier.
return string

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

ShowDetail() public method

Shows the detail.
public ShowDetail ( int groupId, int parentGroupId ) : void
groupId int The group identifier.
parentGroupId int The parent group identifier.
return void

ShowTriggerQualifierControls() protected method

Shows the trigger qualifier controls.
protected ShowTriggerQualifierControls ( ) : void
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

ddlGroupType_SelectedIndexChanged() protected method

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

ddlParentGroup_SelectedIndexChanged() protected method

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

ddlTriggerType_SelectedIndexChanged() protected method

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

dlgGroupMemberAttribute_SaveClick() protected method

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

dlgLocations_SaveClick() protected method

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

dlgMemberWorkflowTriggers_SaveClick() protected method

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

gGroupMemberAttributesInherited_GridRebind() protected method

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

gGroupMemberAttributes_Add() protected method

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

gGroupMemberAttributes_Delete() protected method

Handles the Delete event of the gGroupMemberAttributes control.
protected gGroupMemberAttributes_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

gGroupMemberAttributes_Edit() protected method

Handles the Edit event of the gGroupMemberAttributes control.
protected gGroupMemberAttributes_Edit ( 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

gGroupMemberAttributes_GridRebind() protected method

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

gGroupMemberAttributes_GridReorder() protected method

Handles the GridReorder event of the gGroupMemberAttributes control.
protected gGroupMemberAttributes_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

gGroupMemberAttributes_ShowEdit() protected method

Gs the group member attributes_ show edit.
protected gGroupMemberAttributes_ShowEdit ( System.Guid attributeGuid ) : void
attributeGuid System.Guid The attribute GUID.
return void

gGroupRequirements_Add() protected method

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

gGroupRequirements_Delete() protected method

Handles the Delete event of the gGroupRequirements control.
protected gGroupRequirements_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

gGroupRequirements_Edit() protected method

Handles the Edit event of the gGroupRequirements control.
protected gGroupRequirements_Edit ( 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

gGroupRequirements_GridRebind() protected method

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

gGroupRequirements_ShowEdit() protected method

Shows the modal dialog to add/edit a Group Requirement
protected gGroupRequirements_ShowEdit ( System.Guid groupRequirementGuid ) : void
groupRequirementGuid System.Guid The group requirement unique identifier.
return void

gLocations_Add() protected method

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

gLocations_Delete() protected method

Handles the Delete event of the gLocations control.
protected gLocations_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

gLocations_Edit() protected method

Handles the Edit event of the gLocations control.
protected gLocations_Edit ( 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

gLocations_GridRebind() protected method

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

gLocations_ShowEdit() protected method

Gs the locations_ show edit.
protected gLocations_ShowEdit ( System.Guid locationGuid ) : void
locationGuid System.Guid The location unique identifier.
return void

gMemberWorkflowTriggers_Add() protected method

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

gMemberWorkflowTriggers_Delete() protected method

Handles the Delete event of the gMemberWorkflowTriggers control.
protected gMemberWorkflowTriggers_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

gMemberWorkflowTriggers_Edit() protected method

Handles the Edit event of the gMemberWorkflowTriggers control.
protected gMemberWorkflowTriggers_Edit ( 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

gMemberWorkflowTriggers_GridRebind() protected method

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

gMemberWorkflowTriggers_GridReorder() protected method

Handles the GridReorder event of the gMemberWorkflowTriggers control.
protected gMemberWorkflowTriggers_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

gMemberWorkflowTriggers_ShowEdit() protected method

Gs the group attributes_ show edit.
protected gMemberWorkflowTriggers_ShowEdit ( System.Guid memberWorkflowTriggersGuid ) : void
memberWorkflowTriggersGuid System.Guid
return void

lbLocationType_Click() protected method

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

mdGroupRequirement_SaveClick() protected method

Handles the SaveClick event of the mdGroupRequirement control.
protected mdGroupRequirement_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