FSN#37025 Putorders multipart/form-data laten ondersteunen

svn path=/Website/trunk/; revision=30006
This commit is contained in:
Erik Groener
2016-07-11 11:37:52 +00:00
parent 7e263ebb78
commit 194390e908
3 changed files with 12 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ else
+ ", a.prs_bedrijfadres_ext"
+ ", a.prs_bedrijfadres_attachfile"
+ ", a.prs_bedrijfadres_flexfiles"
+ ", a.prs_bedrijfadres_encoding"
+ " FROM prs_bedrijfadres a"
+ ", prs_bedrijf b"
+ " WHERE b.prs_bedrijf_key = a.prs_bedrijf_key"
@@ -71,6 +72,7 @@ else
var prs_ext = oRs("prs_bedrijfadres_ext").value;
var bijlage = oRs('prs_bedrijfadres_attachfile').value;
var flexfiles = oRs('prs_bedrijfadres_flexfiles').value;
var encoding = oRs("prs_bedrijfadres_encoding").value;
oRs.Close();
}
@@ -224,6 +226,14 @@ else
initKey: flexfiles||0
}
);
sql = "SELECT 0, " + safe.quoted_sql(L("lcl_encoding_text_xml")) + " FROM DUAL"
+ " UNION SELECT 1, " + safe.quoted_sql(L("lcl_encoding_multipart_form")) + " FROM DUAL"
+ " ORDER BY 1";
FCLTselector("encoding", sql,
{ label: L("lcl_prs_bedrijfadres_encoding"),
initKey: encoding||0
}
);
%>
<tr valign="top">
<td class="label ">

View File

@@ -64,6 +64,7 @@ else
, { dbs: "prs_bedrijfadres_ext", typ: "varchar", frm: "prs_ext" }
, { dbs: "prs_bedrijfadres_attachfile", typ: "varchar", frm: "bijlage" }
, { dbs: "prs_bedrijfadres_flexfiles" , typ: "number", frm: "flexfiles" }
, { dbs: "prs_bedrijfadres_encoding", typ: "number", frm: "encoding" }
];
var isDeleted = false;

View File

@@ -53,7 +53,7 @@ function submitHTTP( p_connect
}
// Patch voor CSU -> KPMG (Axxerion) koppeling
//debugger;
if (pbedrijfadres.encoding == 1 || endpoint.indexOf("lokalhost") > -1)
if (pbedrijfadres.encoding == 1)
{
boundary = "eWmWdiyWZVsqRAlEjgwicQsLnvXBJAVw"; // random genoeg, als het maar niet voorkomt in de data
XMLhttp.setRequestHeader("Content-Type", "multipart/form-data; boundary=" + boundary);