C# Class RockWeb.Blocks.Crm.PhotoSendRequest

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

Protected Methods

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

Handles the BlockUpdated event of the control.

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.

btnCancel_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnCancel control and resets the form back to the pre-confirm send state.

btnSendConfirmed_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnSendConfirmed control which sends the actual communication.

btnSend_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnSend control and displays the "confirm" button.

btnTest_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnTest control and sends a test communication to the current person if they have an email address on their record.

Private Methods

Method Description
BindCheckBoxLists ( ) : void

Binds the checkbox lists.

CheckApprovalRequired ( int numberOfRecipients ) : bool

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

GetCommunication ( RockContext rockContext, List peopleIds ) : Rock.Model.Communication

Gets the communication.

GetMatchingPeople ( ) : IQueryable

Gets the matching people for the criteria on the form.

GetTemplateData ( ) : bool

Gets the template data.

SetActionButtons ( bool resetToSend ) : void

Sets the action buttons to the reset state (pre confirm) or the confirm state.

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

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

btnCancel_Click() protected method

Handles the Click event of the btnCancel control and resets the form back to the pre-confirm send state.
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

btnSendConfirmed_Click() protected method

Handles the Click event of the btnSendConfirmed control which sends the actual communication.
protected btnSendConfirmed_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

btnSend_Click() protected method

Handles the Click event of the btnSend control and displays the "confirm" button.
protected btnSend_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

btnTest_Click() protected method

Handles the Click event of the btnTest control and sends a test communication to the current person if they have an email address on their record.
protected btnTest_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void