HCAS#38899: Periodiek onderhoud met melding.
svn path=/Website/trunk/; revision=36854
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user