Class WorkerStation
Information about a worker logged in at a workstation.
[DataContract(IsReference = true)]
[KnownType(typeof(Station))]
[KnownType(typeof(StationType))]
[KnownType(typeof(Worker))]
public class WorkerStation
- Inheritance
-
WorkerStation
- Inherited Members
Constructors
WorkerStation(int, DateTime, DateTime, byte, Station, StationType, Worker)
Initializes a new instance of the WorkerStation class.
public WorkerStation(int workerStationId, DateTime logOnDateTime, DateTime shiftDate, byte shiftNumber, Station station, StationType stationType, Worker worker)
Parameters
workerStationIdintThe unique identifier for this worker station.
logOnDateTimeDateTimeThe date/time when the worker logged on to the station, in UTC.
shiftDateDateTimeThe shift date, in local time, expressed as a date only.
shiftNumberbyteThe shift number.
stationStationThe station.
stationTypeStationTypeThe station type.
workerWorkerThe worker.
Exceptions
- ArgumentNullException
stationis null.- ArgumentNullException
stationTypeis null.- ArgumentNullException
workeris null.
Properties
LogOffDateTime
Gets or sets the date/time when the worker logged off from the station, in UTC, or null if there is no log off date/time recorded.
[DataMember]
public DateTime? LogOffDateTime { get; set; }
Property Value
LogOnDateTime
Gets the date/time when the worker logged on to the station, in UTC.
[DataMember]
public DateTime LogOnDateTime { get; }
Property Value
ShiftDate
Gets the shift date, in local time, expressed as a date only (time will be set to midnight).
[DataMember]
public DateTime ShiftDate { get; }
Property Value
ShiftNumber
Gets the shift number.
[DataMember]
public byte ShiftNumber { get; }
Property Value
Station
Gets the station.
[DataMember]
public Station Station { get; }
Property Value
StationType
Gets the station type.
[DataMember]
public StationType StationType { get; }
Property Value
Worker
Gets the worker.
[DataMember]
public Worker Worker { get; }
Property Value
WorkerStationId
Gets the unique identifier for this worker station.
[DataMember]
public int WorkerStationId { get; }