Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview


This structure is part of the response of for method PwsGetResourcePto and captures the details of a reported time off. 

Format

Panel
titlePwsHistoricalReportedTimeOff
  • PwsHistoricalReportedTimeOff
    • ReferenceId: String
    • TimecardId: Int32
    • TimecardType: String
    • TimecardUid: Int64
    • Description: String
    • TimeOffReasonIdentity: PwsTimeOffReasonRef
    • TimeOffYear: Int32
    • WorkDate: DateTime
    • WorkMinutes: Int32


Elements

 records with associated PwsTimeCardDetail records)

Element

Data Type

Description

ReferenceId

String

Reference id (used to affiliate PwsSaveTimecardResult

Not applicable for this service.

TimecardId

Int32

The time card Id is a unique identifier for a time off card. For internal use only. 

TimecardType

String

The type of a time card.

  'T' for time card associated with a project and 

  This will always be 'R' for reported time off.

TimecardUid

Int64

The time card

Id

UID is a unique and immutable identifier for a time card.

Description

String

The time card description.

TimeOffReasonIdentity

PwsTimeOffReasonRef

This structure represents the unique key fields associated with identifying a time off reason

The identity of the time off reason associated with the reported time off.

TimeOffYear

Int32

The year of the reported time off. 

WorkDate

DateTime

The date associated with the reported time off

TWorkMinutes

Int32

The duration of the reported time off

minutes associated with this reported time off

, expressed in minutes

Usage Example(s)


Code Block
languagexml
titleExample
               <a:PwsHistoricalReportedTimeOff>
                  <ReferenceId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                  <TimecardId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                  <TimecardType xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">R</TimecardType>
                  <TimecardUid xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">1152921504609106130</TimecardUid>
                  <a:Description i:nil="true"/>
                  <a:TimeOffReasonIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                     <b:TimeOffReasonId i:nil="true"/>
                     <b:TimeOffReasonName>Vacation</b:TimeOffReasonName>
                     <b:TimeOffReasonUid>1152921504606854584</b:TimeOffReasonUid>
                  </a:TimeOffReasonIdentity>
                  <a:TimeOffYear>2022</a:TimeOffYear>
                  <a:WorkDate>2022-07-06T00:00:00</a:WorkDate>
                  <a:WorkMinutes>450</a:WorkMinutes>
               </a:PwsHistoricalReportedTimeOff>

...