Compare commits
No commits in common. 'master' and 'viz_kern51' have entirely different histories.
master
...
viz_kern51
139 changed files with 2513 additions and 17941 deletions
@ -1,46 +1,37 @@ |
|||||||
44130^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ |
44130^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^hidden^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag='Köpfe';^ |
||||||
caption\ |
44131^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||||
FROM rpta_column_layout \ |
44132^Stichtag^1^350^-1^140^100^1^sql^30^0^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^hidden^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat')\ |
44133^Staatsangehörigkeit^36^0^0^130^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^^^ |
||||||
and R.systeminfo_id=7)\ |
44134^Status^14^350^-1^140^180^1^sql^30^0^1^<<SQL>> select apnr,eintrag from sos_status order by 2^hidden^<<SQL>> select apnr,eintrag from sos_status where eintrag='Alle ohne Beurl.';^ |
||||||
and uniquename in ('sos_stud_nach_alter')\ |
44135^Hörerstatus^33^0^0^140^170^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^hidden^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
||||||
order by sortnr, caption\ |
44136^Weitere Tabellen^123^0^0^140^140^10^char^30^0^1^<<SQL>> select name,string_not_null(caption) || ' - ' || name from sx_tables where name in ('dim_studiengang','dim_staat')\ |
||||||
;^^<<SQL>>SELECT uniquename,\ |
order by 2^hidden^^ |
||||||
caption\ |
44137^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^0^^hidden^^ |
||||||
FROM rpta_column_layout \ |
44139^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat')\ |
44140^Filter Studierende^119^0^0^140^150^1^sql^20^0^1^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^^^ |
||||||
and R.systeminfo_id=7)\ |
44141^Geschlecht^37^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^^^ |
||||||
and uniquename in ('sos_stud_nach_alter')\ |
44142^Felder^125^0^0^150^190^10^char^30^0^1^<<SQL>>\ |
||||||
order by sortnr, caption\ |
--freemarker template\ |
||||||
;^ |
select trim(F.table_name) || '.' || F.name,trim(T.caption) || ':' || trim(F.caption) || ' - ' || trim(F.name) from sx_fields F,\ |
||||||
44131^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
sx_tables T where F.table_name=T.name and F.currentlyused=1\ |
||||||
select tid, eintrag from semester \ |
--Pseudonyme eingeschaltet:\ |
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
and (F.name != 'matrikel_nr' or 0=(select \ |
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\ |
||||||
</#if>\ |
and apnr=1)) \ |
||||||
and sem_beginn <=today()\ |
and F.table_name in ('sos_stg_aggr','dim_staat','dim_studiengang') \ |
||||||
order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
order by 2;^hidden^sos_stg_aggr.alter,sos_stg_aggr.geschlecht,sos_stg_aggr.matrikel_nr,sos_stg_aggr.summe^ |
||||||
44132^Fächer^30^0^0^130^200^6^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ |
44143^Studiengang^6^0^0^140^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^^^ |
||||||
44133^Abschluss^40^0^0^100^200^3^char^1500^0^1^<<SQL>> select apnr, druck from cifx where key=35 order by 2;^ ^ ^ |
44144^Schlüssel anzeigen^150^0^0^100^100^1^integer^30^1^1^<<SQL>> select 1,'Ja' from xdummy union select 0,'Nein' from xdummy^hidden^<<SQL>> select 1,'Ja' from xdummy^ |
||||||
44134^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^0^^ ^ ^ |
44145^tablestylesheet^121^0^0^100^200^1^char^200^1^1^<<SQL>> select filename,X.caption,ord from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=44130 order by ord^^<<SQL>> select filename,X.caption from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=44130 and ord=20 order by ord limit 1^ |
||||||
44135^Semestertyp^22^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^Eintrag^<<SQL>> select 2,'nur Wintersemester' from xdummy^ |
44146^Ausgabeformat^2001^0^0^100^150^1^char^200^1^1^<<SQL>> select element_value,description from menu_element where element='Ausgabeformat' and nature::smallint<100 order by nature::smallint^hidden^<<SQL>> select element_value,description from menu_element where element='Ausgabeformat' and description='HTML'^ |
||||||
44136^Hochschulzugangsberechtigung^120^300^-1^200^200^1^sql^30^0^1^hs_zugangsber^apnr, eintrag^ ^ |
44147^Grafik^1000^300^-1^170^150^1^integer^30^0^1^<<SQL>> select tid, caption from viz_chart where maskeninfo_id=44130 order by 2;^^<<SQL>> select tid, caption from viz_chart where maskeninfo_id=44130 order by 2 limit 1^ |
||||||
44137^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
44148^Jahrgang^42^350^-1^140^180^1^sql^30^0^13^<<SQL>> select attributevalue from personattribute_value_list where personattributetype_id = (select personattributetype_id from personattributetype where attributevalue = 'Jahrgang');^hidden^^ |
||||||
select tid, eintrag from semester \ |
44149^Name der Hochschule^15^350^-1^140^80^1^char^255^0^13^<<SQL>> select name from hochschulinfo;^Eintrag^<<SQL>> select name from hochschulinfo;^ |
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
44150^Spaltenanzahl^300^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT 1,'1-spaltig' from xdummy \ |
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
union SELECT 2,'2-spaltig' from xdummy \ |
||||||
</#if>\ |
union SELECT 3,'3-spaltig' from xdummy \ |
||||||
and sem_beginn <=today()\ |
union SELECT 4,'4-spaltig' from xdummy \ |
||||||
order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
order by 1;^hidden^<<SQL>> SELECT 1,'1-spaltig' from xdummy^ |
||||||
44138^Staatsangehörigkeit^150^0^0^140^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ |
44151^Abschluss^7^0^0^140^170^5^char^30^0^1^<<SQL>> select abint,dtxt from k_abint order by 2;^^^ |
||||||
44139^Studiengang^25^0^0^140^150^50^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ |
44152^Matrikel-Nr.^20^350^-1^150^180^1^char^200^0^0^^hidden^^ |
||||||
44140^Grafik^4000^300^-1^170^150^1^char^30^0^1^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44130 order by 2;^^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44130 order by 2 limit 1;^ |
44153^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^ |
||||||
44141^Stichtag^23^330^-1^130^100^1^sql^30^1^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^ ^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
|
||||||
44142^Hörerstatus^200^330^-1^140^150^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
|
||||||
44143^tablestylesheet^1500^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44130 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44130 order by ord limit 1^ |
|
||||||
44144^Jahr^110^0^0^140^80^1^integer^30^0^13^ ^ ^ ^ |
|
||||||
44148^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ |
|
||||||
44152^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ |
|
||||||
44153^Spalten^3001^0^0^150^190^10^char^30^0^1^<<SQL>>\ |
|
||||||
select C.uniquename, C.caption ,L.layout_id from rpta_column C, rpta_column2layout L where C.tid=L.column_id and layout_id in\ |
|
||||||
(select tid from rpta_column_layout where uniquename=<<Spaltenlayout>>) order by 2;^hidden^^ |
|
||||||
|
@ -1 +1 @@ |
|||||||
44130^Studierende nach Alter (Boxplot)^<sximport>select select_stmt from maskeninfo where tid=48000</sximport>^<sximport>select xil_proplist from maskeninfo where tid=48000</sximport>^Studienfach^Anzahl bzw. Anteil^Datenblatt Studierendenstatistik^<sximport>select cleanup_stmt from maskeninfo where tid=48000</sximport>^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ |
44130^Studierende nach Alter (Boxplot)^<sximport>select select_stmt from maskeninfo where tid=160440</sximport>^<sximport>select xil_proplist from maskeninfo where tid=160440</sximport>^Altersgruppe^Anzahl^Altersverteilung der Studierenden als Boxplot^<sximport>select cleanup_stmt from maskeninfo where tid=160440</sximport>^^3^700^360^0^1^ ^ |
||||||
|
@ -1,40 +1,25 @@ |
|||||||
44190^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag='Köpfe';^ |
44190^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag='Köpfe';^ |
||||||
44191^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
44191^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44192^Stichtag^1^350^-1^140^100^1^sql^30^0^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
44192^Stichtag^1^350^-1^140^100^1^sql^30^0^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
||||||
44193^Staatsangehörigkeit^36^0^0^130^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^hidden^^ |
44193^Staatsangehörigkeit^36^0^0^130^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^hidden^^ |
||||||
44194^Status^14^350^-1^140^180^1^sql^30^0^1^<<SQL>> select apnr,eintrag from sos_status order by 2^^<<SQL>> select apnr,eintrag from sos_status where eintrag='Alle ohne Beurl.';^ |
44194^Status^14^350^-1^140^180^1^sql^30^0^1^<<SQL>> select apnr,eintrag from sos_status order by 2^^<<SQL>> select apnr,eintrag from sos_status where eintrag='Alle ohne Beurl.';^ |
||||||
44195^Hörerstatus^33^0^0^140^170^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
44195^Hörerstatus^33^0^0^140^170^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
||||||
44196^Spaltenanzahl^300^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT 0,'Automatisch' from xdummy \ |
44196^Spaltenanzahl^300^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT 1,'1-spaltig' from xdummy \ |
||||||
union SELECT 1,'1-spaltig' from xdummy \ |
|
||||||
union SELECT 2,'2-spaltig' from xdummy \ |
union SELECT 2,'2-spaltig' from xdummy \ |
||||||
union SELECT 3,'3-spaltig' from xdummy \ |
union SELECT 3,'3-spaltig' from xdummy \ |
||||||
union SELECT 4,'4-spaltig' from xdummy \ |
union SELECT 4,'4-spaltig' from xdummy \ |
||||||
order by 1;^^<<SQL>> SELECT 2,'2-spaltig' from xdummy^ |
order by 1;^^<<SQL>> SELECT 3,'3-spaltig' from xdummy^ |
||||||
44197^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^0^ ^^^ |
44197^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^999^^^^ |
||||||
44199^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
44199^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||||
select tid, eintrag from semester \ |
44200^Filter Studierende^119^0^0^140^150^1^sql^20^0^999^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^^^ |
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44200^Filter Studierende^100^0^0^140^150^1^sql^20^0^1^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^^^ |
|
||||||
44201^Geschlecht^37^0^0^140^80^1^integer^30^0^999^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^^^ |
44201^Geschlecht^37^0^0^140^80^1^integer^30^0^999^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^^^ |
||||||
44202^Tabnr.^1000^0^0^140^80^1^integer^30^0^13^ ^^^ |
|
||||||
44203^Studiengang^6^0^0^140^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^^^ |
44203^Studiengang^6^0^0^140^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^^^ |
||||||
44204^Schlüssel anzeigen^150^0^0^100^100^1^integer^30^1^1^<<SQL>> select 1,'Ja' from xdummy union select 0,'Nein' from xdummy^hidden^<<SQL>> select 1,'Ja' from xdummy^ |
44204^Schlüssel anzeigen^150^0^0^100^100^1^integer^30^1^1^<<SQL>> select 1,'Ja' from xdummy union select 0,'Nein' from xdummy^hidden^<<SQL>> select 1,'Ja' from xdummy^ |
||||||
44205^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44190 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44190 order by ord limit 1^ |
44205^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44070 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44070 and ord =1^ |
||||||
44206^Kachelbreite^305^0^0^100^15^1^integer^5000^0^0^^^800^ |
|
||||||
44207^Grafik^1000^300^-1^170^150^1^integer^30^0^1^<<SQL>> select tid, caption from viz_chart order by 2;^hidden^ ^ |
44207^Grafik^1000^300^-1^170^150^1^integer^30^0^1^<<SQL>> select tid, caption from viz_chart order by 2;^hidden^ ^ |
||||||
44208^Jahr^110^0^0^140^80^1^integer^30^0^13^ ^ ^ ^ |
44208^Jahrgang^42^350^-1^140^180^1^sql^30^0^999^<<SQL>> select attributevalue from personattribute_value_list where personattributetype_id = (select personattributetype_id from personattributetype where attributevalue = 'Jahrgang');^^^ |
||||||
44209^Semestertyp^5^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^Eintrag^<<SQL>> select 2,'nur Wintersemester' from xdummy^ |
44209^Semestertyp^5^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^Eintrag^<<SQL>> select 2,'nur Wintersemester' from xdummy^ |
||||||
44210^##line##^30^0^0^100^100^1^char^5000^0^8^^^1^ |
44210^##line##^30^0^0^100^100^1^char^5000^0^8^^^1^ |
||||||
44211^Abschluss^7^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^ |
44211^Abschluss^7^0^0^140^170^5^char^30^0^1^<<SQL>> select abint,dtxt from k_abint order by 2;^^^ |
||||||
44212^Kachelhöhe^310^0^0^100^15^1^integer^5000^0^0^^^600^ |
44212^Matrikel-Nr.^20^350^-1^150^180^1^char^200^0^13^^{InputCheck:matrikelnummern}^^ |
||||||
44213^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^ |
44213^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^ |
||||||
|
@ -1 +1 @@ |
|||||||
44190^Studierende Übersicht^ ^ ^Altersgruppe^Anzahl^Studienanfänger_innen als Zeitreihe, nach Gesschlecht und Fakultät in verschiedenen Visualisierungen^drop table tmp_tabelle;^^3^700^360^0^1^^ |
44190^Studienanfänger_innen Übersicht^ ^ ^Altersgruppe^Anzahl^Studienanfänger_innen als Zeitreihe, nach Gesschlecht und Fakultät in verschiedenen Visualisierungen^drop table tmp_tabelle;^^3^700^360^0^1^^ |
||||||
|
@ -1,43 +1,29 @@ |
|||||||
44220^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ |
44220^Spaltenlayout^3000^350^-1^140^180^1^integer^30^1^1^<<SQL>>SELECT tid,\ |
||||||
caption\ |
caption\ |
||||||
FROM rpta_column_layout \ |
FROM rpta_column_layout \ |
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat_dashboard')\ |
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat')\ |
||||||
and R.systeminfo_id=7)\ |
and R.systeminfo_id=7)\ |
||||||
and uniquename in ('sos_stud_geschl_dashboard')\ |
and uniquename in ('sos_stud_geschl')\ |
||||||
order by sortnr, caption\ |
order by sortnr, caption\ |
||||||
;^^<<SQL>>SELECT uniquename,\ |
;^^<<SQL>>SELECT tid,\ |
||||||
caption\ |
caption\ |
||||||
FROM rpta_column_layout \ |
FROM rpta_column_layout \ |
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat_dashboard')\ |
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat')\ |
||||||
and R.systeminfo_id=7)\ |
and R.systeminfo_id=7)\ |
||||||
and uniquename in ('sos_stud_geschl_dashboard')\ |
and uniquename in ('sos_stud_geschl')\ |
||||||
order by sortnr, caption limit 1\ |
order by sortnr, caption limit 1\ |
||||||
;^ |
;^ |
||||||
44221^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
44221^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44222^Fächer^30^0^0^130^200^6^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ |
44222^Fächer^30^0^0^130^200^6^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ |
||||||
44223^Abschluss^7^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^ |
44223^Abschluss^40^0^0^100^200^3^char^1500^0^1^<<SQL>> select apnr, druck from cifx where key=35 order by 2;^ ^ ^ |
||||||
44224^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^13^^ ^ ^ |
44224^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^13^^ ^ ^ |
||||||
44225^Grafik^4000^300^-1^170^150^1^char^30^0^1^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44220 order by 2;^^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44220 order by 2 limit 1;^ |
44225^Grafik^4000^300^-1^170^150^1^integer^30^0^1^<<SQL>> select tid, caption from viz_chart where maskeninfo_id=44220 order by 2;^^<<SQL>> select tid, caption from viz_chart where maskeninfo_id=44220 order by 2 limit 1;^ |
||||||
44226^Nur Endsemester^1000^0^0^140^80^1^integer^30^0^1^<<SQL>> select 1,'ja' from xdummy^Eintrag^ ^ |
44226^Hochschulzugangsberechtigung^120^300^-1^200^200^1^sql^30^0^1^hs_zugangsber^apnr, eintrag^ ^ |
||||||
44227^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
44227^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44228^Staatsangehörigkeit^150^0^0^140^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ |
44228^Staatsangehörigkeit^150^0^0^140^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ |
||||||
44229^Studiengang^25^0^0^140^150^50^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ |
44229^Studiengang^25^0^0^140^150^50^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ |
||||||
44230^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44220 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44220 order by ord limit 1^ |
44230^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44100 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44100 order by ord limit 1^ |
||||||
44231^Stichtag^23^330^-1^130^100^1^sql^30^1^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^ ^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
44231^Stichtag^23^330^-1^130^100^1^sql^30^1^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^ ^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
||||||
44232^Hörerstatus^200^330^-1^140^150^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
44232^Hörerstatus^200^330^-1^140^150^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
||||||
44233^Jahr^110^0^0^140^80^1^integer^30^0^13^ ^ ^ ^ |
|
||||||
44234^Semestertyp^22^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^ ^<<SQL>> select 2,'nur Wintersemester' from xdummy^ |
|
||||||
44238^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ |
44238^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ |
||||||
44242^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ |
44242^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ |
||||||
|
@ -1 +1 @@ |
|||||||
44220^Studierende nach Geschlecht^<sximport>select select_stmt from maskeninfo where tid=48000</sximport>^<sximport>select xil_proplist from maskeninfo where tid=48000</sximport>^Studienfach^Anzahl bzw. Anteil^Ausgabe der Studierenden nach Geschlecht in verschiedenen Visualisierungen (z.B. Tortendiagramm)^<sximport>select cleanup_stmt from maskeninfo where tid=48000</sximport>^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ |
44220^Studierende nach Geschlecht^<sximport>select select_stmt from maskeninfo where tid=45000</sximport>^<sximport>select xil_proplist from maskeninfo where tid=45000</sximport>^Studienfach^Anzahl bzw. Anteil^Ausgabe der Studierenden nach Geschlecht in verschiedenen Visualisierungen (z.B. Tortendiagramm)^<sximport>select cleanup_stmt from maskeninfo where tid=45000</sximport>^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ |
||||||
|
@ -1,43 +1,30 @@ |
|||||||
44250^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>\ |
44250^Spaltenlayout^3000^350^-1^140^180^1^integer^30^1^1^<<SQL>>SELECT tid,\ |
||||||
SELECT uniquename,\ |
|
||||||
caption\ |
caption\ |
||||||
FROM rpta_column_layout \ |
FROM rpta_column_layout \ |
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat_dashboard','sos_stud_astat')\ |
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat')\ |
||||||
and R.systeminfo_id=7)\ |
and R.systeminfo_id=7)\ |
||||||
and uniquename like 'sos_stud_ca12_staat%' or uniquename like 'sos_stud_hzb_staat%'\ |
and uniquename in ('sos_stud_ca12_staat','sos_stud_hzb_staat')\ |
||||||
order by sortnr, caption;^^<<SQL>>SELECT uniquename,\ |
order by sortnr, caption\ |
||||||
|
;^^<<SQL>>SELECT tid,\ |
||||||
caption\ |
caption\ |
||||||
FROM rpta_column_layout \ |
FROM rpta_column_layout \ |
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat_dashboard','sos_stud_astat')\ |
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat')\ |
||||||
and R.systeminfo_id=7)\ |
and R.systeminfo_id=7)\ |
||||||
and uniquename like 'sos_stud_ca12_staat%' or uniquename like 'sos_stud_hzb_staat%'\ |
and uniquename in ('sos_stud_ca12_staat','sos_stud_hzb_staat')\ |
||||||
order by sortnr, caption\ |
order by sortnr, caption\ |
||||||
limit 1\ |
limit 1\ |
||||||
;^ |
;^ |
||||||
44251^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
44251^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44252^Fächer^30^0^0^130^200^6^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ |
44252^Fächer^30^0^0^130^200^6^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ |
||||||
44253^Abschluss^40^0^0^100^200^3^char^1500^0^1^<<SQL>> select apnr, druck from cifx where key=35 order by 2;^ ^ ^ |
44253^Abschluss^40^0^0^100^200^3^char^1500^0^1^<<SQL>> select apnr, druck from cifx where key=35 order by 2;^ ^ ^ |
||||||
44254^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^13^^ ^ ^ |
44254^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^13^^ ^ ^ |
||||||
44255^Grafik^4000^300^-1^170^150^1^char^30^0^1^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44250 order by 2;^^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44250 order by 2 limit 1;^ |
44255^Grafik^4000^300^-1^170^150^1^integer^30^0^1^<<SQL>> select tid, caption from viz_chart where maskeninfo_id=44250 order by 2;^^<<SQL>> select tid, caption from viz_chart where maskeninfo_id=44250 order by 2 limit 1;^ |
||||||
44257^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
44256^Hochschulzugangsberechtigung^120^300^-1^200^200^1^sql^30^0^1^hs_zugangsber^apnr, eintrag^ ^ |
||||||
select tid, eintrag from semester \ |
44257^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44258^Staatsangehörigkeit^150^0^0^140^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ |
44258^Staatsangehörigkeit^150^0^0^140^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ |
||||||
44259^Studiengang^25^0^0^140^150^50^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ |
44259^Studiengang^25^0^0^140^150^50^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ |
||||||
44260^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44250 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44100 order by ord limit 1^ |
44260^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44250 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44100 order by ord limit 1^ |
||||||
44261^Stichtag^23^330^-1^130^100^1^sql^30^1^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^ ^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
44261^Stichtag^23^330^-1^130^100^1^sql^30^1^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^ ^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
||||||
44262^Hörerstatus^200^330^-1^140^150^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
44262^Hörerstatus^200^330^-1^140^150^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
||||||
44263^Jahr^110^0^0^140^80^1^integer^30^0^13^ ^ ^ ^ |
|
||||||
44264^Semestertyp^22^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^ ^<<SQL>> select 2,'nur Wintersemester' from xdummy^ |
|
||||||
44268^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ |
44268^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ |
||||||
44272^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ |
44272^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ |
||||||
|
@ -1 +1 @@ |
|||||||
44250^Studierende nach Staaten^<sximport>select select_stmt from maskeninfo where tid=48000</sximport>^<sximport>select xil_proplist from maskeninfo where tid=48000</sximport>^Studienfach^Anzahl bzw. Anteil^Ausgabe der Studierenden nach Staat (Staatsangehörigkeit, Staat der Hochschulzugangsberechtigung) als Datenblatt oder Weltkarte^<sximport>select cleanup_stmt from maskeninfo where tid=48000</sximport>^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ |
44250^Studierende nach Staaten^<sximport>select select_stmt from maskeninfo where tid=45000</sximport>^<sximport>select xil_proplist from maskeninfo where tid=45000</sximport>^Studienfach^Anzahl bzw. Anteil^Ausgabe der Studierenden nach Staat (Staatsangehörigkeit, Staat der Hochschulzugangsberechtigung) als Datenblatt oder Weltkarte^<sximport>select cleanup_stmt from maskeninfo where tid=45000</sximport>^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ |
||||||
|
@ -1,43 +1,29 @@ |
|||||||
44280^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ |
44280^Spaltenlayout^3000^350^-1^140^180^1^integer^30^1^1^<<SQL>>SELECT tid,\ |
||||||
caption\ |
caption\ |
||||||
FROM rpta_column_layout \ |
FROM rpta_column_layout \ |
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat_dashboard')\ |
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat')\ |
||||||
and R.systeminfo_id=7)\ |
and R.systeminfo_id=7)\ |
||||||
and uniquename in ('sos_stud_fak_dashboard')\ |
and uniquename in ('sos_stud_fak')\ |
||||||
order by sortnr, caption\ |
order by sortnr, caption\ |
||||||
;^^<<SQL>>SELECT uniquename,\ |
;^^<<SQL>>SELECT tid,\ |
||||||
caption\ |
caption\ |
||||||
FROM rpta_column_layout \ |
FROM rpta_column_layout \ |
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat_dashboard')\ |
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat')\ |
||||||
and R.systeminfo_id=7)\ |
and R.systeminfo_id=7)\ |
||||||
and uniquename in ('sos_stud_fak_dashboard')\ |
and uniquename in ('sos_stud_fak')\ |
||||||
order by sortnr, caption limit 1\ |
order by sortnr, caption limit 1\ |
||||||
;^ |
;^ |
||||||
44281^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
44281^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44282^Fächer^30^0^0^130^200^6^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ |
44282^Fächer^30^0^0^130^200^6^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ |
||||||
44283^Abschluss^40^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^ |
44283^Abschluss^40^0^0^100^200^3^char^1500^0^1^<<SQL>> select apnr, druck from cifx where key=35 order by 2;^ ^ ^ |
||||||
44284^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^13^^ ^ ^ |
44284^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^13^^ ^ ^ |
||||||
44285^Grafik^4000^300^-1^170^150^1^char^30^0^1^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44280 and chart_active=1 order by 2;^^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44280 and chart_active=1 order by 2 limit 1;^ |
44285^Grafik^4000^300^-1^170^150^1^integer^30^0^1^<<SQL>> select tid, caption from viz_chart where maskeninfo_id=44280 order by 2;^^<<SQL>> select tid, caption from viz_chart where maskeninfo_id=44280 order by 2 limit 1;^ |
||||||
44286^Nur Endsemester^1000^0^0^140^80^1^integer^30^0^1^<<SQL>> select 1,'ja' from xdummy^Eintrag^ ^ |
44286^Hochschulzugangsberechtigung^120^300^-1^200^200^1^sql^30^0^1^hs_zugangsber^apnr, eintrag^ ^ |
||||||
44287^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
44287^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44288^Staatsangehörigkeit^150^0^0^140^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ |
44288^Staatsangehörigkeit^150^0^0^140^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ |
||||||
44289^Studiengang^25^0^0^140^150^50^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ |
44289^Studiengang^25^0^0^140^150^50^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ |
||||||
44290^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44280 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44280 order by ord limit 1^ |
44290^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44100 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44100 order by ord limit 1^ |
||||||
44291^Stichtag^23^330^-1^130^100^1^sql^30^1^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^ ^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
44291^Stichtag^23^330^-1^130^100^1^sql^30^1^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^ ^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
||||||
44292^Hörerstatus^200^330^-1^140^150^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^ ^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
44292^Hörerstatus^200^330^-1^140^150^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
||||||
44293^Jahr^110^0^0^140^80^1^integer^30^0^13^ ^ ^ ^ |
|
||||||
44294^Semestertyp^22^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^ ^<<SQL>> select 2,'nur Wintersemester' from xdummy^ |
|
||||||
44298^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ |
44298^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ |
||||||
44302^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ |
44302^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ |
||||||
|
@ -1 +1 @@ |
|||||||
44280^Studierende nach Fakultät^<sximport>select select_stmt from maskeninfo where tid=48000</sximport>^<sximport>select xil_proplist from maskeninfo where tid=48000</sximport>^Studienfach^Anzahl bzw. Anteil^Ausgabe der Studierenden nach Fakultät mit verschiedenen Visualisierungen (z.B. Tortendiagramm)^<sximport>select cleanup_stmt from maskeninfo where tid=48000</sximport>^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ |
44280^Studierende nach Fakultät^<sximport>select select_stmt from maskeninfo where tid=45000</sximport>^<sximport>select xil_proplist from maskeninfo where tid=45000</sximport>^Studienfach^Anzahl bzw. Anteil^Ausgabe der Studierenden nach Fakultät mit verschiedenen Visualisierungen (z.B. Tortendiagramm)^<sximport>select cleanup_stmt from maskeninfo where tid=45000</sximport>^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ |
||||||
|
@ -1,43 +0,0 @@ |
|||||||
44310^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ |
|
||||||
caption\ |
|
||||||
FROM rpta_column_layout \ |
|
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat_dashboard')\ |
|
||||||
and R.systeminfo_id=7)\ |
|
||||||
and uniquename in ('sos_stud_abgrp_dashboard','sos_stud_la_dashboard')\ |
|
||||||
order by sortnr, caption\ |
|
||||||
;^^<<SQL>>SELECT uniquename,\ |
|
||||||
caption\ |
|
||||||
FROM rpta_column_layout \ |
|
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat_dashboard')\ |
|
||||||
and R.systeminfo_id=7)\ |
|
||||||
and uniquename in ('sos_stud_abgrp_dashboard')\ |
|
||||||
order by sortnr, caption limit 1\ |
|
||||||
;^ |
|
||||||
44311^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
|
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44312^Fächer^30^0^0^130^200^6^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ |
|
||||||
44313^Abschluss^40^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^ |
|
||||||
44314^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^13^^ ^ ^ |
|
||||||
44315^Grafik^4000^300^-1^170^150^1^char^30^0^1^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44310 and chart_active=1 order by 2;^^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44310 and chart_active=1 order by 2 limit 1;^ |
|
||||||
44316^Nur Endsemester^1000^0^0^140^80^1^integer^30^0^1^<<SQL>> select 1,'ja' from xdummy^Eintrag^ ^ |
|
||||||
44317^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
|
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44318^Staatsangehörigkeit^150^0^0^140^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ |
|
||||||
44319^Studiengang^25^0^0^140^150^50^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ |
|
||||||
44320^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44310 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44310 order by ord limit 1^ |
|
||||||
44321^Stichtag^23^330^-1^130^100^1^sql^30^1^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^ ^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
|
||||||
44322^Hörerstatus^200^330^-1^140^150^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^ ^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
|
||||||
44323^Jahr^110^0^0^140^80^1^integer^30^0^13^ ^ ^ ^ |
|
||||||
44324^Semestertyp^22^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^ ^<<SQL>> select 2,'nur Wintersemester' from xdummy^ |
|
||||||
44328^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ |
|
||||||
44332^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ |
|
@ -1,17 +0,0 @@ |
|||||||
44310^44310^ |
|
||||||
44310^44311^ |
|
||||||
44310^44312^ |
|
||||||
44310^44313^ |
|
||||||
44310^44314^ |
|
||||||
44310^44315^ |
|
||||||
44310^44316^ |
|
||||||
44310^44317^ |
|
||||||
44310^44318^ |
|
||||||
44310^44319^ |
|
||||||
44310^44320^ |
|
||||||
44310^44321^ |
|
||||||
44310^44322^ |
|
||||||
44310^44323^ |
|
||||||
44310^44324^ |
|
||||||
44310^44328^ |
|
||||||
44310^44332^ |
|
@ -1 +0,0 @@ |
|||||||
44310^Studierende nach Abschluss^<sximport>select select_stmt from maskeninfo where tid=48000</sximport>^<sximport>select xil_proplist from maskeninfo where tid=48000</sximport>^Studienfach^Anzahl bzw. Anteil^Ausgabe der Studierenden nach Fakultät mit verschiedenen Visualisierungen (z.B. Tortendiagramm)^<sximport>select cleanup_stmt from maskeninfo where tid=48000</sximport>^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ |
|
@ -1 +0,0 @@ |
|||||||
16^44310^ |
|
@ -1,43 +0,0 @@ |
|||||||
44340^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ |
|
||||||
caption\ |
|
||||||
FROM rpta_column_layout \ |
|
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat_dashboard')\ |
|
||||||
and R.systeminfo_id=7)\ |
|
||||||
and uniquename in ('sos_stud_bildungstyp_dashboard')\ |
|
||||||
order by sortnr, caption\ |
|
||||||
;^^<<SQL>>SELECT uniquename,\ |
|
||||||
caption\ |
|
||||||
FROM rpta_column_layout \ |
|
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat_dashboard')\ |
|
||||||
and R.systeminfo_id=7)\ |
|
||||||
and uniquename in ('sos_stud_bildungstyp_dashboard')\ |
|
||||||
order by sortnr, caption limit 1\ |
|
||||||
;^ |
|
||||||
44341^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
|
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44342^Fächer^30^0^0^130^200^6^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ |
|
||||||
44343^Abschluss^40^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^ |
|
||||||
44344^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^13^^ ^ ^ |
|
||||||
44345^Grafik^4000^300^-1^170^150^1^char^30^0^1^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44340 and chart_active=1 order by 2;^^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44340 and chart_active=1 order by 2 limit 1;^ |
|
||||||
44346^Nur Endsemester^1000^0^0^140^80^1^integer^30^0^1^<<SQL>> select 1,'ja' from xdummy^Eintrag^ ^ |
|
||||||
44347^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
|
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44348^Staatsangehörigkeit^150^0^0^140^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ |
|
||||||
44349^Studiengang^25^0^0^140^150^50^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ |
|
||||||
44350^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44340 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44340 order by ord limit 1^ |
|
||||||
44351^Stichtag^23^330^-1^130^100^1^sql^30^1^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^ ^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
|
||||||
44352^Hörerstatus^200^330^-1^140^150^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^ ^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
|
||||||
44353^Jahr^110^0^0^140^80^1^integer^30^0^13^ ^ ^ ^ |
|
||||||
44354^Semestertyp^22^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^ ^<<SQL>> select 2,'nur Wintersemester' from xdummy^ |
|
||||||
44358^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Köpfe';^ |
|
||||||
44362^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ |
|
@ -1,17 +0,0 @@ |
|||||||
44340^44340^ |
|
||||||
44340^44341^ |
|
||||||
44340^44342^ |
|
||||||
44340^44343^ |
|
||||||
44340^44344^ |
|
||||||
44340^44345^ |
|
||||||
44340^44346^ |
|
||||||
44340^44347^ |
|
||||||
44340^44348^ |
|
||||||
44340^44349^ |
|
||||||
44340^44350^ |
|
||||||
44340^44351^ |
|
||||||
44340^44352^ |
|
||||||
44340^44353^ |
|
||||||
44340^44354^ |
|
||||||
44340^44358^ |
|
||||||
44340^44362^ |
|
@ -1 +0,0 @@ |
|||||||
44340^Studierende nach Bildungstyp^<sximport>select select_stmt from maskeninfo where tid=48000</sximport>^<sximport>select xil_proplist from maskeninfo where tid=48000</sximport>^Studienfach^Anzahl bzw. Anteil^Bildungsinländer / -ausländer^<sximport>select cleanup_stmt from maskeninfo where tid=48000</sximport>^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ |
|
@ -1 +0,0 @@ |
|||||||
16^44340^ |
|
@ -1 +1 @@ |
|||||||
44510^Studienanfänger_innen nach Jahr^<sximport>select select_stmt from maskeninfo where tid=48000</sximport>^<sximport>select xil_proplist from maskeninfo where tid=48000</sximport>^Studienfach^Anzahl bzw. Anteil^Ausgabe der Studierenden nach Geschlecht in verschiedenen Visualisierungen (z.B. Tortendiagramm)^<sximport>select cleanup_stmt from maskeninfo where tid=48000</sximport>^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ |
44510^Studienanfänger_innen nach Jahr^<sximport>select select_stmt from maskeninfo where tid=45000</sximport>^<sximport>select xil_proplist from maskeninfo where tid=45000</sximport>^Studienfach^Anzahl bzw. Anteil^Ausgabe der Studierenden nach Geschlecht in verschiedenen Visualisierungen (z.B. Tortendiagramm)^<sximport>select cleanup_stmt from maskeninfo where tid=45000</sximport>^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ |
||||||
|
@ -1,44 +0,0 @@ |
|||||||
44570^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag='Köpfe';^ |
|
||||||
44571^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
|
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44572^Stichtag^1^350^-1^140^100^1^sql^30^0^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
|
||||||
44573^Staatsangehörigkeit^36^0^0^130^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^hidden^^ |
|
||||||
44574^Status^14^350^-1^140^180^1^sql^30^0^1^<<SQL>> select apnr,eintrag from sos_status order by 2^^<<SQL>> select apnr,eintrag from sos_status where eintrag='Alle ohne Beurl.';^ |
|
||||||
44575^Hörerstatus^33^0^0^140^170^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
|
||||||
44577^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^13^^^^ |
|
||||||
44579^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
|
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44580^Filter Studierende^119^0^0^140^150^1^sql^20^0^1^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^^^ |
|
||||||
44581^Geschlecht^37^0^0^140^80^1^integer^30^0^999^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^^^ |
|
||||||
44583^Studiengang^6^0^0^140^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^^^ |
|
||||||
44584^Jahr^110^0^0^140^80^1^integer^30^0^13^ ^ ^ ^ |
|
||||||
44585^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44570 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44570 order by ord limit 1^ |
|
||||||
44586^Grafiktitel^1010^0^0^100^100^1^char^255^0^0^ ^{InputCheck:disabled}^ ^ |
|
||||||
44587^Grafik^1000^300^-1^170^150^1^char^30^0^1^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44570 order by 2;^ ^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44570 order by 2 limit 1;^ |
|
||||||
44588^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ |
|
||||||
caption\ |
|
||||||
FROM rpta_column_layout \ |
|
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='sos_stud_astat_dashboard'\ |
|
||||||
and R.systeminfo_id=7)\ |
|
||||||
and uniquename like 'sos_stud_sem%'\ |
|
||||||
order by sortnr, caption\ |
|
||||||
;^^<<SQL>>SELECT uniquename,\ |
|
||||||
caption\ |
|
||||||
FROM rpta_column_layout \ |
|
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='sos_stud_astat_dashboard'\ |
|
||||||
and R.systeminfo_id=7) and uniquename='sos_stud_sem_dashboard';^ |
|
||||||
44589^Semestertyp^5^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^Eintrag^<<SQL>> select 2,'nur Wintersemester' from xdummy^ |
|
||||||
44590^##line##^30^0^0^100^100^1^char^5000^0^8^^^1^ |
|
||||||
44591^Abschluss^7^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^ |
|
||||||
44592^Matrikel-Nr.^20^350^-1^150^180^1^char^200^0^13^^{InputCheck:matrikelnummern}^^ |
|
||||||
44593^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^ |
|
@ -1,21 +0,0 @@ |
|||||||
44570^44570^ |
|
||||||
44570^44571^ |
|
||||||
44570^44572^ |
|
||||||
44570^44573^ |
|
||||||
44570^44574^ |
|
||||||
44570^44575^ |
|
||||||
44570^44577^ |
|
||||||
44570^44579^ |
|
||||||
44570^44580^ |
|
||||||
44570^44581^ |
|
||||||
44570^44583^ |
|
||||||
44570^44584^ |
|
||||||
44570^44585^ |
|
||||||
44570^44586^ |
|
||||||
44570^44587^ |
|
||||||
44570^44588^ |
|
||||||
44570^44589^ |
|
||||||
44570^44590^ |
|
||||||
44570^44591^ |
|
||||||
44570^44592^ |
|
||||||
44570^44593^ |
|
@ -1 +0,0 @@ |
|||||||
44570^Studierende nach Semester^<sximport>select select_stmt from maskeninfo where tid=48000</sximport>^<sximport>select xil_proplist from maskeninfo where tid=48000</sximport>^Altersgruppe^Anzahl^Studienanfänger_innen als Zeitreihe, nach Gesschlecht und Fakultät in verschiedenen Visualisierungen^<sximport>select cleanup_stmt from maskeninfo where tid=48000</sximport>^^3^700^360^0^1^^ |
|
@ -1 +0,0 @@ |
|||||||
16^44570^ |
|
@ -1,43 +0,0 @@ |
|||||||
44600^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ |
|
||||||
caption\ |
|
||||||
FROM rpta_column_layout \ |
|
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat_dashboard')\ |
|
||||||
and R.systeminfo_id=7)\ |
|
||||||
and (uniquename like 'sos_stud_%_bland_dashboard' or uniquename like 'sos_stud_%_lkreis')\ |
|
||||||
order by sortnr, caption\ |
|
||||||
;^ ^<<SQL>>SELECT uniquename,\ |
|
||||||
caption\ |
|
||||||
FROM rpta_column_layout \ |
|
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat_dashboard')\ |
|
||||||
and R.systeminfo_id=7)\ |
|
||||||
and uniquename in ('sos_stud_hzb_bland_dashboard')\ |
|
||||||
order by sortnr, caption limit 1\ |
|
||||||
;^ |
|
||||||
44601^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
|
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44602^Fächer^30^0^0^130^200^6^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ |
|
||||||
44603^Abschluss^40^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^ |
|
||||||
44604^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^0^^ ^ ^ |
|
||||||
44605^Grafik^4000^300^-1^170^150^1^char^30^0^1^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44600 and chart_active=1 order by 2;^ ^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44600 and chart_active=1order by 2 limit 1;^ |
|
||||||
44606^Nur Endsemester^1000^0^0^140^80^1^integer^30^0^1^<<SQL>> select 1,'ja' from xdummy^Eintrag^ ^ |
|
||||||
44607^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
|
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44608^Staatsangehörigkeit^150^0^0^140^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ |
|
||||||
44609^Studiengang^25^0^0^140^150^50^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ |
|
||||||
44610^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44600 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44600 order by ord limit 1^ |
|
||||||
44611^Stichtag^23^330^-1^130^100^1^sql^30^1^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^ ^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
|
||||||
44612^Hörerstatus^200^330^-1^140^150^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
|
||||||
44613^Jahr^110^0^0^140^80^1^integer^30^0^0^ ^ ^ ^ |
|
||||||
44614^Semestertyp^22^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^ ^<<SQL>> select 2,'nur Wintersemester' from xdummy^ |
|
||||||
44618^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ |
|
||||||
44622^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ |
|
@ -1,17 +0,0 @@ |
|||||||
44600^44600^ |
|
||||||
44600^44601^ |
|
||||||
44600^44602^ |
|
||||||
44600^44603^ |
|
||||||
44600^44604^ |
|
||||||
44600^44605^ |
|
||||||
44600^44606^ |
|
||||||
44600^44607^ |
|
||||||
44600^44608^ |
|
||||||
44600^44609^ |
|
||||||
44600^44610^ |
|
||||||
44600^44611^ |
|
||||||
44600^44612^ |
|
||||||
44600^44613^ |
|
||||||
44600^44614^ |
|
||||||
44600^44618^ |
|
||||||
44600^44622^ |
|
@ -1 +0,0 @@ |
|||||||
44600^Studierende nach Region^<sximport>select select_stmt from maskeninfo where tid=48000</sximport>^<sximport>select xil_proplist from maskeninfo where tid=48000</sximport>^Studienfach^Anzahl bzw. Anteil^Ausgabe der Studierenden nach Landkreis/Bundesland^<sximport>select cleanup_stmt from maskeninfo where tid=48000</sximport>^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ |
|
@ -1 +0,0 @@ |
|||||||
16^44600^ |
|
@ -1,23 +0,0 @@ |
|||||||
44630^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester where 1=1 /* <<dummy>> */ order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44631^Studiengang^6^0^0^140^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^^^ |
|
||||||
44632^Jahr^110^0^0^140^80^1^integer^30^0^13^ ^ ^ ^ |
|
||||||
44633^Tabnr.^1000^0^0^140^80^1^integer^30^0^13^ ^^^ |
|
||||||
44634^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
|
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44635^Filter Studierende^100^0^0^140^150^1^sql^20^0^1^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^hidden^^ |
|
||||||
44636^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^0^^ ^ ^ |
|
||||||
44645^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id in (44190,44660) order by ord^hidden^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44190 order by ord limit 1^ |
|
||||||
44647^Grafik^1000^300^-1^170^150^1^integer^30^0^1^<<SQL>> select tid, caption from viz_chart order by 2;^hidden^ ^ |
|
||||||
44649^Spaltenanzahl^5^350^-1^140^80^1^integer^255^0^1^<<SQL>> SELECT 0,'Dynamisch' from xdummy \ |
|
||||||
union SELECT 1,'1-spaltig' from xdummy \ |
|
||||||
union SELECT 2,'2-spaltig' from xdummy \ |
|
||||||
union SELECT 3,'3-spaltig' from xdummy \ |
|
||||||
union SELECT 4,'4-spaltig' from xdummy \ |
|
||||||
order by 1;^hidden^<<SQL>> SELECT 2,'2-spaltig' from xdummy;^ |
|
||||||
44650^Kachelbreite^30^0^0^100^100^1^integer^5000^0^0^^hidden^800^ |
|
||||||
44653^Kachelhöhe^40^0^0^100^100^1^integer^5000^0^0^^hidden^600^ |
|
@ -1 +0,0 @@ |
|||||||
44630^320^ |
|
@ -1,12 +0,0 @@ |
|||||||
44630^44630^ |
|
||||||
44630^44631^ |
|
||||||
44630^44632^ |
|
||||||
44630^44633^ |
|
||||||
44630^44634^ |
|
||||||
44630^44635^ |
|
||||||
44630^44636^ |
|
||||||
44630^44645^ |
|
||||||
44630^44647^ |
|
||||||
44630^44649^ |
|
||||||
44630^44650^ |
|
||||||
44630^44653^ |
|
@ -1,154 +0,0 @@ |
|||||||
44630^Campus-Dashboard Kopfzeile^--Freemarker Template\ |
|
||||||
<#include "SQL_lingua_franca"/>\ |
|
||||||
<#include "SuperX_general"/>\ |
|
||||||
--Freemarker Template\ |
|
||||||
<sqlvars>\ |
|
||||||
<sqlvar name="zul_antr_aggr_exists">\ |
|
||||||
select sp_table_exists('zul_antr_aggr') from xdummy;\ |
|
||||||
</sqlvar>\ |
|
||||||
</sqlvars>\ |
|
||||||
\ |
|
||||||
\ |
|
||||||
--Autor D. Quathamer 2024\ |
|
||||||
<#assign jahr_filter="1=1" />\ |
|
||||||
--Akad. Jahr 2022: WS + SS - Beispiel: WS 22/23 + SS 2023\ |
|
||||||
<#if "<<Jahr>>" !="">\ |
|
||||||
<#assign jahr_filter="(" />\ |
|
||||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem_rueck_beur_ein from 5 for 1)='2' and val(substring('' || sem_rueck_beur_ein from 1 for 4))=<<Jahr>>)" />\ |
|
||||||
<#assign jahr_filter=jahr_filter + " or "/>\ |
|
||||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem_rueck_beur_ein from 5 for 1)='1' and (val(substring('' || sem_rueck_beur_ein from 1 for 4))-1)=<<Jahr>>)" />\ |
|
||||||
<#assign jahr_filter=jahr_filter + ")" />\ |
|
||||||
</#if>\ |
|
||||||
\ |
|
||||||
<#assign filter="1=1\ |
|
||||||
/* and sem_rueck_beur_ein = <<Bis Semester>> */\ |
|
||||||
" />\ |
|
||||||
\ |
|
||||||
<#assign filter= filter + " and " + jahr_filter />\ |
|
||||||
\ |
|
||||||
<#assign stg_filter = " and 's_' || tid_stg in "+Studiengang.allNeededKeysList /> \ |
|
||||||
\ |
|
||||||
<#assign kennzahlen = [\ |
|
||||||
{"name":"Studienanfänger*innen im 1. HS", \ |
|
||||||
"selectClause":"sum(summe) as summe", \ |
|
||||||
"factTable":"sos_stg_aggr",\ |
|
||||||
"whereClause":"studiengang_nr=1\ |
|
||||||
and fach_nr=1\ |
|
||||||
and stichtag=(select I.tid from sos_stichtag I where I.appl_key='0') and "+SOS_HSSEM_1,\ |
|
||||||
"optionalFilterName":"Filter Studierende",\ |
|
||||||
"optionalFilterValue":"SOS_HSSEM_1",\ |
|
||||||
"linkMaskeninfoTID":"44190",\ |
|
||||||
"booklet_stylesheet":"viz_report_44190_xmlsource.jrxml"\ |
|
||||||
},\ |
|
||||||
{"name":"Studienanfänger*innen im 1. FS", \ |
|
||||||
"selectClause":"sum(summe) as summe", \ |
|
||||||
"factTable":"sos_stg_aggr",\ |
|
||||||
"whereClause":"studiengang_nr=1\ |
|
||||||
and fach_nr=1\ |
|
||||||
and stichtag=(select I.tid from sos_stichtag I where I.appl_key='0') and fach_sem_zahl=1",\ |
|
||||||
"optionalFilterName":"bis Fachsemester",\ |
|
||||||
"optionalFilterValue":"1",\ |
|
||||||
"linkMaskeninfoTID":"44190",\ |
|
||||||
"booklet_stylesheet":"viz_report_44190_xmlsource.jrxml"\ |
|
||||||
},\ |
|
||||||
{"name":"Studierende", \ |
|
||||||
"selectClause":"sum(summe) as summe", \ |
|
||||||
"factTable":"sos_stg_aggr",\ |
|
||||||
"whereClause":"studiengang_nr=1\ |
|
||||||
and fach_nr=1\ |
|
||||||
and stichtag=(select I.tid from sos_stichtag I where I.appl_key='0')",\ |
|
||||||
"optionalFilterName":"",\ |
|
||||||
"optionalFilterValue":"",\ |
|
||||||
"linkMaskeninfoTID":"44190",\ |
|
||||||
"booklet_stylesheet":"viz_report_44190_xmlsource.jrxml"\ |
|
||||||
}\ |
|
||||||
] />\ |
|
||||||
\ |
|
||||||
create temp table tmp_erg(\ |
|
||||||
ord integer,\ |
|
||||||
kennz varchar(255),\ |
|
||||||
wert integer,\ |
|
||||||
hidden_link_maskeninfo_id integer,\ |
|
||||||
hidden_optional_filter_name varchar(255),\ |
|
||||||
hidden_optional_filter_value varchar(255),\ |
|
||||||
hidden_booklet_stylesheet varchar(255)\ |
|
||||||
);\ |
|
||||||
\ |
|
||||||
--erster Reiter:\ |
|
||||||
insert into tmp_erg(\ |
|
||||||
ord,\ |
|
||||||
kennz,\ |
|
||||||
--wert,\ |
|
||||||
hidden_link_maskeninfo_id,\ |
|
||||||
hidden_booklet_stylesheet --,\ |
|
||||||
--optional_filter_name,\ |
|
||||||
--optional_filter_value\ |
|
||||||
)\ |
|
||||||
select 1,\ |
|
||||||
trim(name) || ' im Überblick' ,\ |
|
||||||
44660,\ |
|
||||||
'viz_report_44660_xmlsource.jrxml'\ |
|
||||||
from hochschulinfo;\ |
|
||||||
\ |
|
||||||
<#assign ord=1 />\ |
|
||||||
<#foreach kennzahl in kennzahlen>\ |
|
||||||
<#assign ord=ord+1 />\ |
|
||||||
\ |
|
||||||
insert into tmp_erg(\ |
|
||||||
ord,\ |
|
||||||
kennz,\ |
|
||||||
wert,\ |
|
||||||
hidden_link_maskeninfo_id,\ |
|
||||||
hidden_optional_filter_name,\ |
|
||||||
hidden_optional_filter_value,\ |
|
||||||
hidden_booklet_stylesheet\ |
|
||||||
)\ |
|
||||||
select ${ord},'${kennzahl.name}',\ |
|
||||||
${kennzahl.selectClause},\ |
|
||||||
${kennzahl.linkMaskeninfoTID},\ |
|
||||||
'${kennzahl.optionalFilterName}',\ |
|
||||||
'${kennzahl.optionalFilterValue}',\ |
|
||||||
'${kennzahl.booklet_stylesheet}'\ |
|
||||||
from ${kennzahl.factTable}\ |
|
||||||
where ${filter}\ |
|
||||||
and 's_' || tid_stg in <@printkeys Studiengang.allNeededKeysList/>\ |
|
||||||
and ${kennzahl.whereClause}\ |
|
||||||
group by 1,2;\ |
|
||||||
\ |
|
||||||
</#foreach>\ |
|
||||||
\ |
|
||||||
select ord,\ |
|
||||||
kennz,\ |
|
||||||
wert,\ |
|
||||||
hidden_link_maskeninfo_id,\ |
|
||||||
hidden_optional_filter_name,\ |
|
||||||
hidden_optional_filter_value,\ |
|
||||||
hidden_booklet_stylesheet\ |
|
||||||
from tmp_erg\ |
|
||||||
order by ord;^XIL List\ |
|
||||||
sizable_columns horizontal_scrolling\ |
|
||||||
white_space_color=COLOR_WHITE fixed_columns=1\ |
|
||||||
drop_and_delete movable_columns\ |
|
||||||
min_heading_height=55\ |
|
||||||
Column CID=0 heading_text="Kennzahl Nr." explanation="" center_heading\ |
|
||||||
row_selectable heading_platform readonly\ |
|
||||||
width=10\ |
|
||||||
Column CID=0 heading_text="Kennzahl" explanation="" center_heading\ |
|
||||||
row_selectable heading_platform readonly\ |
|
||||||
width=40\ |
|
||||||
Column CID=0 heading_text="Wert" explanation="" center_heading\ |
|
||||||
row_selectable heading_platform readonly\ |
|
||||||
width=10\ |
|
||||||
Column CID=0 heading_text="Maske" explanation="" center_heading\ |
|
||||||
row_selectable heading_platform readonly\ |
|
||||||
width=10\ |
|
||||||
Column CID=0 heading_text="Zusatzfilter Name" explanation="" center_heading\ |
|
||||||
row_selectable heading_platform readonly\ |
|
||||||
width=30\ |
|
||||||
Column CID=0 heading_text="Zusatzfilter Wert" explanation="" center_heading\ |
|
||||||
row_selectable heading_platform readonly\ |
|
||||||
width=30\ |
|
||||||
Column CID=0 heading_text="Booklet-Stylesheet" explanation="" center_heading\ |
|
||||||
row_selectable heading_platform readonly\ |
|
||||||
width=30\ |
|
||||||
@@@^ ^ ^Das Dashboard zeigt wahlweise Studierende und Studienanfänger*innen nach verschiedenen Merkmalen an.^drop table tmp_erg;^^3^700^360^0^1^Hier erläutern wir die Anzeige^ |
|
@ -1 +0,0 @@ |
|||||||
320^44630^ |
|
@ -1,41 +0,0 @@ |
|||||||
44660^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag='Köpfe';^ |
|
||||||
44661^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
|
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today()-(3*365) between sem_beginn and sem_ende;^ |
|
||||||
44662^Stichtag^1^350^-1^140^100^1^sql^30^0^1^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
|
||||||
44663^Staatsangehörigkeit^36^0^0^130^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^hidden^^ |
|
||||||
44664^Status^14^350^-1^140^180^1^sql^30^0^1^<<SQL>> select apnr,eintrag from sos_status order by 2^^<<SQL>> select apnr,eintrag from sos_status where eintrag='Alle ohne Beurl.';^ |
|
||||||
44665^Hörerstatus^33^0^0^140^170^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
|
||||||
44666^Spaltenanzahl^300^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT 0,'Automatisch' from xdummy \ |
|
||||||
union SELECT 1,'1-spaltig' from xdummy \ |
|
||||||
union SELECT 2,'2-spaltig' from xdummy \ |
|
||||||
union SELECT 3,'3-spaltig' from xdummy \ |
|
||||||
union SELECT 4,'4-spaltig' from xdummy \ |
|
||||||
order by 1;^^<<SQL>> SELECT 3,'3-spaltig' from xdummy^ |
|
||||||
44667^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^0^ ^^^ |
|
||||||
44668^Nur Endsemester^1000^0^0^140^80^1^integer^30^0^1^<<SQL>> select 1,'ja' from xdummy^Eintrag^ ^ |
|
||||||
44669^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
|
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44670^Filter Studierende^100^0^0^140^150^1^sql^20^0^1^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^^^ |
|
||||||
44671^Geschlecht^37^0^0^140^80^1^integer^30^0^999^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^^^ |
|
||||||
44672^Tabnr.^1000^0^0^140^80^1^integer^30^0^13^ ^^1^ |
|
||||||
44673^Studiengang^6^0^0^140^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^^^ |
|
||||||
44674^Schlüssel anzeigen^150^0^0^100^100^1^integer^30^1^1^<<SQL>> select 1,'Ja' from xdummy union select 0,'Nein' from xdummy^hidden^<<SQL>> select 1,'Ja' from xdummy^ |
|
||||||
44675^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44660 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44660 order by ord limit 1^ |
|
||||||
44676^Kachelbreite^305^0^0^100^15^1^integer^5000^0^0^^^600^ |
|
||||||
44677^Grafik^1000^300^-1^170^150^1^integer^30^0^1^<<SQL>> select tid, caption from viz_chart order by 2;^hidden^ ^ |
|
||||||
44678^Jahr^110^0^0^140^80^1^integer^30^0^13^ ^ ^ ^ |
|
||||||
44679^Semestertyp^5^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^Eintrag^<<SQL>> select 2,'nur Wintersemester' from xdummy^ |
|
||||||
44680^##line##^30^0^0^100^100^1^char^5000^0^8^^^1^ |
|
||||||
44681^Abschluss^7^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^ |
|
||||||
44682^Kachelhöhe^310^0^0^100^15^1^integer^5000^0^0^^^400^ |
|
||||||
44683^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^ |
|
@ -1,24 +0,0 @@ |
|||||||
44660^44660^ |
|
||||||
44660^44661^ |
|
||||||
44660^44662^ |
|
||||||
44660^44663^ |
|
||||||
44660^44664^ |
|
||||||
44660^44665^ |
|
||||||
44660^44666^ |
|
||||||
44660^44667^ |
|
||||||
44660^44668^ |
|
||||||
44660^44669^ |
|
||||||
44660^44670^ |
|
||||||
44660^44671^ |
|
||||||
44660^44672^ |
|
||||||
44660^44673^ |
|
||||||
44660^44674^ |
|
||||||
44660^44675^ |
|
||||||
44660^44676^ |
|
||||||
44660^44677^ |
|
||||||
44660^44678^ |
|
||||||
44660^44679^ |
|
||||||
44660^44680^ |
|
||||||
44660^44681^ |
|
||||||
44660^44682^ |
|
||||||
44660^44683^ |
|
@ -1 +0,0 @@ |
|||||||
44660^Campus-Dashboard Übersicht^ ^ ^Altersgruppe^Anzahl^Studienanfänger_innen als Zeitreihe, nach Geschlecht und Fakultät in verschiedenen Visualisierungen.^ ^^3^700^360^0^1^^ |
|
@ -1 +0,0 @@ |
|||||||
16^44660^ |
|
@ -1,41 +0,0 @@ |
|||||||
44690^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag='Köpfe';^ |
|
||||||
44691^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
|
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today()-(3*365) between sem_beginn and sem_ende;^ |
|
||||||
44692^Stichtag2^1^350^-1^140^100^1^sql^30^0^13^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende';^^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ |
|
||||||
44693^Staatsangehörigkeit^36^0^0^130^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^hidden^^ |
|
||||||
44694^Status^14^350^-1^140^180^1^sql^30^0^1^<<SQL>> select apnr,eintrag from sos_status order by 2^^<<SQL>> select apnr,eintrag from sos_status where eintrag='Alle ohne Beurl.';^ |
|
||||||
44695^Hörerstatus^33^0^0^140^170^1^sql^255^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
|
||||||
44696^Spaltenanzahl^300^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT 0,'Automatisch' from xdummy \ |
|
||||||
union SELECT 1,'1-spaltig' from xdummy \ |
|
||||||
union SELECT 2,'2-spaltig' from xdummy \ |
|
||||||
union SELECT 3,'3-spaltig' from xdummy \ |
|
||||||
union SELECT 4,'4-spaltig' from xdummy \ |
|
||||||
order by 1;^^<<SQL>> SELECT 3,'3-spaltig' from xdummy^ |
|
||||||
44697^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^0^ ^^^ |
|
||||||
44698^Nur Endsemester^1000^0^0^140^80^1^integer^30^0^1^<<SQL>> select 1,'ja' from xdummy^Eintrag^ ^ |
|
||||||
44699^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> --freemarker template\ |
|
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44700^Filter Studierende^100^0^0^140^150^1^sql^20^0^1^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^^^ |
|
||||||
44701^Geschlecht^37^0^0^140^80^1^integer^30^0^999^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^^^ |
|
||||||
44702^Tabnr.^1000^0^0^140^80^1^integer^30^0^13^ ^^1^ |
|
||||||
44703^Studiengang^6^0^0^140^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^^^ |
|
||||||
44704^Schlüssel anzeigen^150^0^0^100^100^1^integer^30^1^1^<<SQL>> select 1,'Ja' from xdummy union select 0,'Nein' from xdummy^hidden^<<SQL>> select 1,'Ja' from xdummy^ |
|
||||||
44705^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44690 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44690 order by ord limit 1^ |
|
||||||
44706^Kachelbreite^305^0^0^100^15^1^integer^5000^0^0^^^600^ |
|
||||||
44707^Grafik^1000^300^-1^170^150^1^integer^30^0^1^<<SQL>> select tid, caption from viz_chart order by 2;^hidden^ ^ |
|
||||||
44708^Jahr^110^0^0^140^80^1^integer^30^0^13^ ^ ^ ^ |
|
||||||
44709^Semestertyp^5^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^Eintrag^<<SQL>> select 2,'nur Wintersemester' from xdummy^ |
|
||||||
44710^##line##^30^0^0^100^100^1^char^5000^0^8^^^1^ |
|
||||||
44711^Abschluss^8^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^ |
|
||||||
44712^Kachelhöhe^310^0^0^100^15^1^integer^5000^0^0^^^300^ |
|
||||||
44713^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^ |
|
@ -1,24 +0,0 @@ |
|||||||
44690^44690^ |
|
||||||
44690^44691^ |
|
||||||
44690^44692^ |
|
||||||
44690^44693^ |
|
||||||
44690^44694^ |
|
||||||
44690^44695^ |
|
||||||
44690^44696^ |
|
||||||
44690^44697^ |
|
||||||
44690^44698^ |
|
||||||
44690^44699^ |
|
||||||
44690^44700^ |
|
||||||
44690^44701^ |
|
||||||
44690^44702^ |
|
||||||
44690^44703^ |
|
||||||
44690^44704^ |
|
||||||
44690^44705^ |
|
||||||
44690^44706^ |
|
||||||
44690^44707^ |
|
||||||
44690^44708^ |
|
||||||
44690^44709^ |
|
||||||
44690^44710^ |
|
||||||
44690^44711^ |
|
||||||
44690^44712^ |
|
||||||
44690^44713^ |
|
@ -1 +0,0 @@ |
|||||||
44690^Studierende, Absolvierende und Personal Dashboard^ ^ ^Altersgruppe^Anzahl^Studierende, Absolvierende und Personal (Zeitreihe und nach Organisationseinheit)^ ^^3^700^360^0^1^ ^ |
|
@ -1 +0,0 @@ |
|||||||
16^44690^ |
|
@ -1,43 +0,0 @@ |
|||||||
44720^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^ ^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag='Fälle';^ |
|
||||||
44721^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
|
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today()-(4*365) between sem_beginn and sem_ende;^ |
|
||||||
44722^Stichtag^1^350^-1^140^100^1^sql^30^0^13^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Prüfungen';^^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Prüfungen' and appl_key='2';^ |
|
||||||
44723^Staatsangehörigkeit^36^0^0^130^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^hidden^^ |
|
||||||
44724^Status^14^350^-1^140^180^1^sql^30^0^1^<<SQL>> select apnr,eintrag from sos_status order by 2^^<<SQL>> select apnr,eintrag from sos_status where eintrag='Alle ohne Beurl.';^ |
|
||||||
44725^Hörerstatus^33^0^0^140^170^1^sql^255^0^13^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus where eintrag='alle';^ |
|
||||||
44727^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^13^^^^ |
|
||||||
44729^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
|
||||||
select tid, eintrag from semester \ |
|
||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
|
||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
|
||||||
</#if>\ |
|
||||||
and sem_beginn <=today()\ |
|
||||||
order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
|
||||||
44730^Filter Studierende^119^0^0^140^150^1^sql^20^0^1^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^hidden^^ |
|
||||||
44731^Geschlecht^37^0^0^140^80^1^integer^30^0^999^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^^^ |
|
||||||
44733^Studiengang^6^0^0^140^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^^^ |
|
||||||
44734^Jahr^110^0^0^140^80^1^integer^30^0^13^ ^ ^ ^ |
|
||||||
44735^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44720 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44720 order by ord limit 1^ |
|
||||||
44736^Grafiktitel^1010^0^0^100^100^1^char^255^0^0^ ^{InputCheck:disabled}^ ^ |
|
||||||
44737^Grafik^1000^300^-1^170^150^1^char^30^0^1^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44720 order by 2;^ ^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44720 order by 2 limit 1;^ |
|
||||||
44738^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ |
|
||||||
caption\ |
|
||||||
FROM rpta_column_layout \ |
|
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='rpta_sos_lab_aggr'\ |
|
||||||
and R.systeminfo_id=7)\ |
|
||||||
order by sortnr, caption\ |
|
||||||
;^^<<SQL>>SELECT uniquename,\ |
|
||||||
caption\ |
|
||||||
FROM rpta_column_layout \ |
|
||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='rpta_sos_lab_aggr'\ |
|
||||||
and R.systeminfo_id=7) and uniquename='rpta_sos_lab_aggr_sem';^ |
|
||||||
44739^Semestertyp^5^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^Eintrag^<<SQL>> select 2,'nur Wintersemester' from xdummy^ |
|
||||||
44740^##line##^30^0^0^100^100^1^char^5000^0^8^^^1^ |
|
||||||
44741^Abschluss^7^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^ |
|
||||||
44742^Matrikel-Nr.^20^350^-1^150^180^1^char^200^0^13^^{InputCheck:matrikelnummern}^^ |
|
||||||
44743^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^ |
|
@ -1,21 +0,0 @@ |
|||||||
44720^44720^ |
|
||||||
44720^44721^ |
|
||||||
44720^44722^ |
|
||||||
44720^44723^ |
|
||||||
44720^44724^ |
|
||||||
44720^44725^ |
|
||||||
44720^44727^ |
|
||||||
44720^44729^ |
|
||||||
44720^44730^ |
|
||||||
44720^44731^ |
|
||||||
44720^44733^ |
|
||||||
44720^44734^ |
|
||||||
44720^44735^ |
|
||||||
44720^44736^ |
|
||||||
44720^44737^ |
|
||||||
44720^44738^ |
|
||||||
44720^44739^ |
|
||||||
44720^44740^ |
|
||||||
44720^44741^ |
|
||||||
44720^44742^ |
|
||||||
44720^44743^ |
|
@ -1,257 +0,0 @@ |
|||||||
44720^Absolvierende nach Semester^--Freemarker Template\ |
|
||||||
<#include "SQL_lingua_franca"/>\ |
|
||||||
<#include "SuperX_general"/>\ |
|
||||||
--\ |
|
||||||
--Autor D. Quathamer 2024\ |
|
||||||
<sqlvars>\ |
|
||||||
<sqlvar name="my_base_rs"><![CDATA[\ |
|
||||||
select R.uniquename\ |
|
||||||
from rpta_resultset R, rpta_column_layout L\ |
|
||||||
where L.resultset_id=R.tid\ |
|
||||||
and L.uniquename=<<Spaltenlayout>>;]]>\ |
|
||||||
</sqlvar>\ |
|
||||||
<sqlvar name="basetable" type="hash"><![CDATA[\ |
|
||||||
SELECT distinct name,\ |
|
||||||
0::smallint as is_virtual,\ |
|
||||||
name as runtime_tablename\ |
|
||||||
from sx_tables\ |
|
||||||
where name in ('${my_base_rs}')\ |
|
||||||
and 0=(select count(*) from rpta_resultset R where R.uniquename='${my_base_rs}')\ |
|
||||||
union\ |
|
||||||
select R.uniquename,\ |
|
||||||
1::smallint as is_virtual,\ |
|
||||||
'tmp_' || R.uniquename as runtime_tablename\ |
|
||||||
from rpta_resultset R where R.uniquename='${my_base_rs}'\ |
|
||||||
;\ |
|
||||||
]]>\ |
|
||||||
</sqlvar>\ |
|
||||||
<sqlvar name="rpta_resultset" type="hash"><![CDATA[\ |
|
||||||
select caption,\ |
|
||||||
uniquename,\ |
|
||||||
fieldclause,\ |
|
||||||
joinclause,\ |
|
||||||
whereclause,\ |
|
||||||
systeminfo_id\ |
|
||||||
from rpta_resultset\ |
|
||||||
where uniquename='${basetable.name}';\ |
|
||||||
\ |
|
||||||
]]></sqlvar>\ |
|
||||||
<sqlvar name="rpta_column_layout" type="hash"><![CDATA[\ |
|
||||||
select L.uniquename,\ |
|
||||||
L.caption,\ |
|
||||||
L.whereclause\ |
|
||||||
from rpta_resultset R, rpta_column_layout L\ |
|
||||||
where L.resultset_id=R.tid\ |
|
||||||
and R.uniquename='${basetable.name}'\ |
|
||||||
and L.uniquename=<<Spaltenlayout>>;\ |
|
||||||
\ |
|
||||||
]]></sqlvar>\ |
|
||||||
<sqlvar name="columns" type="hashsequence"><![CDATA[\ |
|
||||||
SELECT C.srcfieldname,\ |
|
||||||
(case when string_not_null(C.targetfieldname)='' then C.srcfieldname else C.targetfieldname end) as targetfieldname,\ |
|
||||||
T.uniquename as coltype,\ |
|
||||||
C.is_aggregate,\ |
|
||||||
(case when string_not_null(CL.caption)='' then C.caption else CL.caption end) as caption,\ |
|
||||||
CL.is_visible,\ |
|
||||||
CL.visible_size as visible_width,\ |
|
||||||
(select F.sql_code from rpta_format_code F where F.tid=CL.format_code_id) as format_sql,\ |
|
||||||
C.col_function as colfunction,\ |
|
||||||
(case when string_not_null(CL.description)='' then C.description else CL.description end) as description\ |
|
||||||
FROM rpta_column_layout L, rpta_column2layout CL, rpta_column C, rpta_column_type T\ |
|
||||||
where L.tid=CL.layout_id\ |
|
||||||
and C.tid=CL.column_id\ |
|
||||||
and T.tid=C.column_type\ |
|
||||||
and L.uniquename=<<Spaltenlayout>>\ |
|
||||||
/* and C.uniquename in (<<Spalten>>) */\ |
|
||||||
order by CL.sortnr\ |
|
||||||
;\ |
|
||||||
]]></sqlvar>\ |
|
||||||
<sqlvar name="endsemester"><![CDATA[\ |
|
||||||
SELECT max(tid)\ |
|
||||||
from semester \ |
|
||||||
where 1=1\ |
|
||||||
/* and tid >= <<Seit Semester>> */\ |
|
||||||
/* and tid <= <<Bis Semester>> */\ |
|
||||||
<#if "<<Semestertyp>>"="1" || "<<Semestertyp>>"="2">\ |
|
||||||
and substring('' || tid from 5 for 1)='<<Semestertyp>>'\ |
|
||||||
</#if>\ |
|
||||||
;\ |
|
||||||
\ |
|
||||||
]]></sqlvar>\ |
|
||||||
</sqlvars>\ |
|
||||||
\ |
|
||||||
<#assign jahr_param="" />\ |
|
||||||
<#assign jahr_filter="1=1" />\ |
|
||||||
/* <#assign jahr_param="<<Jahr>>" /> */\ |
|
||||||
--Akad. Jahr 2022: WS + SS - Beispiel: WS 22/23 + SS 2023\ |
|
||||||
<#if jahr_param !="">\ |
|
||||||
<#assign jahr_filter="(" />\ |
|
||||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem_der_pruefung from 5 for 1)='2' and val(substring('' || sem_der_pruefung from 1 for 4))="+jahr_param+")" />\ |
|
||||||
<#assign jahr_filter=jahr_filter + " or "/>\ |
|
||||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem_der_pruefung from 5 for 1)='1' and (val(substring('' || sem_der_pruefung from 1 for 4))-1)="+jahr_param+")" />\ |
|
||||||
<#assign jahr_filter=jahr_filter + ")" />\ |
|
||||||
</#if>\ |
|
||||||
\ |
|
||||||
<#assign semester_filter ="1=1\ |
|
||||||
/* and sem_der_pruefung >= <<Seit Semester>> */\ |
|
||||||
/* and sem_der_pruefung <= <<Bis Semester>> */\ |
|
||||||
" />\ |
|
||||||
<#if "<<Semestertyp>>"="1" || "<<Semestertyp>>"="2">\ |
|
||||||
<#assign semester_filter = semester_filter+ " and substring('' || sem_der_pruefung from 5 for 1)='<<Semestertyp>>'" />\ |
|
||||||
</#if>\ |
|
||||||
<#if "<<Nur Endsemester>>"="1">\ |
|
||||||
--nur Endsemester\ |
|
||||||
<#assign semester_filter = semester_filter+ " and 1=1 and sem_der_pruefung = "+endsemester /> \ |
|
||||||
</#if>\ |
|
||||||
\ |
|
||||||
<#assign filter="<<Köpfe oder Fälle ?>>\ |
|
||||||
/* and sem_der_pruefung = <<Semester>> */\ |
|
||||||
/* and stichtag = <<Stichtag>> */\ |
|
||||||
/* and geschlecht = <<Geschlecht>> */\ |
|
||||||
/* and fach_sem_zahl <= <<bis Fachsemester>> */\ |
|
||||||
/* and substring('' || sem_der_pruefung from 5 for 1)='<<Semestertyp>>' */\ |
|
||||||
" />\ |
|
||||||
\ |
|
||||||
<#assign filter= filter + " and " + jahr_filter />\ |
|
||||||
\ |
|
||||||
<#assign filter= filter + " and " + semester_filter />\ |
|
||||||
\ |
|
||||||
\ |
|
||||||
<#assign filter = filter + " and 's_' || tid_stg in "+Studiengang.allNeededKeysList /> \ |
|
||||||
/* <#assign filter = filter + " and '' || ca12_staat in "+Staatsangehörigkeit.allNeededKeysList /> --<<Staatsangehörigkeit>> */\ |
|
||||||
/* <#assign filter = filter + " and stg in "+Fächer.allNeededKeysList /> --<<Fächer>> */\ |
|
||||||
/* <#assign filter = filter + " and tid_stg in (select L2.tid from lehr_stg_ab L2 where L2.abschluss in "+Abschluss.allNeededKeysList +")" /> --<<Abschluss>> */\ |
|
||||||
\ |
|
||||||
<#if columns?has_content>\ |
|
||||||
\ |
|
||||||
<#if basetable.is_virtual==1>\ |
|
||||||
\ |
|
||||||
create temp table ${basetable.runtime_tablename} as\ |
|
||||||
select ${rpta_resultset.fieldclause} \ |
|
||||||
from ${rpta_resultset.joinclause} \ |
|
||||||
where 1=1\ |
|
||||||
<#if rpta_resultset.whereclause != ""> \ |
|
||||||
${rpta_resultset.whereclause} </#if>\ |
|
||||||
and ${filter}\ |
|
||||||
;\ |
|
||||||
</#if>\ |
|
||||||
\ |
|
||||||
\ |
|
||||||
\ |
|
||||||
select \ |
|
||||||
--zuerst die Basisdaten:\ |
|
||||||
<#foreach column in columns>\ |
|
||||||
<#if column.coltype="physicalColumn">\ |
|
||||||
${column.srcfieldname},\ |
|
||||||
<#elseif column.coltype="logicalColumn">\ |
|
||||||
${column.colfunction} as ${column.targetfieldname},\ |
|
||||||
<#elseif column.coltype="lookupColumn">\ |
|
||||||
(${column.colfunction}) as ${column.targetfieldname},\ |
|
||||||
<#elseif column.coltype="computedColumn">\ |
|
||||||
null::decimal(19,6) as ${column.targetfieldname},\ |
|
||||||
</#if>\ |
|
||||||
</#foreach>\ |
|
||||||
null::char(1) as dummycol\ |
|
||||||
into temp tmp_stud\ |
|
||||||
from ${basetable.runtime_tablename}\ |
|
||||||
<#if rpta_column_layout.whereclause !="">\ |
|
||||||
where ${rpta_column_layout.whereclause}\ |
|
||||||
</#if>\ |
|
||||||
;\ |
|
||||||
\ |
|
||||||
\ |
|
||||||
--ergebnistabelle:\ |
|
||||||
select \ |
|
||||||
--zuerst die nicht-Aggregate:\ |
|
||||||
<#assign groupby=0 />\ |
|
||||||
<#foreach column in columns>\ |
|
||||||
<#if column.is_aggregate==0>\ |
|
||||||
<#assign groupby=groupby+1 />\ |
|
||||||
${column.targetfieldname},\ |
|
||||||
</#if>\ |
|
||||||
</#foreach>\ |
|
||||||
--dann die Aggregate:\ |
|
||||||
<#foreach column in columns>\ |
|
||||||
<#if column.is_aggregate==1 && column.coltype!="computedColumn">\ |
|
||||||
sum(${column.targetfieldname}) as ${column.targetfieldname},\ |
|
||||||
</#if>\ |
|
||||||
</#foreach>\ |
|
||||||
null::char(1) as dummycol\ |
|
||||||
into temp tmp_stud2\ |
|
||||||
from tmp_stud\ |
|
||||||
where 1=1\ |
|
||||||
/* ${<<Zusatzfilter>>} */\ |
|
||||||
group by\ |
|
||||||
<#list 1..groupby as i>${i}\ |
|
||||||
<#if i != groupby>\ |
|
||||||
,\ |
|
||||||
</#if>\ |
|
||||||
</#list>\ |
|
||||||
;\ |
|
||||||
--für Prozentwerte alle Aggregate summieren:\ |
|
||||||
select <#foreach column in columns>\ |
|
||||||
<#if column.is_aggregate==1 && column.coltype!="computedColumn">\ |
|
||||||
sum(${column.targetfieldname})::float as ${column.targetfieldname},\ |
|
||||||
</#if>\ |
|
||||||
</#foreach>\ |
|
||||||
null::char(1) as dummycol\ |
|
||||||
into temp tmp_gesamt\ |
|
||||||
from tmp_stud2\ |
|
||||||
where 1=1\ |
|
||||||
;\ |
|
||||||
\ |
|
||||||
<#assign number_of_visible_colums=0 />\ |
|
||||||
<#foreach column in columns>\ |
|
||||||
<#if column.is_visible!=0>\ |
|
||||||
<#assign number_of_visible_colums=number_of_visible_colums+1 />\ |
|
||||||
</#if>\ |
|
||||||
</#foreach>\ |
|
||||||
<#assign colnr=0 />\ |
|
||||||
select \ |
|
||||||
<#foreach column in columns>\ |
|
||||||
<#if column.is_visible!=0>\ |
|
||||||
<#assign colnr=colnr+1 />\ |
|
||||||
<#assign format_sql="" />\ |
|
||||||
<#if column.format_sql?string != "">\ |
|
||||||
<#assign format_sql=column.format_sql />\ |
|
||||||
</#if>\ |
|
||||||
\ |
|
||||||
<#if column.coltype=="computedColumn">\ |
|
||||||
(${column.colfunction})${format_sql} as ${column.targetfieldname}\ |
|
||||||
<#else>\ |
|
||||||
${column.targetfieldname}${format_sql} as ${column.targetfieldname}\ |
|
||||||
</#if>\ |
|
||||||
\ |
|
||||||
<#if colnr < number_of_visible_colums>,</#if>\ |
|
||||||
</#if> --wenn sichtbar\ |
|
||||||
</#foreach>\ |
|
||||||
from tmp_stud2\ |
|
||||||
order by <#list 1..number_of_visible_colums as i>${i}\ |
|
||||||
<#if i != number_of_visible_colums>\ |
|
||||||
,\ |
|
||||||
</#if>\ |
|
||||||
</#list>\ |
|
||||||
;\ |
|
||||||
<#if basetable.is_virtual==1>\ |
|
||||||
drop table if exists ${basetable.runtime_tablename};\ |
|
||||||
</#if>\ |
|
||||||
\ |
|
||||||
\ |
|
||||||
drop table if exists tmp_stud;\ |
|
||||||
drop table if exists tmp_gesamt;\ |
|
||||||
\ |
|
||||||
\ |
|
||||||
</#if> --wenn columns?has_content^--Freemarker Template\ |
|
||||||
XIL List\ |
|
||||||
sizable_columns horizontal_scrolling\ |
|
||||||
drop_and_delete movable_columns \ |
|
||||||
white_space_color=COLOR_WHITE fixed_columns=1\ |
|
||||||
min_heading_height=55\ |
|
||||||
<#foreach column in columns>\ |
|
||||||
<#if column.is_visible!=0>\ |
|
||||||
Column CID=0 heading_text="${column.caption}" center_heading explanation="${column.description}"\ |
|
||||||
row_selectable heading_platform readonly\ |
|
||||||
width=${column.visible_width} text_size=60\ |
|
||||||
</#if>\ |
|
||||||
</#foreach>\ |
|
||||||
@@@^Altersgruppe^Anzahl^Studienanfänger_innen als Zeitreihe, nach Gesschlecht und Fakultät in verschiedenen Visualisierungen^drop table if exists tmp_stud2; drop table if exists tmp_stud3;^^3^700^360^0^1^^ |
|
@ -1 +0,0 @@ |
|||||||
16^44720^ |
|
@ -1,128 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#if SQLdialect='Postgres'> |
|
||||||
<#assign texttype="text" /> |
|
||||||
<#else> |
|
||||||
EXECUTE PROCEDURE IFX_ALLOW_NEWLINE('T'); |
|
||||||
<#assign texttype="lvarchar" /> |
|
||||||
</#if> |
|
||||||
<#assign newline="' |
|
||||||
'" /> |
|
||||||
|
|
||||||
|
|
||||||
create table tmp_konstanten |
|
||||||
( |
|
||||||
tid serial, |
|
||||||
apnr integer, |
|
||||||
beschreibung char(255), |
|
||||||
defaultvalue integer, |
|
||||||
description ${texttype}, |
|
||||||
systeminfo_id integer, |
|
||||||
doku_link varchar(255), |
|
||||||
read_only integer, |
|
||||||
wertebereich varchar(250), |
|
||||||
ab_version varchar(10), |
|
||||||
gruppe varchar(255), |
|
||||||
sachgebiete_id integer |
|
||||||
); |
|
||||||
insert into tmp_konstanten(apnr, |
|
||||||
beschreibung, |
|
||||||
defaultvalue, |
|
||||||
description, |
|
||||||
systeminfo_id, |
|
||||||
doku_link, |
|
||||||
read_only, |
|
||||||
wertebereich, |
|
||||||
ab_version, |
|
||||||
gruppe, |
|
||||||
sachgebiete_id) |
|
||||||
values (20, |
|
||||||
'VIZ_ZEITR_SEM_ANZ', |
|
||||||
20, |
|
||||||
'Anzahl Semester rückwirkend in Zeitreihen', |
|
||||||
320, |
|
||||||
'https://www.superx-projekt.de/doku/viz_modul/admin/f_Konstanten.htm',--doku link |
|
||||||
0, |
|
||||||
'', |
|
||||||
'>0.3', |
|
||||||
'Datenquelle, Entladestartzeitpunkt, -umfang', |
|
||||||
320); |
|
||||||
|
|
||||||
--vorhandene Schlüssel Metadaten updaten: |
|
||||||
|
|
||||||
<#if SQLdialect='Postgres'> |
|
||||||
--Postgres Dialekt: |
|
||||||
update konstanten set defaultvalue=T.defaultvalue, |
|
||||||
description=T.description, |
|
||||||
systeminfo_id=T.systeminfo_id , |
|
||||||
doku_link=T.doku_link, |
|
||||||
read_only=T.read_only , |
|
||||||
wertebereich=T.wertebereich, |
|
||||||
ab_version=T.ab_version, |
|
||||||
gruppe=T.gruppe , |
|
||||||
sachgebiete_id=T.sachgebiete_id |
|
||||||
from tmp_konstanten T |
|
||||||
where T.beschreibung=konstanten.beschreibung; |
|
||||||
|
|
||||||
<#else> |
|
||||||
|
|
||||||
--Informix Dialekt: |
|
||||||
update konstanten set (defaultvalue, |
|
||||||
description, |
|
||||||
systeminfo_id, |
|
||||||
doku_link, |
|
||||||
read_only, |
|
||||||
wertebereich, |
|
||||||
ab_version, |
|
||||||
gruppe, |
|
||||||
sachgebiete_id) |
|
||||||
= ((select |
|
||||||
defaultvalue, |
|
||||||
description, |
|
||||||
systeminfo_id, |
|
||||||
doku_link, |
|
||||||
read_only, |
|
||||||
wertebereich, |
|
||||||
ab_version, |
|
||||||
gruppe, |
|
||||||
sachgebiete_id |
|
||||||
from tmp_konstanten T |
|
||||||
where T.beschreibung=konstanten.beschreibung)); |
|
||||||
|
|
||||||
|
|
||||||
</#if> |
|
||||||
|
|
||||||
delete from tmp_konstanten where beschreibung in (select beschreibung from konstanten); |
|
||||||
|
|
||||||
create temp table tmp_hilf (tid integer); |
|
||||||
insert into tmp_hilf select max(tid) from konstanten; |
|
||||||
update tmp_hilf set tid=0 where tid is null; |
|
||||||
|
|
||||||
|
|
||||||
insert into konstanten(tid , |
|
||||||
apnr ,beschreibung, |
|
||||||
defaultvalue, |
|
||||||
description, |
|
||||||
systeminfo_id, |
|
||||||
doku_link, |
|
||||||
read_only, |
|
||||||
wertebereich, |
|
||||||
ab_version, |
|
||||||
gruppe, |
|
||||||
sachgebiete_id ) |
|
||||||
select H.tid+K.tid , |
|
||||||
K.apnr , |
|
||||||
K.beschreibung, |
|
||||||
K.defaultvalue, |
|
||||||
K.description, |
|
||||||
K.systeminfo_id, |
|
||||||
K.doku_link, |
|
||||||
K.read_only, |
|
||||||
K.wertebereich, |
|
||||||
K.ab_version, |
|
||||||
K.gruppe, |
|
||||||
K.sachgebiete_id |
|
||||||
from tmp_konstanten K, tmp_hilf H; |
|
||||||
|
|
||||||
drop table tmp_hilf; |
|
||||||
drop table tmp_konstanten; |
|
||||||
|
|
@ -1,116 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = |
|
||||||
{"uniquename":"rpta_sos_lab_aggr_abgrp_sem", |
|
||||||
"caption":"Absolvierende nach Abschlussgruppe und Semester", |
|
||||||
"rpta_resultset":"rpta_sos_lab_aggr", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Absolvierende nach Abschlussgruppe und Semester", |
|
||||||
"is_virtual":1 |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"sem_der_pruefung", |
|
||||||
"caption":"Semester (Schlüssel)", |
|
||||||
"srcfieldname":"sem_der_pruefung", |
|
||||||
"targetfieldname":"sem_der_pruefung", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"0", |
|
||||||
"format_code":"TEXT", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"" |
|
||||||
}, |
|
||||||
{"uniquename":"semester_str", |
|
||||||
"caption":"Semester", |
|
||||||
"srcfieldname":"sem_der_pruefung", |
|
||||||
"targetfieldname":"semester_str", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"(case when substring(sem_der_pruefung::varchar from 5 for 1)=''2'' then ''WS '' || substring(sem_der_pruefung::varchar from 3 for 2) || ''/'' || lpad('''' || val(substring(sem_der_pruefung::varchar from 3 for 2))+1,2,''0'') |
|
||||||
when substring(sem_der_pruefung::varchar from 5 for 1)=''1'' then ''SS '' || substring(sem_der_pruefung::varchar from 3 for 2) |
|
||||||
else '''' end)", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"" |
|
||||||
}, |
|
||||||
|
|
||||||
{"uniquename":"absolv_ba", |
|
||||||
"caption_der_spalte":"BA", |
|
||||||
"caption_in_ergebnistabelle":"Bachelor", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"absolv_ba", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"(case when dim_studiengang_abschlussart=''A24'' and dim_studiengang_ist_lehramt =0 then summe |
|
||||||
else 0 end)", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Absolv. Bachelor ohne Lehramt" |
|
||||||
}, |
|
||||||
{"uniquename":"absolv_ba_la", |
|
||||||
"caption_der_spalte":"LA BA", |
|
||||||
"caption_in_ergebnistabelle":"Bachelor Lehramt", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"absolv_ba_la", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"(case when dim_studiengang_abschlussart=''A24'' and dim_studiengang_ist_lehramt =1 then summe |
|
||||||
else 0 end)", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Absolv. Bachelor Lehramt" |
|
||||||
}, |
|
||||||
{"uniquename":"absolv_ma", |
|
||||||
"caption_der_spalte":"MA", |
|
||||||
"caption_in_ergebnistabelle":"Master", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"absolv_ma", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"(case when dim_studiengang_abschlussart=''A37'' and dim_studiengang_ist_lehramt =0 then summe |
|
||||||
else 0 end)", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Absolv. Master" |
|
||||||
}, |
|
||||||
{"uniquename":"absolv_ma_la", |
|
||||||
"caption_der_spalte":"MA LA", |
|
||||||
"caption_in_ergebnistabelle":"Master Lehramt", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"absolv_ma_la", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"(case when dim_studiengang_abschlussart=''A37'' and dim_studiengang_ist_lehramt =1 then summe |
|
||||||
else 0 end)", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Absolv. Master Lehramt" |
|
||||||
}, |
|
||||||
{"uniquename":"absolv_prom", |
|
||||||
"caption_der_spalte":"Promotion", |
|
||||||
"caption_in_ergebnistabelle":"Promotion", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"absolv_prom", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"(case when dim_studiengang_abschlussart=''G_Prom'' then summe else 0 end)", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Absolv. Promotion" |
|
||||||
} |
|
||||||
|
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,90 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = |
|
||||||
{"uniquename":"rpta_sos_lab_aggr_in_rsz_sem", |
|
||||||
"caption":"Absolvierende in oder über RSZ nach Semester", |
|
||||||
"rpta_resultset":"rpta_sos_lab_aggr", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Absolvierende in oder über RSZ nach Semester", |
|
||||||
"is_virtual":1 |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"sem_der_pruefung", |
|
||||||
"caption":"Semester (Schlüssel)", |
|
||||||
"srcfieldname":"sem_der_pruefung", |
|
||||||
"targetfieldname":"sem_der_pruefung", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"0", |
|
||||||
"format_code":"TEXT", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"" |
|
||||||
}, |
|
||||||
{"uniquename":"semester_str", |
|
||||||
"caption":"Semester", |
|
||||||
"srcfieldname":"sem_der_pruefung", |
|
||||||
"targetfieldname":"semester_str", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"(case when substring(sem_der_pruefung::varchar from 5 for 1)=''2'' then ''WS '' || substring(sem_der_pruefung::varchar from 3 for 2) || ''/'' || lpad('''' || val(substring(sem_der_pruefung::varchar from 3 for 2))+1,2,''0'') |
|
||||||
when substring(sem_der_pruefung::varchar from 5 for 1)=''1'' then ''SS '' || substring(sem_der_pruefung::varchar from 3 for 2) |
|
||||||
else '''' end)", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"" |
|
||||||
}, |
|
||||||
{"uniquename":"absolv_in_rsz_summe", |
|
||||||
"caption":"Absolv. in der RSZ", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"absolv_in_rsz", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"(case when fach_sem_zahl <= dim_studiengang_regel then summe |
|
||||||
else 0 end)", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Absolv. unter RSZ" |
|
||||||
}, |
|
||||||
{"uniquename":"absolv_ueber_rsz_summe", |
|
||||||
"caption":"Absolv. über der RSZ", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"absolv_ueber_rsz", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"(case when fach_sem_zahl > dim_studiengang_regel then summe |
|
||||||
else 0 end)", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Absolv. über RSZ" |
|
||||||
}, |
|
||||||
{"uniquename":"absolv_unbek_rsz_summe", |
|
||||||
"caption_der_spalte":"Absolv. unbek. RSZ", |
|
||||||
"caption_in_ergebnistabelle":"Unbekannt", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"absolv_unbek_rsz", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"(case when fach_sem_zahl is null or dim_studiengang_regel is null then summe |
|
||||||
else 0 end)", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Absolv. unbek RSZ" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,60 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = |
|
||||||
{"uniquename":"rpta_sos_lab_aggr_sem", |
|
||||||
"caption":"Absolvierende nach Semester", |
|
||||||
"rpta_resultset":"rpta_sos_lab_aggr", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Absolvierende nach Semester", |
|
||||||
"is_virtual":1 |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"sem_der_pruefung", |
|
||||||
"caption":"Semester (Schlüssel)", |
|
||||||
"srcfieldname":"sem_der_pruefung", |
|
||||||
"targetfieldname":"sem_der_pruefung", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"0", |
|
||||||
"format_code":"TEXT", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"" |
|
||||||
}, |
|
||||||
{"uniquename":"semester_str", |
|
||||||
"caption":"Semester Name", |
|
||||||
"srcfieldname":"sem_der_pruefung", |
|
||||||
"targetfieldname":"semester_str", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"(case when substring(sem_der_pruefung::varchar from 5 for 1)=''2'' then ''WS '' || substring(sem_der_pruefung::varchar from 3 for 2) || ''/'' || lpad('''' || val(substring(sem_der_pruefung::varchar from 3 for 2))+1,2,''0'') |
|
||||||
when substring(sem_der_pruefung::varchar from 5 for 1)=''1'' then ''SS '' || substring(sem_der_pruefung::varchar from 3 for 2) |
|
||||||
else '''' end)", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Absolvierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Absolvierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,53 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = {"uniquename":"sos_stud_abgrp_dashboard", |
|
||||||
"caption":"Studierende nach Abschlussgruppe DB", |
|
||||||
"rpta_resultset":"sos_stud_astat_dashboard", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach Abschlussgruppe für Dashboard" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"dim_studiengang_abschluss_grp_str", |
|
||||||
"caption":"Abschlussgruppe", |
|
||||||
"srcfieldname":"dim_studiengang_abschluss_grp_str", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Abschlussgruppe" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
}, |
|
||||||
{"uniquename":"anteil", |
|
||||||
"caption":"Anteil der Studierenden (in %)", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"anteil", |
|
||||||
"column_type":"computedColumn", |
|
||||||
"col_function":"select (summe::float/(select G.summe from tmp_gesamt G)*100)::integer", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Anteil in % der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,53 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = {"uniquename":"sos_stud_abgrp_dashboard", |
|
||||||
"caption":"Studierende nach Abschlussgruppe", |
|
||||||
"rpta_resultset":"sos_stud_astat_dashboard", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach Abschlussgruppe" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"dim_studiengang_abschluss_grp_str", |
|
||||||
"caption":"Abschlussgruppe", |
|
||||||
"srcfieldname":"dim_studiengang_abschluss_grp_str", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Abschlussgruppe" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
}, |
|
||||||
{"uniquename":"anteil", |
|
||||||
"caption":"Anteil der Studierenden (in %)", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"anteil", |
|
||||||
"column_type":"computedColumn", |
|
||||||
"col_function":"select (summe::float/(select G.summe from tmp_gesamt G)*100)::integer", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Anteil in % der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,54 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = {"uniquename":"sos_stud_bildungstyp_dashboard", |
|
||||||
"caption":"Studierende Bildungstyp DB", |
|
||||||
"rpta_resultset":"sos_stud_astat_dashboard", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende Bildungsinländer / -ausländer für Dashboard" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"sos_stud_bildungstyp", |
|
||||||
"caption":"Bildungsinländer / -ausländer", |
|
||||||
"srcfieldname":"sos_stud_bildungstyp", |
|
||||||
"targetfieldname":"sos_stud_bildungstyp", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Bildungsinländer / -ausländer" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
}, |
|
||||||
{"uniquename":"anteil", |
|
||||||
"caption":"Anteil der Studierenden (in %)", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"anteil", |
|
||||||
"column_type":"computedColumn", |
|
||||||
"col_function":"select (summe::float/(select G.summe from tmp_gesamt G)*100)::integer", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Anteil in % der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,54 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = {"uniquename":"sos_stud_bildungstyp_dashboard", |
|
||||||
"caption":"Studierende Bildungstyp", |
|
||||||
"rpta_resultset":"sos_stud_astat_dashboard", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende Bildungsinländer / -ausländer " |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"sos_stud_bildungstyp", |
|
||||||
"caption":"Bildungsinländer / -ausländer", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"sos_stud_bildungstyp", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"case when ca12_staat != 0 and (hzbkfzkz = 1 or (hzbart_int in (''31'',''51'',''76'') and hzbkfzkz = 0) or hzbart_int is null) then ''Bildungsausländer'' else ''Bildungsinländer'' end", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Bildungsinländer / -ausländer" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
}, |
|
||||||
{"uniquename":"anteil", |
|
||||||
"caption":"Anteil der Studierenden (in %)", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"anteil", |
|
||||||
"column_type":"computedColumn", |
|
||||||
"col_function":"select (summe::float/(select G.summe from tmp_gesamt G)*100)::integer", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Anteil in % der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,45 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = |
|
||||||
{"uniquename":"sos_stud_hmkfz_bland", |
|
||||||
"caption":"Studierende nach Bundesland (Heimatanschrift)", |
|
||||||
"rpta_resultset":"sos_stud_astat", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach Bundesland (Heimatanschrift)" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"hmkfz_bland", |
|
||||||
"caption":"Bundesland (Heimatanschrift)", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"hmkfz_bland", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"case when (hmkfzkz=0 and hmkfz is not null and hmkfz<>-9999) then (select B.druck from sos_hzb_wohnsitz W, sos_k_bland B where W.bland=B.apnr and W.astat=hmkfz) else ''unbekannt/ außerhalb BRD'' end", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Bundesland (Heimatanschrift)" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,45 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = |
|
||||||
{"uniquename":"sos_stud_hzb_bland_dashboard", |
|
||||||
"caption":"Studierende nach Bundesland (HZB)", |
|
||||||
"rpta_resultset":"sos_stud_astat_dashboard", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach Bundesland (HZB) für Dashboard" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"hzb_bland", |
|
||||||
"caption":"Bundesland (HZB)", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"hzb_bland", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"case when (hzbkfzkz=0 and hzbkfz is not null and hzbkfz<>-9999 ) then (select coalesce(B.druck,''Unbekannt'') from sos_hzb_wohnsitz W, sos_k_bland B where W.bland=B.apnr and W.astat=hzbkfz) else ''Unbekannt/ Ausland'' end", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Bundesland (HZB)" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,45 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = |
|
||||||
{"uniquename":"sos_stud_semkfz_bland", |
|
||||||
"caption":"Studierende nach Bundesland (Semesteranschrift)", |
|
||||||
"rpta_resultset":"sos_stud_astat", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach Bundesland (Semesteranschrift)" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"semkfz_bland", |
|
||||||
"caption":"Bundesland (Semesteranschrift)", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"semkfz_bland", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"case when (semkfzkz=0 and semkfz is not null and semkfz<>-9999) then (select B.druck from sos_hzb_wohnsitz W, sos_k_bland B where W.bland=B.apnr and W.astat=semkfz) else ''unbekannt/ außerhalb BRD'' end", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Bundesland (Semesteranschrift)" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,83 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = {"uniquename":"sos_stud_fak_abschl_fach", |
|
||||||
"caption":"Studierende nach Fakultät, Abschlussgruppe und Fach", |
|
||||||
"rpta_resultset":"sos_stud_astat", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach Fakultät, Abschlussgruppe und Fach" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"dim_studiengang_fak", |
|
||||||
"caption":"Fakultät (Schlüssel)", |
|
||||||
"srcfieldname":"dim_studiengang_fb", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Fakultät (Schlüssel)" |
|
||||||
}, |
|
||||||
{"uniquename":"dim_studiengang_fak_str", |
|
||||||
"caption":"Fakultät", |
|
||||||
"srcfieldname":"dim_studiengang_fb_str", |
|
||||||
"column_type":"lookupColumn", |
|
||||||
"col_function":"select C.kurz from cifx C where C.key=90 and C.apnr=dim_studiengang_fb", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Fakultät (Name)" |
|
||||||
}, |
|
||||||
{"uniquename":"dim_studiengang_abschluss_grp_str", |
|
||||||
"caption":"Abschlussgruppe", |
|
||||||
"srcfieldname":"dim_studiengang_abschluss_grp_str", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Abschlussgruppe" |
|
||||||
}, |
|
||||||
{"uniquename":"dim_studiengang_stg_str", |
|
||||||
"caption":"Fach", |
|
||||||
"srcfieldname":"dim_studiengang_stg_str", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Fach (Name)" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
}, |
|
||||||
{"uniquename":"anteil", |
|
||||||
"caption":"Anteil der Studierenden (in %)", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"anteil", |
|
||||||
"column_type":"computedColumn", |
|
||||||
"col_function":"select (summe::float/(select G.summe from tmp_gesamt G)*100)::integer", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Anteil in % der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,63 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = {"uniquename":"sos_stud_fak_dashboard", |
|
||||||
"caption":"Studierende nach Fakultät DB", |
|
||||||
"rpta_resultset":"sos_stud_astat_dashboard", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach Fakultät für Dashboard" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"dim_studiengang_fak", |
|
||||||
"caption":"Fakultät (Schlüssel)", |
|
||||||
"srcfieldname":"dim_studiengang_fb", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Fakultät (Schlüssel)" |
|
||||||
}, |
|
||||||
{"uniquename":"dim_studiengang_fak_str", |
|
||||||
"caption":"Fakultät", |
|
||||||
"srcfieldname":"dim_studiengang_fak_str", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Fakultät (Name)" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
}, |
|
||||||
{"uniquename":"anteil", |
|
||||||
"caption":"Anteil der Studierenden (in %)", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"anteil", |
|
||||||
"column_type":"computedColumn", |
|
||||||
"col_function":"select (summe::float/(select G.summe from tmp_gesamt G)*100)::integer", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Anteil in % der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,54 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = {"uniquename":"sos_stud_fak_sem", |
|
||||||
"caption":"Studierende nach Fak. und Semester", |
|
||||||
"rpta_resultset":"sos_stud_astat", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach Fak. und Semester" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"dim_studiengang_fak", |
|
||||||
"caption":"Fakultät", |
|
||||||
"srcfieldname":"dim_studiengang_fb_str", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Fakultät" |
|
||||||
}, |
|
||||||
{"uniquename":"sem_rueck_beur_ein", |
|
||||||
"caption":"Semester", |
|
||||||
"srcfieldname":"sem_rueck_beur_ein", |
|
||||||
"targetfieldname":"", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"substring(sem_rueck_beur_ein::varchar(255) from 1 for 4)", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Semester" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,83 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = |
|
||||||
{"uniquename":"sos_stud_geschl_dashboard", |
|
||||||
"caption":"Studierende nach Geschlecht DB", |
|
||||||
"rpta_resultset":"sos_stud_astat_dashboard", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach Geschlecht für Dashboard", |
|
||||||
"is_virtual":1 |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"geschlecht", |
|
||||||
"caption":"Geschlecht (Schlüssel)", |
|
||||||
"srcfieldname":"geschlecht", |
|
||||||
"targetfieldname":"geschlecht", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"0", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Geschlecht" |
|
||||||
}, |
|
||||||
{"uniquename":"geschlecht_str", |
|
||||||
"caption":"Geschlecht", |
|
||||||
"srcfieldname":"geschlecht_str", |
|
||||||
"targetfieldname":"geschlecht_str", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Geschlecht" |
|
||||||
}, |
|
||||||
{"uniquename":"sem_rueck_beur_ein", |
|
||||||
"caption":"Semester", |
|
||||||
"srcfieldname":"sem_rueck_beur_ein", |
|
||||||
"targetfieldname":"", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Semester" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"targetfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
}, |
|
||||||
{"uniquename":"anteil", |
|
||||||
"caption":"Anteil der Studierenden (in %)", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"anteil", |
|
||||||
"column_type":"computedColumn", |
|
||||||
"col_function":"select (summe::float/(select G.summe from tmp_gesamt G)*100)::integer", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Anteil in % der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,45 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = |
|
||||||
{"uniquename":"sos_stud_hzb_staat_dashboard", |
|
||||||
"caption":"Studierende nach Staat der HZB DB", |
|
||||||
"rpta_resultset":"sos_stud_astat_dashboard", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach Staat der HZB für Dashboard" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"hzbstaat_iso3", |
|
||||||
"caption":"Staat der HZB", |
|
||||||
"srcfieldname":"hzbstaat_iso3", |
|
||||||
"targetfieldname":"hzbstaat_iso3", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Staat (ISO Code)" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,54 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = {"uniquename":"sos_stud_la_dashboard", |
|
||||||
"caption":"Studierende Lehramt (ja/nein)", |
|
||||||
"rpta_resultset":"sos_stud_astat_dashboard", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende Lehramt (ja/nein)" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"dim_studiengang_la", |
|
||||||
"caption":"Lehramt (ja/nein)", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"dim_studiengang_la", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"case when dim_studiengang_abschluss_astat_bund in (select K.abschluss_astat_bund from k_astat_abschl_grp K where ist_lehramt=1) then ''Lehramt'' else ''Kein Lehramt'' end", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"10", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Lehramt (ja/nein)" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
}, |
|
||||||
{"uniquename":"anteil", |
|
||||||
"caption":"Anteil der Studierenden (in %)", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"anteil", |
|
||||||
"column_type":"computedColumn", |
|
||||||
"col_function":"select (summe::float/(select G.summe from tmp_gesamt G)*100)::integer", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Anteil in % der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,45 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = |
|
||||||
{"uniquename":"sos_stud_hmkfz_lkreis", |
|
||||||
"caption":"Studierende nach Landkreis (Heimatanschrift)", |
|
||||||
"rpta_resultset":"sos_stud_astat", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach Landkreis (Heimatanschrift)" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"hmkfz_lkreis", |
|
||||||
"caption":"Landkreis (Heimatanschrift)", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"hmkfz_lkreis", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"case when (hmkfzkz=0 and hmkfz is not null and hmkfz<>-9999) then (select text from sos_k_kfz where ikfz::integer=hmkfz) else ''unbekannt/ außerhalb BRD'' end", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Landkreis (Heimatanschrift)" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,45 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = |
|
||||||
{"uniquename":"sos_stud_hzb_lkreis", |
|
||||||
"caption":"Studierende nach Landkreis (HZB)", |
|
||||||
"rpta_resultset":"sos_stud_astat", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach Landkreis (HZB)" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"hzb_lkreis", |
|
||||||
"caption":"Landkreis (HZB)", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"hzb_lkreis", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"case when (hzbkfzkz=0 and hzbkfz is not null and hzbkfz<>-9999 ) then (select text from sos_k_kfz where ikfz::integer=hzbkfz) else ''unbekannt/ außerhalb BRD'' end", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Landkreis (HZB)" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,45 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = |
|
||||||
{"uniquename":"sos_stud_semkfz_lkreis", |
|
||||||
"caption":"Studierende nach Landkreis (Semesteranschrift)", |
|
||||||
"rpta_resultset":"sos_stud_astat", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach Landkreis (Semesteranschrift)" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"semkfz_lkreis", |
|
||||||
"caption":"Landkreis (Semesteranschrift)", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"semkfz_lkreis", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"case when (semkfzkz=0 and semkfz is not null and semkfz<>-9999) then (select text from sos_k_kfz where ikfz::integer=semkfz) else ''unbekannt/ außerhalb BRD'' end", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Landkreis (Semesteranschrift)" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,77 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="sos_stud_astat_exists"> |
|
||||||
select count(*) from rpta_resultset where uniquename='sos_stud_astat'; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = {"uniquename":"sos_stud_nach_alter", |
|
||||||
"caption":"Studierende nach Alter", |
|
||||||
"rpta_resultset":"sos_stud_astat", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach Alter" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"alter", |
|
||||||
"caption":"Alter", |
|
||||||
"srcfieldname":"alter", |
|
||||||
"targetfieldname":"", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"INTEGER", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Alter in Jahren" |
|
||||||
}, |
|
||||||
{"uniquename":"geschlecht", |
|
||||||
"caption":"Geschlecht", |
|
||||||
"srcfieldname":"geschlecht", |
|
||||||
"targetfieldname":"", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"(select druck from cif where key=9003 and apnr=geschlecht)", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Geschlecht" |
|
||||||
}, |
|
||||||
{"uniquename":"geschlecht_schl", |
|
||||||
"caption":"Geschlecht (Schlüssel)", |
|
||||||
"srcfieldname":"geschlecht", |
|
||||||
"targetfieldname":"geschlecht_schl", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"geschlecht", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Geschlecht (Schlüssel)" |
|
||||||
}, |
|
||||||
{"uniquename":"matrikel_nr", |
|
||||||
"caption":"Matrikelnummer", |
|
||||||
"srcfieldname":"matrikel_nr", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"INT_NO_SEP", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Matrikelnr." |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<@rpta_column_layout_fuellen /> |
|
@ -1,246 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = |
|
||||||
{"uniquename":"sos_stud_hzb_bland_dashboard", |
|
||||||
"caption":"Studierende nach HZB-Bundesland DB", |
|
||||||
"rpta_resultset":"sos_stud_astat_dashboard", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach HZB-Bundesland für Dashboard" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"hzb_bland", |
|
||||||
"caption":"Bundesland (HZB)", |
|
||||||
"srcfieldname":"hzb_bland", |
|
||||||
"targetfieldname":"hzb_bland", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Bundesland (HZB)" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
---ab hier nicht mehr ändern: |
|
||||||
|
|
||||||
CREATE temp TABLE tmp_rpta_column |
|
||||||
( |
|
||||||
uniquename varchar(255) NOT NULL, |
|
||||||
caption varchar(255), |
|
||||||
srcfieldname varchar(255), |
|
||||||
targetfieldname varchar(255), |
|
||||||
column_type integer, |
|
||||||
col_function text, |
|
||||||
is_visible smallint, |
|
||||||
visible_size smallint, |
|
||||||
is_aggregate smallint, |
|
||||||
resultset_id integer, |
|
||||||
sortnr integer, |
|
||||||
description TEXT |
|
||||||
); |
|
||||||
|
|
||||||
CREATE temp TABLE tmp_rpta_column_layout |
|
||||||
( |
|
||||||
uniquename varchar(255) NOT NULL, |
|
||||||
caption varchar(255), |
|
||||||
resultset_id integer, |
|
||||||
whereclause text, |
|
||||||
description text |
|
||||||
); |
|
||||||
|
|
||||||
insert into tmp_rpta_column_layout( |
|
||||||
resultset_id, |
|
||||||
uniquename, |
|
||||||
caption, |
|
||||||
whereclause, |
|
||||||
description |
|
||||||
) |
|
||||||
select tid, |
|
||||||
'${rpta_column_layout.uniquename}', |
|
||||||
'${rpta_column_layout.caption}', |
|
||||||
'${rpta_column_layout.whereclause}', |
|
||||||
'${rpta_column_layout.description}' |
|
||||||
FROM rpta_resultset |
|
||||||
where uniquename='${rpta_column_layout.rpta_resultset}'; |
|
||||||
|
|
||||||
<#assign sortnr=0 /> |
|
||||||
<#foreach column in rpta_columns> |
|
||||||
<#assign sortnr=sortnr +1 /> |
|
||||||
|
|
||||||
INSERT INTO tmp_rpta_column |
|
||||||
(resultset_id, |
|
||||||
uniquename, |
|
||||||
caption, |
|
||||||
srcfieldname, |
|
||||||
targetfieldname, |
|
||||||
column_type, |
|
||||||
col_function, |
|
||||||
is_visible, |
|
||||||
visible_size, |
|
||||||
is_aggregate, |
|
||||||
sortnr, |
|
||||||
description |
|
||||||
) |
|
||||||
select R.tid, |
|
||||||
'${column.uniquename}', |
|
||||||
'${column.caption}', |
|
||||||
'${column.srcfieldname}', |
|
||||||
<#if !column.targetfieldname?exists || column.targetfieldname=="">null::varchar <#else>'${column.targetfieldname}' </#if>, |
|
||||||
T.tid as column_type, |
|
||||||
'${column.col_function}', |
|
||||||
${column.is_visible}, |
|
||||||
${column.visible_size}, |
|
||||||
${column.is_aggregate}, |
|
||||||
${sortnr*10}, |
|
||||||
'${column.description}' |
|
||||||
FROM rpta_resultset R, rpta_column_type T |
|
||||||
where R.uniquename='${rpta_column_layout.rpta_resultset}' |
|
||||||
and T.uniquename='${column.column_type}'; |
|
||||||
|
|
||||||
</#foreach> |
|
||||||
|
|
||||||
|
|
||||||
select * into temp tmp_rpta_column2layout |
|
||||||
from rpta_column2layout |
|
||||||
where layout_id in (select L.tid |
|
||||||
from rpta_column_layout L,rpta_resultset R |
|
||||||
where R.tid=L.resultset_id |
|
||||||
and R.uniquename='${rpta_column_layout.rpta_resultset}' |
|
||||||
and L.uniquename='${rpta_column_layout.uniquename}' |
|
||||||
) |
|
||||||
; |
|
||||||
|
|
||||||
select * into temp tmp_rpta_column_layout_target |
|
||||||
from rpta_column_layout |
|
||||||
where resultset_id in (select tid |
|
||||||
FROM rpta_resultset |
|
||||||
where uniquename='${rpta_column_layout.rpta_resultset}') |
|
||||||
and uniquename in (select uniquename from tmp_rpta_column_layout) |
|
||||||
; |
|
||||||
|
|
||||||
insert into rpta_column_layout |
|
||||||
(uniquename, |
|
||||||
caption, |
|
||||||
resultset_id, |
|
||||||
whereclause, |
|
||||||
description) |
|
||||||
select uniquename, |
|
||||||
caption, |
|
||||||
resultset_id, |
|
||||||
whereclause, |
|
||||||
description |
|
||||||
FROM tmp_rpta_column_layout T |
|
||||||
where 0=(select count(*) from tmp_rpta_column_layout_target T2 |
|
||||||
where T.uniquename=T2.uniquename); |
|
||||||
|
|
||||||
drop table tmp_rpta_column_layout_target; |
|
||||||
|
|
||||||
delete from rpta_column2layout |
|
||||||
where layout_id in (select L.tid |
|
||||||
from rpta_column_layout L,rpta_resultset R |
|
||||||
where R.tid=L.resultset_id |
|
||||||
and R.uniquename='${rpta_column_layout.rpta_resultset}' |
|
||||||
and L.uniquename='${rpta_column_layout.uniquename}' |
|
||||||
) |
|
||||||
; |
|
||||||
|
|
||||||
select * into temp tmp_rpta_column2 |
|
||||||
from tmp_rpta_column T |
|
||||||
where (resultset_id,uniquename) not in |
|
||||||
(select resultset_id,uniquename from rpta_column); |
|
||||||
|
|
||||||
INSERT INTO rpta_column |
|
||||||
(resultset_id, |
|
||||||
uniquename, |
|
||||||
caption, |
|
||||||
srcfieldname, |
|
||||||
targetfieldname, |
|
||||||
column_type, |
|
||||||
col_function, |
|
||||||
is_aggregate, |
|
||||||
description, |
|
||||||
custom |
|
||||||
) |
|
||||||
select |
|
||||||
resultset_id, |
|
||||||
uniquename, |
|
||||||
caption, |
|
||||||
srcfieldname, |
|
||||||
targetfieldname, |
|
||||||
column_type, |
|
||||||
col_function, |
|
||||||
is_aggregate, |
|
||||||
description, |
|
||||||
0 as custom |
|
||||||
from tmp_rpta_column2; |
|
||||||
|
|
||||||
--evtl. neuen Satz einfügen, dann alle updaten |
|
||||||
|
|
||||||
update rpta_column set ( caption, |
|
||||||
srcfieldname, |
|
||||||
targetfieldname, |
|
||||||
column_type, |
|
||||||
col_function, |
|
||||||
is_aggregate, |
|
||||||
description) |
|
||||||
= (select caption, |
|
||||||
srcfieldname, |
|
||||||
targetfieldname, |
|
||||||
column_type, |
|
||||||
col_function, |
|
||||||
is_aggregate, |
|
||||||
description |
|
||||||
from tmp_rpta_column T |
|
||||||
where T.resultset_id=rpta_column.resultset_id |
|
||||||
and T.uniquename=rpta_column.uniquename) |
|
||||||
where custom=0 |
|
||||||
and (resultset_id,uniquename) in |
|
||||||
(select T.resultset_id,T.uniquename |
|
||||||
from tmp_rpta_column T) |
|
||||||
; |
|
||||||
|
|
||||||
drop table tmp_rpta_column2; |
|
||||||
|
|
||||||
insert into rpta_column2layout(column_id, |
|
||||||
layout_id, |
|
||||||
sortnr, |
|
||||||
is_visible, |
|
||||||
visible_size, |
|
||||||
caption, |
|
||||||
description) |
|
||||||
select C.tid as column_id, |
|
||||||
L.tid as layout_id, |
|
||||||
T.sortnr, |
|
||||||
T.is_visible, |
|
||||||
T.visible_size, |
|
||||||
T.caption, |
|
||||||
T.description |
|
||||||
FROM rpta_column C, rpta_column_layout L, tmp_rpta_column T |
|
||||||
where C.uniquename=T.uniquename |
|
||||||
and C.resultset_id=T.resultset_id |
|
||||||
and L.uniquename='${rpta_column_layout.uniquename}' |
|
||||||
and L.resultset_id=T.resultset_id |
|
||||||
; |
|
||||||
drop table tmp_rpta_column; |
|
||||||
drop TABLE tmp_rpta_column_layout; |
|
||||||
drop TABLE tmp_rpta_column2layout; |
|
||||||
</#if> |
|
@ -1,246 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = |
|
||||||
{"uniquename":"sos_stud_hzb_bland_dashboard", |
|
||||||
"caption":"Studierende nach HZB-Bundesland", |
|
||||||
"rpta_resultset":"sos_stud_astat_dashboard", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach HZB-Bundesland" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"hzb_bland", |
|
||||||
"caption":"Bundesland (HZB)", |
|
||||||
"srcfieldname":"", |
|
||||||
"targetfieldname":"hzb_bland", |
|
||||||
"column_type":"lookupColumn", |
|
||||||
"col_function":"select B.druck from sos_hzb_wohnsitz W, sos_k_bland B where W.bland=B.apnr and W.astat=hzbkfz", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Bundesland (HZB)" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
---ab hier nicht mehr ändern: |
|
||||||
|
|
||||||
CREATE temp TABLE tmp_rpta_column |
|
||||||
( |
|
||||||
uniquename varchar(255) NOT NULL, |
|
||||||
caption varchar(255), |
|
||||||
srcfieldname varchar(255), |
|
||||||
targetfieldname varchar(255), |
|
||||||
column_type integer, |
|
||||||
col_function text, |
|
||||||
is_visible smallint, |
|
||||||
visible_size smallint, |
|
||||||
is_aggregate smallint, |
|
||||||
resultset_id integer, |
|
||||||
sortnr integer, |
|
||||||
description TEXT |
|
||||||
); |
|
||||||
|
|
||||||
CREATE temp TABLE tmp_rpta_column_layout |
|
||||||
( |
|
||||||
uniquename varchar(255) NOT NULL, |
|
||||||
caption varchar(255), |
|
||||||
resultset_id integer, |
|
||||||
whereclause text, |
|
||||||
description text |
|
||||||
); |
|
||||||
|
|
||||||
insert into tmp_rpta_column_layout( |
|
||||||
resultset_id, |
|
||||||
uniquename, |
|
||||||
caption, |
|
||||||
whereclause, |
|
||||||
description |
|
||||||
) |
|
||||||
select tid, |
|
||||||
'${rpta_column_layout.uniquename}', |
|
||||||
'${rpta_column_layout.caption}', |
|
||||||
'${rpta_column_layout.whereclause}', |
|
||||||
'${rpta_column_layout.description}' |
|
||||||
FROM rpta_resultset |
|
||||||
where uniquename='${rpta_column_layout.rpta_resultset}'; |
|
||||||
|
|
||||||
<#assign sortnr=0 /> |
|
||||||
<#foreach column in rpta_columns> |
|
||||||
<#assign sortnr=sortnr +1 /> |
|
||||||
|
|
||||||
INSERT INTO tmp_rpta_column |
|
||||||
(resultset_id, |
|
||||||
uniquename, |
|
||||||
caption, |
|
||||||
srcfieldname, |
|
||||||
targetfieldname, |
|
||||||
column_type, |
|
||||||
col_function, |
|
||||||
is_visible, |
|
||||||
visible_size, |
|
||||||
is_aggregate, |
|
||||||
sortnr, |
|
||||||
description |
|
||||||
) |
|
||||||
select R.tid, |
|
||||||
'${column.uniquename}', |
|
||||||
'${column.caption}', |
|
||||||
'${column.srcfieldname}', |
|
||||||
<#if !column.targetfieldname?exists || column.targetfieldname=="">null::varchar <#else>'${column.targetfieldname}' </#if>, |
|
||||||
T.tid as column_type, |
|
||||||
'${column.col_function}', |
|
||||||
${column.is_visible}, |
|
||||||
${column.visible_size}, |
|
||||||
${column.is_aggregate}, |
|
||||||
${sortnr*10}, |
|
||||||
'${column.description}' |
|
||||||
FROM rpta_resultset R, rpta_column_type T |
|
||||||
where R.uniquename='${rpta_column_layout.rpta_resultset}' |
|
||||||
and T.uniquename='${column.column_type}'; |
|
||||||
|
|
||||||
</#foreach> |
|
||||||
|
|
||||||
|
|
||||||
select * into temp tmp_rpta_column2layout |
|
||||||
from rpta_column2layout |
|
||||||
where layout_id in (select L.tid |
|
||||||
from rpta_column_layout L,rpta_resultset R |
|
||||||
where R.tid=L.resultset_id |
|
||||||
and R.uniquename='${rpta_column_layout.rpta_resultset}' |
|
||||||
and L.uniquename='${rpta_column_layout.uniquename}' |
|
||||||
) |
|
||||||
; |
|
||||||
|
|
||||||
select * into temp tmp_rpta_column_layout_target |
|
||||||
from rpta_column_layout |
|
||||||
where resultset_id in (select tid |
|
||||||
FROM rpta_resultset |
|
||||||
where uniquename='${rpta_column_layout.rpta_resultset}') |
|
||||||
and uniquename in (select uniquename from tmp_rpta_column_layout) |
|
||||||
; |
|
||||||
|
|
||||||
insert into rpta_column_layout |
|
||||||
(uniquename, |
|
||||||
caption, |
|
||||||
resultset_id, |
|
||||||
whereclause, |
|
||||||
description) |
|
||||||
select uniquename, |
|
||||||
caption, |
|
||||||
resultset_id, |
|
||||||
whereclause, |
|
||||||
description |
|
||||||
FROM tmp_rpta_column_layout T |
|
||||||
where 0=(select count(*) from tmp_rpta_column_layout_target T2 |
|
||||||
where T.uniquename=T2.uniquename); |
|
||||||
|
|
||||||
drop table tmp_rpta_column_layout_target; |
|
||||||
|
|
||||||
delete from rpta_column2layout |
|
||||||
where layout_id in (select L.tid |
|
||||||
from rpta_column_layout L,rpta_resultset R |
|
||||||
where R.tid=L.resultset_id |
|
||||||
and R.uniquename='${rpta_column_layout.rpta_resultset}' |
|
||||||
and L.uniquename='${rpta_column_layout.uniquename}' |
|
||||||
) |
|
||||||
; |
|
||||||
|
|
||||||
select * into temp tmp_rpta_column2 |
|
||||||
from tmp_rpta_column T |
|
||||||
where (resultset_id,uniquename) not in |
|
||||||
(select resultset_id,uniquename from rpta_column); |
|
||||||
|
|
||||||
INSERT INTO rpta_column |
|
||||||
(resultset_id, |
|
||||||
uniquename, |
|
||||||
caption, |
|
||||||
srcfieldname, |
|
||||||
targetfieldname, |
|
||||||
column_type, |
|
||||||
col_function, |
|
||||||
is_aggregate, |
|
||||||
description, |
|
||||||
custom |
|
||||||
) |
|
||||||
select |
|
||||||
resultset_id, |
|
||||||
uniquename, |
|
||||||
caption, |
|
||||||
srcfieldname, |
|
||||||
targetfieldname, |
|
||||||
column_type, |
|
||||||
col_function, |
|
||||||
is_aggregate, |
|
||||||
description, |
|
||||||
0 as custom |
|
||||||
from tmp_rpta_column2; |
|
||||||
|
|
||||||
--evtl. neuen Satz einfügen, dann alle updaten |
|
||||||
|
|
||||||
update rpta_column set ( caption, |
|
||||||
srcfieldname, |
|
||||||
targetfieldname, |
|
||||||
column_type, |
|
||||||
col_function, |
|
||||||
is_aggregate, |
|
||||||
description) |
|
||||||
= (select caption, |
|
||||||
srcfieldname, |
|
||||||
targetfieldname, |
|
||||||
column_type, |
|
||||||
col_function, |
|
||||||
is_aggregate, |
|
||||||
description |
|
||||||
from tmp_rpta_column T |
|
||||||
where T.resultset_id=rpta_column.resultset_id |
|
||||||
and T.uniquename=rpta_column.uniquename) |
|
||||||
where custom=0 |
|
||||||
and (resultset_id,uniquename) in |
|
||||||
(select T.resultset_id,T.uniquename |
|
||||||
from tmp_rpta_column T) |
|
||||||
; |
|
||||||
|
|
||||||
drop table tmp_rpta_column2; |
|
||||||
|
|
||||||
insert into rpta_column2layout(column_id, |
|
||||||
layout_id, |
|
||||||
sortnr, |
|
||||||
is_visible, |
|
||||||
visible_size, |
|
||||||
caption, |
|
||||||
description) |
|
||||||
select C.tid as column_id, |
|
||||||
L.tid as layout_id, |
|
||||||
T.sortnr, |
|
||||||
T.is_visible, |
|
||||||
T.visible_size, |
|
||||||
T.caption, |
|
||||||
T.description |
|
||||||
FROM rpta_column C, rpta_column_layout L, tmp_rpta_column T |
|
||||||
where C.uniquename=T.uniquename |
|
||||||
and C.resultset_id=T.resultset_id |
|
||||||
and L.uniquename='${rpta_column_layout.uniquename}' |
|
||||||
and L.resultset_id=T.resultset_id |
|
||||||
; |
|
||||||
drop table tmp_rpta_column; |
|
||||||
drop TABLE tmp_rpta_column_layout; |
|
||||||
drop TABLE tmp_rpta_column2layout; |
|
||||||
</#if> |
|
@ -1,58 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = |
|
||||||
{"uniquename":"sos_stud_sem_dashboard", |
|
||||||
"caption":"Studierende nach Semester DB", |
|
||||||
"rpta_resultset":"sos_stud_astat_dashboard", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach Semester für Dashboard", |
|
||||||
"is_virtual":1 |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"sem_rueck_beur_ein", |
|
||||||
"caption":"Semester", |
|
||||||
"srcfieldname":"sem_rueck_beur_ein", |
|
||||||
"targetfieldname":"sem_rueck_beur_ein", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"0", |
|
||||||
"format_code":"TEXT", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"" |
|
||||||
}, |
|
||||||
{"uniquename":"semester_str", |
|
||||||
"caption":"Semester", |
|
||||||
"srcfieldname":"semester_str", |
|
||||||
"targetfieldname":"semester_str", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,57 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_installed"> |
|
||||||
select count(*) from systeminfo where tid=330; |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
<#assign rpta_column_layout = |
|
||||||
{"uniquename":"sos_stud_sem_jahr", |
|
||||||
"caption":"Studierende nach Studienjahr", |
|
||||||
"rpta_resultset":"sos_stud_astat", |
|
||||||
"whereclause":"", |
|
||||||
"description":"Studierende nach Studienjahr" |
|
||||||
} |
|
||||||
/> |
|
||||||
|
|
||||||
<#assign rpta_columns = [ |
|
||||||
{"uniquename":"jahr", |
|
||||||
"caption":"Jahr", |
|
||||||
"srcfieldname":"sem_rueck_beur_ein", |
|
||||||
"targetfieldname":"jahr", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"get_akad_jahr(sem_rueck_beur_ein,''A'')", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"(WS + darauffolgendes SS)" |
|
||||||
}, |
|
||||||
{"uniquename":"semestertyp", |
|
||||||
"caption":"Semestertyp", |
|
||||||
"srcfieldname":"sem_rueck_beur_ein", |
|
||||||
"targetfieldname":"semestertyp", |
|
||||||
"column_type":"logicalColumn", |
|
||||||
"col_function":"(case when substring('''' || sem_rueck_beur_ein from 5 for 1)=''2'' then ''WiSe'' else ''SoSe'' end)::varchar(255) ", |
|
||||||
"is_visible":"1", |
|
||||||
"format_code":"", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"0", |
|
||||||
"description":"Winter oder Sommersemester" |
|
||||||
}, |
|
||||||
{"uniquename":"summe", |
|
||||||
"caption":"Anzahl der Studierenden", |
|
||||||
"srcfieldname":"summe", |
|
||||||
"column_type":"physicalColumn", |
|
||||||
"col_function":"sum", |
|
||||||
"is_visible":"1", |
|
||||||
"visible_size":"5", |
|
||||||
"is_aggregate":"1", |
|
||||||
"description":"Summe der Studierenden" |
|
||||||
} |
|
||||||
] |
|
||||||
/> |
|
||||||
|
|
||||||
<#if rpta_installed==1> |
|
||||||
<@rpta_column_layout_fuellen /> |
|
||||||
</#if> |
|
@ -1,554 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
--alle berechneten Spalten |
|
||||||
|
|
||||||
|
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="sos_stg_aggr_exists"> |
|
||||||
select sp_table_exists('sos_stg_aggr') from xdummy; |
|
||||||
</sqlvar> |
|
||||||
<sqlvar name="fact_table_source"> |
|
||||||
select name |
|
||||||
from sx_tables where name ='sos_stg_aggr'; |
|
||||||
|
|
||||||
</sqlvar> |
|
||||||
<sqlvar name="logical_fields" type="hashsequence"> |
|
||||||
|
|
||||||
drop table if exists rpta_sos_hzb_bland; |
|
||||||
create table rpta_sos_hzb_bland as |
|
||||||
select W.astat as wohnsitz_astat, W.bland as wohnsitz_bland, B.druck as bland_druck, B.astat as bland_astat |
|
||||||
from sos_hzb_wohnsitz W, sos_k_bland B where W.bland=B.apnr; |
|
||||||
create index ix_wohnsitz_bland on rpta_sos_hzb_bland(wohnsitz_astat); |
|
||||||
|
|
||||||
select 'sos_stud_astat_dashboard' as tablename, |
|
||||||
'geschlecht_str' as uniquename , |
|
||||||
'Geschlecht' as caption, |
|
||||||
'Geschlecht' as description, |
|
||||||
'sos_k_geschl.druck'::text as log_field, |
|
||||||
'sos_k_geschl on (sos_k_geschl.apnr=sos_stg_aggr.geschlecht)' as join_field |
|
||||||
from xdummy |
|
||||||
union |
|
||||||
select 'sos_stud_astat_dashboard' as tablename, |
|
||||||
'semester_str' as uniquename , |
|
||||||
'Semester Name' as caption, |
|
||||||
'Semester Name' as description, |
|
||||||
'(case when substring(sem_rueck_beur_ein::varchar from 5 for 1)=''''2'''' then ''''WS '''' || substring(sem_rueck_beur_ein::varchar from 3 for 2) || ''''/'''' || lpad('''''''' || val(substring(sem_rueck_beur_ein::varchar from 3 for 2))+1,2,''''0'''') when substring(sem_rueck_beur_ein::varchar from 5 for 1)=''''1'''' then ''''SS '''' || substring(sem_rueck_beur_ein::varchar from 3 for 2) else '''''''' end)'::text as log_field, |
|
||||||
'' as join_field |
|
||||||
from xdummy |
|
||||||
union |
|
||||||
select 'sos_stud_astat_dashboard' as tablename, |
|
||||||
'hzbstaat_iso3' as uniquename, |
|
||||||
'Staat der HZB' as caption, |
|
||||||
'Staat der HZB' as description, |
|
||||||
'viz_staat_isocode.iso3'::text as log_field, |
|
||||||
'viz_staat_isocode on ((viz_staat_isocode.astat=sos_stg_aggr.hzbkfz and sos_stg_aggr.hzbkfzkz=1) or (viz_staat_isocode.astat=0 and sos_stg_aggr.hzbkfzkz=0))' as join_field |
|
||||||
from xdummy |
|
||||||
union |
|
||||||
select 'sos_stud_astat_dashboard' as tablename, |
|
||||||
'dim_studiengang_fak_str' as uniquename , |
|
||||||
'Fakultät' as caption, |
|
||||||
'Fakultät (Name)' as description, |
|
||||||
'cifx.kurz'::text as log_field, |
|
||||||
'cifx on (cifx.key=90 and cifx.apnr=fb)' as join_field |
|
||||||
from xdummy |
|
||||||
union |
|
||||||
select 'sos_stud_astat_dashboard' as tablename, |
|
||||||
'sos_stud_bildungstyp' as uniquename , |
|
||||||
'Bildungsinländer / -ausländer' as caption, |
|
||||||
'Bildungsinländer / -ausländer' as description, |
|
||||||
'(case when ca12_staat != 0 and (hzbkfzkz = 1 or (hzbart_int in (''''31'''',''''51'''',''''76'''') and hzbkfzkz = 0) or hzbart_int is null) then ''''Bildungsausländer'''' else ''''Bildungsinländer'''' end)'::text as log_field, |
|
||||||
'' as join_field |
|
||||||
from xdummy |
|
||||||
union |
|
||||||
select 'sos_stud_astat_dashboard' as tablename, |
|
||||||
'hzb_bland' as uniquename , |
|
||||||
'Bundesland (HZB)' as caption, |
|
||||||
'Bundesland (HZB)' as description, |
|
||||||
'rpta_sos_hzb_bland.bland_druck'::text as log_field, |
|
||||||
'rpta_sos_hzb_bland on (rpta_sos_hzb_bland.wohnsitz_astat=sos_stg_aggr.hzbkfz) ' as join_field |
|
||||||
from xdummy |
|
||||||
|
|
||||||
; |
|
||||||
; |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</sqlvar> |
|
||||||
|
|
||||||
<sqlvar name="added_tables" type="hashsequence"><![CDATA[ |
|
||||||
select 1::smallint as sortnr, |
|
||||||
name, trim(name) ||'_' as prefix, |
|
||||||
caption, |
|
||||||
'dim_studiengang.tid=sos_stg_aggr.tid_stg' as joinclause |
|
||||||
from sx_tables where name in ('dim_studiengang') |
|
||||||
/*union |
|
||||||
select 10::smallint as sortnr, |
|
||||||
name, trim(name) ||'_' as prefix, |
|
||||||
caption, |
|
||||||
'dim_studiengang.stort=sos_k_stort.apnr' as joinclause |
|
||||||
from sx_tables where name in ('sos_k_stort') |
|
||||||
union |
|
||||||
select 20::smallint as sortnr, |
|
||||||
name, trim(name) ||'_' as prefix, |
|
||||||
caption, |
|
||||||
'sos_stg_aggr.stutyp=sos_k_stutyp.apnr' as joinclause |
|
||||||
from sx_tables where name in ('sos_k_stutyp') |
|
||||||
union |
|
||||||
select 30::smallint as sortnr, |
|
||||||
name, trim(name) ||'_' as prefix, |
|
||||||
caption, |
|
||||||
'sos_stg_aggr.stuart=sos_k_stuart.apnr' as joinclause |
|
||||||
from sx_tables where name in ('sos_k_stuart') |
|
||||||
union |
|
||||||
select 40::smallint as sortnr, |
|
||||||
name, trim(name) ||'_' as prefix, |
|
||||||
caption, |
|
||||||
'sos_stg_aggr.stufrm=sos_k_stufrm.apnr' as joinclause |
|
||||||
from sx_tables where name in ('sos_k_stufrm') |
|
||||||
union |
|
||||||
select 50::smallint as sortnr, |
|
||||||
name, trim(name) ||'_' as prefix, |
|
||||||
caption, |
|
||||||
'sos_stg_aggr.hrst=sos_k_hrst.apnr' as joinclause |
|
||||||
from sx_tables where name in ('sos_k_hrst')*/ |
|
||||||
order by 1 |
|
||||||
]]> |
|
||||||
</sqlvar> |
|
||||||
<sqlvar name="fact_table_fields"> |
|
||||||
select '(''tid_stg'',''sem_rueck_beur_ein'',''stichtag'',''geschlecht'', ''hzbart'',''hzbart_int'', ''hzbkfz'', ''hzbkfzkz'',''hrst'', ''ca12_staat'', ''fach_sem_zahl'',''hssem'',''studiengang_nr'', ''fach_nr'',''summe'')' |
|
||||||
from xdummy; |
|
||||||
</sqlvar> |
|
||||||
<sqlvar name="added_table_fields"> |
|
||||||
select '(''fb'', ''abschluss_grp'', ''abschluss_grp_str'', ''fb_str'',''abschluss_astat_bund'')' |
|
||||||
from xdummy; |
|
||||||
</sqlvar> |
|
||||||
|
|
||||||
<sqlvar name="fields_target" type="hashsequence"><![CDATA[ |
|
||||||
<#if fact_table_source?exists> |
|
||||||
select tid, table_name, |
|
||||||
name, |
|
||||||
name as targetname |
|
||||||
from sx_fields where table_name ='${fact_table_source}' |
|
||||||
and currentlyused=1 |
|
||||||
and name in ${fact_table_fields} |
|
||||||
<#foreach added_table in added_tables> |
|
||||||
union |
|
||||||
select tid,table_name, |
|
||||||
name, |
|
||||||
'${added_table.prefix}' || name as targetname |
|
||||||
from sx_fields where table_name ='${added_table.name}' |
|
||||||
and currentlyused=1 |
|
||||||
and name in ${added_table_fields} |
|
||||||
</#foreach> |
|
||||||
order by 1 |
|
||||||
</#if> |
|
||||||
]]> |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
|
|
||||||
|
|
||||||
<#if sos_stg_aggr_exists==1 && fact_table_source?exists > |
|
||||||
|
|
||||||
<#assign fact_table_target = {"name":"sos_stud_astat_dashboard", "caption":"Studierende (Fachsem., HS-Sem., Studiengang) Dashboard"} |
|
||||||
/> |
|
||||||
|
|
||||||
|
|
||||||
CREATE temp table tmp_tables( |
|
||||||
name CHAR(255) , |
|
||||||
caption CHAR(255) , |
|
||||||
description CHAR(255) , |
|
||||||
table_type CHAR(255) , |
|
||||||
systeminfo_id INTEGER , |
|
||||||
systeminfo_orig INTEGER , |
|
||||||
thema CHAR(255) , |
|
||||||
sachgebiete_id CHAR(255) |
|
||||||
); |
|
||||||
CREATE temp TABLE tmp_fields( |
|
||||||
tid serial NOT NULL, |
|
||||||
table_name VARCHAR(255) not null, |
|
||||||
name VARCHAR(255) not null, |
|
||||||
caption VARCHAR(255) , |
|
||||||
description VARCHAR(255) , |
|
||||||
field_type VARCHAR(255) not null, |
|
||||||
field_size VARCHAR(255) , |
|
||||||
field_not_null smallint, |
|
||||||
currentlyused SMALLINT , |
|
||||||
is_primarykey SMALLINT default 0 , |
|
||||||
foreignkey_tab VARCHAR(255) , |
|
||||||
foreignkey_col VARCHAR(255) , |
|
||||||
foreignkey_int VARCHAR(255) , |
|
||||||
foreignkey_cap VARCHAR(255) , |
|
||||||
foreignkey_cond VARCHAR(255) , |
|
||||||
foreignkey_func VARCHAR(255) , |
|
||||||
check_integrity SMALLINT, |
|
||||||
is_sum SMALLINT default 1, |
|
||||||
foreignkey_uniquename VARCHAR(255) |
|
||||||
|
|
||||||
); |
|
||||||
|
|
||||||
|
|
||||||
--Vorbereitung: |
|
||||||
UPDATE sx_tables |
|
||||||
SET caption = 'Standorte' |
|
||||||
WHERE name='sos_k_stort'; |
|
||||||
UPDATE sx_tables |
|
||||||
SET caption = 'Studienart' |
|
||||||
WHERE name = 'sos_k_stuart'; |
|
||||||
UPDATE sx_tables |
|
||||||
SET caption = 'Studiumstyp' |
|
||||||
WHERE name = 'sos_k_stutyp'; |
|
||||||
UPDATE sx_tables |
|
||||||
SET caption = 'Studienform' |
|
||||||
WHERE name = 'sos_k_stufrm'; |
|
||||||
UPDATE sx_tables |
|
||||||
SET caption = 'Hörerstatus' |
|
||||||
WHERE name = 'sos_k_hrst'; |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--drop view if exists sos_stud_astat; |
|
||||||
|
|
||||||
|
|
||||||
drop VIEW sos_k_stutyp; |
|
||||||
|
|
||||||
CREATE VIEW sos_k_stutyp |
|
||||||
( |
|
||||||
apnr, |
|
||||||
druck, |
|
||||||
astat |
|
||||||
) |
|
||||||
AS |
|
||||||
SELECT cifx.apnr, |
|
||||||
cifx.druck, |
|
||||||
astat |
|
||||||
FROM cifx |
|
||||||
WHERE cifx.key = 40; |
|
||||||
|
|
||||||
|
|
||||||
update sx_fields set |
|
||||||
is_sum=0 |
|
||||||
where table_name='sos_stg_aggr' |
|
||||||
and name!='summe'; |
|
||||||
update sx_fields set |
|
||||||
is_sum=1 |
|
||||||
where table_name='sos_stg_aggr' |
|
||||||
and name='summe'; |
|
||||||
|
|
||||||
|
|
||||||
insert into tmp_tables ( |
|
||||||
name, |
|
||||||
caption, |
|
||||||
description, |
|
||||||
table_type, |
|
||||||
systeminfo_id, |
|
||||||
thema, |
|
||||||
sachgebiete_id |
|
||||||
) |
|
||||||
select |
|
||||||
'${fact_table_target.name}', |
|
||||||
'${fact_table_target.caption}', |
|
||||||
description, |
|
||||||
table_type, |
|
||||||
systeminfo_id, |
|
||||||
thema, |
|
||||||
sachgebiete_id |
|
||||||
from sx_tables where name='${fact_table_source}' |
|
||||||
; |
|
||||||
|
|
||||||
|
|
||||||
insert into tmp_fields (table_name, |
|
||||||
name, |
|
||||||
caption, |
|
||||||
description, |
|
||||||
field_type, |
|
||||||
field_size, |
|
||||||
field_not_null, |
|
||||||
currentlyused, |
|
||||||
is_primarykey, |
|
||||||
foreignkey_tab, |
|
||||||
foreignkey_col, |
|
||||||
foreignkey_int, |
|
||||||
foreignkey_cap, |
|
||||||
foreignkey_cond, |
|
||||||
foreignkey_func, |
|
||||||
check_integrity, |
|
||||||
is_sum, |
|
||||||
foreignkey_uniquename) |
|
||||||
select '${fact_table_target.name}' as table_name, |
|
||||||
name, |
|
||||||
caption, |
|
||||||
description, |
|
||||||
field_type, |
|
||||||
field_size, |
|
||||||
field_not_null, |
|
||||||
currentlyused, |
|
||||||
is_primarykey, |
|
||||||
foreignkey_tab, |
|
||||||
foreignkey_col, |
|
||||||
foreignkey_int, |
|
||||||
foreignkey_cap, |
|
||||||
foreignkey_cond, |
|
||||||
foreignkey_func, |
|
||||||
check_integrity, |
|
||||||
is_sum, |
|
||||||
foreignkey_uniquename |
|
||||||
from sx_fields where table_name ='${fact_table_source}' |
|
||||||
and name in ${fact_table_fields} |
|
||||||
and currentlyused=1; |
|
||||||
<#foreach added_table in added_tables> |
|
||||||
insert into tmp_fields (table_name, |
|
||||||
name, |
|
||||||
caption, |
|
||||||
description, |
|
||||||
field_type, |
|
||||||
field_size, |
|
||||||
field_not_null, |
|
||||||
currentlyused, |
|
||||||
is_primarykey, |
|
||||||
foreignkey_tab, |
|
||||||
foreignkey_col, |
|
||||||
foreignkey_int, |
|
||||||
foreignkey_cap, |
|
||||||
foreignkey_cond, |
|
||||||
foreignkey_func, |
|
||||||
check_integrity, |
|
||||||
is_sum, |
|
||||||
foreignkey_uniquename) |
|
||||||
select '${fact_table_target.name}' as table_name, |
|
||||||
'${added_table.prefix}' || name, |
|
||||||
'${added_table.caption}: ' || caption, |
|
||||||
description, |
|
||||||
field_type, |
|
||||||
field_size, |
|
||||||
field_not_null, |
|
||||||
currentlyused, |
|
||||||
is_primarykey, |
|
||||||
foreignkey_tab, |
|
||||||
foreignkey_col, |
|
||||||
foreignkey_int, |
|
||||||
foreignkey_cap, |
|
||||||
foreignkey_cond, |
|
||||||
foreignkey_func, |
|
||||||
check_integrity, |
|
||||||
is_sum, |
|
||||||
foreignkey_uniquename |
|
||||||
from sx_fields where table_name ='${added_table.name}' |
|
||||||
and name in ${added_table_fields} |
|
||||||
and currentlyused=1; |
|
||||||
</#foreach> |
|
||||||
--und berechnete Spalten einfügen |
|
||||||
<#foreach logical_field in logical_fields> |
|
||||||
insert into tmp_fields (table_name,name,caption,description,field_type,field_size,field_not_null,currentlyUsed,is_sum) |
|
||||||
select |
|
||||||
'${logical_field.tablename}', '${logical_field.uniquename}','${logical_field.caption}', '${logical_field.description}', 'CHAR',30, 1, 1,0 from xdummy; |
|
||||||
</#foreach> |
|
||||||
|
|
||||||
CREATE temp TABLE tmp_rpta_resultset |
|
||||||
( |
|
||||||
caption varchar(255), |
|
||||||
uniquename varchar(255), |
|
||||||
fieldclause text, |
|
||||||
joinclause text, |
|
||||||
whereclause text, |
|
||||||
systeminfo_id integer, |
|
||||||
is_virtual smallint default 1 |
|
||||||
); |
|
||||||
|
|
||||||
insert into tmp_rpta_resultset(caption, |
|
||||||
uniquename, |
|
||||||
systeminfo_id, |
|
||||||
is_virtual) |
|
||||||
select '${fact_table_target.caption}', |
|
||||||
'${fact_table_target.name}', |
|
||||||
7, |
|
||||||
0 |
|
||||||
; |
|
||||||
|
|
||||||
|
|
||||||
update tmp_rpta_resultset set fieldclause=' |
|
||||||
<#foreach logical_field in logical_fields> |
|
||||||
${logical_field.log_field} as ${logical_field.uniquename}, |
|
||||||
</#foreach> |
|
||||||
|
|
||||||
<#foreach field_target in fields_target> |
|
||||||
${field_target.table_name}.${field_target.name} as ${field_target.targetname}, |
|
||||||
</#foreach> |
|
||||||
null::varchar as dummy', |
|
||||||
joinclause='${fact_table_source} |
|
||||||
<#foreach added_table in added_tables> |
|
||||||
left outer join ${added_table.name} on (${added_table.joinclause}) |
|
||||||
</#foreach> |
|
||||||
<#foreach logical_field in logical_fields> |
|
||||||
<#if logical_field.join_field?exists && logical_field.join_field !=''> |
|
||||||
left outer join ${logical_field.join_field} |
|
||||||
</#if> |
|
||||||
</#foreach> |
|
||||||
'; |
|
||||||
|
|
||||||
--whereclause erstmal primitiv |
|
||||||
update tmp_rpta_resultset set whereclause = 'and stichtag in (select tid from sos_stichtag where appl_key=''0'') and hrst in (select apnr from sos_k_hrst HRST where HRST.astat in (''1'',''2'')) and kz_rueck_beur_ein in (1,2,3)'; |
|
||||||
select * into temp tmp_rs1 |
|
||||||
from rpta_resultset |
|
||||||
; |
|
||||||
|
|
||||||
update rpta_resultset set caption=T.caption, |
|
||||||
fieldclause=T.fieldclause, |
|
||||||
joinclause=T.joinclause, |
|
||||||
whereclause=T.whereclause, |
|
||||||
is_virtual=T.is_virtual |
|
||||||
from tmp_rpta_resultset T |
|
||||||
where T.systeminfo_id=rpta_resultset.systeminfo_id |
|
||||||
and T.uniquename=rpta_resultset.uniquename |
|
||||||
; |
|
||||||
|
|
||||||
insert into rpta_resultset(caption, |
|
||||||
uniquename, |
|
||||||
fieldclause, |
|
||||||
joinclause, |
|
||||||
whereclause, |
|
||||||
systeminfo_id, |
|
||||||
is_virtual) |
|
||||||
select caption, |
|
||||||
uniquename, |
|
||||||
fieldclause, |
|
||||||
joinclause, |
|
||||||
whereclause, |
|
||||||
systeminfo_id, |
|
||||||
is_virtual |
|
||||||
from tmp_rpta_resultset |
|
||||||
where 0=(select count(*) |
|
||||||
from tmp_rs1 T |
|
||||||
where T.systeminfo_id=tmp_rpta_resultset.systeminfo_id |
|
||||||
and T.uniquename=tmp_rpta_resultset.uniquename) |
|
||||||
; |
|
||||||
drop table tmp_rpta_resultset; |
|
||||||
drop table tmp_rs1; |
|
||||||
|
|
||||||
delete from sx_tables where name |
|
||||||
in (select T.name from tmp_tables T); |
|
||||||
|
|
||||||
insert into sx_tables (name,caption,description,table_type,systeminfo_id,systeminfo_orig,thema,sachgebiete_id) |
|
||||||
select name,caption,description,table_type,systeminfo_id,systeminfo_orig,thema,sachgebiete_id |
|
||||||
from tmp_tables; |
|
||||||
|
|
||||||
|
|
||||||
delete from sx_fields where table_name |
|
||||||
in (select T.table_name from tmp_fields T); |
|
||||||
|
|
||||||
insert into sx_fields (table_name,name,caption,description,field_type, |
|
||||||
field_size, |
|
||||||
field_not_null, |
|
||||||
currentlyUsed, |
|
||||||
foreignkey_tab, |
|
||||||
foreignkey_col, |
|
||||||
foreignkey_cap, |
|
||||||
foreignkey_int, |
|
||||||
foreignkey_cond, |
|
||||||
foreignkey_func, |
|
||||||
check_integrity, |
|
||||||
is_sum, |
|
||||||
foreignkey_uniquename |
|
||||||
) |
|
||||||
select |
|
||||||
F.table_name,F.name,F.caption,F.description,F.field_type, |
|
||||||
F.field_size, |
|
||||||
F.field_not_null, |
|
||||||
F.currentlyUsed, |
|
||||||
F.foreignkey_tab, |
|
||||||
F.foreignkey_col, |
|
||||||
F.foreignkey_cap, |
|
||||||
F.foreignkey_int, |
|
||||||
F.foreignkey_cond, |
|
||||||
F.foreignkey_func, |
|
||||||
F.check_integrity, |
|
||||||
F.is_sum, |
|
||||||
F.foreignkey_uniquename |
|
||||||
|
|
||||||
from tmp_fields F; |
|
||||||
|
|
||||||
|
|
||||||
drop table tmp_fields; |
|
||||||
drop table tmp_tables; |
|
||||||
|
|
||||||
|
|
||||||
--rpta_column füllen: |
|
||||||
select * into temp tmp_rc1 |
|
||||||
from rpta_column; |
|
||||||
|
|
||||||
|
|
||||||
create temp table tmp_rpta_column( |
|
||||||
uniquename varchar(255) NOT NULL, |
|
||||||
caption varchar(255), |
|
||||||
srcfieldname varchar(255), |
|
||||||
column_type integer, |
|
||||||
col_function text, |
|
||||||
is_aggregate smallint, |
|
||||||
resultset_id integer, |
|
||||||
description text, |
|
||||||
custom integer default 0 |
|
||||||
); |
|
||||||
|
|
||||||
insert into tmp_rpta_column( uniquename, |
|
||||||
caption, |
|
||||||
srcfieldname, |
|
||||||
column_type, |
|
||||||
col_function, |
|
||||||
is_aggregate, |
|
||||||
resultset_id, |
|
||||||
description) |
|
||||||
select F.name as uniquename, |
|
||||||
coalesce(T.caption,T.name) || ' - ' || F.caption, |
|
||||||
F.name as srcfieldname, |
|
||||||
1 as column_type, |
|
||||||
(case when F.is_sum=1 then 'sum' else null::varchar end) as col_function, |
|
||||||
(case when F.is_sum=1 then 1 else 0 end) as is_aggregate, |
|
||||||
R.tid as resultset_id, |
|
||||||
F.description |
|
||||||
from rpta_resultset R, sx_fields F left outer join sx_tables T on (T.name=F.table_name) |
|
||||||
where F.table_name='${fact_table_target.name}' |
|
||||||
and R.uniquename='${fact_table_target.name}' |
|
||||||
and F.currentlyused=1 |
|
||||||
; |
|
||||||
|
|
||||||
update rpta_column set |
|
||||||
caption=T.caption, |
|
||||||
srcfieldname=T.srcfieldname, |
|
||||||
column_type=T.column_type, |
|
||||||
col_function=T.col_function, |
|
||||||
is_aggregate=T.is_aggregate, |
|
||||||
resultset_id=R.tid, |
|
||||||
description=T.description, |
|
||||||
custom=T.custom |
|
||||||
from tmp_rpta_column T, rpta_resultset R |
|
||||||
where T.uniquename=rpta_column.uniquename |
|
||||||
and rpta_column.resultset_id=R.tid |
|
||||||
and R.uniquename='${fact_table_target.name}' |
|
||||||
; |
|
||||||
insert into rpta_column( uniquename, |
|
||||||
caption, |
|
||||||
srcfieldname, |
|
||||||
column_type, |
|
||||||
col_function, |
|
||||||
is_aggregate, |
|
||||||
resultset_id, |
|
||||||
description, |
|
||||||
custom) |
|
||||||
select T.uniquename, |
|
||||||
T.caption, |
|
||||||
T.srcfieldname, |
|
||||||
T.column_type, |
|
||||||
T.col_function, |
|
||||||
T.is_aggregate, |
|
||||||
R.tid as resultset_id, |
|
||||||
T.description, |
|
||||||
T.custom |
|
||||||
from tmp_rpta_column T, rpta_resultset R |
|
||||||
where R.uniquename='${fact_table_target.name}' |
|
||||||
and 0=(select count(*) from tmp_rc1 C |
|
||||||
where C.uniquename=T.uniquename |
|
||||||
and C.resultset_id=R.tid) |
|
||||||
; |
|
||||||
|
|
||||||
drop table tmp_rpta_column; |
|
||||||
drop table tmp_rc1; |
|
||||||
|
|
||||||
</#if> --wenn sos_stg_aggr_exists=1 |
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue