sgrRetornaRotaCliente
Returns the route in Opentech from the previously registered customer route code.
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. |
| cdrotacli | integer | Yes | Customer route code |
METHOD RETURN:
ReturnDataset: If the parameters are correct, the property will display:
| Field | Type | Description |
|---|---|---|
| CDROTA | integer | Opentech route code |
| DSROTA | string | Route name |
| CDROTACLI | string | Route code on client |
| CDORIG | integer | Origin city code |
| DSNOMECIDORIG | string | Name of city of origin |
| UFO | char(2) | Origin state acronym |
| CDDEST | integer | Destination city code |
| DSNOMECIDDEST | string | Name of destination city |
| UFD | char(2) | Acronym of destination state |
ReturnDescription: If there is an error when executing the method, the property will display:
| Error | Description |
|---|---|
| There are no routes with the given parameter! |