C# Class RockWeb.Blocks.Communication.NewCommunication

Inheritance: Rock.Web.UI.RockBlock
Datei anzeigen Open project: CentralAZ/Rockit-CentralAZ

Protected Methods

Method Description
OnInit ( EventArgs e ) : void
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.

btnSave_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnSave control.

btnSubmit_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnSubmit control.

ddlTemplate_SelectedIndexChanged ( object sender, EventArgs e ) : void
lbChannel_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbChannel control.

lbRemoveAllRecipients_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbRemoveAllRecipients control.

lbShowAllRecipients_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbShowAllRecipients control.

ppAddPerson_SelectPerson ( object sender, EventArgs e ) : void

Handles the SelectPerson event of the ppAddPerson control.

rptRecipients_ItemCommand ( object source, System.Web.UI.WebControls.RepeaterCommandEventArgs e ) : void

Handles the ItemCommand event of the rptRecipients control.

rptRecipients_ItemDataBound ( object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e ) : void

Handles the ItemDataBound event of the rptRecipients control.

valRecipients_ServerValidate ( object source, System.Web.UI.WebControls.ServerValidateEventArgs args ) : void

Handles the ServerValidate event of the valRecipients control.

Private Methods

Method Description
BindChannels ( ) : void

Binds the channels.

BindRecipients ( ) : void

Binds the recipients.

CheckApprovalRequired ( int numberOfRecipients ) : bool

Determines whether approval is required, and sets the submit button text appropriately

GetChannelData ( ) : void

Gets the channel data.

GetTemplateData ( int templateId, bool loadControl = true ) : void
LoadChannelControl ( bool setData ) : Rock.Web.UI.Controls.Communication.ChannelControl

Shows the channel.

LoadTemplates ( ) : void
ShowActions ( Rock communication ) : void

Shows the actions.

ShowDetail ( Rock communication ) : void

Shows the detail.

ShowResult ( string message, Rock communication ) : void

Shows the result.

ShowStatus ( Rock communication ) : void
UpdateCommunication ( RockContext rockContext ) : Rock.Model.Communication

Updates a communication model with the user-entered values

Method Details

OnInit() protected method

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

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

btnSubmit_Click() protected method

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

ddlTemplate_SelectedIndexChanged() protected method

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

lbChannel_Click() protected method

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

lbRemoveAllRecipients_Click() protected method

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

lbShowAllRecipients_Click() protected method

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

ppAddPerson_SelectPerson() protected method

Handles the SelectPerson event of the ppAddPerson control.
protected ppAddPerson_SelectPerson ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

rptRecipients_ItemCommand() protected method

Handles the ItemCommand event of the rptRecipients control.
protected rptRecipients_ItemCommand ( object source, System.Web.UI.WebControls.RepeaterCommandEventArgs e ) : void
source object The source of the event.
e System.Web.UI.WebControls.RepeaterCommandEventArgs The instance containing the event data.
return void

rptRecipients_ItemDataBound() protected method

Handles the ItemDataBound event of the rptRecipients control.
protected rptRecipients_ItemDataBound ( object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e ) : void
sender object The source of the event.
e System.Web.UI.WebControls.RepeaterItemEventArgs The instance containing the event data.
return void

valRecipients_ServerValidate() protected method

Handles the ServerValidate event of the valRecipients control.
protected valRecipients_ServerValidate ( object source, System.Web.UI.WebControls.ServerValidateEventArgs args ) : void
source object The source of the event.
args System.Web.UI.WebControls.ServerValidateEventArgs The instance containing the event data.
return void