Operación
This section addresses operations on resources.
GET /recourses/activity
This method provides the activity report.
Request parameters:
- company [mandatory]: the company name or id.
- session [mandatory]: the Id of the active session.
- datefrom [mandatory]: The starting date of the selection.
- dateto [mandatory]: The ending date of the selection.
- recourse: Id of the resource you want to get the report from.
- area: Id of the area for which you want to obtain the report.
- process: Id of the process for which you want to obtain the report.
- ignoreteam: Excludes information about the team to which the resource belongs.
- inhours: Returns times in hours instead of minutes, which is the default unit.
Response:
- Returns the activity report in json format.
Example:
Request: { "type":"get", "url":"recourses/activity", "data":"company=demo01&session=BldLi14J6RaUidpt15VNDEbjufjrertuhgrutiSHTHMXnO8bbcM4hNtGAHzii7&datefrom=20240311060000&dateto=20240312060000&area=1100" } Response: { "status":"0", "data": [ {"Person":"0111-SAM","Area":"1100","Process":"1110-MIZ","Result":"AF1400CM","Quantity":"0","Target":"0","TargetActivityPercentage":"51.3","ActivityPercentage":"0","Start":"11\/03\/2024 06:00:00","End":"12\/03\/2024 06:00:00","RealTime":"1440","TotalTime":"1440","AttendanceTime":"1440","ActivityTime":"0","MandatoryTime":"0","Difference":"0","Incentive":"0","TotalIncentive":"0","Currency":""},{"Person":" ","Area":" ","Process":" ","Result":"TOTAL","Quantity":"0","Target":"0","TargetActivityPercentage":"51.3","ActivityPercentage":"0","Start":"11\/03\/2024 06:00:00","End":"12\/03\/2024 06:00:00","RealTime":"1440","TotalTime":"1440","AttendanceTime":"1440","ActivityTime":"0","MandatoryTime":"0","Difference":" ","Incentive":"0","TotalIncentive":"0","Currency":""} ], "message":"Success" } |