diff --git a/src-modules/module/xcube/schluesseltabellen/#Untitled-1# b/src-modules/module/xcube/schluesseltabellen/#Untitled-1# new file mode 100644 index 0000000..8c61274 --- /dev/null +++ b/src-modules/module/xcube/schluesseltabellen/#Untitled-1# @@ -0,0 +1,3 @@ +"attrib_nachbearbeitung":"update <> set <>='-1' where <> <0.00" + +"vcsql":"update tmp_rohdaten set dauer_rsz= nvl(fach_sem_zahl -(select regel from dim_studiengang where tid=tid_stg),0)", diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql b/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql index 86c5442..b3cacd7 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql @@ -148,6 +148,17 @@ values +delete from xcube_dims where id='dauer_rsz'; +INSERT INTO xcube_dims (id,apnr,name,sort1) +select distinct 'dauer_rsz',(-1)::varchar(10),'Stud.Dauer schneller als RSZ',-1 from xdummy; +INSERT INTO xcube_dims (id,apnr,name,sort1) +select distinct 'dauer_rsz',0::varchar(10),'Stud.Dauer in RSZ',0 from xdummy; +INSERT INTO xcube_dims (id,apnr,name,sort1) +select distinct 'dauer_rsz',1::varchar(10),'Stud.Dauer in RSZ + 1',1 from xdummy; +INSERT INTO xcube_dims (id,apnr,name,sort1) +select distinct 'dauer_rsz',2::varchar(10),'>= Stud.Dauer in RSZ + 2',2 from xdummy; + + --Zum Testen --INSERT INTO xcube_dims (id,apnr,name,sort1,parent,strukturstr) --VALUES diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_install.sql b/src-modules/module/xcube/schluesseltabellen/xcube_install.sql index a3dedf4..0dcf8ad 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_install.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_install.sql @@ -75,7 +75,7 @@ "foreignkey_tab":"sos_k_geschl", "foreignkey_col":"apnr::varchar(255)", "foreignkey_cap":"druck", - "attrib_nachbearbeitung": "update <> set <>='99' where <>::integer > 2;", + "foreignkey_cond":"apnr in ('1','2')", "sortfield":"apnr"}, {"maskeninfo_id":21000, "name":"tid_stg", @@ -216,7 +216,7 @@ "foreignkey_tab":"sos_k_geschl", "foreignkey_col":"apnr::varchar(255)", "foreignkey_cap":"druck", - "attrib_nachbearbeitung": "update <> set <>='99' where <>::integer > 2;", + "foreignkey_cond":"apnr in ('1','2')", "sortfield":"apnr"}, {"maskeninfo_id":21100, "name":"tid_stg", @@ -268,6 +268,48 @@ "name":"note", "caption":"Note", "is_sicht":2}, + {"maskeninfo_id":21100, + "name":"stg", + "caption":"Fach", + "is_virtual":1, + "is_coldim":0, + "vcsql":"update tmp_rohdaten set stg=(select stg from dim_studiengang where tid=tid_stg)", + "foreignkey_tab":"k_stg", + "foreignkey_col":"stg", + "foreignkey_cap":"ltxt", + "sortfield":"ltxt"}, + {"maskeninfo_id":21100, + "name":"fb", + "caption":"Fachbereich/Fakultät", + "is_virtual":1, + "vcsql":"update tmp_rohdaten set fb=(select fb from dim_studiengang where tid=tid_stg)", + "foreignkey_tab":"cifx", + "foreignkey_col":"apnr::varchar(255)", + "foreignkey_cap":"druck", + "foreignkey_cond":"key=90", + "sortfield":"druck"}, + {"maskeninfo_id":21100, + "name":"lehr", + "caption":"Lehreinheit", + "is_virtual":1, + "vcsql":"update tmp_rohdaten set lehr=(select lehr from dim_studiengang where tid=tid_stg)", + "foreignkey_tab":"xcube_dims", + "foreignkey_col":"apnr", + "foreignkey_cap":"name", + "foreignkey_cond":"id='lehr'", + "sortfield":"name"}, + {"maskeninfo_id":21100, + "name":"dauer_rsz", + "caption":"Stud.Dauer im Verhältnis zur RSZ", + "is_virtual":1, + "vcsql":"update tmp_rohdaten set dauer_rsz= nvl(fach_sem_zahl -(select regel from dim_studiengang where tid=tid_stg),0)", + "foreignkey_tab":"xcube_dims", + "foreignkey_col":"apnr", + "foreignkey_cap":"name", + "foreignkey_cond":"id='dauer_rsz'", + "attrib_nachbearbeitung":"update <> set <>='-1' where <>::numeric(5,2) <0.00;update <> set <>=<>::numeric(5,2)::integer::varchar(10) where <>::numeric(5,2) >=0.00 and <>::numeric(5,2)< 2.00;update <> set <>='2' where <>::numeric(5,2) >=2.00", + "sortfield":"sort1"}, + <#-- Primärbuchungswürfel --> {"maskeninfo_id":21500,