|
|
|
@ -132,6 +132,21 @@ INSERT INTO xcube_dims (id,apnr,name,sort1)
@@ -132,6 +132,21 @@ INSERT INTO xcube_dims (id,apnr,name,sort1)
|
|
|
|
|
select 'lehr',key_apnr,name,0 from organigramm where orgstruktur=30 |
|
|
|
|
and today() between gueltig_seit and gueltig_bis; |
|
|
|
|
|
|
|
|
|
<#if TableFieldExists('sos_lab_aggr','note')> |
|
|
|
|
delete from xcube_dims where id='note'; |
|
|
|
|
INSERT INTO xcube_dims (id,apnr,parent, name,strukturstr,sort1) |
|
|
|
|
values |
|
|
|
|
('note','gesamt',null,'alle','1=1',1), |
|
|
|
|
('note', 'a1', 'gesamt','Sehr gut <=1,0','$1::numeric(5,2)>=0.00 and $1::numeric(5,2)<=1.00',10), |
|
|
|
|
('note', 'a2', 'gesamt','Sehr gut 1,1-1,5','$1::numeric(5,2)>1.00 and $1::numeric(5,2)<=1.50',20), |
|
|
|
|
('note', 'a3', 'gesamt','gut 1,6-2,0','$1::numeric(5,2)>1.50 and $1::numeric(5,2)<=2.00',30), |
|
|
|
|
('note', 'a4', 'gesamt','gut 2,1-2,5','$1::numeric(5,2)>2.00 and $1::numeric(5,2)<=2.50',40), |
|
|
|
|
('note', 'a5', 'gesamt','befriedigend 2,6-3,0','$1::numeric(5,2)>2.50 and $1::numeric(5,2)<=3.00',50), |
|
|
|
|
('note', 'a6', 'gesamt','befriedigend 2,6-3,0','$1::numeric(5,2)>3.00 and $1::numeric(5,2)<=3.50',60), |
|
|
|
|
('note', 'a7', 'gesamt','ausreichend 3,6-4,5','$1::numeric(5,2)>3.500 and $1::numeric(5,2)<=4.50',70), |
|
|
|
|
('note', 'a8', 'gesamt','Note unbekannt','$1::numeric(5,2)<0.00 or $1::numeric(5,2)>4.50',80); |
|
|
|
|
|
|
|
|
|
</#if> |
|
|
|
|
|
|
|
|
|
--Zum Testen |
|
|
|
|
--INSERT INTO xcube_dims (id,apnr,name,sort1,parent,strukturstr) |
|
|
|
|