MARX#82415 Implementatie "Mijande Wonen" (Dynamic Empire van Zig/Cegeka)
svn path=/Mareon/trunk/; revision=64583
This commit is contained in:
@@ -1018,7 +1018,7 @@ function api_3P_inner (v_Url, v_API, v_req, v_type, v_soapAction, v_discard_acti
|
||||
// v_extraInfo is optionele tekst
|
||||
// v_dateTime is datum/tijd veld die bij sommige statuscodes verplicht is, bv bij die van GER (gereeddatum/tijd)
|
||||
|
||||
function DICO_StatusBericht (v_woco_gln, v_lev_gln, v_purchId, v_statuscode, v_extraInfo, v_dateTime)
|
||||
function DICO_StatusBericht (v_woco_gln, v_lev_gln, v_purchId, v_statuscode, v_extraInfo, v_dateTime, v_applicatie_ID)
|
||||
{
|
||||
|
||||
//Berichtvoorbeeld
|
||||
@@ -1054,12 +1054,14 @@ function DICO_StatusBericht (v_woco_gln, v_lev_gln, v_purchId, v_statuscode, v_e
|
||||
//</InstructionData>
|
||||
//</MaintenanceStatus>
|
||||
|
||||
__Log("DICO_StatusBericht: " + "Start", 2);
|
||||
__Log("DICO_StatusBericht: " + "Start", 2);
|
||||
__Log("v_woco_gln: " + v_woco_gln, 2);
|
||||
__Log("v_lev_gln: " + v_lev_gln, 2);
|
||||
__Log("v_purchId: " + v_purchId, 2);
|
||||
__Log("v_statuscode: " + v_statuscode, 2);
|
||||
__Log("v_dateTime: " + v_dateTime, 2);
|
||||
__Log("v_applicatie_ID: " + v_applicatie_ID, 2);
|
||||
|
||||
|
||||
if (v_dateTime == "-1")
|
||||
{
|
||||
@@ -1106,9 +1108,22 @@ function DICO_StatusBericht (v_woco_gln, v_lev_gln, v_purchId, v_statuscode, v_e
|
||||
{
|
||||
v_req = v_req + "<AppointmentDateTimeInformation>";
|
||||
if (v_statuscode == "AFH")
|
||||
{
|
||||
v_req = v_req + "<RequiredDeliveryDate>" + l_dateTime_datum + "</RequiredDeliveryDate>"; // Afspraakdatum
|
||||
v_req = v_req + "<RequiredDeliveryTime>" + l_dateTime_tijd + "</RequiredDeliveryTime>";// Afspraakdatum
|
||||
{
|
||||
if (v_applicatie_ID == "EMPIRE")
|
||||
{
|
||||
// MARX#82415 Implementatie "Mijande Wonen" (Dynamic Empire van Zig/Cegeka)" datum + tijdstip in 4 andere tijdsframe-velden
|
||||
v_req = v_req + "<DeliveryTimeFrame>";
|
||||
v_req = v_req + "<DeliveryDateEarliest>" + l_dateTime_datum + "</DeliveryDateEarliest>"; // Afspraakdatum als tijdsvak met startdatum vanaf
|
||||
v_req = v_req + "<DeliveryTimeEarliest>" + l_dateTime_tijd + "</DeliveryTimeEarliest>";// Afspraaktijd als tijdsvak met starttijd vanaf
|
||||
v_req = v_req + "<DeliveryDateLatest></DeliveryDateLatest>"; // Afspraakdatum als tijdsvak met LEGE startdatum tot (deze is namelijk onbekend)
|
||||
v_req = v_req + "<DeliveryTimeLatest></DeliveryTimeLatest>";// Afspraaktijd als tijdsvak met LEGE starttijd tot (deze is namelijk onbekend)
|
||||
v_req = v_req + "</DeliveryTimeFrame>";
|
||||
}
|
||||
else
|
||||
{ // default, datum + tijdstip in 2 velden
|
||||
v_req = v_req + "<RequiredDeliveryDate>" + l_dateTime_datum + "</RequiredDeliveryDate>"; // Afspraakdatum
|
||||
v_req = v_req + "<RequiredDeliveryTime>" + l_dateTime_tijd + "</RequiredDeliveryTime>";// Afspraakdatum
|
||||
}
|
||||
}
|
||||
if (v_statuscode == "VER")
|
||||
{
|
||||
|
||||
@@ -51,7 +51,7 @@ function TQ_SetOpdrachtStatus (v_company_id, v_woco_gln, v_lev_gln, v_taskId, v_
|
||||
//default gaan we ervan uit dat de communcatie goed verloopt (lekker positief ingesteld ;-)
|
||||
var v_resp = {api_status_code: 1, api_status_message: "", api_response_message: ""};
|
||||
__Log("TQ_SetOpdrachtStatus: " + "Start", 2);
|
||||
var v_req = DICO_StatusBericht (v_woco_gln, v_lev_gln, v_purchId, v_statuscode, v_extraInfo, v_dateTime);
|
||||
var v_req = DICO_StatusBericht (v_woco_gln, v_lev_gln, v_purchId, v_statuscode, v_extraInfo, v_dateTime, "TWINQ");
|
||||
|
||||
var v_API = "";
|
||||
var v_type = 0;
|
||||
@@ -73,22 +73,22 @@ function THIRDP_SetOpdrachtStatus (v_company_id, v_woco_gln, v_lev_gln, v_taskId
|
||||
switch (G_3party_id)
|
||||
{
|
||||
case "ViewPoint":
|
||||
var v_req = DICO_StatusBericht (v_woco_gln, v_lev_gln, v_purchId, v_statuscode, v_extraInfo, v_dateTime);
|
||||
var v_req = DICO_StatusBericht (v_woco_gln, v_lev_gln, v_purchId, v_statuscode, v_extraInfo, v_dateTime, "VIEWPOINT");
|
||||
var v_API = "";
|
||||
var v_type = 0;
|
||||
var v_soapAction = "messageservice/PostMessage";
|
||||
var v_discard_active_abort = 1; //In geval van 500-error, geen active abort...
|
||||
var v_soort_api = 2;
|
||||
var v_resp = apiAX_GENERAL(v_API, v_req, v_type, v_soapAction, v_discard_active_abort, v_soort_api);
|
||||
var v_resp = apiAX_GENERAL(v_API, v_req, v_type, v_soapAction, v_discard_active_abort, v_soort_api);
|
||||
break;
|
||||
case "Empire":
|
||||
var v_req = DICO_StatusBericht (v_woco_gln, v_lev_gln, v_purchId, v_statuscode, v_extraInfo, v_dateTime);
|
||||
var v_req = DICO_StatusBericht (v_woco_gln, v_lev_gln, v_purchId, v_statuscode, v_extraInfo, v_dateTime, "EMPIRE");
|
||||
var v_API = "";
|
||||
var v_type = 0;
|
||||
var v_soapAction = "messageservice/PostMessage";
|
||||
var v_discard_active_abort = 1; //In geval van 500-error, geen active abort...
|
||||
var v_soort_api = 2;
|
||||
var v_resp = apiAX_GENERAL(v_API, v_req, v_type, v_soapAction, v_discard_active_abort, v_soort_api);
|
||||
var v_resp = apiAX_GENERAL(v_API, v_req, v_type, v_soapAction, v_discard_active_abort, v_soort_api);
|
||||
break;
|
||||
default:
|
||||
// Geen bekend Applicatie
|
||||
|
||||
Reference in New Issue
Block a user