C# Class RockWeb.Blocks.Event.RegistrationTemplateDetail

Inheritance: Rock.Web.UI.RockBlock
Show file Open project: SparkDevNetwork/Rock

Private Properties

Property Type Description
BindDiscountsGrid void
BindFeesGrid void
BindFieldsGrid void
BuildControls void
BuildFormControl void
GetRegistrationTemplate RegistrationTemplate
HideDialog void
LoadDropDowns void
LoadStateDetails void
ParseControls void
ReOrderFields void
SetCostVisibility void
SetEditMode void
SetFieldDisplay void
SetHasRegistrations void
ShowDetail void
ShowDialog void
ShowDialog void
ShowDiscountEdit void
ShowEditDetails void
ShowFeeEdit void
ShowFormFieldEdit void
ShowReadonlyDetails void
SortFields void
SortForms void
tfeForm_AddFieldClick void
tfeForm_DeleteFieldClick void
tfeForm_DeleteFormClick void
tfeForm_EditFieldClick void
tfeForm_RebindFieldClick void
tfeForm_ReorderFieldClick void

Public Methods

Method Description
GetBreadCrumbs ( PageReference pageReference ) : List

Gets the bread crumbs.

Protected Methods

Method Description
FormatFeeCost ( string value ) : string

Formats the fee cost.

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.

OnPreRender ( EventArgs e ) : void
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 btnCopy 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.

cbMultipleRegistrants_CheckedChanged ( object sender, EventArgs e ) : void

Handles the CheckedChanged event of the cbMultipleRegistrants control.

ddlFieldSource_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the ddlFieldSource control.

dlgDiscount_SaveClick ( object sender, EventArgs e ) : void

Handles the SaveClick event of the dlgDiscount control.

dlgFee_SaveClick ( object sender, EventArgs e ) : void

Handles the SaveClick event of the dlgFee control.

dlgField_SaveClick ( object sender, EventArgs e ) : void

Handles the SaveClick event of the dlgField control.

gDiscounts_AddClick ( object sender, EventArgs e ) : void

Handles the AddClick event of the gDiscounts control.

gDiscounts_Delete ( object sender, RowEventArgs e ) : void

Handles the Delete event of the gDiscounts control.

gDiscounts_Edit ( object sender, RowEventArgs e ) : void

Handles the Edit event of the gDiscounts control.

gDiscounts_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gDiscounts control.

gDiscounts_GridReorder ( object sender, GridReorderEventArgs e ) : void

Handles the GridReorder event of the gDiscounts control.

gFees_AddClick ( object sender, EventArgs e ) : void

Handles the AddClick event of the gFees control.

gFees_Delete ( object sender, RowEventArgs e ) : void

Handles the Delete event of the gFees control.

gFees_Edit ( object sender, RowEventArgs e ) : void

Handles the Edit event of the gFees control.

gFees_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gFees control.

gFees_GridReorder ( object sender, GridReorderEventArgs e ) : void

Handles the GridReorder event of the gFees control.

gFields_AddClick ( object sender, EventArgs e ) : void

Handles the AddClick event of the gFields control.

gFields_Delete ( object sender, RowEventArgs e ) : void

Handles the Delete event of the gFields control.

gFields_Edit ( object sender, RowEventArgs e ) : void

Handles the Edit event of the gFields control.

gFields_GridRebind ( object sender, EventArgs e ) : void

Handles the GridRebind event of the gFields control.

gFields_GridReorder ( object sender, GridReorderEventArgs e ) : void

Handles the GridReorder event of the gFields control.

gFields_RowDataBound ( object sender, GridViewRowEventArgs e ) : void

Handles the RowDataBound event of the gFields control.

gtpGroupType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the gtpGroupType control.

lbAddForm_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbAddForm control.

rblDiscountType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the rblDiscountType control.

rblFeeType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the rblFeeType control.

tglSetCost_CheckedChanged ( object sender, EventArgs e ) : void

