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

« Previous Version 3 Current »

Operation

Returns the list of HousekeepingDailyTask.

GET
http://{urlName}/tesiproPMS/api/{version}/chain/{chainId}/property/{propertyId}/housekeepingTaskDaily


Request

PropertyTypeRequiredDefault valueDescription
chainIdIntegertrue
The id of the chain. This parameter will be in the URL. Path parameter.
propertyIdIntegertrue
The id of the property. This parameter will be in the URL. Path parameter.
userIntegerfalse
The id of the user that has the HousekeepingTaskDaily assigned.
offsetDatefalse
The date of the list of HousekeepingTaskDaily that are going to be retrieved.

Example request

GET http://81.184.0.161:9696/tesiproPMS/api/v1/chain/1/property/2/housekeepingTaskDaily?user=1&offset=2018-06-02


Response

Array of elements of type HousekeepingTaskDaily.

Entity



FieldTypeRequiredDescription
idinttrueUnique identifier for the HousekeepingTaskDaily.
propertyPropertytrueProperty related to this HousekeepingTaskDaily.
dateDatetrue

The date when the task should be done.

userUserfalseThe user that has the task assigned.
codeStringtrueCode of the HousekeepingTaskDaily.
nameStringtrueName of the HousekeepingTaskDaily.
instructionStringfalseNotes added to the task to clarify the process.
estimatedTimeHoursIntegerfalseHours estimated for this task
estimatedTimeMinutesIntegerfalseMinutes estimated for this task
remainingTimeHoursIntegerfalseHours remaining to finish the task
remainingTimeMinutesIntegerfalseMinutes remaining to finish the task
housekeepingTaskDailyFacilityTaskSetArray of HousekeepingTaskDailyFacilityTaskfalse
housekeepingTaskDailyModuleSetArray of HousekeepingTaskDailyModulefalse

Example response

