Show / Hide Table of Contents

Class Location

Poloha prenosnej registračnej pokladne

Inheritance
System.Object
Location
Implements
IDeepCloneable<Location>
IDeepCloneable
System.IEquatable<Location>
Namespace: NineDigit.eKasa
Assembly: NineDigit.eKasa.dll
Syntax
public sealed class Location : Object, IDeepCloneable<Location>, IDeepCloneable, IEquatable<Location>

Constructors

Location(CashRegisterOtherLocation)

Vytvorí objekt polohy prenosnej registračnej pokladne z inak určenej polohy

Declaration
public Location(CashRegisterOtherLocation other)
Parameters
Type Name Description
CashRegisterOtherLocation other

Iný spôsob definovania umiestnenia prenosnej pokladnice, na ktorej podnikateľ v danom čase prijíma tržbu. ORP použije tento typ definovania polohy, ak nie je možné uviesť adresu umiestnenia prenosnej pokladnice alebo GPS súradnice. Príklad: Taxi ABC ŠPZ=BA 123 AA; odpočívadlo Zeleneč D1

Exceptions
Type Condition
System.ArgumentNullException

other je null

Location(GeoCoordinates)

Vytvorí objekt polohy prenosnej registračnej pokladne z GPS koordinátov

Declaration
public Location(GeoCoordinates gps)
Parameters
Type Name Description
GeoCoordinates gps

GPS súradnice miesta podľa súradnicového systému WGS 84, na ktorom ORP vyhotovuje doklady. ORP použije tento typ, ak vie získať svoje GPS súradnice v rámci súradnicového systému WGS 84.

Location(PhysicalAddress)

Vytvorí objekt polohy prenosnej registračnej pokladne z fyzickej adresy

Declaration
public Location(PhysicalAddress address)
Parameters
Type Name Description
PhysicalAddress address

Adresa umiestnenia prenosnej pokladnice, na ktorej podnikateľ prijíma v danom čase tržbu. ORP použije daný typ na definovanie polohy ako adresu, ak nemá možnosť získať presné GPS súradnice podľa súradnicového systému WGS 84.

Exceptions
Type Condition
System.ArgumentNullException

address je null

Properties

Type

Typ polohy prenosnej registračnej pokladne

Declaration
public LocationType Type { get; }
Property Value
Type Description
LocationType

Value

Poloha prenosnej registračnej pokladne

Declaration
public ICloneable Value { get; }
Property Value
Type Description
System.ICloneable

Methods

DeepClone()

Declaration
public Location DeepClone()
Returns
Type Description
Location

Equals(Location)

Declaration
public bool Equals(Location other)
Parameters
Type Name Description
Location other
Returns
Type Description
System.Boolean

Equals(Location, Location)

Declaration
public static bool Equals(Location x, Location y)
Parameters
Type Name Description
Location x
Location y
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

GetGeoCoordinates()

Získa súradnice polohy prenosnej registračnej pokladne

Declaration
public GeoCoordinates GetGeoCoordinates()
Returns
Type Description
GeoCoordinates

GPS súradnice

Exceptions
Type Condition
System.InvalidOperationException

Poloha nie je typu GPS

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

GetOther()

Získa inak definovanú polohu prenosnej registračnej pokladne

Declaration
public CashRegisterOtherLocation GetOther()
Returns
Type Description
CashRegisterOtherLocation

Poloha

Exceptions
Type Condition
System.InvalidOperationException

Poloha nie je typu Other

GetPhysicalAddress()

Získa fyzickú adresu polohy prenosnej registračnej pokladne

Declaration
public PhysicalAddress GetPhysicalAddress()
Returns
Type Description
PhysicalAddress

Fyzická adresa

Exceptions
Type Condition
System.InvalidOperationException

Poloha nie je typu Address

Operators

Equality(Location, Location)

Declaration
public static bool operator ==(Location x, Location y)
Parameters
Type Name Description
Location x
Location y
Returns
Type Description
System.Boolean

Inequality(Location, Location)

Declaration
public static bool operator !=(Location x, Location y)
Parameters
Type Name Description
Location x
Location y
Returns
Type Description
System.Boolean

Explicit Interface Implementations

IDeepCloneable.DeepClone()

Declaration
object IDeepCloneable.DeepClone()
Returns
Type Description
System.Object

Implements

IDeepCloneable<T>
IDeepCloneable
System.IEquatable<>

Extension Methods

CashRegisterLocationExtensions.GetValueAsPhysicalAddress(Location)
CashRegisterLocationExtensions.GetValueAsGeoCoordinates(Location)
CashRegisterLocationExtensions.GetValueAsOther(Location)
In This Article
Na začiatok stránky Nine Digit, s.r.o. ©