Skip to main content

sgrRelProgramacao

Report of the vehicle reservations registered for the customer in question.

SoapAction

PARAMETERS

FieldTypeReq.Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclienteintegerYesCustomer code, returned by the sgrListaEmpresasPASUsuario method.
dtInidatetimeYesStart date for the search.
dtEnddatetimeYesEnd date for the search.
typeStringNosearch type. Send “det”, to provide detailed information, or “imp” to provide only the main information.
cdstatusintegerYesIndicates status. Send 1 for ongoing schedules, 2 or 4 for closed schedules, and 3 for canceled schedules.
cdaltargetStringNoTarget code. This code is returned via the sgrListaAlvosClienteInstrucao method. To enter another target, send it in the format “1,2,3,4”.
orderStringNoCriterion for defining the search range. Enter: “DCI” to search for schedules with an inclusion date between dtIni and dtEnd; “DCP” for the estimated arrival date between dtIni and dtEnd; “DCR” for the actual arrival date at the client; “DIP” for the estimated start date; and “DIR” for the actual start date.

METHOD RETURN:

ReturnDataset: If the parameters are filled in correctly and the type is “imp”, the property will display:

FieldTypeDescription
DSNOMEALVOstringTarget name
DSNAMEstringClient name
DSFLSITUATIONstringReservation status (Description
FLSITUATIONsmallintReservation status
QUANTintegerNumber of records

For type = “det”, the information returned is:

FieldTypeDescription
DSNOMEALVOstringTarget name
DTPREVCHEGADACLIdatetimeEstimated date of arrival at the client
DTCHEGADACLIdatetimeActual date of arrival at client
NRPLACAchar(8)Vehicle license plate
DSFLSITUATIONstringReservation status (description)
DTINCLdatetimeRecord inclusion date
DTPREVCHEGADACLI1datetimeExpected customer arrival date
DTCHEGADACLI1datetimeActual date of arrival at client
DTPREVORIGdatetimeEstimated start date of trip
DTREALORIGdatetimeActual arrival date of trip
CIDORIGstringName of city of origin
CIDDESTstringName of destination city
DSNAMEstringCustomer name