FCLT#70361 Management rapportage voor periodieke taken
svn path=/Website/trunk/; revision=58595
This commit is contained in:
@@ -3238,33 +3238,54 @@ END:VCALENDAR
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="sysrapport">
|
||||
<xsl:template match="sysrapport">
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="@view='ctr_v_monthly_recurring_tasks'">
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
table {
|
||||
xborder-collapse: collapse;
|
||||
}
|
||||
table td {
|
||||
border-bottom: 1px solid #b1c3d5;
|
||||
}
|
||||
.lastyear,
|
||||
.thisyear,
|
||||
.nextyear {
|
||||
text-align: center;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.legenda span {
|
||||
padding: 3px;
|
||||
margin-left: 1px;
|
||||
}
|
||||
.stat-1 { background-color: #003366; color:white;}
|
||||
.stat0 { background-color: #FFA500;}
|
||||
.stat2 { background-color: #FFFF00;}
|
||||
.statc1 { background-color: #339933; color:white;}
|
||||
.statc0 { background-color: #990000; color:white;}
|
||||
</style>
|
||||
<script language="javascript">
|
||||
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>
|
||||
if (pstatus == -1) td.innerHTML = "T"; // toekomstig
|
||||
if (pstatus == -1) td.style.backgroundColor = "#003366";
|
||||
if (pstatus == -1) td.style.color = "#FFFFFF";
|
||||
if (pstatus == 0) td.innerHTML = "P"; // ingepland
|
||||
if (pstatus == 0) td.style.backgroundColor = "#FFA500";
|
||||
if (pstatus == 2) td.innerHTML = "S"; // gestart
|
||||
if (pstatus == 2) td.style.backgroundColor = "#FFFF00";
|
||||
if (ctrmodesuccess == 1) td.innerHTML = "G"; // succesvol
|
||||
if (ctrmodesuccess == 1) td.style.backgroundColor = "#339933";
|
||||
if (ctrmodesuccess == 1) td.style.color = "#FFFFFF";
|
||||
if (ctrmodesuccess == 0) td.innerHTML = "F"; // niet succesvol
|
||||
if (ctrmodesuccess == 0) td.style.backgroundColor = "#990000";
|
||||
if (ctrmodesuccess == 0) td.style.backgroundColor = "#990000";
|
||||
</xsl:otherwise>
|
||||
if (ctrmodesuccess == 0) td.style.color = "#FFFFFF";
|
||||
}
|
||||
}
|
||||
function filltable()
|
||||
@@ -3307,7 +3328,7 @@ END:VCALENDAR
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad="filltable();">
|
||||
<body onLoad="filltable();">
|
||||
<table width="100%" id="result">
|
||||
|
||||
<xsl:if test="count(rapport_data/data_row)=0">
|
||||
<tr>
|
||||
@@ -3337,44 +3358,44 @@ END:VCALENDAR
|
||||
<th style="text-align:left">Omschrijving </th>
|
||||
<th style="text-align:left">Controle</th>
|
||||
<th><button type="submit" onclick="backoneyear()"><</button></th>
|
||||
<th><button type="submit" onclick="backoneyear()"><</button></th>
|
||||
<th style="text-align:left" class="lastyear"><xsl:value-of select="$year - 1" /><br></br>Jan</th>
|
||||
<th style="text-align:left" class="lastyear"><br></br>Feb</th>
|
||||
<th style="text-align:left" class="lastyear"><br></br>Mrt</th>
|
||||
<th style="text-align:left" class="lastyear"><br></br>Apr</th>
|
||||
<th style="text-align:left" class="lastyear"><br></br>Mei</th>
|
||||
<th style="text-align:left" class="lastyear"><br></br>Jun</th>
|
||||
<th style="text-align:left" class="lastyear"><br></br>Jul</th>
|
||||
<th style="text-align:left" class="lastyear"><br></br>Aug</th>
|
||||
<th style="text-align:left" class="lastyear"><br></br>Sep</th>
|
||||
<th style="text-align:left" class="lastyear"><br></br>Okt</th>
|
||||
<th style="text-align:left" class="lastyear"><br></br>Nov</th>
|
||||
<th class="lastyear"><xsl:value-of select="$year - 1" /><br></br>Jan</th>
|
||||
<th class="lastyear"><br></br>Feb</th>
|
||||
<th class="lastyear"><br></br>Mrt</th>
|
||||
<th class="lastyear"><br></br>Apr</th>
|
||||
<th class="lastyear"><br></br>Mei</th>
|
||||
<th class="lastyear"><br></br>Jun</th>
|
||||
<th class="lastyear"><br></br>Jul</th>
|
||||
<th class="lastyear"><br></br>Aug</th>
|
||||
<th class="lastyear"><br></br>Sep</th>
|
||||
<th class="lastyear"><br></br>Okt</th>
|
||||
<th class="lastyear"><br></br>Nov</th>
|
||||
<th 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 class="thisyear"><xsl:value-of select="$year" /><br></br>Jan</th>
|
||||
<th class="thisyear"><br></br>Feb</th>
|
||||
<th class="thisyear"><br></br>Mrt</th>
|
||||
<th class="thisyear"><br></br>Apr</th>
|
||||
<th class="thisyear"><br></br>Mei</th>
|
||||
<th class="thisyear"><br></br>Jun</th>
|
||||
<th class="thisyear"><br></br>Jul</th>
|
||||
<th class="thisyear"><br></br>Aug</th>
|
||||
<th class="thisyear"><br></br>Sep</th>
|
||||
<th class="thisyear"><br></br>Okt</th>
|
||||
<th class="thisyear"><br></br>Nov</th>
|
||||
<th 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 class="nextyear"><xsl:value-of select="$year + 1" /><br></br>Jan</th>
|
||||
<th class="nextyear"><br></br>Feb</th>
|
||||
<th class="nextyear"><br></br>Mrt</th>
|
||||
<th class="nextyear"><br></br>Apr</th>
|
||||
<th class="nextyear"><br></br>Mei</th>
|
||||
<th class="nextyear"><br></br>Jun</th>
|
||||
<th class="nextyear"><br></br>Jul</th>
|
||||
<th class="nextyear"><br></br>Aug</th>
|
||||
<th class="nextyear"><br></br>Sep</th>
|
||||
<th class="nextyear"><br></br>Okt</th>
|
||||
<th class="nextyear"><br></br>Nov</th>
|
||||
<th class="nextyear"><xsl:value-of select="$year + 1" /><br></br>Dec</th>
|
||||
<th><button type="submit" onclick="forwardoneyear()">></button></th>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
@@ -3553,6 +3574,13 @@ END:VCALENDAR
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
<div class="legenda">
|
||||
<span class="stat-1">T</span><span>Toekomstig</span>
|
||||
<span class="stat0">P</span><span >Gepland</span>
|
||||
<span class="stat2">S</span><span>Gestart</span>
|
||||
<span class="statc1">G</span><span>Succesvol uitgevoerd</span>
|
||||
<span class="statc0">F</span><span>Onsuccesvol uitgevoerd</span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:when>
|
||||
|
||||
Reference in New Issue
Block a user