Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Overview
Provides access to Workbench Timesheet data.
Endpoints
The resources available in this module.
TimesheetListApi
Provides API access to the Daily Desktop Timesheets (#/Timesheets/List.aspx) Web Workbench screen.
/api/TimesheetListApi | ||||
---|---|---|---|---|
Method | Performed As | Request Query | Request Body | Response |
POST | GridRequestParametersApi.IntValue, if specified; otherwise Logged in User. | - |
TimesheetDetailApi
Note: In order to create a Timesheet Line, please use POST with {Workbench.Mvc4.Areas.Api.Controllers.TimesheetDefaultsApiController} TimesheetDefaultsApi.Provides API access to the Daily Timesheet Detail (#/Timesheets/Daily.aspx) Web Workbench screen.
/api/TimesheetDetailApi | |||||||
---|---|---|---|---|---|---|---|
Operation | Logged in User | Parameters | Method | Performed As | Request Query | Request Body | Response |
GET | Admin User | - | |||||
POST |
TimesheetDefaultsApi
[Description]Timesheet. | TimesheetApiModel.Form.Key.PersonId | - |
TimesheetDefaultsApi
Note: In order to create a Timesheet Line, please use POST with {Workbench.Mvc4.Areas.Api.Controllers.TimesheetDefaultsApiController} TimesheetDefaultsApi.
/api/TimesheetDefaultsApi | ||||
---|---|---|---|---|
Operation | Logged in User | Parameters | Body | Response |
GET | jobTranId |
TimesheetAttendanceApi
[Description]
/api/TimesheetAttendanceApi | ||||
---|---|---|---|---|
Operation | Logged in User | Parameters | Body | Response |
POST |
Models
The definitions of models specific to endpoints in this module.
TimesheetKey
Property | Data Type | Description |
---|---|---|
PersonId | Integer | The ID of the Person this Timesheet is for. |
TimesheetDate | DateTime | The Timesheet Date. |
⬆️ Back to top
TimesheetLine
Property | Data Type | Description |
---|---|---|
Key | The unique key for the line. | |
PersonName | The Person this Timesheet if for. | |
TimesheetDate | String | The Timesheet Date, formatted. |
Entered | The total hours entered on the Timesheet. | |
Standard | The number of hours expected on the Timesheet. | |
Variance | The difference between Entered and Standard. | |
Completed | Boolean | The Completed flag on the Timesheet. |
Approved | Boolean | The Approved flag on the Timesheet. |
UpdatedDate | DateTime | The date the Timesheet was last modified. |
⬆️ Back to top
TimesheetApiModel
Property | Data Type | Description | Day1Complete | Boolean | Day2Complete | Boolean | Day3Complete | Boolean | Day4Complete | Boolean | Day5Complete | Boolean | Day6Complete | Boolean | Day7Complete | Boolean|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AttendanceFields | Form | 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
Day 1 in the week.
Day2
Day 2 in the week.
Day3
Day 3 in the week.
Day4
Day 4 in the week.
Day5
Day 5 in the week.
Day6
Day 6 in the week.
Day7
Day 7 in the week.
ReadonlyFlag
Integer
Read Only status.
ReadonlyMessage
String
Read Only message.
OriginalKey
CurrentKey
Key
Index
Integer
⬆️ Back to top
TimesheetsDetailDefaultsThe general data associated withe the Timesheet. | ||
Rows | Array<TimesheetDetailLine> | The Timesheet Lines. |
AttendanceFields.Rows | Array<TimesheetAttendanceLine> | The Timesheet Attendance Lines. |
Day1Complete | Boolean | A flag to indicate if the first day of the Timesheet is complete. |
Day2Complete | Boolean | A flag to indicate if the second day of the Timesheet is complete. |
Day3Complete | Boolean | A flag to indicate if the third day of the Timesheet is complete. |
Day4Complete | Boolean | A flag to indicate if the fourth day of the Timesheet is complete. |
Day5Complete | Boolean | A flag to indicate if the fifth day of the Timesheet is complete. |
Day6Complete | Boolean | A flag to indicate if the sixth day of the Timesheet is complete. |
Day7Complete | Boolean | A flag to indicate if the seventh day of the Timesheet is complete. |
SuccessMessage | String | A message indicating the update was successful. |
WarningMessage | String | A warning message about the Timesheet. |
ValidationErrors | Array<MvcValidationError> | A list of specific validation errors if the save was unsuccessful. |
⬆️ Back to top
TimesheetForm
⬆️ Back to top
TimesheetsDetailDefaultsKey
Property
Data Type
Description
FinCoCode
String
Financial company code.
ActivityCode
Activity code.
ActivityType
String
Activity type.
ActivitySubType
String
Activity sub type.
CostRate
Number
Cost rate.
CostType
String
Cost type.
GstRate
Number
Tax rate.
WorkCentreCode
Work Centre code.
TimeCode
TimesheetDate
String
Timesheet date.
EmployeeClass
String
Employee class.
⬆️ Back to top
TimesheetsDetailKeyTimesheetsKey | ||
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
TimesheetDetailKey
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 | |
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
TimesheetsDailyDetailLineTimesheetDetailLine
Property | Data Type | Description |
---|---|---|
TranDate | String | |
FinCoCode | String | Code of financial company. |
FileAttachment | File attachment. | |
JobCode | Job code. | |
Action | Action. | |
LogHeader | Log header. | |
WorkCentreCode | Work Centre code. | |
Profile | ||
ActivityCode | Activity code. | |
Allowance | Allowance. | |
ActivityType | String | Activity type. |
TimeCode | ||
StartTime | Start time. | |
EndTime | End time. | |
Breaks | Breaks. | |
Quantity | Quantity of hours. | |
QuantityOnly | ||
NoteOnly | ||
Details | String | |
Duplicate | ||
Delete | ||
PlantIssues | Plant issue if applied. | |
Payroll | ||
JobManagerApproved | Boolean | |
PlantIssuesCount | Integer | |
StockIssuesCount | Integer | |
SourceID | Integer | |
SourceIDSpecified | Boolean | |
TimesheetRef1 | ||
TimesheetRef2 | ||
EmployeeClass | String | Employee class. |
EmployeeClassValue | Employee class. | |
PlantIssuesData | WebGridDataModel_TimesheetsPlantIssueKey | |
Status | String | Status. |
ReadonlyFlag | Integer | Read Only status. |
ReadonlyMessage | String | Read Only message. |
OriginalKey | ||
CurrentKey | ||
Key | ||
Index | Integer |
⬆️ Back to top
TimesheetAttendanceKey
Property | Data Type | Description |
---|---|---|
Action | String | = ['FirstIn', 'FirstOut', 'SecondIn', 'SecondOut'] |
PersonId | Integer | Person id. |
TimesheetDate | String | Timesheet date. |
⬆️ Back to top
TimesheetAttendanceLine
Property | Data Type | Description |
---|---|---|
LineNo | String | Line number. |
ShiftNo | String | Shift number. |
Shift | String | Shift work. |
Day1 | Day 1 in the week. | |
Day2 | Day 2 in the week. | |
Day3 | Day 3 in the week. | |
Day4 | Day 4 in the week. | |
Day5 | Day 5 in the week. | |
Day6 | Day 6 in the week. | |
Day7 | Day 7 in the week. | |
ReadonlyFlag | Integer | Read Only status. |
ReadonlyMessage | String | Read Only message. |
OriginalKey | ||
CurrentKey | ||
Key | ||
Index | Integer |
⬆️ Back to top
TimesheetsDetailDefaults
Property | Data Type | Description |
---|---|---|
keys |
⬆️ Back to top
TimesheetsDetailDefaultsKey
Property | Data Type | Description |
---|---|---|
FinCoCode | String | Financial company code. |
ActivityCode | Activity code. | |
ActivityType | String | Activity type. |
ActivitySubType | String | Activity sub type. |
CostRate | Number | Cost rate. |
CostType | String | Cost type. |
GstRate | Number | Tax rate. |
WorkCentreCode | Work Centre code. | |
TimeCode | ||
TimesheetDate | String | Timesheet date. |
EmployeeClass | String | Employee class. |
⬆️ 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 | ||
PlantCode | Plant code. | |
RateCode | Rate code. | |
UnitCode | Unit code. | |
ActivityCode | Activity code. | |
WorkCentreCode | Work Centre code. | |
DefaultQuantity | ||
ActualQuantity | ||
Note | Note. | |
Delete | ||
Status | String | Status. |
ReadonlyFlag | Integer | Read Only status. |
ReadonlyMessage | String | Read Only message. |
OriginalKey | ||
CurrentKey | ||
Key | ||
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
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
title | Click to view |
---|
Request
language | json |
---|
Response
language | json |
---|
Response sample
language | json |
---|
⬆️ Top of page
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|