Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Endpoints

TimesheetAttendanceApi

[Description]

/api/TimesheetAttendanceApi

Operation

Logged in User

Parameters

Body

Response

POST

TimesheetDefaultsApi

[Description]

/api/TimesheetDefaultsApi

Operation

Logged in User

Parameters

Body

Response

GET
Retrieves timesheet default values for client side, calculation by PersonID and JobCode

jobTranId
personId
finCoCode
jobCode
activityCode
workCentreCode
activityType
activitySubType
timeCode
costType
costRate
gstRate
profileId
statusFlag
tranDate
employeeClass

TimesheetDetailApi

Note: In order to create a Timesheet Line, please use POST with {Workbench.Mvc4.Areas.Api.Controllers.TimesheetDefaultsApiController} TimesheetDefaultsApi.

/api/TimesheetDetailApi

Operation

Logged in User

Parameters

Body

Response

GET
Returns or update a detail timesheet with lines.

personId
timesheetDate

POST
Update or create a new timesheet if not available.

TimesheetListApi - here

[Description]

/api/TimesheetListApi

Operation

Logged in User

Parameters

Body

Response

POST

Models

TimesheetApiModel

Property

Data Type

Description

Day1Complete

Boolean

Day2Complete

Boolean

Day3Complete

Boolean

Day4Complete

Boolean

Day5Complete

Boolean

Day6Complete

Boolean

Day7Complete

Boolean

AttendanceFields

TimesheetApiAttendanceFields

Form

TimesheetsTimesheetFormResult

Rows

Array [TimesheetsDailyDetailLine]

ReadonlyMessages

Array [Tuple_String]

ValidationErrors

Array [MvcValidationError]

WarningMessage

String

SuccessMessage

String

ErrorMessage

String

⬆️ Back to top

TimesheetsAttendanceKey

Property

Data Type

Description

Action

String

= ['FirstIn', 'FirstOut', 'SecondIn', 'SecondOut']

PersonId

Integer

Person id.

TimesheetDate

String

Timesheet date.

⬆️ Back to top

TimesheetApiAttendanceFields

Property

Data Type

Description

Rows

GridResult_TimesheetsAttendanceLine

⬆️ Back to top

TimesheetsAttendanceKey

Property

Data Type

Description

Action

String

=['FirstIn', 'FirstOut', 'SecondIn', 'SecondOut']

PersonId

Integer

TimesheetDate

String

⬆️ Back to top

TimesheetsAttendanceLine

Property

Data Type

Description

LineNo

String

Line number.

ShiftNo

String

Shift number.

Shift

String

Shift work.

Day1

CellData

Day 1 in the week.

Day2

CellData

Day 2 in the week.

Day3

CellData

Day 3 in the week.

Day4

CellData

Day 4 in the week.

Day5

CellData

Day 5 in the week.

Day6

CellData

Day 6 in the week.

Day7

CellData

Day 7 in the week.

ReadonlyFlag

Integer

Read Only status.

ReadonlyMessage

String

Read Only message.

OriginalKey

TimesheetsAttendanceKey

CurrentKey

TimesheetsAttendanceKey

Key

TimesheetsAttendanceKey

Index

Integer

⬆️ Back to top

TimesheetsDetailDefaults

Property

Data Type

Description

keys

TimesheetsDetailDefaultsKey

⬆️ Back to top

TimesheetsDetailDefaultsKey

Property

Data Type

Description

FinCoCode

String

Financial company code.

ActivityCode

CellData

Activity code.

ActivityType

String

Activity type.

ActivitySubType

String

Activity sub type.

CostRate

Number

Cost rate.

CostType

String

Cost type.

GstRate

Number

Tax rate.

WorkCentreCode

CellData

Work Centre code.

TimeCode

CellData

Time code.

TimesheetDate

String

Timesheet date.

EmployeeClass

String

Employee class.

⬆️ Back to top

TimesheetsDetailKey

Property

Data Type

Description

JobTranId

Integer

PersonId

Integer

Person id.

FinCoCode

String

Financial company code.

JobCode

String

Job code.