Handles the CheckedChanged event of the tglSetCost control.

Private Methods

Method Description
BindDiscountsGrid ( ) : void

Binds the discounts grid.

BindFeesGrid ( ) : void

Binds the fees grid.

BindFieldsGrid ( ) : void

Binds the fields grid.

BuildControls ( bool setValues = false, System.Guid activeFormGuid = null ) : void

Builds the controls.

BuildFormControl ( Control parentControl, bool setValues, RegistrationTemplateForm form, System.Guid activeFormGuid = null, bool showInvalid = false ) : void

Builds the form control.

GetRegistrationTemplate ( int registrationTemplateId, RockContext rockContext = null ) : RegistrationTemplate

Gets the registration template.

HideDialog ( ) : void

Hides the dialog.

LoadDropDowns ( RockContext rockContext ) : void

Loads the drop downs.

LoadStateDetails ( RegistrationTemplate RegistrationTemplate, RockContext rockContext ) : void

Loads the state details.

ParseControls ( bool expandInvalid = false ) : void

Parses the controls.

ReOrderFields ( List fieldList ) : void

Reorder fields.

SetCostVisibility ( ) : void

Sets the cost visibility.

SetEditMode ( bool editable ) : void

Sets the edit mode.

SetFieldDisplay ( ) : void

Sets the field display.

SetHasRegistrations ( int registrationTemplateId, RockContext rockContext ) : void

Sets the has registrations.

ShowDetail ( ) : void

Shows the detail.

ShowDialog ( bool setValues = false ) : void

Shows the dialog.

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

Shows the dialog.

ShowDiscountEdit ( System.Guid discountGuid ) : void

Shows the discount edit.

ShowEditDetails ( RegistrationTemplate RegistrationTemplate, RockContext rockContext ) : void

Shows the edit details.

ShowFeeEdit ( System.Guid feeGuid ) : void

Shows the fee edit.

ShowFormFieldEdit ( System.Guid formGuid, System.Guid formFieldGuid ) : void

Shows the form field edit.

ShowReadonlyDetails ( RegistrationTemplate RegistrationTemplate ) : void

Shows the readonly details.

SortFields ( List fieldList, int oldIndex, int newIndex ) : void

Sorts the fields.

SortForms ( System.Guid guid, int newIndex ) : void

Sorts the forms.

tfeForm_AddFieldClick ( object sender, TemplateFormFieldEventArg e ) : void

Tfes the form_ add attribute click.

tfeForm_DeleteFieldClick ( object sender, TemplateFormFieldEventArg e ) : void

Tfes the form_ delete attribute click.

tfeForm_DeleteFormClick ( object sender, EventArgs e ) : void

Handles the DeleteFormClick event of the tfeForm control.

tfeForm_EditFieldClick ( object sender, TemplateFormFieldEventArg e ) : void

Tfes the form_ edit attribute click.

tfeForm_RebindFieldClick ( object sender, TemplateFormFieldEventArg e ) : void

Tfes the form_ rebind attribute click.

tfeForm_ReorderFieldClick ( object sender, TemplateFormFieldEventArg e ) : void

Tfes the form_ reorder attribute click.

Method Details

FormatFeeCost() protected method

Formats the fee cost.
protected FormatFeeCost ( string value ) : string
value string The value.
return string

GetBreadCrumbs() public method

Gets the bread crumbs.
public GetBreadCrumbs ( PageReference pageReference ) : List
pageReference PageReference The page reference.
return List

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

OnPreRender() protected method

protected OnPreRender ( EventArgs e ) : void
e System.EventArgs
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

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 btnCopy 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 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 EventArgs The instance containing the event data.
return void

cbMultipleRegistrants_CheckedChanged() protected method

Handles the CheckedChanged event of the cbMultipleRegistrants control.
protected cbMultipleRegistrants_CheckedChanged ( object sender, EventArgs e ) : void
sender object The source of the event.
e EventArgs The instance containing the event data.
return void

