This commit is contained in:
Duidev Software
2026-01-06 09:55:02 +07:00
parent 58cb578332
commit 54160e2e19
@@ -89,6 +89,12 @@ class Controller extends BaseController
return $value <= $angka; return $value <= $angka;
} }
protected function cekInterpretasi($value, $data) { protected function cekInterpretasi($value, $data) {
try {
if ($data->batasatas == $value){
return "S";
} else if ($data->batasbawah == $value){
return "R";
} else {
if ($this->cekBatasAtas($value, $data->batasatas)) { if ($this->cekBatasAtas($value, $data->batasatas)) {
return "S"; return "S";
} }
@@ -98,8 +104,12 @@ class Controller extends BaseController
if ($this->cekBatasBawah($value, $data->batasbawah)) { if ($this->cekBatasBawah($value, $data->batasbawah)) {
return "R"; return "R";
} }
}
} catch (\Exception $e) {
return null; return null;
} }
}
protected function getStyledValue($value, $color, $strong = false) { protected function getStyledValue($value, $color, $strong = false) {
return $strong ? "<strong><font color=\"$color\">$value</font></strong>" : "<font color=\"$color\">$value</font>"; return $strong ? "<strong><font color=\"$color\">$value</font></strong>" : "<font color=\"$color\">$value</font>";
} }