C# Class Rock.CheckIn.CheckInBlock

Inheritance: Rock.Web.UI.RockBlock
Afficher le fichier Open project: NewSpring/Rock

Protected Properties

Свойство Type Description
CurrentCheckInState CheckInState
CurrentGroupTypeIds List
CurrentWorkflow Rock.Model.Workflow

Méthodes publiques

Méthode Description
RequiresSelection ( bool backingUp ) : bool

Determines if the block requires that a selection be made. This is used to determine if user should be redirected to this block or not.

Méthodes protégées

Méthode Description
CancelCheckin ( ) : void

Cancels the check-in.

CheckForOverride ( string>.Dictionary queryParams = null ) : string>.Dictionary

Checks if the override option is currently being used.

GetCheckInBlock ( string attributeKey ) : CheckInBlock

Loads a check-in block to determine if it will require a selection or not. This is used to find the next page/block that does require a selection so that user can be redirected once to that block, rather than just continuesly redirected to next/prev page blocks and possibly exceeding the maximum number of redirects.

GetGroupTypesLocations ( RockContext rockContext ) : IEnumerable

Returns the locations for this Kiosk for the configured group types

GetPersonScheduleSubTitle ( ) : string

Gets the person schedule sub title.

GoBack ( ) : void

Do nothing (such as unselecting something) but simply return to previous screen.

GoBack ( bool validateSelectionRequired ) : void

Goes the back.

NavigateToHomePage ( ) : void

Navigates to the check-in home page.

NavigateToNextPage ( ) : void

Navigates to next page.

NavigateToNextPage ( string>.Dictionary queryParams ) : void

Navigates to next page.

NavigateToNextPage ( string>.Dictionary queryParams, bool validateSelectionRequired ) : void

Navigates to next page.

NavigateToNextPage ( bool validateSelectionRequired ) : void

Navigates to next page.

NavigateToPreviousPage ( ) : void

Navigates to previous page.

NavigateToPreviousPage ( string>.Dictionary queryParams ) : void

Navigates to previous page.

NavigateToPreviousPage ( string>.Dictionary queryParams, bool validateSelectionRequired ) : void

Navigates to previous page.

NavigateToPreviousPage ( bool validateSelectionRequired ) : void

Navigates to previous page.

OnInit ( EventArgs e ) : void

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

ProcessActivity ( string activityName, List &errorMessages ) : bool

Activates and processes a workflow activity. If the workflow has not yet been activated, it will also be activated

ProcessSelection ( Rock modalAlert ) : List

Processes the selection, save state and navigates to the next page if no errors are encountered during processing the activity.

ProcessSelection ( Rock modalAlert, bool validateSelectionRequired ) : List

Processes the selection, save state and navigates to the next page if no errors are encountered during processing the activity.

ProcessSelection ( Rock modalAlert, Func doNotProceedCondition, string conditionMessage ) : bool

Processes the selection, save state and navigates to the next page if no errors are encountered during processing the activity.

ProcessSelection ( Rock modalAlert, Func doNotProceedCondition, string conditionMessage, bool validateSelectionRequired ) : bool

Processes the selection, save state and navigates to the next page if no errors are encountered during processing the activity.

SaveState ( ) : void

Saves the current state of the kiosk and workflow

Private Methods

Méthode Description
GetState ( ) : void

Gets the state.

Method Details

CancelCheckin() protected méthode

Cancels the check-in.
protected CancelCheckin ( ) : void
Résultat void

CheckForOverride() protected méthode

Checks if the override option is currently being used.
protected CheckForOverride ( string>.Dictionary queryParams = null ) : string>.Dictionary
queryParams string>.Dictionary The query parameters.
Résultat string>.Dictionary

GetCheckInBlock() protected méthode

Loads a check-in block to determine if it will require a selection or not. This is used to find the next page/block that does require a selection so that user can be redirected once to that block, rather than just continuesly redirected to next/prev page blocks and possibly exceeding the maximum number of redirects.
protected GetCheckInBlock ( string attributeKey ) : CheckInBlock
attributeKey string The attribute key.
Résultat CheckInBlock

GetGroupTypesLocations() protected méthode

Returns the locations for this Kiosk for the configured group types
protected GetGroupTypesLocations ( RockContext rockContext ) : IEnumerable
rockContext RockContext
Résultat IEnumerable

GetPersonScheduleSubTitle() protected méthode

Gets the person schedule sub title.
protected GetPersonScheduleSubTitle ( ) : string
Résultat string

GoBack() protected méthode

Do nothing (such as unselecting something) but simply return to previous screen.
protected GoBack ( ) : void
Résultat void

GoBack() protected méthode

Goes the back.
protected GoBack ( bool validateSelectionRequired ) : void
validateSelectionRequired bool if set to true will check that block on prev page has a selection required before redirecting.
Résultat void