ActivityCode

String

Activity code.

WorkCentreCode

String

Work Centre code.

ActivityType

String

Activity type.

ActivitySubType

String

Activity sub type.

TimeCode

String

Time code.

CostType

String

Cost type.

CostRate

Number

Cost rate

GstRate

Number

Tax rate.

ProfileId

Integer

User profile id.

StatusFlag

Integer

Status.

TranDate

String

EmployeeClass

String

Employee class.

⬆️ Back to top

TimesheetsDailyDetailLine

Property

Data Type

Description

TranDate

String

FinCoCode

String

Code of financial company.

FileAttachment

CellData

File attachment.

JobCode

CellData

Job code.

Action

CellData

Action.

LogHeader

CellData

Log header.

WorkCentreCode

CellData

Work Centre code.

Profile

CellData

ActivityCode

CellData

Activity code.

Allowance

CellData

Allowance.

ActivityType

String

Activity type.

TimeCode

CellData

Time code.

StartTime

CellData

Start time.

EndTime

CellData

End time.

Breaks

CellData

Breaks.

Quantity

CellData

Quantity of hours.

QuantityOnly

CellData

NoteOnly

CellData

Details

String

Duplicate

CellData

Delete

CellData

PlantIssues

CellData

Plant issue if applied.

Payroll

CellData

JobManagerApproved

Boolean

PlantIssuesCount

Integer

StockIssuesCount

Integer

SourceID

Integer

SourceIDSpecified

Boolean

TimesheetRef1

CellData

TimesheetRef2

CellData

EmployeeClass

String

Employee class.

EmployeeClassValue

CellData

Employee class.

PlantIssuesData

WebGridDataModel_TimesheetsPlantIssueKey

Status

String

Status.

ReadonlyFlag

Integer

Read Only status.

ReadonlyMessage

String

Read Only message.

OriginalKey

TimesheetsDetailKey

CurrentKey

TimesheetsDetailKey

Key

TimesheetsDetailKey

Index

Integer

⬆️ Back to top

TimesheetsKey

Property

Data Type

Description

PersonId

Integer

Person id.

TimesheetDate

String

Timesheet date.

⬆️ Back to top

TimesheetsPlantIssueKey

Property

Data Type

Description

JobTranID

Integer

ItemId

Integer

Item id.

JobCode

String

Job code.

WorkCentreCode

String

Work Centre code.

RateCode

String

Rate code.

TranDate

String

NewRow

String

PlantCode

String

Plant code

TimeWorkCentreCode

String

⬆️ Back to top

TimesheetsPlantIssuesLine

Property

Data Type

Description

Selected

CellData

PlantCode

CellData

Plant code.

RateCode

CellData

Rate code.

UnitCode

CellData

Unit code.

ActivityCode

CellData

Activity code.

WorkCentreCode

CellData

Work Centre code.

DefaultQuantity

CellData

ActualQuantity

CellData

Note

CellData

Note.

Delete

CellData

Status

String

Status.

ReadonlyFlag

Integer

Read Only status.

ReadonlyMessage

String

Read Only message.

OriginalKey

TimesheetsPlantIssueKey

CurrentKey

TimesheetsPlantIssueKey

Key

TimesheetsPlantIssueKey

Index

Integer

⬆️ Back to top

TimesheetsTimesheetFormResult

Property

Data Type

Description

Key

TimesheetsKey

ApprovalOnHoldField

BoolViewData

ApprovedField

BoolViewData

Value of Approval field.

CompletedField

BoolViewData

Value of Completed field.

NoEditMessage

String

TimesheetDate

String

Timesheet date,

TimesheetNew

Boolean

VarianceNotes

StringViewData

The difference between total and standard hours.

ToilJobBalance

DecimalViewData

Time Off In Lieu balance

⬆️ Back to top

WebGridDataModel_TimesheetsPlantIssueKey

Property

Data Type

Description

data

Array [TimesheetsPlantIssuesLine]

⬆️ Back to top

Example

V

 Click to view

Request

 

Response

 

Response sample

 

⬆️ Top of page

  • No labels