HCAS#38899: Periodiek onderhoud met melding.

svn path=/Website/trunk/; revision=36854
This commit is contained in:
Maykel Geerdink
2018-02-06 14:33:57 +00:00
parent 60b3110022
commit f6c86eae36

View File

@@ -87,14 +87,16 @@ var insEdit = !insPlan && !insClose; // Wijzigen inspectie.
// Meldingen die aan deze priodieke inspectie zijn gekoppeld.
// Als je geen mld rechten hebt dan hoef je iframe ook niet te tonen.
var authparamsMLDBOF = user.checkAutorisation("WEB_MLDBOF", true);
var authparamsMLDFOF = user.checkAutorisation("WEB_MLDFOF", true);
var authparamsMLDBAC = user.checkAutorisation("WEB_MLDBAC", true);
sql = "SELECT mld_melding_key FROM mld_melding"
+ " WHERE mld_melding_kto_type = 'T'"
+ " AND mld_melding_kto_key = " + deelsrtcont_key;
oRs = Oracle.Execute(sql);
if (!oRs.eof && (authparamsMLDBOF || authparamsMLDFOF || authparamsMLDBAC))
if (!oRs.eof)
{
var authparamsMLDBOF = user.checkAutorisation("WEB_MLDBOF", true);
var authparamsMLDFOF = user.checkAutorisation("WEB_MLDFOF", true);
var authparamsMLDBAC = user.checkAutorisation("WEB_MLDBAC", true);
if (authparamsMLDBOF || authparamsMLDFOF || authparamsMLDBAC)
{
var murole = "bo";
if (authparamsMLDBOF)
@@ -107,6 +109,7 @@ var insEdit = !insPlan && !insClose; // Wijzigen inspectie.
page = "../mld/mld_search_list.asp?deelsrtcont_key=" + deelsrtcont_key + "&tiny=1&urole=" + murole;
IFRAMER("insMldframe", page, { initHide: false } );
}
}
%>
</body>
</html>