ijkpunten & ontwikelagenda
This commit is contained in:
@@ -229,8 +229,9 @@ class Gemiddeldenafbeeldingen {
|
||||
if($deler > 0) $this->gemiddelde->score = round($this->somscore / $deler);
|
||||
|
||||
|
||||
$this->gemiddelde->nummer = 'gem';
|
||||
$this->gemiddelde->disabled = 'F';
|
||||
$this->gemiddelde->nummer = 'gem';
|
||||
$this->gemiddelde->disabled = 'F';
|
||||
$this->gemiddelde->disablenvt = 'F';
|
||||
$this->gemiddelde->kleur =$this->getKleur ($this->gemiddelde->score);
|
||||
$this->ijkpunt = $this->gemiddelde;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
class Bestuurscores
|
||||
{
|
||||
private $CI;
|
||||
private $organisatie;
|
||||
private $scores;
|
||||
private $orgstring;
|
||||
private $metingen;
|
||||
@@ -29,15 +28,12 @@ class Bestuurscores
|
||||
|
||||
private function handle(){
|
||||
|
||||
$this->setOrg();
|
||||
|
||||
$this->setOrglist();
|
||||
$this->setScores();
|
||||
$this->setMetingen();
|
||||
}
|
||||
|
||||
private function setOrg(){
|
||||
$this->organisatie = $this->CI->Organisaties_model->get_record_by_id($this->orgid);
|
||||
}
|
||||
|
||||
private function setOrglist(){
|
||||
$orglist = $this->CI->Organisaties_model->getlistrecursief($this->orgid, []);
|
||||
|
||||
@@ -24,7 +24,8 @@ class Individuelescores
|
||||
private function handle(){
|
||||
$this->setUserid();
|
||||
$this->setScores();
|
||||
// $this->telScores();
|
||||
$this->loopScores();
|
||||
|
||||
}
|
||||
|
||||
private function setUserid(){
|
||||
@@ -35,6 +36,27 @@ class Individuelescores
|
||||
$this->scores = $this->CI->Scores_model->calculateindividualscores($this->orgversieid, $this->orgid, $this->userid);
|
||||
}
|
||||
|
||||
private function loopScores(){
|
||||
if(! isset($this->scores) || $this->scores == false ) return;
|
||||
foreach($this->scores as $this->score) {
|
||||
$this->setNietVanToepassing();
|
||||
$this->setGem();
|
||||
}
|
||||
}
|
||||
|
||||
private function setNietVanToepassing(){
|
||||
$this->score->disablenvt = 'F';
|
||||
if($this->score->aantalvier> 0 && $this->score->aantalvier == $this->score->aantalnvt)
|
||||
$this->score->disablenvt = 'T';
|
||||
|
||||
}
|
||||
|
||||
private function setGem(){
|
||||
$this->score->gem = 0;
|
||||
if(isset($this->score->somscore) && $this->score->num > 0) {
|
||||
$this->score->gem = $this->score->somscore/$this->score->num;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -232,9 +232,6 @@ class Lijsten
|
||||
if ($this->soort != 3) return;
|
||||
$this->bestuurScores = new Bestuurscores($this->lijst->orgversieid, $this->orgid, $this->lijst->vorm);
|
||||
if ($this->bestuurScores) {
|
||||
$metingen = $this->bestuurScores->getMetingen();
|
||||
$this->metingen = $metingen->aantal;
|
||||
$this->aantalorgs = $metingen->aantalorgs;
|
||||
$this->bestuurAfbeeldingen = new Afbeeldingen($this->bestuurScores, $this->modulenr, $this->lijst->orgversieid,
|
||||
$this->clusterid, $this->orgid, $this->zprocent);
|
||||
}
|
||||
@@ -244,10 +241,6 @@ class Lijsten
|
||||
if($this->soort == 1) return;
|
||||
$this->kamerScores = new Kamerscores($this->lijst->orgversieid, $this->orgid, $this->lijst->vorm);
|
||||
if($this->kamerScores) {
|
||||
$metingen = $this->kamerScores->getMetingen();
|
||||
$this->metingen = $metingen->aantal;
|
||||
$this->aantalorgs = $metingen->aantalorgs;
|
||||
|
||||
$this->kamerAfbeeldingen = new Afbeeldingen($this->kamerScores, $this->modulenr, $this->lijst->orgversieid,
|
||||
$this->clusterid, $this->orgid, $this->zprocent);
|
||||
}
|
||||
@@ -257,10 +250,6 @@ class Lijsten
|
||||
if ($this->soort == 3 || $this->soort == 4 ) return;
|
||||
$this->swvScores = new Swvscores($this->lijst->orgversieid, $this->orgid, $this->lijst->vorm);
|
||||
if($this->swvScores) {
|
||||
$metingen = $this->swvScores->getMetingen();
|
||||
$this->metingen = $metingen->aantal;
|
||||
$this->aantalorgs = $metingen->aantalorgs;
|
||||
|
||||
$this->swvAfbeeldingen = new Afbeeldingen($this->swvScores, $this->modulenr, $this->lijst->orgversieid,
|
||||
$this->clusterid, $this->orgid, $this->zprocent);
|
||||
}
|
||||
@@ -343,7 +332,7 @@ class Lijsten
|
||||
if(count((array)$this->gemiddeldenAfbeeldingen) == 0) return;
|
||||
foreach($this->lijst->scores as $index => $this->score){
|
||||
$this->score->gem = 0;
|
||||
if($this->score->score) {
|
||||
if(isset($this->score->score) && $this->score->score > 0) {
|
||||
$this->score->gem = $this->score->score;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,7 +83,10 @@ class Userlijsten
|
||||
}
|
||||
|
||||
private function setLabels(){
|
||||
$this->lijst->labels = $this->CI->Labels_model->getalllabels($this->modulenr);
|
||||
// $this->lijst->labels = $this->CI->Labels_model->getalllabels($this->modulenr);
|
||||
$this->lijst->label = $this->CI->Labels_model->gettabellabel($this->modulenr);
|
||||
$this->lijst->label2 = $this->CI->Labels_model->getresultaatlabel($this->modulenr);
|
||||
|
||||
}
|
||||
|
||||
private function setAmbities(){
|
||||
@@ -134,39 +137,44 @@ class Userlijsten
|
||||
|
||||
|
||||
private function loopVergelijkingScores(){
|
||||
if( (!isset($this->lijst->vergelijkingen))) return;
|
||||
for($i = 0; $i < count($this->lijst->vergelijkingen); $i++){
|
||||
if( (!isset($this->lijst->vergelijkingen) ||$this->lijst->vergelijkingen== false )) return;
|
||||
for($i = 0; $i < count($this->lijst->scores); $i++){
|
||||
$this->setVergelijkingScores($i);
|
||||
}
|
||||
}
|
||||
|
||||
private function setVergelijkingScores($i){
|
||||
if($this->lijst->scores[$i]) {
|
||||
$this->lijst->scores[$i]->gemV = $this->lijst->vergelijkingen[$i]->gem;
|
||||
$this->lijst->scores[$i]->kleurV = $this->lijst->vergelijkingen[$i]->kleur;
|
||||
if($this->lijst->vergelijkingen[$i]) {
|
||||
$this->lijst->scores[$i]->gemV = $this->lijst->vergelijkingen[$i]->gem;
|
||||
$this->lijst->scores[$i]->kleurV = $this->lijst->vergelijkingen[$i]->kleur;
|
||||
$this->lijst->scores[$i]->disabledV = $this->lijst->vergelijkingen[$i]->disabled;
|
||||
$this->lijst->scores[$i]->disablenvtV = $this->lijst->vergelijkingen[$i]->disablenvt;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function setIndividueleMetingen(){
|
||||
if(!isset($this->lijst->scores)) return;
|
||||
$metingen = $this->CI->Scores_model->fCountGevuldeVersiesNieuw($this->orgversieid, $this->orgid);
|
||||
if($metingen){
|
||||
$this->lijst->metingen = $metingen->aantal;
|
||||
$this->lijst->aantalorgs = $metingen->aantalorgs;}
|
||||
if(!isset($this->lijst->scores)||$this->lijst->scores == false ) return;
|
||||
$this->lijst->metingen = 1;
|
||||
$this->lijst->aantalorgs = 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private function setMetingenVergelijkingIndividueel(){
|
||||
if(! isset($this->lijst->vergelijkingen)) return;
|
||||
if(! isset($this->lijst->vergelijkingen)||$this->lijst->vergelijkingen == false ) return;
|
||||
foreach($this->lijst->vergelijkingen as $index => $this->lijst->vergelijking) {
|
||||
$metingenV = $this->kamerAfbeeldingen->getMetingen();
|
||||
$metingenV = $this->kamerScores->getMetingen();
|
||||
if($metingenV) {
|
||||
$this->lijst->metingen = $metingenV->aantal;
|
||||
$this->lijst->aantalorgs = $metingenV->aantalorgs;
|
||||
$this->lijst->metingenV = $metingenV->aantal;
|
||||
$this->lijst->aantalorgsV = $metingenV->aantalorgs;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private function setVNaam(){
|
||||
$this->lijst->vNaam = $this->kamerScores->getOrgnaam();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user