C# Class RockWeb.Blocks.CheckIn.Admin

Inheritance: Rock.CheckIn.CheckInBlock
Datei anzeigen Open project: NewSpring/Rock

Public Methods

Method Description
GetCurrentKioskByGeoFencing ( string sLatitude, string sLongitude ) : Device

Returns a kiosk based on finding a geo location match for the given latitude and longitude.

Protected Methods

Method Description
OnLoad ( EventArgs e ) : void
ddlCheckinType_SelectedIndexChanged ( object sender, EventArgs e ) : void
ddlKiosk_SelectedIndexChanged ( object sender, EventArgs e ) : void
ddlTheme_SelectedIndexChanged ( object sender, EventArgs e ) : void
lbCheckGeoLocation_Click ( object sender, EventArgs e ) : void

Handles attempting to find a registered Device kiosk by it's latitude and longitude. This event method is called automatically when the GeoLocation script get's the client's location.

lbOk_Click ( object sender, EventArgs e ) : void
lbRefresh_Click ( object sender, EventArgs e ) : void

Used by the local storage script to rebind the group types if they were previously saved via local storage.

lbRetry_Click ( object sender, EventArgs e ) : void

Private Methods

Method Description
AddGeoLocationScript ( ) : void

Adds GeoLocation script and calls its init() to get client's latitude/longitude before firing the server side lbCheckGeoLocation_Click click event. Puts the two values into the two corresponding hidden varialbles, hfLatitude and hfLongitude.

AttemptKioskMatchByIpOrName ( ) : void

Attempts to match a known kiosk based on the IP address of the client.

BindCheckinTypes ( ) : void
BindCheckinTypes ( int selectedValue ) : void
BindGroupTypes ( ) : void
BindGroupTypes ( string selectedValues ) : void
ClearMobileCookie ( ) : void

Clears the flag cookie that indicates this is a "mobile" device kiosk.

GetAllKiosksGroupTypes ( Device kiosk, RockContext rockContext ) : List

Returns a list of IDs that are the GroupTypes the kiosk is responsible for.

GetCheckinType ( GroupTypeCache groupType, int templateTypeId, List recursionControl = null ) : GroupTypeCache
GetCheckinType ( int groupTypeId ) : GroupTypeCache
GetDescendentGroupTypes ( GroupTypeCache groupType, List recursionControl = null ) : List
GetDeviceGroupTypes ( int deviceId, RockContext rockContext ) : List

Gets the device group types.

RedirectToNewTheme ( string theme ) : void
SetDeviceIdCookie ( Device kiosk ) : void

Sets the "DeviceId" cookie to expire after TimeToCacheKioskGeoLocation minutes if IsMobile is set.

TooFar ( ) : void

Display a "too far" message.

Method Details

GetCurrentKioskByGeoFencing() public static method

Returns a kiosk based on finding a geo location match for the given latitude and longitude.
public static GetCurrentKioskByGeoFencing ( string sLatitude, string sLongitude ) : Device
sLatitude string latitude as string
sLongitude string longitude as string
return Device

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

ddlCheckinType_SelectedIndexChanged() protected method

protected ddlCheckinType_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

ddlKiosk_SelectedIndexChanged() protected method

protected ddlKiosk_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

ddlTheme_SelectedIndexChanged() protected method

protected ddlTheme_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

lbCheckGeoLocation_Click() protected method

Handles attempting to find a registered Device kiosk by it's latitude and longitude. This event method is called automatically when the GeoLocation script get's the client's location.
protected lbCheckGeoLocation_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

lbOk_Click() protected method

protected lbOk_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

lbRefresh_Click() protected method

Used by the local storage script to rebind the group types if they were previously saved via local storage.
protected lbRefresh_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

lbRetry_Click() protected method

protected lbRetry_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void