tussenopslag

This commit is contained in:
Monique
2022-03-29 10:23:56 +02:00
parent 8696bc32b6
commit 606dad7d77
4 changed files with 85 additions and 9 deletions
@@ -24,6 +24,25 @@ class Modules_model extends MY_Model{
ORDER BY volgorde";
return $this->get_query_result();
}
function getallmodulesmetcluster(){
$this->sql =" SELECT M.id, M.sysnr, M.naam AS instrument, COALESCE(C.naam, 'geen') AS cluster,
COALESCE(C.naam, 'aaaa') AS ordening, instrument_type,
CASE WHEN SOP.id IS NULL THEN
'F'
ELSE
'T'
END AS insop,
SOP.sopnaam, SOP.blokjesnaam
FROM tb_modules M
LEFT JOIN tb_cluster C ON M.cluster_id = C.id,
LEFT JOIN tb_compactsoponderdelen SOP on M.sysnr = SOP.module_nr
WHERE instrument_type <> 'GEENSOP'
ORDER BY ordening, instrument";
return $this->get_query_result();
}
function getversietoegevoegdemodule($chapterid){
$this->sql =" SELECT *