NavigateToHomePage() protected méthode

Navigates to the check-in home page.
protected NavigateToHomePage ( ) : void
Résultat void

NavigateToNextPage() protected méthode

Navigates to next page.
protected NavigateToNextPage ( ) : void
Résultat void

NavigateToNextPage() protected méthode

Navigates to next page.
protected NavigateToNextPage ( string>.Dictionary queryParams ) : void
queryParams string>.Dictionary The query parameters.
Résultat void

NavigateToNextPage() protected méthode

Navigates to next page.
protected NavigateToNextPage ( string>.Dictionary queryParams, bool validateSelectionRequired ) : void
queryParams string>.Dictionary The query parameters.
validateSelectionRequired bool if set to true will check that block on next page has a selection required before redirecting.
Résultat void

NavigateToNextPage() protected méthode

Navigates to next page.
protected NavigateToNextPage ( bool validateSelectionRequired ) : void
validateSelectionRequired bool if set to true will check that block on next page has a selection required before redirecting.
Résultat void

NavigateToPreviousPage() protected méthode

Navigates to previous page.
protected NavigateToPreviousPage ( ) : void
Résultat void

NavigateToPreviousPage() protected méthode

Navigates to previous page.
protected NavigateToPreviousPage ( string>.Dictionary queryParams ) : void
queryParams string>.Dictionary The query parameters.
Résultat void

NavigateToPreviousPage() protected méthode

Navigates to previous page.
protected NavigateToPreviousPage ( string>.Dictionary queryParams, bool validateSelectionRequired ) : void
queryParams string>.Dictionary The query parameters.
validateSelectionRequired bool if set to true will check that block on previous page has a selection required before redirecting.
Résultat void

NavigateToPreviousPage() protected méthode

Navigates to previous page.
protected NavigateToPreviousPage ( bool validateSelectionRequired ) : void
validateSelectionRequired bool if set to true will check that block on previous page has a selection required before redirecting.
Résultat void

OnInit() protected méthode

Raises the E:System.Web.UI.Control.Init event.
protected OnInit ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
Résultat void

ProcessActivity() protected méthode

Activates and processes a workflow activity. If the workflow has not yet been activated, it will also be activated
protected ProcessActivity ( string activityName, List &errorMessages ) : bool
activityName string Name of the activity.
errorMessages List The error messages.
Résultat bool

ProcessSelection() protected méthode

Processes the selection, save state and navigates to the next page if no errors are encountered during processing the activity.
protected ProcessSelection ( Rock modalAlert ) : List
modalAlert Rock The modal alert control to show if errors occur.
Résultat List

ProcessSelection() protected méthode

Processes the selection, save state and navigates to the next page if no errors are encountered during processing the activity.
protected ProcessSelection ( Rock modalAlert, bool validateSelectionRequired ) : List
modalAlert Rock The modal alert control to show if errors occur.
validateSelectionRequired bool if set to true will check that block on next page has a selection required before redirecting.
Résultat List

ProcessSelection() protected méthode

Processes the selection, save state and navigates to the next page if no errors are encountered during processing the activity.
protected ProcessSelection ( Rock modalAlert, Func doNotProceedCondition, string conditionMessage ) : bool
modalAlert Rock The modal alert control to show if errors occur.
doNotProceedCondition Func A condition that must be met after processing /// the activity in order to save state and continue to the next page.
conditionMessage string The message to display in the modal if the condition fails.
Résultat bool

ProcessSelection() protected méthode

Processes the selection, save state and navigates to the next page if no errors are encountered during processing the activity.
protected ProcessSelection ( Rock modalAlert, Func doNotProceedCondition, string conditionMessage, bool validateSelectionRequired ) : bool
modalAlert Rock The modal alert control to show if errors occur.
doNotProceedCondition Func A condition that must be met after processing /// the activity in order to save state and continue to the next page.
conditionMessage string The message to display in the modal if the condition fails.
validateSelectionRequired bool if set to true will check that block on next page has a selection required before redirecting.
Résultat bool

RequiresSelection() public méthode

Determines if the block requires that a selection be made. This is used to determine if user should be redirected to this block or not.
public RequiresSelection ( bool backingUp ) : bool
backingUp bool if set to true [backing up].
Résultat bool

SaveState() protected méthode

Saves the current state of the kiosk and workflow
protected SaveState ( ) : void
Résultat void

Property Details

CurrentCheckInState protected_oe property

The current check-in state
protected CheckInState,Rock.CheckIn CurrentCheckInState
Résultat CheckInState

CurrentGroupTypeIds protected_oe property

The current group type ids
protected List CurrentGroupTypeIds
Résultat List

CurrentWorkflow protected_oe property

The current workflow
protected Workflow,Rock.Model CurrentWorkflow
Résultat Rock.Model.Workflow