FCLT#70361: Management rapportage voor periodieke taken.

svn path=/Website/trunk/; revision=57602
This commit is contained in:
Maykel Geerdink
2022-10-12 13:03:44 +00:00
parent 779d4433d9
commit dc2628f6b7

View File

@@ -3235,38 +3235,40 @@ END:VCALENDAR
<html>
<head>
<script language="javascript">
function filltd(tdid, pstatus)
{
var td = document.getElementById(tdid);
if(td)
{
<xsl:choose>
<xsl:when test="$mode = 'excel' or $mode = 'print'"> 
if (pstatus == "Niet gepland") td.innerHTML = "N";
if (pstatus == "Voltooid") td.innerHTML = "V";
if (pstatus == "Gepland") td.innerHTML = "P";
</xsl:when>
<xsl:otherwise> 
if (pstatus == "Niet gepland") td.style.backgroundColor = "#003366";
if (pstatus == "Voltooid") td.style.backgroundColor = "#339933";
if (pstatus == "Goed") td.style.backgroundColor = "#339933";
if (pstatus == "Fout") td.style.backgroundColor = "#990000";
if (pstatus == "Gepland") td.style.backgroundColor = "#FFA500";
</xsl:otherwise>
</xsl:choose>
}
}
function filltable()
{
<xsl:for-each select="rapport_data/data_row">
<xsl:sort select="ins_deel_key" order="ascending"/>
<xsl:sort select="ins_srtcontrole_key" order="ascending"/>
filltd("<xsl:value-of select="concat(INS_DEEL_KEY,'_', INS_SRTCONTROLE_KEY, '_', MAAND, '_', JAAR)"/>", "<xsl:value-of select="DEELSRTCONTROLE_STATUS"/>");
</xsl:for-each>
var th = document.getElementsByClassName("th_lastyear");
$(".lastyear").hide();
$(".nextyear").hide();
}
function filltd(tdid, pstatus, ctrmodesuccess)
{
var td = document.getElementById(tdid);
if (td)
{
<xsl:choose>
<xsl:when test="$mode = 'excel' or $mode = 'print'"> 
if (pstatus == -1) td.innerHTML = "N";
if (pstatus == 0) td.innerHTML = "P";
if (pstatus == 2) td.innerHTML = "S";
if (ctrmodesuccess == 1) td.innerHTML = "G";
if (ctrmodesuccess == 0) td.innerHTML = "F";
</xsl:when>
<xsl:otherwise> 
if (pstatus == -1) td.style.backgroundColor = "#003366";
if (pstatus == 0) td.style.backgroundColor = "#FFA500";
if (pstatus == 2) td.style.backgroundColor = "#FFFF00";
if (ctrmodesuccess == 1) td.style.backgroundColor = "#339933";
if (ctrmodesuccess == 0) td.style.backgroundColor = "#990000";
</xsl:otherwise>
</xsl:choose>
}
}
function filltable()
{
<xsl:for-each select="rapport_data/data_row">
<xsl:sort select="ins_deel_key" order="ascending"/>
<xsl:sort select="ins_srtcontrole_key" order="ascending"/>
filltd("<xsl:value-of select="concat(INS_DEEL_KEY,'_', INS_SRTCONTROLE_KEY, '_', MAAND, '_', JAAR)"/>", "<xsl:value-of select="INS_DEELSRTCONTROLE_STATUS"/>", "<xsl:value-of select="INS_CONTROLEMODE_SUCCESS"/>");
</xsl:for-each>
var th = document.getElementsByClassName("th_lastyear");
$(".lastyear").hide();
$(".nextyear").hide();
}
function backoneyear()
{
if (!$(".thisyear").is(":hidden"))