[{
	"id": 11,
	"createdDate": "2018-09-18T11:22:14.090Z",
	"modifiedDate": "2018-09-18T11:22:16.557Z",
	"createdUser": 0,
	"modifiedUser": 0,
	"property": null,
	"date": "2018-06-03",
	"code": "A1",
	"name": "Task Name A 1",
	"instruction": "Instrucciones de las tareas",
	"estimatedTimeHours": 16,
	"estimatedTimeMinutes": 0,
	"remainingTimeHours": 16,
	"remainingTimeMinutes": 0,
	"housekeepingTaskDailyModuleSet": [{
		"id": 42,
		"createdDate": "2018-09-18T11:22:14.097Z",
		"modifiedDate": "2018-09-18T11:22:16.567Z",
		"createdUser": 0,
		"modifiedUser": 0,
		"module": {
			"id": 2,
			"createdDate": "2018-09-18T11:22:03.590Z",
			"modifiedDate": "2018-09-18T11:22:06.060Z",
			"createdUser": 0,
			"modifiedUser": 0,
			"property": null,
			"code": "102",
			"name": "M102",
			"floor": {
				"id": 1,
				"createdDate": "2018-09-18T11:22:03.290Z",
				"modifiedDate": "2018-09-18T11:22:05.757Z",
				"createdUser": 0,
				"modifiedUser": 0,
				"code": "1",
				"name": "Floor 1",
				"order": 1
			},
			"moduleStatusType": {
				"id": 1,
				"code": "CL",
				"name": "Clean",
				"colorCode": "#4caf50",
				"nameI18n": "Clean"
			},
			"roomModuleSet": null,
			"moduleLockSet": null,
			"hasIssue": true
		},
		"taskStatusType": {
			"id": 1,
			"code": "1",
			"name": "ToDo",
			"nameI18n": "ToDo",
			"colorCode": "#ffffff"
		},
		"housekeepingTaskDailyModuleFacilityTaskSet": [],
		"estimatedTimeHours": 0,
		"estimatedTimeMinutes": 0,
		"situation": "",
		"adultsInHouse": 1,
		"status": 1,
		"reservationRoomStayId": 4,
		"checkin": false,
		"checkout": false,
		"assembly": false
	}, {
		"id": 43,
		"createdDate": "2018-09-18T11:22:14.100Z",
		"modifiedDate": "2018-09-18T11:22:16.567Z",
		"createdUser": 0,
		"modifiedUser": 0,
		"module": {
			"id": 3,
			"createdDate": "2018-09-18T11:22:03.663Z",
			"modifiedDate": "2018-09-18T11:22:06.127Z",
			"createdUser": 0,
			"modifiedUser": 0,
			"property": null,
			"code": "103",
			"name": "M103",
			"floor": {
				"id": 1,
				"createdDate": "2018-09-18T11:22:03.290Z",
				"modifiedDate": "2018-09-18T11:22:05.757Z",
				"createdUser": 0,
				"modifiedUser": 0,
				"code": "1",
				"name": "Floor 1",
				"order": 1
			},
			"moduleStatusType": {
				"id": 1,
				"code": "CL",
				"name": "Clean",
				"colorCode": "#4caf50",
				"nameI18n": "Clean"
			},
			"roomModuleSet": null,
			"moduleLockSet": null,
			"hasIssue": false
		},
		"taskStatusType": {
			"id": 1,
			"code": "1",
			"name": "ToDo",
			"nameI18n": "ToDo",
			"colorCode": "#ffffff"
		},
		"housekeepingTaskDailyModuleFacilityTaskSet": [],
		"estimatedTimeHours": 0,
		"estimatedTimeMinutes": 0,
		"situation": "",
		"adultsInHouse": 1,
		"status": 1,
		"reservationRoomStayId": 2,
		"checkin": false,
		"checkout": false,
		"assembly": false
	}, {
		"id": 41,
		"createdDate": "2018-09-18T11:22:14.097Z",
		"modifiedDate": "2018-09-18T11:22:16.563Z",
		"createdUser": 0,
		"modifiedUser": 0,
		"module": {
			"id": 1,
			"createdDate": "2018-09-18T11:22:03.510Z",
			"modifiedDate": "2018-09-18T11:22:05.977Z",
			"createdUser": 0,
			"modifiedUser": 0,
			"property": null,
			"code": "101",
			"name": "M101",
			"floor": {
				"id": 1,
				"createdDate": "2018-09-18T11:22:03.290Z",
				"modifiedDate": "2018-09-18T11:22:05.757Z",
				"createdUser": 0,
				"modifiedUser": 0,
				"code": "1",
				"name": "Floor 1",
				"order": 1
			},
			"moduleStatusType": {
				"id": 2,
				"code": "DI",
				"name": "Dirty",
				"colorCode": "#f44336",
				"nameI18n": "Dirty"
			},
			"roomModuleSet": null,
			"moduleLockSet": null,
			"hasIssue": true
		},
		"taskStatusType": {
			"id": 1,
			"code": "1",
			"name": "ToDo",
			"nameI18n": "ToDo",
			"colorCode": "#ffffff"
		},
		"housekeepingTaskDailyModuleFacilityTaskSet": [],
		"estimatedTimeHours": 0,
		"estimatedTimeMinutes": 0,
		"situation": "",
		"adultsInHouse": 1,
		"status": 2,
		"reservationRoomStayId": 5,
		"checkin": false,
		"checkout": false,
		"assembly": true
	}, {
		"id": 44,
		"createdDate": "2018-09-18T11:22:14.100Z",
		"modifiedDate": "2018-09-18T11:22:16.570Z",
		"createdUser": 0,
		"modifiedUser": 0,
		"module": {
			"id": 4,
			"createdDate": "2018-09-18T11:22:03.733Z",
			"modifiedDate": "2018-09-18T11:22:06.200Z",
			"createdUser": 0,
			"modifiedUser": 0,
			"property": null,
			"code": "104",
			"name": "M104",
			"floor": {
				"id": 1,
				"createdDate": "2018-09-18T11:22:03.290Z",
				"modifiedDate": "2018-09-18T11:22:05.757Z",
				"createdUser": 0,
				"modifiedUser": 0,
				"code": "1",
				"name": "Floor 1",
				"order": 1
			},
			"moduleStatusType": {
				"id": 1,
				"code": "CL",
				"name": "Clean",
				"colorCode": "#4caf50",
				"nameI18n": "Clean"
			},
			"roomModuleSet": null,
			"moduleLockSet": null,
			"hasIssue": false
		},
		"taskStatusType": {
			"id": 1,
			"code": "1",
			"name": "ToDo",
			"nameI18n": "ToDo",
			"colorCode": "#ffffff"
		},
		"housekeepingTaskDailyModuleFacilityTaskSet": [],
		"estimatedTimeHours": 0,
		"estimatedTimeMinutes": 0,
		"situation": "",
		"adultsInHouse": 1,
		"status": 1,
		"reservationRoomStayId": 6,
		"checkin": false,
		"checkout": false,
		"assembly": false
	}]
}]
  • No labels