Browse Source

weitere Dimensionen analog Studierende, Dimension Stud.Dauer-RSZ eingefügt

xcube0.1
Marlies Winterstein 2 years ago
parent
commit
048ab4f149
  1. 3
      src-modules/module/xcube/schluesseltabellen/#Untitled-1#
  2. 11
      src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql
  3. 46
      src-modules/module/xcube/schluesseltabellen/xcube_install.sql

3
src-modules/module/xcube/schluesseltabellen/#Untitled-1#

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
"attrib_nachbearbeitung":"update <<tmp_table>> set <<col>>='-1' where <<col>> <0.00"
"vcsql":"update tmp_rohdaten set dauer_rsz= nvl(fach_sem_zahl -(select regel from dim_studiengang where tid=tid_stg),0)",

11
src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql

@ -148,6 +148,17 @@ values @@ -148,6 +148,17 @@ values
</#if>
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

46
src-modules/module/xcube/schluesseltabellen/xcube_install.sql

@ -75,7 +75,7 @@ @@ -75,7 +75,7 @@
"foreignkey_tab":"sos_k_geschl",
"foreignkey_col":"apnr::varchar(255)",
"foreignkey_cap":"druck",
"attrib_nachbearbeitung": "update <<tmp_table>> set <<col>>='99' where <<col>>::integer > 2;",
"foreignkey_cond":"apnr in ('1','2')",
"sortfield":"apnr"},
{"maskeninfo_id":21000,
"name":"tid_stg",
@ -216,7 +216,7 @@ @@ -216,7 +216,7 @@
"foreignkey_tab":"sos_k_geschl",
"foreignkey_col":"apnr::varchar(255)",
"foreignkey_cap":"druck",
"attrib_nachbearbeitung": "update <<tmp_table>> set <<col>>='99' where <<col>>::integer > 2;",
"foreignkey_cond":"apnr in ('1','2')",
"sortfield":"apnr"},
{"maskeninfo_id":21100,
"name":"tid_stg",
@ -268,6 +268,48 @@ @@ -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 <<tmp_table>> set <<col>>='-1' where <<col>>::numeric(5,2) <0.00;update <<tmp_table>> set <<col>>=<<col>>::numeric(5,2)::integer::varchar(10) where <<col>>::numeric(5,2) >=0.00 and <<col>>::numeric(5,2)< 2.00;update <<tmp_table>> set <<col>>='2' where <<col>>::numeric(5,2) >=2.00",
"sortfield":"sort1"},
<#-- Primärbuchungswürfel -->
{"maskeninfo_id":21500,

Loading…
Cancel
Save