C# Class RockWeb.Blocks.Cms.MarketingCampaignAdDetail

Inheritance: Rock.Web.UI.RockBlock, IDetailBlock
Show file Open project: CentralAZ/Rockit-CentralAZ

Public Methods

Method Description
ShowDetail ( string itemKey, int itemKeyValue ) : void

Shows the detail.

ShowDetail ( string itemKey, int itemKeyValue, int marketingCampaignId ) : void

Shows the detail.

Protected Methods

Method Description
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.

btnSave_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnSave control.

ddlMarketingCampaignAdType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the ddlMarketingCampaignAdType control.

lbApprove_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbApprove control.

lbDeny_Click ( object sender, EventArgs e ) : void

Handles the Click event of the lbDeny control.

Private Methods

Method Description
GetAttributesForAdType ( int marketingAdTypeId ) : List

Gets the type of the attributes for ad.

LoadAdAttributes ( Rock marketingCampaignAd, bool createControls, bool setValues ) : void

Loads the attribute controls.

LoadDropDowns ( ) : void

Loads the drop downs.

SetApprovalValues ( MarketingCampaignAdStatus status, Person person ) : void

Sets the approval values.

Method Details

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

ShowDetail() public method

Shows the detail.
public ShowDetail ( string itemKey, int itemKeyValue ) : void
itemKey string The item key.
itemKeyValue int The item key value.
return void

ShowDetail() public method

Shows the detail.
public ShowDetail ( string itemKey, int itemKeyValue, int marketingCampaignId ) : void
itemKey string The item key.
itemKeyValue int The item key value.
marketingCampaignId int The marketing campaign id.
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

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

ddlMarketingCampaignAdType_SelectedIndexChanged() protected method

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

lbApprove_Click() protected method

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

lbDeny_Click() protected method

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