ijkpunten vergelijken: kolom 'niet ingevuld' voor lege periode
Bij vergelijken van periodes voor één persoon liep fAddLijst vast op een periode zonder scores (geen ambities, resultaten null), waardoor die en volgende periodes verdwenen. - Userlijsten: standaard ambitie en resultaten=false voor lege periode - ijkpunten.php: eigen grijze kolom 'niet ingevuld'; bestaande tabellen alleen voor periodes met scores - ijkpuntenmodel.js: lege periodes overslaan in de grafiek; melding 'niet ingevuld' alleen als geen enkele periode is ingevuld Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -111,7 +111,6 @@ class Userlijsten
|
||||
}
|
||||
}
|
||||
private function setAmbities(){
|
||||
if(!isset($this->scores) || !$this->scores) return;
|
||||
$standaard = new stdClass();
|
||||
$standaard->ambitievan = 'standaard';
|
||||
$standaard->id = 0;
|
||||
@@ -125,6 +124,12 @@ class Userlijsten
|
||||
$standaard->xijkpunten = ROUND($this->results['aantalY'] * 0.8);
|
||||
$standaard->zprocent = 60;
|
||||
|
||||
// lijst niet ingevuld: standaard ambitie, zodat de periode toch een (lege) kolom krijgt
|
||||
if(!isset($this->scores) || !$this->scores) {
|
||||
$this->lijst->ambities = $standaard;
|
||||
return;
|
||||
}
|
||||
|
||||
if($this->results && $this->results['ambities'] && $this->results['ambities']->gemscore > 0) $this->lijst->ambities = $this->results['ambities'];
|
||||
else $this->lijst->ambities = $standaard;
|
||||
|
||||
@@ -141,7 +146,7 @@ class Userlijsten
|
||||
private function setLijst(){
|
||||
$this->lijst->naam = $this->results['orgnaam'];
|
||||
$this->lijst->scores = $this->scores;
|
||||
if(isset($this->scores)) {
|
||||
if($this->scores) { // false = niet ingevuld; isset() is ook waar voor false
|
||||
$this->lijst->metingen = 1 ;
|
||||
$this->lijst->aantalorgs = 1 ;
|
||||
$this->lijst->adviezen = $this->results['adviezen'];
|
||||
|
||||
@@ -256,7 +256,7 @@
|
||||
|
||||
<!--ko foreach: lijsten-->
|
||||
<!-- Nieuwste meting + ijkpunten van school, bestuur en kamer-->
|
||||
<table class="tabelitem" data-bind="visible: $root.isSWV()==false && tooninfo() == true">
|
||||
<table class="tabelitem" data-bind="visible: $root.isSWV()==false && tooninfo() == true && erzijnscores() == true">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:50%"></th>
|
||||
@@ -367,7 +367,7 @@
|
||||
</table>
|
||||
|
||||
<!-- Nieuwste meting + ijkpunten van swv-->
|
||||
<table class="tabelitem" data-bind="visible: tooninfo()== true && $root.isSWV() == true ">
|
||||
<table class="tabelitem" data-bind="visible: tooninfo()== true && $root.isSWV() == true && erzijnscores() == true">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:50%"></th>
|
||||
@@ -403,7 +403,7 @@
|
||||
</table>
|
||||
|
||||
<!-- Metingen ter vergelijking van swv-->
|
||||
<table class="tabelitem" data-bind="visible: tooninfo() == false && $root.isSWV() == true">
|
||||
<table class="tabelitem" data-bind="visible: tooninfo() == false && $root.isSWV() == true && erzijnscores() == true">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:50%"></th>
|
||||
@@ -438,6 +438,43 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!-- periode zonder ingevulde lijst: eigen kolom met 'niet ingevuld'-->
|
||||
<table class="tabelitem" data-bind="visible: erzijnscores() == false">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:100%"></th>
|
||||
</tr>
|
||||
<tr class="headpdf" >
|
||||
<th class="ijkpuntth" style="border-right: 1px solid white; border-bottom: 1px solid #a07b8e;">
|
||||
<div class="ijkpuntthdiv" data-bind="text: vantm">
|
||||
</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="headpdf" >
|
||||
<th class="ijkpuntth" style="border-right: 1px solid white;">
|
||||
<div class="ijkpuntthdiv" data-bind="text: $root.selectedUser() ? $root.selectedUser().naam : orgnaam">
|
||||
</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="headpdf" >
|
||||
<th class="ijkpuntth" style="border-right: 1px solid white;">
|
||||
<div class="ijkpuntthdiv" style="height: 30px;">niet ingevuld
|
||||
</div>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- ko foreach: $root.ijkpunten -->
|
||||
<tr style="border-bottom: 1px solid #ebebeb; max-height: 30px;">
|
||||
<td style="text-align:right; vertical-align:top; padding-right: 5px; background-color: lightgray;"> </td>
|
||||
</tr>
|
||||
<!-- /ko -->
|
||||
<tr style="border-bottom: 1px solid #ebebeb; max-height: 30px;">
|
||||
<td style="text-align:right; vertical-align:top; padding-right: 5px; background-color: lightgray;"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!--/ko-->
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user