C# Class RockWeb.Plugins.cc_newspring.AttendedCheckin.Admin

Inheritance: Rock.CheckIn.CheckInBlock
Datei anzeigen Open project: NewSpring/rock-attended-checkin

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

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

SendTestPrint ( ) : void

Prints a test label.

dlMinistry_ItemDataBound ( object sender, System.Web.UI.WebControls.DataListItemEventArgs e ) : void

Handles the ItemDataBound event of the dlMinistry control.

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

Handles the Click event of the lbOk control.

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.

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.

BindGroupTypes ( RockContext rockContext = null ) : void

Binds the group types.

ClearMobileCookie ( ) : void

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

GetCheckinType ( GroupTypeCache groupType, int templateTypeId, List recursionControl = null ) : GroupTypeCache

Gets the primary check-in area to read settings from

GetCheckinType ( int groupTypeId ) : GroupTypeCache

Gets the primary check-in area to read settings from

GetDeviceGroupTypes ( int deviceId, RockContext rockContext = null ) : List

Gets the device group types.

RedirectToNewTheme ( string theme ) : void

Redirects to the new theme page.

SetDeviceIdCookie ( Device kiosk ) : void

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

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

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

SendTestPrint() protected method

Prints a test label.
protected SendTestPrint ( ) : void
return void

dlMinistry_ItemDataBound() protected method

Handles the ItemDataBound event of the dlMinistry control.
protected dlMinistry_ItemDataBound ( object sender, System.Web.UI.WebControls.DataListItemEventArgs e ) : void
sender object The source of the event.
e System.Web.UI.WebControls.DataListItemEventArgs The instance containing the event data.
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

Handles the Click event of the lbOk control.
protected lbOk_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
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