34 lines
991 B
JavaScript
34 lines
991 B
JavaScript
// --------------------------------------------------------------------------------------
|
|
// A_PlanServiceTask.js
|
|
// Copyright 2014 SG|facilitor. 053-4800 700, helpdesk@sgfacilitor.nl
|
|
// Written by MB (2014)
|
|
//
|
|
|
|
|
|
function A_PlanServiceTask(v_company_id, v_taskId, v_plandate)
|
|
{
|
|
var v_API = "planServiceTask";
|
|
var v_req = "<planServiceTask xmlns=\"http://tempuri.org/\">"
|
|
+ " <companyId>" + v_company_id + "</companyId>"
|
|
+ " <taskId>" + v_taskId + "</taskId>"
|
|
+ " <planDate>" + v_plandate + "</planDate>"
|
|
+ " </planServiceTask>";
|
|
|
|
|
|
var v_type = 0;
|
|
|
|
var v_resp = apiAX(v_API, v_req, v_type);
|
|
|
|
|
|
if (v_type == 1 && v_resp != "")
|
|
{
|
|
oStream = new ActiveXObject("ADODB.Stream");
|
|
oStream.Open();
|
|
oStream.Type = 1; // adTypeBinary
|
|
oStream.Write(v_resp); // responseText geeft encoding problemen!
|
|
oStream.SaveToFile ("Log/test" + v_supplier_id + ".xml", 2);
|
|
oStream.Close();
|
|
|
|
}
|
|
return v_resp;
|
|
} |