FSN#35623 Putorders webservice laten aanroepen controleerbaar via fac_verify

svn path=/Website/trunk/; revision=28549
This commit is contained in:
Jos Groot Lipman
2016-03-21 09:27:05 +00:00
parent e0545a6ca4
commit 4cadb54c83

View File

@@ -363,18 +363,18 @@ function testfolder(relpath, mustbethere)
}
%><table>
<thead><tr><th align=left><table><tr><td><b>Verify.asp $Revision$<br>
Checking <%= (new Date).toLocaleString() %></b><br>
<thead><tr><th align='left'><table><tr><td><b>Verify.asp $Revision$<br>
Checking <%= toDateTimeString(new Date()) %></b><br>
<a href='fac_verify_sha.asp' target="_new1">Click</a> to verify files<br>
<a href='fac_verify_data.asp' target="_new2">Click</a> to verify data<br>
<a href='fac_admtracking_search.asp' target="_new3">Click</a> to view update history
</td>
<td>
<td valign='top'>
<form method='post' taget='_new'><input name='saveas' type='hidden'><input type='submit' value='Save as'></form>
</td></tr></table>
</th>
<th>Information</th>
<th>Result</th>
<th align='left'>Information</th>
<th align='left'>Result</th>
</tr>
</thead>
<%
@@ -453,8 +453,8 @@ checker("Application pool",
else
{
var tm_start = new Date(Application("SET_INSTANCE_TIME"));
message = "Application pool start: " + tm_start.toLocaleString();
if (tm_start.getHours() >= 9 && tm_start.getHours() <= 18)
message = "Application pool start: " + toDateTimeString(tm_start);
if (tm_start.getHours() >= 9 && tm_start.getHours() <= 17)
{
info = "During office hours?";
res = resultcodes.warning;
@@ -640,7 +640,7 @@ testfolder("../../cust/"+custID+"/dwf", false); // neednotbethere
__GROUP = "Putorders";
if (this.S)
if (this.S) // (deze test werkt niet vanuit verify.asp.inc)
{
checker("Overrules",
function ()
@@ -662,6 +662,10 @@ if (this.S)
checker("Internal web url",
function ()
{
if (!S("puo_fclt_web_url"))
{
return { result: resultcodes.error, message: "S('puo_fclt_web_url') is not set. Putorders will not work" };
}
var puo_web_url = S("puo_fclt_web_url") + "/appl/fac/fac_verify_test.asp?checkINSTANCE=1&fac_id=" + custID;
// Controleer of we via S("puo_fclt_web_url") op dezelfde webserver uitkomen als de huidige request
// Ze moeten beide dezelfde Application("SET_INSTANCE_RANDOM") hebben
@@ -990,8 +994,8 @@ checker("Clocks",
var webdate = new Date();
var sysdate = new Date(oRs(0));
oRs.Close();
txt = "Oracle: " + sysdate.toLocaleString() + "<br>"
+ "Webserver: " + webdate.toLocaleString() + "<br>"
txt = "Oracle: " + toDateTimeString(sysdate) + "<br>"
+ "Webserver: " + toDateTimeString(webdate) + "<br>"
+ "<small>Difference ora-web: " + (Math.abs(sysdate - webdate) / 1000).toFixed(1) + "s</small><br>"
+ "Client: <span id='clienttime'></span>";
@@ -1317,6 +1321,19 @@ function DumpCollection(pCollection, title)
return (sLog);
}
// Dit bestand moet geheel zelfvoorzienend worden (indien aangeroepen vanuit fac_verify.asp.inc)
// dus sommige handige functies maar herhalen
function padout(number) { return (number < 10) ? "0" + number : number; }
// Noot: altijd jaar vooraan, goed voor logfiles, niet bedoeld voor presentatie
function toDateString(jsDate)
{
return padout(jsDate.getFullYear()) + "-" + padout(jsDate.getMonth() + 1) + "-" + padout(jsDate.getDate());
}
function toDateTimeString(jsDate)
{
return toDateString(jsDate) + " "
+ padout(jsDate.getHours()) + ":" + padout(jsDate.getMinutes()) + ":" + padout(jsDate.getSeconds());
}
//DumpCollection(Oracle.Properties, "All Oracle properties");
%>