AAAH#35551 -- Uitbreiding Absoluta koppeling
svn path=/Website/branches/v2016.1/; revision=29396
This commit is contained in:
43
CUST/AAAH/absoluta_mut.asp
Normal file
43
CUST/AAAH/absoluta_mut.asp
Normal file
@@ -0,0 +1,43 @@
|
||||
<%@ language = "JavaScript" %>
|
||||
<% /*
|
||||
$Revision$
|
||||
$Modtime: 20-04-10 11:54 $
|
||||
File: absoluta_mut.asp
|
||||
Description: A deeplink call to a remote site to change a punchout order.
|
||||
Parameters:
|
||||
|
||||
Context:
|
||||
Note:
|
||||
*/ %>
|
||||
<%
|
||||
Response.Expires=0;
|
||||
%>
|
||||
|
||||
<!-- #include file="../../appl/Shared/common.inc" -->
|
||||
|
||||
<%
|
||||
var bes_key = getQParamInt("key", -1);
|
||||
var accounthash = getQParam("accounthash", "");
|
||||
var succes = 0;
|
||||
|
||||
|
||||
sql = " SELECT MAX (SUBSTR (bes_srtdeel_nr, INSTR (bes_srtdeel_nr, '/') + 1, 30)) "
|
||||
+ " FROM bes_srtdeel sd, bes_bestelling_item bi"
|
||||
+ " WHERE bi.bes_bestelling_key = " + bes_key
|
||||
+ " AND sd.bes_srtdeel_key = bi.bes_srtdeel_key";
|
||||
oRs = Oracle.Execute(sql);
|
||||
if (!oRs.eof) {
|
||||
succes = 1;
|
||||
//remoteUrl = "http://www.facilitor.nl/?id=" + oRs(0).value + "&accounthash=" + accounthash;
|
||||
remoteUrl = "https://corp.dev.sotasty.nl/index/login/accounthash/" + accounthash + "/orderid/" + oRs(0).value + "/actie/choose?HOOK_URL=xxx"
|
||||
msg = "Een moment... U wordt doorgezet naar de site van de leverancier.";
|
||||
}
|
||||
else {
|
||||
msg = "U heeft hiervoor geen autorisatie.";
|
||||
}
|
||||
%>
|
||||
<html>
|
||||
<body onload="succes=<%=succes%>;if(succes)window.open('<%=remoteUrl%>');">
|
||||
<p><%=msg%></p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user