ddlFieldSource_SelectedIndexChanged() protected method

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

dlgDiscount_SaveClick() protected method

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

dlgFee_SaveClick() protected method

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

dlgField_SaveClick() protected method

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

gDiscounts_AddClick() protected method

Handles the AddClick event of the gDiscounts control.
protected gDiscounts_AddClick ( object sender, EventArgs e ) : void
sender object The source of the event.
e EventArgs The instance containing the event data.
return void

gDiscounts_Delete() protected method

Handles the Delete event of the gDiscounts control.
protected gDiscounts_Delete ( object sender, RowEventArgs e ) : void
sender object The source of the event.
e RowEventArgs The instance containing the event data.
return void

gDiscounts_Edit() protected method

Handles the Edit event of the gDiscounts control.
protected gDiscounts_Edit ( object sender, RowEventArgs e ) : void
sender object The source of the event.
e RowEventArgs The instance containing the event data.
return void

gDiscounts_GridRebind() protected method

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

gDiscounts_GridReorder() protected method

Handles the GridReorder event of the gDiscounts control.
protected gDiscounts_GridReorder ( object sender, GridReorderEventArgs e ) : void
sender object The source of the event.
e GridReorderEventArgs The instance containing the event data.
return void

gFees_AddClick() protected method

Handles the AddClick event of the gFees control.
protected gFees_AddClick ( object sender, EventArgs e ) : void
sender object The source of the event.
e EventArgs The instance containing the event data.
return void

gFees_Delete() protected method

Handles the Delete event of the gFees control.
protected gFees_Delete ( object sender, RowEventArgs e ) : void
sender object The source of the event.
e RowEventArgs The instance containing the event data.
return void

gFees_Edit() protected method

Handles the Edit event of the gFees control.
protected gFees_Edit ( object sender, RowEventArgs e ) : void
sender object The source of the event.
e RowEventArgs The instance containing the event data.
return void

gFees_GridRebind() protected method

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

gFees_GridReorder() protected method

Handles the GridReorder event of the gFees control.
protected gFees_GridReorder ( object sender, GridReorderEventArgs e ) : void
sender object The source of the event.
e GridReorderEventArgs The instance containing the event data.
return void

gFields_AddClick() protected method

Handles the AddClick event of the gFields control.
protected gFields_AddClick ( object sender, EventArgs e ) : void
sender object The source of the event.
e EventArgs The instance containing the event data.
return void

gFields_Delete() protected method

Handles the Delete event of the gFields control.
protected gFields_Delete ( object sender, RowEventArgs e ) : void
sender object The source of the event.
e RowEventArgs The instance containing the event data.
return void

gFields_Edit() protected method

Handles the Edit event of the gFields control.
protected gFields_Edit ( object sender, RowEventArgs e ) : void
sender object The source of the event.
e RowEventArgs The instance containing the event data.
return void

gFields_GridRebind() protected method

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

gFields_GridReorder() protected method

Handles the GridReorder event of the gFields control.
protected gFields_GridReorder ( object sender, GridReorderEventArgs e ) : void
sender object The source of the event.
e GridReorderEventArgs The instance containing the event data.
return void

gFields_RowDataBound() protected method

Handles the RowDataBound event of the gFields control.
protected gFields_RowDataBound ( object sender, GridViewRowEventArgs e ) : void
sender object The source of the event.
e GridViewRowEventArgs The instance containing the event data.
return void

gtpGroupType_SelectedIndexChanged() protected method

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

lbAddForm_Click() protected method

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

rblDiscountType_SelectedIndexChanged() protected method

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

rblFeeType_SelectedIndexChanged() protected method

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

tglSetCost_CheckedChanged() protected method

Handles the CheckedChanged event of the tglSetCost control.
protected tglSetCost_CheckedChanged ( object sender, EventArgs e ) : void
sender object The source of the event.
e EventArgs The instance containing the event data.
return void