C# Class RockWeb.Blocks.Prayer.PrayerRequestDetail

Inheritance: Rock.Web.UI.RockBlock, IDetailBlock
Show file Open project: NewSpring/Rock

Public Methods

Method Description
ScrubHtmlAndConvertCrLfToBr ( string str ) : string

Scrubs any html from the string but converts carriage returns into html <br/> suitable for web display.

ShowDetail ( int prayerId ) : void

Shows the prayer request's detail.

Protected Methods

Method Description
OnInit ( EventArgs e ) : void

Handles the E:System.Web.UI.Control.Init event.

OnLoad ( EventArgs e ) : void

Handles the E:System.Web.UI.Control.Load event.

lbCancel_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbCancel control.

lbEdit_Click ( object sender, EventArgs e ) : void

Handles the edit Click event of the lbEdit control.

lbSave_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbSave control.

ppRequestor_SelectPerson ( object sender, EventArgs e ) : void

Handles the SelectPerson event of the ppRequestor control.

Private Methods

Method Description
SaveRequest ( ) : void

Saves the prayer request.

SetEditMode ( bool enableEdit ) : void

Sets the edit mode.

ShowApproval ( PrayerRequest prayerRequest ) : void

Shows the approval.

ShowEditDetails ( PrayerRequest prayerRequest ) : void

Shows the edit details.

ShowPrayerCount ( PrayerRequest prayerRequest ) : void

Shows the prayer count.

ShowReadonlyDetails ( PrayerRequest prayerRequest ) : void

Shows the readonly details.

ShowStatus ( PrayerRequest prayerRequest, Person person, HighlightLabel lFlagged ) : void

Shows the status flags

Method Details

OnInit() protected method

Handles 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

Handles 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

ScrubHtmlAndConvertCrLfToBr() public static method

Scrubs any html from the string but converts carriage returns into html <br/> suitable for web display.
public static ScrubHtmlAndConvertCrLfToBr ( string str ) : string
str string a string that may contain unsanitized html and carriage returns
return string

ShowDetail() public method

Shows the prayer request's detail.
public ShowDetail ( int prayerId ) : void
prayerId int The prayer identifier.
return void

lbCancel_Click() protected method

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

lbEdit_Click() protected method

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

lbSave_Click() protected method

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

ppRequestor_SelectPerson() protected method

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