- Created by Bao TRINH, last modified by Cam Mackay on Jun 06, 2024
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 7 Next »
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
Provides API access to the Daily Timesheet Detail (#/Timesheets/Daily.aspx) Web Workbench screen.
/api/TimesheetDetailApi | ||||
---|---|---|---|---|
Method | Performed As | Request Query | Request Body | Response |
GET | Admin User | - | ||
POST | 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 |
---|---|---|
Form | The 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
Property | Data Type | Description |
---|---|---|
Key | The unique key for the line. | |
ApprovalOnHoldField | BoolViewData | The Approval On Hold flag on the Timesheet. |
ApprovedField | BoolViewData | The Approved flag on the Timesheet. |
CompletedField | BoolViewData | The Completed flag on the Timesheet. |
VarianceNotes | StringViewData | The Variance notes on the Timesheet. |
ToilJobBalance | DecimalViewData | The User’s Time Off In Lieu balance. |
⬆️ Back to top
TimesheetDetailKey
Property | Data Type | Description |
---|---|---|
JobTranId | Integer | The unique ID of the Timesheet Line. |
PersonId | Integer | The Person ID. |
FinCoCode | String | The Financial Company Code. |
JobCode | String | The Job Code. |
ActivityCode | String | The Activity Code. |
WorkCentreCode | String | The Work Centre Code. |
ActivityType | String | The Activity Type. |
ActivitySubType | String | The Activity Sub Type. |
TimeCode | String | The Time Code. |
CostType | String | The Cost Type of the Activity and Time Code. |
⬆️ Back to top
TimesheetDetailLine
Property | Data Type | Description |
---|---|---|
Key | The unique key for the line. | |
TranDate | String | The transaction date. |
FinCoCode | String | The Financial Company Code on the transaction. |
JobCode | The Job on the transaction. | |
Action | The Action on the transaction. | |
LogHeader | The Log on the transaction. | |
ActivityCode | The Activity on the transaction. | |
ActivityType | String | The Type of Activity. |
TimeCode | The Time Code on the transaction. | |
WorkCentreCode | The Work Centre on the transaction. | |
Profile | The Employee Profile on the transaction | |
StartTime | The Start Time on the transaction. | |
EndTime | The End Time on the transaction. | |
Breaks | The Breaks value on the transaction. | |
Quantity | The hours Quantity, and Notes, on the transaction. | |
QuantityOnly | The hours Quantity on the transaction. | |
NoteOnly | The Notes on the transaction. | |
JobManagerApproved | Boolean | The flag to indicate if the transaction has been approved. |
PlantIssuesCount | Integer | The number of Plant Issues on the transaction. |
PlantIssuesData.data | Array<PlantIssueLine> | The Plant Issues on the transaction. |
StockIssuesCount | Integer | The number of Stock transactions on the transaction. |
SourceID | Integer | The Source ID on the transaction. |
SourceIDSpecified | Boolean | The flag to indicate if the transaction has a source. |
TimesheetRef1 | The TimesheetRef1 details on the transaction. | |
TimesheetRef2 | The TimesheetRef2 details on the transaction. | |
EmployeeClass | String | The Employee Class on the transaction. |
EmployeeClassValue | The Employee Class on the transaction. |
⬆️ Back to top
PlantIssueKey
Property | Data Type | Description |
---|---|---|
JobTranID | Integer | The unique ID of the Plant Issue. |
ItemId | Integer | The ID of the Plant Item. |
JobCode | String | The Job Code. |
WorkCentreCode | String | The Work Centre Code. |
ActivityCode | String | The Activity Code. |
RateCode | String | The Plant Rate Code. |
TranDate | String | The Date of the Plant Issue. |
⬆️ Back to top
PlantIssueLine
Property | Data Type | Description |
---|---|---|
Key | The unique key for the line. | |
Selected | A flag to indicate the Plant Issue is being edited. | |
PlantCode | The Plant Item on the Plant Issue. | |
RateCode | The Plant Rate on the Plant Issue. | |
UnitCode | The Unit on the Plant Issue. | |
ActivityCode | The Activity on the Plant Issue. | |
WorkCentreCode | The Work Centre on the Plant Issue. | |
DefaultQuantity | The Default Quantity on the Plant Issue. | |
ActualQuantity | The Actual Quantity on the Plant Issue. | |
Note | The Note on the Plant Issue. | |
Delete | A flag to indicate the Plant Issue is being deleted. | |
Status | String | Either "from-database" if pre-existing, or "generated-line" if pre-populated by default. |
⬆️ 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
WebGridDataModel_TimesheetsPlantIssueKey
Property | Data Type | Description |
---|---|---|
data | Array [TimesheetsPlantIssuesLine] |
⬆️ Back to top
- No labels