FCLT#70361: Management rapportage voor periodieke taken.

svn path=/Website/trunk/; revision=57593
This commit is contained in:
Maykel Geerdink
2022-10-11 16:27:35 +00:00
parent 6840ef96e9
commit e6f51fec34

View File

@@ -3230,11 +3230,13 @@ END:VCALENDAR
</body> </body>
</html> </html>
</xsl:when> </xsl:when>
<xsl:when test="@view='ctr_v_monthly_recurring_tasks'"> <xsl:when test="@view='ctr_v_monthly_recurring_tasks'">
<html> <html>
<head> <head>
<script language="javascript"> <script language="javascript">
function filltd(tdid, pstatus) { function filltd(tdid, pstatus)
{
var td = document.getElementById(tdid); var td = document.getElementById(tdid);
if(td) if(td)
{ {
@@ -3254,12 +3256,42 @@ END:VCALENDAR
</xsl:choose> </xsl:choose>
} }
} }
function filltable() { function filltable()
{
<xsl:for-each select="rapport_data/data_row"> <xsl:for-each select="rapport_data/data_row">
<xsl:sort select="ins_deel_key" order="ascending"/> <xsl:sort select="ins_deel_key" order="ascending"/>
<xsl:sort select="ins_srtcontrole_key" order="ascending"/> <xsl:sort select="ins_srtcontrole_key" order="ascending"/>
filltd("<xsl:value-of select="concat(INS_DEEL_KEY,'_', INS_SRTCONTROLE_KEY, '_', MAAND)"/>", "<xsl:value-of select="DEELSRTCONTROLE_STATUS"/>"); filltd("<xsl:value-of select="concat(INS_DEEL_KEY,'_', INS_SRTCONTROLE_KEY, '_', MAAND, '_', JAAR)"/>", "<xsl:value-of select="DEELSRTCONTROLE_STATUS"/>");
</xsl:for-each> </xsl:for-each>
var th = document.getElementsByClassName("th_lastyear");
$(".lastyear").hide();
$(".nextyear").hide();
}
function backoneyear()
{
if (!$(".thisyear").is(":hidden"))
{
$(".lastyear").show();
$(".thisyear").hide();
}
else if (!$(".nextyear").is(":hidden"))
{
$(".thisyear").show();
$(".nextyear").hide();
}
}
function forwardoneyear()
{
if (!$(".lastyear").is(":hidden"))
{
$(".lastyear").hide();
$(".thisyear").show();
}
else if (!$(".thisyear").is(":hidden"))
{
$(".thisyear").hide();
$(".nextyear").show();
}
} }
</script> </script>
</head> </head>
@@ -3276,6 +3308,10 @@ END:VCALENDAR
</tr> </tr>
</xsl:if> </xsl:if>
<xsl:variable name="year">
<xsl:value-of select="preceding-sibling::header/dateYear"/>
</xsl:variable>
<xsl:variable name="sorted"> <xsl:variable name="sorted">
<xsl:for-each select="rapport_data/data_row"> <xsl:for-each select="rapport_data/data_row">
<xsl:sort select="INS_DEEL_KEY"/> <xsl:sort select="INS_DEEL_KEY"/>
@@ -3289,18 +3325,46 @@ END:VCALENDAR
<tr> <tr>
<th style="text-align:left">Omschrijving </th> <th style="text-align:left">Omschrijving </th>
<th style="text-align:left">Controle</th> <th style="text-align:left">Controle</th>
<th style="text-align:left">Jan</th> <th><button type="submit" onclick="backoneyear()">&lt;</button></th>
<th style="text-align:left">Feb</th> <th style="text-align:left" class="lastyear"><xsl:value-of select="$year - 1" /><br></br>Jan</th>
<th style="text-align:left">Mrt</th> <th style="text-align:left" class="lastyear"><br></br>Feb</th>
<th style="text-align:left">Apr</th> <th style="text-align:left" class="lastyear"><br></br>Mrt</th>
<th style="text-align:left">Mei</th> <th style="text-align:left" class="lastyear"><br></br>Apr</th>
<th style="text-align:left">Jun</th> <th style="text-align:left" class="lastyear"><br></br>Mei</th>
<th style="text-align:left">Jul</th> <th style="text-align:left" class="lastyear"><br></br>Jun</th>
<th style="text-align:left">Aug</th> <th style="text-align:left" class="lastyear"><br></br>Jul</th>
<th style="text-align:left">Sep</th> <th style="text-align:left" class="lastyear"><br></br>Aug</th>
<th style="text-align:left">Okt</th> <th style="text-align:left" class="lastyear"><br></br>Sep</th>
<th style="text-align:left">Nov</th> <th style="text-align:left" class="lastyear"><br></br>Okt</th>
<th style="text-align:left">Dec</th> <th style="text-align:left" class="lastyear"><br></br>Nov</th>
<th style="text-align:left" class="lastyear"><xsl:value-of select="$year - 1" /><br></br>Dec</th>
<th style="text-align:left" class="thisyear"><xsl:value-of select="$year" /><br></br>Jan</th>
<th style="text-align:left" class="thisyear"><br></br>Feb</th>
<th style="text-align:left" class="thisyear"><br></br>Mrt</th>
<th style="text-align:left" class="thisyear"><br></br>Apr</th>
<th style="text-align:left" class="thisyear"><br></br>Mei</th>
<th style="text-align:left" class="thisyear"><br></br>Jun</th>
<th style="text-align:left" class="thisyear"><br></br>Jul</th>
<th style="text-align:left" class="thisyear"><br></br>Aug</th>
<th style="text-align:left" class="thisyear"><br></br>Sep</th>
<th style="text-align:left" class="thisyear"><br></br>Okt</th>
<th style="text-align:left" class="thisyear"><br></br>Nov</th>
<th style="text-align:left" class="thisyear"><xsl:value-of select="$year" /><br></br>Dec</th>
<th style="text-align:left" class="nextyear"><xsl:value-of select="$year + 1" /><br></br>Jan</th>
<th style="text-align:left" class="nextyear"><br></br>Feb</th>
<th style="text-align:left" class="nextyear"><br></br>Mrt</th>
<th style="text-align:left" class="nextyear"><br></br>Apr</th>
<th style="text-align:left" class="nextyear"><br></br>Mei</th>
<th style="text-align:left" class="nextyear"><br></br>Jun</th>
<th style="text-align:left" class="nextyear"><br></br>Jul</th>
<th style="text-align:left" class="nextyear"><br></br>Aug</th>
<th style="text-align:left" class="nextyear"><br></br>Sep</th>
<th style="text-align:left" class="nextyear"><br></br>Okt</th>
<th style="text-align:left" class="nextyear"><br></br>Nov</th>
<th style="text-align:left" class="nextyear"><xsl:value-of select="$year + 1" /><br></br>Dec</th>
<th><button type="submit" onclick="forwardoneyear()">&gt;</button></th>
</tr> </tr>
</xsl:if> </xsl:if>
@@ -3326,43 +3390,154 @@ END:VCALENDAR
<tr> <tr>
<td><xsl:value-of select="OMSCHRIJVING"/></td> <td><xsl:value-of select="OMSCHRIJVING"/></td>
<td><xsl:value-of select="SRTCONTROLE_OMSCHRIJVING"/></td> <td><xsl:value-of select="SRTCONTROLE_OMSCHRIJVING"/></td>
<td></td>
<xsl:element name="td"> <xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY,'_', INS_SRTCONTROLE_KEY, '_01')"/></xsl:attribute> <xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_01', '_', LASTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">lastyear</xsl:attribute>
</xsl:element> </xsl:element>
<xsl:element name="td"> <xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY,'_', INS_SRTCONTROLE_KEY, '_02')"/></xsl:attribute> <xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_02', '_', LASTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">lastyear</xsl:attribute>
</xsl:element> </xsl:element>
<xsl:element name="td"> <xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY,'_', INS_SRTCONTROLE_KEY, '_03')"/></xsl:attribute> <xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_03', '_', LASTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">lastyear</xsl:attribute>
</xsl:element> </xsl:element>
<xsl:element name="td"> <xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY,'_', INS_SRTCONTROLE_KEY, '_04')"/></xsl:attribute> <xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_04', '_', LASTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">lastyear</xsl:attribute>
</xsl:element> </xsl:element>
<xsl:element name="td"> <xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY,'_', INS_SRTCONTROLE_KEY, '_05')"/></xsl:attribute> <xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_05', '_', LASTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">lastyear</xsl:attribute>
</xsl:element> </xsl:element>
<xsl:element name="td"> <xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY,'_', INS_SRTCONTROLE_KEY, '_06')"/></xsl:attribute> <xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_06', '_', LASTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">lastyear</xsl:attribute>
</xsl:element> </xsl:element>
<xsl:element name="td"> <xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY,'_', INS_SRTCONTROLE_KEY, '_07')"/></xsl:attribute> <xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_07', '_', LASTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">lastyear</xsl:attribute>
</xsl:element> </xsl:element>
<xsl:element name="td"> <xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY,'_', INS_SRTCONTROLE_KEY, '_08')"/></xsl:attribute> <xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_08', '_', LASTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">lastyear</xsl:attribute>
</xsl:element> </xsl:element>
<xsl:element name="td"> <xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY,'_', INS_SRTCONTROLE_KEY, '_09')"/></xsl:attribute> <xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_09', '_', LASTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">lastyear</xsl:attribute>
</xsl:element> </xsl:element>
<xsl:element name="td"> <xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY,'_', INS_SRTCONTROLE_KEY, '_10')"/></xsl:attribute> <xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_10', '_', LASTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">lastyear</xsl:attribute>
</xsl:element> </xsl:element>
<xsl:element name="td"> <xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY,'_', INS_SRTCONTROLE_KEY, '_11')"/></xsl:attribute> <xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_11', '_', LASTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">lastyear</xsl:attribute>
</xsl:element> </xsl:element>
<xsl:element name="td"> <xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY,'_', INS_SRTCONTROLE_KEY, '_12')"/></xsl:attribute> <xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_12', '_', LASTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">lastyear</xsl:attribute>
</xsl:element> </xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_01', '_', THISYEAR)"/></xsl:attribute>
<xsl:attribute name="class">thisyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_02', '_', THISYEAR)"/></xsl:attribute>
<xsl:attribute name="class">thisyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_03', '_', THISYEAR)"/></xsl:attribute>
<xsl:attribute name="class">thisyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_04', '_', THISYEAR)"/></xsl:attribute>
<xsl:attribute name="class">thisyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_05', '_', THISYEAR)"/></xsl:attribute>
<xsl:attribute name="class">thisyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_06', '_', THISYEAR)"/></xsl:attribute>
<xsl:attribute name="class">thisyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_07', '_', THISYEAR)"/></xsl:attribute>
<xsl:attribute name="class">thisyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_08', '_', THISYEAR)"/></xsl:attribute>
<xsl:attribute name="class">thisyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_09', '_', THISYEAR)"/></xsl:attribute>
<xsl:attribute name="class">thisyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_10', '_', THISYEAR)"/></xsl:attribute>
<xsl:attribute name="class">thisyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_11', '_', THISYEAR)"/></xsl:attribute>
<xsl:attribute name="class">thisyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_12', '_', THISYEAR)"/></xsl:attribute>
<xsl:attribute name="class">thisyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_01', '_', NEXTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">nextyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_02', '_', NEXTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">nextyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_03', '_', NEXTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">nextyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_04', '_', NEXTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">nextyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_05', '_', NEXTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">nextyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_06', '_', NEXTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">nextyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_07', '_', NEXTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">nextyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_08', '_', NEXTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">nextyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_09', '_', NEXTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">nextyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_10', '_', NEXTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">nextyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_11', '_', NEXTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">nextyear</xsl:attribute>
</xsl:element>
<xsl:element name="td">
<xsl:attribute name="id"><xsl:value-of select="concat(INS_DEEL_KEY, '_', INS_SRTCONTROLE_KEY, '_12', '_', NEXTYEAR)"/></xsl:attribute>
<xsl:attribute name="class">nextyear</xsl:attribute>
</xsl:element>
<td></td>
</tr> </tr>
</xsl:if> </xsl:if>
</xsl:for-each> </xsl:for-each>