sgrAgendaProgramacao
Method for allocating a vehicle/driver to a schedule.
PARAMETERS:
| Field | Type | Required? | Description |
|---|---|---|---|
| keyaccess | string | Yes | Key returned by the sgrLogin method. |
| cdpas | integer | Yes | PAS code, returned by the sgrListPASUser method |
| cdcliente | integer | Yes | Customer code, returned by the sgrListaEmpresasPASUsuario method. |
| cdProgramacao | integer | Yes | Code of the program that will be scheduled. |
| nrPlacaCavalo | string | Yes | Horse license plate |
| nrPlacaCarreta1 | string | No | Main trailer license plate |
| nrPlacaCarreta2 | string | No | Secondary trailer license plate |
| nrCPF | string | No | CPF of the driver linked to the appointment. |
METHOD RETURN:
ReturnDataset: If the parameters are correct, the dataset will display:
Scheduling successfully completed.
ReturnDescription: If there is an error in the execution of the method, the property will be displayed:
| Error | Description |
|---|---|
| Schedule not found. | Need to correctly check the code of the schedule to be scheduled. |
| Field nrPlacaCavalo is mandatory. | Vehicle license plate must be filled in. |