C# Класс RockWeb.Blocks.Crm.PhotoUpload

Наследование: Rock.Web.UI.RockBlock
Показать файл Открыть проект

Защищенные методы

Метод Описание
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.

imageEditor_FileSaved ( object sender, EventArgs e ) : void

Handles connecting the saved image file to the person Id specified in the CommandArgument control attribute.

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

Handles adjusting the image editor control for each person bound to the list.

Приватные методы

Метод Описание
AddOrUpdatePersonInPhotoRequestGroup ( Person person, RockContext rockContext ) : void

Add the person (if not already existing) to the Photo Request group and set status to Pending.

BindRepeater ( ) : void

Binds the person and their family (if the IncludeFamilyMembers block attribute is set to true) to the repeater which holds an image editor control for each person.

Описание методов

Block_BlockUpdated() защищенный Метод

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.
Результат void

OnInit() защищенный Метод

Raises the E:System.Web.UI.Control.Init event.
protected OnInit ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
Результат void

OnLoad() защищенный Метод

Raises the E:System.Web.UI.Control.Load event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs The object that contains the event data.
Результат void

imageEditor_FileSaved() защищенный Метод

Handles connecting the saved image file to the person Id specified in the CommandArgument control attribute.
protected imageEditor_FileSaved ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
Результат void

rptPhotos_ItemDataBound() защищенный Метод

Handles adjusting the image editor control for each person bound to the list.
protected rptPhotos_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.
Результат void