Compare commits
	
		
			No commits in common. 'master' and 'makro_datasrc' have entirely different histories. 
		
	
	
		
			master
			...
			makro_data
		
	
		
	
				 245 changed files with 3455 additions and 46528 deletions
			
			
		@ -1,20 +1 @@ | 
				
			|||||||
superx/WEB-INF/conf/edustore/db/module/viz/ | 
					/build/ | 
				
			||||||
# module generation artifacts for module viz | 
					 | 
				
			||||||
src/edustore/edustore_viz.xml | 
					 | 
				
			||||||
superx/WEB-INF/viz_dbforms-config_ids.xml | 
					 | 
				
			||||||
superx/WEB-INF/viz_dbforms-config_pg.xml | 
					 | 
				
			||||||
# Use wildcards as well | 
					 | 
				
			||||||
*~ | 
					 | 
				
			||||||
*.swp | 
					 | 
				
			||||||
*ENV | 
					 | 
				
			||||||
*.old* | 
					 | 
				
			||||||
*tmp* | 
					 | 
				
			||||||
*.log | 
					 | 
				
			||||||
*.log.* | 
					 | 
				
			||||||
*.err | 
					 | 
				
			||||||
*.class | 
					 | 
				
			||||||
*.zip | 
					 | 
				
			||||||
*.tar* | 
					 | 
				
			||||||
*.tgz | 
					 | 
				
			||||||
*.jasper | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
				
			|||||||
@ -1,78 +1,17 @@ | 
				
			|||||||
doku/viz_modul/viz.html | 
					doku/viz_modul/viz.html | 
				
			||||||
images/information_white_liberation.svg | 
					 | 
				
			||||||
images/viz_sidebarbuttonInfo.svg | 
					 | 
				
			||||||
images/viz_sidebarbuttonMaske.svg | 
					 | 
				
			||||||
images/icons/into_excel_normal.svg | 
					 | 
				
			||||||
images/icons/into_pdf.svg | 
					 | 
				
			||||||
images/icons/into_word.svg | 
					 | 
				
			||||||
images/icons/more.svg | 
					images/icons/more.svg | 
				
			||||||
images/icons/chart-bar.svg | 
					images/icons/chart-bar.svg | 
				
			||||||
images/information_grey_liberation.svg | 
					images/information_grey_liberation.svg | 
				
			||||||
images/plus-circled.svg | 
					images/plus-circled.svg | 
				
			||||||
images/minus-circled.svg | 
					images/minus-circled.svg | 
				
			||||||
style/sx_viz_muster.css | 
					style/sx_viz_muster.css | 
				
			||||||
style/sx_treeform.css | 
					style/bulma-tooltip.min.css | 
				
			||||||
 | 
					style/LICENSE_bulma_tooltip_1.2.0.txt | 
				
			||||||
WEB-INF/conf/edustore/db/bin/SQL_ENV_viz.sam | 
					WEB-INF/conf/edustore/db/bin/SQL_ENV_viz.sam | 
				
			||||||
WEB-INF/reports/44190_sub_0.jasper | 
					xml/js/viz/viz_functions.js | 
				
			||||||
WEB-INF/reports/44190_sub_0.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44190_sub_1.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44190_sub_1.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44190_sub_2.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44190_sub_2.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44190_sub_3.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44190_sub_3.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44190_sub_4.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44190_sub_4.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44190_sub_5.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44190_sub_5.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44190_sub_6.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44190_sub_6.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44190_sub_7.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44190_sub_7.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44660_sub_0.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44660_sub_0.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44660_sub_1.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44660_sub_1.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44660_sub_2.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44660_sub_2.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44660_sub_3.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44660_sub_3.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/viz_report_44190_xmlsource.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/viz_report_44660_xmlsource.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44690_sub_6.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44690_sub_3.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44690_sub_2.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44690_sub_5.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44690_sub_4.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44690_sub_1.jasper | 
					 | 
				
			||||||
WEB-INF/reports/44690_sub_0.jasper | 
					 | 
				
			||||||
WEB-INF/reports/viz_report_44690_xmlsource.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44690_sub_6.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44690_sub_5.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44690_sub_4.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44690_sub_3.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44690_sub_2.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44690_sub_1.jrxml | 
					 | 
				
			||||||
WEB-INF/reports/44690_sub_0.jrxml | 
					 | 
				
			||||||
xml/js/viz/d3.min.js | 
					xml/js/viz/d3.min.js | 
				
			||||||
xml/js/viz/d3-7.8.0-license.txt | 
					xml/js/viz/d3-7.8.0-license.txt | 
				
			||||||
xml/js/viz/echarts.min.js | 
					 | 
				
			||||||
xml/js/viz/echarts_langDE.js | 
					 | 
				
			||||||
xml/js/viz/echarts-5.6.0-license.txt | 
					 | 
				
			||||||
xml/js/viz/plot.js | 
					xml/js/viz/plot.js | 
				
			||||||
xml/js/viz/plot-0.6.1-license.txt | 
					xml/js/viz/plot-0.6.1-license.txt | 
				
			||||||
xml/js/viz/d3-sankey.js | 
					 | 
				
			||||||
xml/js/viz/d3-sankey-license.txt | 
					 | 
				
			||||||
xml/js/viz/viz_viewer.js | 
					 | 
				
			||||||
xml/js/viz/viz_assistent.js | 
					 | 
				
			||||||
xml/js/viz/world.geojson.license.txt | 
					 | 
				
			||||||
xml/js/viz/world.geojson | 
					 | 
				
			||||||
xml/pageComponents_html_final_viz.xsl.sam | 
					 | 
				
			||||||
xml/viz_html_chart.xsl | 
					xml/viz_html_chart.xsl | 
				
			||||||
xml/viz_html_chart_sankey.xsl | 
					
 | 
				
			||||||
xml/viz_html_chart_viewer.xsl | 
					 | 
				
			||||||
xml/viz_html_chart_viewer_mask.xsl | 
					 | 
				
			||||||
xml/viz_html_chart_viewer_mask_and_table.xsl | 
					 | 
				
			||||||
xml/viz_html_chart_viewer_grid.xsl | 
					 | 
				
			||||||
xml/viz_components.xsl | 
					 | 
				
			||||||
xml/viz_tableComponents.xsl | 
					 | 
				
			||||||
 | 
				
			|||||||
									
										
											File diff suppressed because it is too large
											Load Diff
										
									
								
							
						@ -1 +1 @@ | 
				
			|||||||
321^44000^ | 
					320^44000^ | 
				
			||||||
 | 
				
			|||||||
@ -1,49 +0,0 @@ | 
				
			|||||||
44020^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';^ | 
					 | 
				
			||||||
44021^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;^ | 
					 | 
				
			||||||
44022^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';^ | 
					 | 
				
			||||||
44023^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;^^^ | 
					 | 
				
			||||||
44024^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.';^ | 
					 | 
				
			||||||
44025^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';^ | 
					 | 
				
			||||||
44026^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')\ | 
					 | 
				
			||||||
order by 2^^^ | 
					 | 
				
			||||||
44027^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^0^^^^ | 
					 | 
				
			||||||
44029^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;^ | 
					 | 
				
			||||||
44030^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;^^^ | 
					 | 
				
			||||||
44031^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;^^^ | 
					 | 
				
			||||||
44032^Felder^125^0^0^150^190^10^char^30^0^1^<<SQL>>\ | 
					 | 
				
			||||||
--freemarker template\ | 
					 | 
				
			||||||
 select trim(F.table_name) || '.' || F.name,trim(T.caption) || ':' || trim(F.caption) || ' - ' || trim(F.name) from sx_fields F,\ | 
					 | 
				
			||||||
 sx_tables T where F.table_name=T.name and F.currentlyused=1\ | 
					 | 
				
			||||||
   --Pseudonyme eingeschaltet:\ | 
					 | 
				
			||||||
  and (F.name != 'matrikel_nr' or 0=(select \ | 
					 | 
				
			||||||
count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\ | 
					 | 
				
			||||||
and apnr=1)) \ | 
					 | 
				
			||||||
 and F.table_name in ('sos_stg_aggr','dim_staat','dim_studiengang') \ | 
					 | 
				
			||||||
  order by 2;^^^ | 
					 | 
				
			||||||
44033^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;^^^ | 
					 | 
				
			||||||
44034^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^^<<SQL>>  select 1,'Ja' from xdummy^ | 
					 | 
				
			||||||
44035^tablestylesheet^121^0^0^100^200^1^char^200^1^1^<<SQL>> select distinct filename,X.caption,ord from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=44070 order by ord^^<<SQL>> select distinct filename,X.caption from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=44070 and S.ord=1^ | 
					 | 
				
			||||||
44036^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^^<<SQL>> select element_value,description from menu_element where element='Ausgabeformat' and description='HTML'^ | 
					 | 
				
			||||||
44037^Grafik^1000^300^-1^170^150^1^char^30^0^1^<<SQL>> select uniquename, caption from viz_chart order by 2;^^ ^ | 
					 | 
				
			||||||
44038^Semester^42^350^-1^140^180^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^^^ | 
					 | 
				
			||||||
44039^Semestertyp^15^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^ ^ ^ | 
					 | 
				
			||||||
44040^Spaltenanzahl^300^0^0^140^80^1^integer^30^0^1^<<SQL>> 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 1,'1-spaltig' from xdummy^ | 
					 | 
				
			||||||
44041^Abschluss^7^0^0^140^170^5^char^30^0^1^<<SQL>> select abint,dtxt from k_abint order by 2;^^^ | 
					 | 
				
			||||||
44042^Matrikel-Nr.^20^350^-1^150^180^1^char^200^0^0^^{InputCheck:matrikelnummern}^^ | 
					 | 
				
			||||||
44043^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^ | 
					 | 
				
			||||||
@ -1,23 +0,0 @@ | 
				
			|||||||
44020^44020^ | 
					 | 
				
			||||||
44020^44021^ | 
					 | 
				
			||||||
44020^44022^ | 
					 | 
				
			||||||
44020^44023^ | 
					 | 
				
			||||||
44020^44024^ | 
					 | 
				
			||||||
44020^44025^ | 
					 | 
				
			||||||
44020^44026^ | 
					 | 
				
			||||||
44020^44027^ | 
					 | 
				
			||||||
44020^44029^ | 
					 | 
				
			||||||
44020^44030^ | 
					 | 
				
			||||||
44020^44031^ | 
					 | 
				
			||||||
44020^44032^ | 
					 | 
				
			||||||
44020^44033^ | 
					 | 
				
			||||||
44020^44034^ | 
					 | 
				
			||||||
44020^44035^ | 
					 | 
				
			||||||
44020^44036^ | 
					 | 
				
			||||||
44020^44037^ | 
					 | 
				
			||||||
44020^44038^ | 
					 | 
				
			||||||
44020^44039^ | 
					 | 
				
			||||||
44020^44040^ | 
					 | 
				
			||||||
44020^44041^ | 
					 | 
				
			||||||
44020^44042^ | 
					 | 
				
			||||||
44020^44043^ | 
					 | 
				
			||||||
@ -1,461 +0,0 @@ | 
				
			|||||||
44020^Studierende Datenblatt (Teiltabelle)^--Freemarker Template\ | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/>\ | 
					 | 
				
			||||||
<#include "SuperX_general"/>\ | 
					 | 
				
			||||||
<#include "SQL_multitable_output"/>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--ram excelexport\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<sqlvars>\ | 
					 | 
				
			||||||
<sqlvar name="basetable"><![CDATA[<#if "<<Köpfe oder Fälle ?>>"?index_of("S.gewichtung_id=")==-1>select 'sos_stg_aggr' from xdummy<#else>select 'sos_stud_gewichtung' from xdummy</#if>]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="restriction"><![CDATA[<#if basetable='sos_stg_aggr'>\ | 
					 | 
				
			||||||
<#assign restrict=DatenblattTables(<<tablestylesheet>>,"<<Weitere Tabellen>>",.vars["Weitere TabellenObject"].allKeys)/>;\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
<#assign restrict=DatenblattTables(<<tablestylesheet>>,"<<Weitere Tabellen>>",.vars["Weitere TabellenObject"].allKeys)?replace('sos_stg_aggr',basetable)?replace("'dim_studiengang'","'dim_studiengang_gew'")/>;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
select '${restrict?replace("\\x0027","\\x0027\\x0027")}' from xdummy;]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="get_joins" type="hashsequence"><![CDATA[\ | 
					 | 
				
			||||||
SELECT foreignkey_tab,min(table_name) as table_name,\ | 
					 | 
				
			||||||
min(name) as name,\ | 
					 | 
				
			||||||
min(foreignkey_col) as foreignkey_col,\ | 
					 | 
				
			||||||
min(foreignkey_cond) as foreignkey_cond,\ | 
					 | 
				
			||||||
min(foreignkey_func) as foreignkey_func\ | 
					 | 
				
			||||||
      from sx_fields\ | 
					 | 
				
			||||||
  where table_name in ('${basetable}'/* ,<<Weitere Tabellen>> */  ${restriction})\ | 
					 | 
				
			||||||
  and foreignkey_tab in ('${basetable}'/* ,<<Weitere Tabellen>> */  ${restriction})\ | 
					 | 
				
			||||||
  group by 1\ | 
					 | 
				
			||||||
   order by 1,2,3;\ | 
					 | 
				
			||||||
   ]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="semester"><![CDATA[\ | 
					 | 
				
			||||||
select tid, eintrag from semester where 1=1\ | 
					 | 
				
			||||||
/* and tid >= <<Seit Semester>> */\ | 
					 | 
				
			||||||
/* and tid <= <<Bis Semester>>*/\ | 
					 | 
				
			||||||
;]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="get_felder_fk" type="hashsequence"><![CDATA[\ | 
					 | 
				
			||||||
SELECT name,\ | 
					 | 
				
			||||||
       caption,\ | 
					 | 
				
			||||||
       table_name,\ | 
					 | 
				
			||||||
       foreignkey_tab,\ | 
					 | 
				
			||||||
       foreignkey_col,\ | 
					 | 
				
			||||||
       foreignkey_cap,\ | 
					 | 
				
			||||||
       foreignkey_cond,\ | 
					 | 
				
			||||||
       foreignkey_func,\ | 
					 | 
				
			||||||
       case when foreignkey_uniquename!='' then foreignkey_uniquename else foreignkey_col end as foreignkey_uniquename\ | 
					 | 
				
			||||||
              \ | 
					 | 
				
			||||||
 from sx_fields\ | 
					 | 
				
			||||||
  where table_name in ('${basetable}' /* ,<<Weitere Tabellen>> */ ${restriction}\ | 
					 | 
				
			||||||
  )\ | 
					 | 
				
			||||||
   and currentlyused=1\ | 
					 | 
				
			||||||
     --Pseudonyme eingeschaltet:\ | 
					 | 
				
			||||||
  and (name != 'matrikel_nr' or 0=(select \ | 
					 | 
				
			||||||
count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\ | 
					 | 
				
			||||||
and apnr=1))\ | 
					 | 
				
			||||||
  <#if basetable='sos_stg_aggr'>\ | 
					 | 
				
			||||||
   ${DatenblattFields(<<tablestylesheet>>,"<<Felder>>",FelderObject.allKeys)}\ | 
					 | 
				
			||||||
   <#else>\ | 
					 | 
				
			||||||
   ${DatenblattFields(<<tablestylesheet>>,"<<Felder>>"?replace("sos_stg_aggr","sos_stud_gewichtung")?replace("dim_studiengang.","dim_studiengang_gew."),\ | 
					 | 
				
			||||||
   FelderObject.allKeys?replace("sos_stg_aggr","sos_stud_gewichtung")?replace("dim_studiengang.","dim_studiengang_gew."))}\ | 
					 | 
				
			||||||
   </#if>\ | 
					 | 
				
			||||||
	  and table_name !='dim_person_attribute_aggr'\ | 
					 | 
				
			||||||
--hier Personattribute wg. Sortierung\ | 
					 | 
				
			||||||
   union\ | 
					 | 
				
			||||||
   SELECT F.name,\ | 
					 | 
				
			||||||
       P.attributevalue ,--caption,\ | 
					 | 
				
			||||||
       table_name,\ | 
					 | 
				
			||||||
       foreignkey_tab,\ | 
					 | 
				
			||||||
       foreignkey_col,\ | 
					 | 
				
			||||||
       foreignkey_cap,\ | 
					 | 
				
			||||||
       foreignkey_cond,\ | 
					 | 
				
			||||||
       foreignkey_func,\ | 
					 | 
				
			||||||
       case when foreignkey_uniquename!='' then foreignkey_uniquename else foreignkey_col end as foreignkey_uniquename\ | 
					 | 
				
			||||||
              \ | 
					 | 
				
			||||||
 from sx_fields F, personattributetype P\ | 
					 | 
				
			||||||
  where table_name in ('${basetable}' /* ,<<Weitere Tabellen>> */ ${restriction}\ | 
					 | 
				
			||||||
  )\ | 
					 | 
				
			||||||
   and currentlyused=1\ | 
					 | 
				
			||||||
     --Pseudonyme eingeschaltet:\ | 
					 | 
				
			||||||
  and (name != 'matrikel_nr' or 0=(select \ | 
					 | 
				
			||||||
count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\ | 
					 | 
				
			||||||
and apnr=1))\ | 
					 | 
				
			||||||
  <#if basetable='sos_stg_aggr'>\ | 
					 | 
				
			||||||
   ${DatenblattFields(<<tablestylesheet>>,"<<Felder>>",FelderObject.allKeys)}\ | 
					 | 
				
			||||||
   <#else>\ | 
					 | 
				
			||||||
   ${DatenblattFields(<<tablestylesheet>>,"<<Felder>>"?replace("sos_stg_aggr","sos_stud_gewichtung")?replace("dim_studiengang.","dim_studiengang_gew."),\ | 
					 | 
				
			||||||
   FelderObject.allKeys?replace("sos_stg_aggr","sos_stud_gewichtung")?replace("dim_studiengang.","dim_studiengang_gew."))}\ | 
					 | 
				
			||||||
   </#if>\ | 
					 | 
				
			||||||
	  and table_name ='dim_person_attribute_aggr'\ | 
					 | 
				
			||||||
	  and F.name='attribute'  || P.personattributetype_id\ | 
					 | 
				
			||||||
	  \ | 
					 | 
				
			||||||
	  order by 2,3;\ | 
					 | 
				
			||||||
	  ]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
</sqlvars>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign lehr_stg_ab="lehr_stg_ab"/>\ | 
					 | 
				
			||||||
<#if "<<Köpfe oder Fälle ?>>"?index_of("S.gewichtung_id=")!=-1>\ | 
					 | 
				
			||||||
<#assign lehr_stg_ab="lehr_stg_ab_gew"/>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
delete  from dim_person_attribute_aggr;\ | 
					 | 
				
			||||||
 \ | 
					 | 
				
			||||||
<#foreach einSemester in semester>\ | 
					 | 
				
			||||||
insert into dim_person_attribute_aggr \ | 
					 | 
				
			||||||
select dim_person_attribute.matrikel_nr,  \ | 
					 | 
				
			||||||
max(attribute1),max(attribute2),max(attribute3),max(attribute4),max(attribute5),max(attribute6)\ | 
					 | 
				
			||||||
,max(attribute7),max(attribute8),max(attribute9),max(attribute10), semester.tid\ | 
					 | 
				
			||||||
from dim_person_attribute, semester\ | 
					 | 
				
			||||||
where (${einSemester.key} between  semester_von and semester_bis and semester.tid = ${einSemester.key}) \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
group by dim_person_attribute.matrikel_nr, semester.tid;\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--zum testen der sqlvars\ | 
					 | 
				
			||||||
--select * from sx_fields\ | 
					 | 
				
			||||||
-- <#if <<tablestylesheet>>='tabelle_html.xsl'>\ | 
					 | 
				
			||||||
--     /*,<<Weitere Tabellen>> */\ | 
					 | 
				
			||||||
--     <#else>\ | 
					 | 
				
			||||||
--    , ${.vars["Weitere TabellenObject"].allKeys?replace("'","")}\ | 
					 | 
				
			||||||
--</#if>\ | 
					 | 
				
			||||||
--where 1=1 \ | 
					 | 
				
			||||||
--  <#if <<tablestylesheet>>='tabelle_html.xsl'>\ | 
					 | 
				
			||||||
-- /*  and  trim(table_name) || '.' || name in ( <<Felder>> )*/\ | 
					 | 
				
			||||||
--   <#else>\ | 
					 | 
				
			||||||
-- and  trim(table_name) || '.' || name in (${FelderObject.allKeys})\ | 
					 | 
				
			||||||
--   </#if>;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--drop table if exists tmp_tabelle ;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter="\ | 
					 | 
				
			||||||
/* and <<Hörerstatus>> */\ | 
					 | 
				
			||||||
/* and sem_rueck_beur_ein >= <<Seit Semester>> */\ | 
					 | 
				
			||||||
/* and sem_rueck_beur_ein <= <<Bis Semester>> */\ | 
					 | 
				
			||||||
/* and sem_rueck_beur_ein = <<Semester>> */\ | 
					 | 
				
			||||||
/* AND fach_sem_zahl <= <<bis Fachsemester>> */\ | 
					 | 
				
			||||||
/* and "+basetable+".stichtag = <<Stichtag>> */\ | 
					 | 
				
			||||||
/* and kz_rueck_beur_ein in(<<Status>>) */\ | 
					 | 
				
			||||||
/* and geschlecht=<<Geschlecht>> */\ | 
					 | 
				
			||||||
/* and ${<<Filter Studierende>>} */\ | 
					 | 
				
			||||||
/* and substring('' || sem_rueck_beur_ein from 5 for 1)='<<Semestertyp>>' */\ | 
					 | 
				
			||||||
" />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if "<<Matrikel-Nr.>>"!="">\ | 
					 | 
				
			||||||
<#assign filter=filter+" and " + basetable + ".matrikel_nr in (<<Matrikel-Nr.>>)"?replace("'","")/>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if "<<Köpfe oder Fälle ?>>"?index_of("S.gewichtung_id=")!=-1>\ | 
					 | 
				
			||||||
 <#assign filter=filter+" and "+.vars["Köpfe oder Fälle ?"]?replace('S.','sos_stud_gewichtung.')/>\ | 
					 | 
				
			||||||
  <#if "<<Weitere Tabellen>>"?index_of("dim_studiengang_gew")>-1>\ | 
					 | 
				
			||||||
   <#assign filter=filter+" and (dim_studiengang_gew.gewichtid is null or "+.vars["Köpfe oder Fälle ?"]?replace('S.','dim_studiengang_gew.')?replace("gewichtung_id","gewichtid")+")"/>\ | 
					 | 
				
			||||||
   </#if>\ | 
					 | 
				
			||||||
<#elseif "<<Köpfe oder Fälle ?>>"!="">\ | 
					 | 
				
			||||||
<#assign filter=filter+" and "+.vars["Köpfe oder Fälle ?"]/>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
 \ | 
					 | 
				
			||||||
<#assign filter = filter + " and 's_' || tid_stg in "+Studiengang.allNeededKeysList /> \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign semester_von_filter="19000" />\ | 
					 | 
				
			||||||
/* <#assign semester_von_filter="<<Seit Semester>>" /> */\ | 
					 | 
				
			||||||
<#assign semester_bis_filter="30000" />\ | 
					 | 
				
			||||||
/* <#assign semester_bis_filter="<<Bis Semester>>" /> */\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
/*<#assign filter = filter + " and 0 < (select count(*) from personattribute PA, personattributetype TY\ | 
					 | 
				
			||||||
where TY.personattributetype_id=PA.personattributetype_id\ | 
					 | 
				
			||||||
and TY.attributevalue='Jahrgang'\ | 
					 | 
				
			||||||
and PA.matrikel_nr="+basetable+".matrikel_nr\ | 
					 | 
				
			||||||
and (${semester_von_filter} between PA.semester_von and PA.semester_bis\ | 
					 | 
				
			||||||
or ${semester_bis_filter} between PA.semester_von and PA.semester_bis)\ | 
					 | 
				
			||||||
and PA.attributevalue='<<Jahrgang>>') "/>*/\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and 0 < (select count(*) from personattribute PA, personattributetype TY\ | 
					 | 
				
			||||||
where TY.personattributetype_id=PA.personattributetype_id\ | 
					 | 
				
			||||||
and TY.attributevalue='Status'\ | 
					 | 
				
			||||||
and PA.matrikel_nr="+basetable+".matrikel_nr\ | 
					 | 
				
			||||||
and (${semester_von_filter} between PA.semester_von and PA.semester_bis\ | 
					 | 
				
			||||||
or ${semester_bis_filter} between PA.semester_von and PA.semester_bis)\ | 
					 | 
				
			||||||
and PA.attributevalue='<<Zivilstatus>>') "/>*/\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and '' || ca12_staat in  "+Staatsangehörigkeit.allNeededKeysList />  --<<Staatsangehörigkeit>> */\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and tid_stg in (select L2.tid from lehr_stg_ab L2 where L2.abschluss in " + Abschluss.allNeededKeysList +")" />  --<<Abschluss>> */\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
-- /*<#assign filter = filter + " and dim_person_attribute.attribute9  = '<<StatusZ>>'"/> */\ | 
					 | 
				
			||||||
 --/*<#assign jahrgang_filter =  " and dim_person_attribute.attribute10  = '<<Jahrgang>>'"/>*/\ | 
					 | 
				
			||||||
--<#assign filter = filter + jahrgang_filter />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--first denormalize basetable:\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--get field_list_select\ | 
					 | 
				
			||||||
<#assign field_list_select="''::char(250) as _meldung" />\ | 
					 | 
				
			||||||
<#foreach feld in get_felder_fk>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if feld.name="summe">\ | 
					 | 
				
			||||||
<#assign field_list_select=field_list_select+", sum(summe) as "+basetable+"_summe" />\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
<#assign field_list_select=field_list_select+", "+feld.table_name +"."+feld.name +" as "+feld.table_name +"_"+feld.name />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if feld.foreignkey_uniquename != "">\ | 
					 | 
				
			||||||
<#assign field_list_select=field_list_select+",''::char(255) as " + feld.table_name +"_"+feld.name + "_uniquename" />\ | 
					 | 
				
			||||||
<#assign field_list_select=field_list_select+",''::char(255) as " + feld.table_name +"_"+feld.name + "_str" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--get fromclause\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign fromclause=lehr_stg_ab+" L,"+basetable />\ | 
					 | 
				
			||||||
<#foreach join in get_joins>\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+" left outer join "+join.foreignkey_tab +" on (" />\ | 
					 | 
				
			||||||
<#if join.foreignkey_tab ="dim_person_attribute_aggr" >\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+ basetable+".matrikel_nr=dim_person_attribute_aggr.matrikel_nr and dim_person_attribute_aggr.semester = "+basetable+".sem_rueck_beur_ein " />\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+ basetable+"."+ join.name+"=" />\ | 
					 | 
				
			||||||
<#if join.foreignkey_func != "">\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+join.foreignkey_func+"(" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+join.foreignkey_tab+"." +join.foreignkey_col />\ | 
					 | 
				
			||||||
<#if join.foreignkey_func != "">\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+")" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if join.foreignkey_cond != "">\ | 
					 | 
				
			||||||
<#if join.foreignkey_cond[0..0] = "1" || \ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "2" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "3" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "4" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "5" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "6" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "7" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "8" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "9" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "0" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "'" >\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+" and "+join.foreignkey_cond />\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+" and tmp_tabelle."+join.table_name+"_"+join.foreignkey_cond />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#if> --wenn nicht dim_person_attritubte_aggr\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+") " />\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
<#if ("<<Weitere Tabellen>>"+restriction)?index_of("dim_person_attribute_aggr") !=-1>\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+" left outer join dim_person_attribute_aggr on ("+basetable+".matrikel_nr=dim_person_attribute_aggr.matrikel_nr and "+basetable+".sem_rueck_beur_ein=dim_person_attribute_aggr.semester)" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--whereclause\ | 
					 | 
				
			||||||
<#assign whereclause=" L.tid="+basetable+".tid_stg " />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--get groupbyclause\ | 
					 | 
				
			||||||
<#assign groupbyclause="group by 1" />\ | 
					 | 
				
			||||||
<#foreach feld in get_felder_fk>\ | 
					 | 
				
			||||||
<#if feld.name!="summe">\ | 
					 | 
				
			||||||
<#assign groupbyclause=groupbyclause+", "+feld.table_name +"_"+feld.name />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<@selectintotmp\ | 
					 | 
				
			||||||
select=field_list_select\ | 
					 | 
				
			||||||
source=fromclause\ | 
					 | 
				
			||||||
target="tmp_tabelle">\ | 
					 | 
				
			||||||
where ${whereclause}\ | 
					 | 
				
			||||||
${filter}\ | 
					 | 
				
			||||||
${groupbyclause}\ | 
					 | 
				
			||||||
</@selectintotmp>\ | 
					 | 
				
			||||||
<@informixnolog/> ;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table tmp_rows(anz integer,max_anz integer) \ | 
					 | 
				
			||||||
<@informixnolog/> \ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
insert into tmp_rows(anz) select count(*) from tmp_tabelle;\ | 
					 | 
				
			||||||
update tmp_rows set max_anz=(select apnr from konstanten where beschreibung='Datenblatt max.Zeilenzahl');\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
delete from tmp_tabelle where 0 < (select count(*) from tmp_rows\ | 
					 | 
				
			||||||
where anz > max_anz);\ | 
					 | 
				
			||||||
 \ | 
					 | 
				
			||||||
select 'Warnung: die Abfrage kann nicht ausgeführt werden, denn ' ||  anz || ' Zeilen liegen über max. Grenze von ' || max_anz as _runtimeMessage\ | 
					 | 
				
			||||||
from tmp_rows\ | 
					 | 
				
			||||||
where anz > max_anz;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
drop table tmp_rows;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--denormalize:\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#foreach feld in get_felder_fk>\ | 
					 | 
				
			||||||
<#if feld.foreignkey_tab != "" >\ | 
					 | 
				
			||||||
<#if SQLdialect="Postgres">\ | 
					 | 
				
			||||||
update tmp_tabelle set\ | 
					 | 
				
			||||||
(${feld.table_name}_${feld.name}_uniquename, ${feld.table_name}_${feld.name}_str)=\ | 
					 | 
				
			||||||
(select ${feld.foreignkey_uniquename},${feld.foreignkey_cap}\ | 
					 | 
				
			||||||
from ${feld.foreignkey_tab}\ | 
					 | 
				
			||||||
where tmp_tabelle.${feld.table_name}_${feld.name}=\ | 
					 | 
				
			||||||
<#if feld.foreignkey_func != "">\ | 
					 | 
				
			||||||
${feld.foreignkey_func}(\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
${feld.foreignkey_tab}.${feld.foreignkey_col}\ | 
					 | 
				
			||||||
<#if feld.foreignkey_func != "">\ | 
					 | 
				
			||||||
)\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if feld.foreignkey_cond != "">\ | 
					 | 
				
			||||||
<#if feld.foreignkey_cond[0..0] = "1" || \ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "2" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "3" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "4" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "5" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "6" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "7" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "8" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "9" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "0" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "'" >\ | 
					 | 
				
			||||||
and ${feld.foreignkey_cond}\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
and tmp_tabelle.${feld.table_name}_${feld.foreignkey_cond}\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
);\ | 
					 | 
				
			||||||
<#else> --Wenn Informix:\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
update tmp_tabelle set (${feld.table_name}_${feld.name}_uniquename,${feld.table_name}_${feld.name}_str)\ | 
					 | 
				
			||||||
=(( select ${feld.foreignkey_uniquename},${feld.foreignkey_cap}\ | 
					 | 
				
			||||||
from ${feld.foreignkey_tab}\ | 
					 | 
				
			||||||
where tmp_tabelle.${feld.table_name}_${feld.name}=\ | 
					 | 
				
			||||||
<#if feld.foreignkey_func != "">\ | 
					 | 
				
			||||||
${feld.foreignkey_func}(\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
${feld.foreignkey_tab}.${feld.foreignkey_col}\ | 
					 | 
				
			||||||
<#if feld.foreignkey_func != "">\ | 
					 | 
				
			||||||
)\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if feld.foreignkey_cond != "">\ | 
					 | 
				
			||||||
<#if feld.foreignkey_cond[0..0] = "1" || \ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "2" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "3" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "4" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "5" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "6" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "7" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "8" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "9" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "0" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "'" >\ | 
					 | 
				
			||||||
and ${feld.foreignkey_cond}\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
and tmp_tabelle.${feld.table_name}_${feld.foreignkey_cond}\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
))\ | 
					 | 
				
			||||||
where tmp_tabelle.${feld.table_name}_${feld.name} is not null\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#if> --Wenn Postgres/Informix\ | 
					 | 
				
			||||||
</#if> --wenn foreign_key\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if get_felder_fk?has_content >\ | 
					 | 
				
			||||||
select \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign rownum=1 />\ | 
					 | 
				
			||||||
<#foreach feld in get_felder_fk>\ | 
					 | 
				
			||||||
<#if feld.foreignkey_tab != "">\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
${feld.table_name}_${feld.name}_str\ | 
					 | 
				
			||||||
<#if <<Schlüssel anzeigen>>=1>\ | 
					 | 
				
			||||||
<#if feld.foreignkey_col=feld.foreignkey_uniquename>\ | 
					 | 
				
			||||||
,${feld.table_name}_${feld.name}\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
,${feld.table_name}_${feld.name}_uniquename\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
${feld.table_name}_${feld.name}\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if rownum < get_felder_fk?size>\ | 
					 | 
				
			||||||
,\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#assign rownum= rownum+1 />\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
from tmp_tabelle\ | 
					 | 
				
			||||||
order by 2\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
</#if>^--Freemarker Template \ | 
					 | 
				
			||||||
<sqlvars>\ | 
					 | 
				
			||||||
<sqlvar name="basetable"><![CDATA[<#if "<<Köpfe oder Fälle ?>>"?index_of("S.gewichtung_id=")==-1>select 'sos_stg_aggr' from xdummy<#else>select 'sos_stud_gewichtung' from xdummy</#if>]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="restriction"><![CDATA[<#if basetable='sos_stg_aggr'>\ | 
					 | 
				
			||||||
<#assign restrict=DatenblattTables(<<tablestylesheet>>,"<<Weitere Tabellen>>",.vars["Weitere TabellenObject"].allKeys)/>;\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
<#assign restrict=DatenblattTables(<<tablestylesheet>>,"<<Weitere Tabellen>>",.vars["Weitere TabellenObject"].allKeys)?replace('sos_stg_aggr',basetable)?replace("'dim_studiengang'","'dim_studiengang_gew'")/>;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
select '${restrict?replace("\\x0027","\\x0027\\x0027")}' from xdummy;]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="get_felder"><![CDATA[\ | 
					 | 
				
			||||||
SELECT caption,\ | 
					 | 
				
			||||||
       foreignkey_tab,\ | 
					 | 
				
			||||||
       description as strukturStr\ | 
					 | 
				
			||||||
 from sx_fields\ | 
					 | 
				
			||||||
 where table_name in ('${basetable}'\ | 
					 | 
				
			||||||
    ${restriction}\ | 
					 | 
				
			||||||
    )\ | 
					 | 
				
			||||||
  and currentlyused=1\ | 
					 | 
				
			||||||
  --Pseudonyme eingeschaltet:\ | 
					 | 
				
			||||||
and (name != 'matrikel_nr' or 0=(select \ | 
					 | 
				
			||||||
count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\ | 
					 | 
				
			||||||
and apnr=1))\ | 
					 | 
				
			||||||
<#if basetable='sos_stg_aggr'>\ | 
					 | 
				
			||||||
${DatenblattFields(<<tablestylesheet>>,"<<Felder>>",FelderObject.allKeys)}\ | 
					 | 
				
			||||||
   <#else>\ | 
					 | 
				
			||||||
${DatenblattFields(<<tablestylesheet>>,"<<Felder>>"?replace("sos_stg_aggr","sos_stud_gewichtung")?replace("dim_studiengang.","dim_studiengang_gew."),\ | 
					 | 
				
			||||||
FelderObject.allKeys?replace("sos_stg_aggr","sos_stud_gewichtung")?replace("dim_studiengang.","dim_studiengang_gew."))}\ | 
					 | 
				
			||||||
   </#if>\ | 
					 | 
				
			||||||
and table_name !='dim_person_attribute_aggr'\ | 
					 | 
				
			||||||
--hier personattribute:\ | 
					 | 
				
			||||||
union SELECT P.attributevalue , -- F.caption,\ | 
					 | 
				
			||||||
       F.foreignkey_tab,\ | 
					 | 
				
			||||||
       F.description as strukturStr\ | 
					 | 
				
			||||||
 from sx_fields F, personattributetype P\ | 
					 | 
				
			||||||
 where F.table_name in ('${basetable}'\ | 
					 | 
				
			||||||
    ${restriction}\ | 
					 | 
				
			||||||
    )\ | 
					 | 
				
			||||||
  and currentlyused=1\ | 
					 | 
				
			||||||
  --Pseudonyme eingeschaltet:\ | 
					 | 
				
			||||||
and (name != 'matrikel_nr' or 0=(select \ | 
					 | 
				
			||||||
count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\ | 
					 | 
				
			||||||
and apnr=1))\ | 
					 | 
				
			||||||
<#if basetable='sos_stg_aggr'>\ | 
					 | 
				
			||||||
   ${DatenblattFields(<<tablestylesheet>>,"<<Felder>>",FelderObject.allKeys)}\ | 
					 | 
				
			||||||
   <#else>\ | 
					 | 
				
			||||||
   ${DatenblattFields(<<tablestylesheet>>,"<<Felder>>"?replace("sos_stg_aggr","sos_stud_gewichtung")?replace("dim_studiengang.","dim_studiengang_gew.")\ | 
					 | 
				
			||||||
   ,FelderObject.allKeys?replace("sos_stg_aggr","sos_stud_gewichtung")?replace("dim_studiengang.","dim_studiengang_gew."))}\ | 
					 | 
				
			||||||
   </#if>\ | 
					 | 
				
			||||||
and table_name ='dim_person_attribute_aggr'\ | 
					 | 
				
			||||||
and F.name='attribute'  || P.personattributetype_id\ | 
					 | 
				
			||||||
order by 1;]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
</sqlvars>\ | 
					 | 
				
			||||||
XIL List\ | 
					 | 
				
			||||||
   sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
   white_space_color=COLOR_WHITE fixed_columns=0\ | 
					 | 
				
			||||||
   min_heading_height=35\ | 
					 | 
				
			||||||
<#assign i=1 />\ | 
					 | 
				
			||||||
<#if get_felder?has_content >\ | 
					 | 
				
			||||||
<#foreach myfield in get_felder>\ | 
					 | 
				
			||||||
<#assign i=i+1 />\ | 
					 | 
				
			||||||
Column CID=${i} heading_text="${myfield.key}" explanation="${myfield.strukturStr}" center_heading\ | 
					 | 
				
			||||||
   row_selectable col_selectable rightJust heading_platform readonly\ | 
					 | 
				
			||||||
   width=20\ | 
					 | 
				
			||||||
<#if myfield.name != '' && <<Schlüssel anzeigen>>==1>\ | 
					 | 
				
			||||||
<#assign i=i+1 />\ | 
					 | 
				
			||||||
Column CID=${i} heading_text="${myfield.key}\\n(Schlüssel)" explanation="Schlüssel des Feldes ${myfield.key}" center_heading\ | 
					 | 
				
			||||||
   row_selectable col_selectable rightJust heading_platform readonly\ | 
					 | 
				
			||||||
   width=20\ | 
					 | 
				
			||||||
 </#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
@@@^Altersgruppe^Anzahl^Flexible Ausgabe der Studierendenstatistik, Studiengänge und Lehreinheiten^<sximport>select cleanup_stmt from maskeninfo where tid=160440</sximport>^^3^700^360^0^1^ ^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
16^44020^ | 
					 | 
				
			||||||
@ -1,37 +0,0 @@ | 
				
			|||||||
44070^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';^ | 
					 | 
				
			||||||
44071^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;^ | 
					 | 
				
			||||||
44072^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';^ | 
					 | 
				
			||||||
44073^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^^ | 
					 | 
				
			||||||
44074^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.';^ | 
					 | 
				
			||||||
44075^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';^ | 
					 | 
				
			||||||
44076^Spaltenanzahl^300^0^0^140^80^1^integer^30^0^1^<<SQL>> 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^ | 
					 | 
				
			||||||
44077^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^13^^^^ | 
					 | 
				
			||||||
44079^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;^ | 
					 | 
				
			||||||
44080^Filter Studierende^119^0^0^140^150^1^sql^20^0^13^<<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;^^^ | 
					 | 
				
			||||||
44081^Geschlecht^37^0^0^140^80^1^integer^30^0^13^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^^^ | 
					 | 
				
			||||||
44083^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;^^^ | 
					 | 
				
			||||||
44084^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^ | 
					 | 
				
			||||||
44085^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^ | 
					 | 
				
			||||||
44087^Grafik^1000^300^-1^170^150^1^integer^30^0^1^<<SQL>> select tid, caption from viz_chart order by 2;^hidden^ ^ | 
					 | 
				
			||||||
44088^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');^^^ | 
					 | 
				
			||||||
44089^Name der Hochschule^15^350^-1^140^80^1^char^255^0^13^<<SQL>> select name from hochschulinfo;^Eintrag^<<SQL>>  select name from hochschulinfo;^ | 
					 | 
				
			||||||
44090^##line##^30^0^0^100^100^1^char^5000^0^8^^^1^ | 
					 | 
				
			||||||
44091^Abschluss^7^0^0^140^170^5^char^30^0^1^<<SQL>> select abint,dtxt from k_abint order by 2;^^^ | 
					 | 
				
			||||||
44092^Matrikel-Nr.^20^350^-1^150^180^1^char^200^0^13^^{InputCheck:matrikelnummern}^^ | 
					 | 
				
			||||||
44093^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^ | 
					 | 
				
			||||||
@ -1,21 +0,0 @@ | 
				
			|||||||
44070^44070^ | 
					 | 
				
			||||||
44070^44071^ | 
					 | 
				
			||||||
44070^44072^ | 
					 | 
				
			||||||
44070^44073^ | 
					 | 
				
			||||||
44070^44074^ | 
					 | 
				
			||||||
44070^44075^ | 
					 | 
				
			||||||
44070^44076^ | 
					 | 
				
			||||||
44070^44077^ | 
					 | 
				
			||||||
44070^44079^ | 
					 | 
				
			||||||
44070^44080^ | 
					 | 
				
			||||||
44070^44081^ | 
					 | 
				
			||||||
44070^44083^ | 
					 | 
				
			||||||
44070^44084^ | 
					 | 
				
			||||||
44070^44085^ | 
					 | 
				
			||||||
44070^44087^ | 
					 | 
				
			||||||
44070^44088^ | 
					 | 
				
			||||||
44070^44089^ | 
					 | 
				
			||||||
44070^44090^ | 
					 | 
				
			||||||
44070^44091^ | 
					 | 
				
			||||||
44070^44092^ | 
					 | 
				
			||||||
44070^44093^ | 
					 | 
				
			||||||
@ -1,457 +0,0 @@ | 
				
			|||||||
44070^Studierenden-Entwicklung^--Freemarker Template\ | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/>\ | 
					 | 
				
			||||||
<#include "SuperX_general"/>\ | 
					 | 
				
			||||||
<#include "SQL_multitable_output"/>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--ram excelexport\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<sqlvars>\ | 
					 | 
				
			||||||
<sqlvar name="basetable"><![CDATA[<#if "<<Köpfe oder Fälle ?>>"?index_of("S.gewichtung_id=")==-1>select 'sos_stg_aggr' from xdummy<#else>select 'sos_stud_gewichtung' from xdummy</#if>]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="restriction"><![CDATA[<#if basetable='sos_stg_aggr'>\ | 
					 | 
				
			||||||
<#assign restrict=DatenblattTables(<<tablestylesheet>>,"<<Weitere Tabellen>>",.vars["Weitere TabellenObject"].allKeys)/>;\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
<#assign restrict=DatenblattTables(<<tablestylesheet>>,"<<Weitere Tabellen>>",.vars["Weitere TabellenObject"].allKeys)?replace('sos_stg_aggr',basetable)?replace("'dim_studiengang'","'dim_studiengang_gew'")/>;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
select '${restrict?replace("\\x0027","\\x0027\\x0027")}' from xdummy;]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="get_joins" type="hashsequence"><![CDATA[\ | 
					 | 
				
			||||||
SELECT foreignkey_tab,min(table_name) as table_name,\ | 
					 | 
				
			||||||
min(name) as name,\ | 
					 | 
				
			||||||
min(foreignkey_col) as foreignkey_col,\ | 
					 | 
				
			||||||
min(foreignkey_cond) as foreignkey_cond,\ | 
					 | 
				
			||||||
min(foreignkey_func) as foreignkey_func\ | 
					 | 
				
			||||||
      from sx_fields\ | 
					 | 
				
			||||||
  where table_name in ('${basetable}'/* ,<<Weitere Tabellen>> */  ${restriction})\ | 
					 | 
				
			||||||
  and foreignkey_tab in ('${basetable}'/* ,<<Weitere Tabellen>> */  ${restriction})\ | 
					 | 
				
			||||||
  group by 1\ | 
					 | 
				
			||||||
   order by 1,2,3;\ | 
					 | 
				
			||||||
   ]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="semester"><![CDATA[\ | 
					 | 
				
			||||||
select tid, eintrag from semester where 1=1\ | 
					 | 
				
			||||||
/* and tid >= <<Seit Semester>> */\ | 
					 | 
				
			||||||
/* and tid <= <<Bis Semester>>*/\ | 
					 | 
				
			||||||
;]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="get_felder_fk" type="hashsequence"><![CDATA[\ | 
					 | 
				
			||||||
SELECT name,\ | 
					 | 
				
			||||||
       caption,\ | 
					 | 
				
			||||||
       table_name,\ | 
					 | 
				
			||||||
       foreignkey_tab,\ | 
					 | 
				
			||||||
       foreignkey_col,\ | 
					 | 
				
			||||||
       foreignkey_cap,\ | 
					 | 
				
			||||||
       foreignkey_cond,\ | 
					 | 
				
			||||||
       foreignkey_func,\ | 
					 | 
				
			||||||
       case when foreignkey_uniquename!='' then foreignkey_uniquename else foreignkey_col end as foreignkey_uniquename\ | 
					 | 
				
			||||||
              \ | 
					 | 
				
			||||||
 from sx_fields\ | 
					 | 
				
			||||||
  where table_name in ('${basetable}' /* ,<<Weitere Tabellen>> */ ${restriction}\ | 
					 | 
				
			||||||
  )\ | 
					 | 
				
			||||||
   and currentlyused=1\ | 
					 | 
				
			||||||
     --Pseudonyme eingeschaltet:\ | 
					 | 
				
			||||||
  and (name != 'matrikel_nr' or 0=(select \ | 
					 | 
				
			||||||
count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\ | 
					 | 
				
			||||||
and apnr=1))\ | 
					 | 
				
			||||||
  <#if basetable='sos_stg_aggr'>\ | 
					 | 
				
			||||||
   ${DatenblattFields(<<tablestylesheet>>,"<<Felder>>",FelderObject.allKeys)}\ | 
					 | 
				
			||||||
   <#else>\ | 
					 | 
				
			||||||
   ${DatenblattFields(<<tablestylesheet>>,"<<Felder>>"?replace("sos_stg_aggr","sos_stud_gewichtung")?replace("dim_studiengang.","dim_studiengang_gew."),\ | 
					 | 
				
			||||||
   FelderObject.allKeys?replace("sos_stg_aggr","sos_stud_gewichtung")?replace("dim_studiengang.","dim_studiengang_gew."))}\ | 
					 | 
				
			||||||
   </#if>\ | 
					 | 
				
			||||||
	  and table_name !='dim_person_attribute_aggr'\ | 
					 | 
				
			||||||
--hier Personattribute wg. Sortierung\ | 
					 | 
				
			||||||
   union\ | 
					 | 
				
			||||||
   SELECT F.name,\ | 
					 | 
				
			||||||
       P.attributevalue ,--caption,\ | 
					 | 
				
			||||||
       table_name,\ | 
					 | 
				
			||||||
       foreignkey_tab,\ | 
					 | 
				
			||||||
       foreignkey_col,\ | 
					 | 
				
			||||||
       foreignkey_cap,\ | 
					 | 
				
			||||||
       foreignkey_cond,\ | 
					 | 
				
			||||||
       foreignkey_func,\ | 
					 | 
				
			||||||
       case when foreignkey_uniquename!='' then foreignkey_uniquename else foreignkey_col end as foreignkey_uniquename\ | 
					 | 
				
			||||||
              \ | 
					 | 
				
			||||||
 from sx_fields F, personattributetype P\ | 
					 | 
				
			||||||
  where table_name in ('${basetable}' /* ,<<Weitere Tabellen>> */ ${restriction}\ | 
					 | 
				
			||||||
  )\ | 
					 | 
				
			||||||
   and currentlyused=1\ | 
					 | 
				
			||||||
     --Pseudonyme eingeschaltet:\ | 
					 | 
				
			||||||
  and (name != 'matrikel_nr' or 0=(select \ | 
					 | 
				
			||||||
count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\ | 
					 | 
				
			||||||
and apnr=1))\ | 
					 | 
				
			||||||
  <#if basetable='sos_stg_aggr'>\ | 
					 | 
				
			||||||
   ${DatenblattFields(<<tablestylesheet>>,"<<Felder>>",FelderObject.allKeys)}\ | 
					 | 
				
			||||||
   <#else>\ | 
					 | 
				
			||||||
   ${DatenblattFields(<<tablestylesheet>>,"<<Felder>>"?replace("sos_stg_aggr","sos_stud_gewichtung")?replace("dim_studiengang.","dim_studiengang_gew."),\ | 
					 | 
				
			||||||
   FelderObject.allKeys?replace("sos_stg_aggr","sos_stud_gewichtung")?replace("dim_studiengang.","dim_studiengang_gew."))}\ | 
					 | 
				
			||||||
   </#if>\ | 
					 | 
				
			||||||
	  and table_name ='dim_person_attribute_aggr'\ | 
					 | 
				
			||||||
	  and F.name='attribute'  || P.personattributetype_id\ | 
					 | 
				
			||||||
	  \ | 
					 | 
				
			||||||
	  order by 2,3;\ | 
					 | 
				
			||||||
	  ]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
</sqlvars>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign lehr_stg_ab="lehr_stg_ab"/>\ | 
					 | 
				
			||||||
<#if "<<Köpfe oder Fälle ?>>"?index_of("S.gewichtung_id=")!=-1>\ | 
					 | 
				
			||||||
<#assign lehr_stg_ab="lehr_stg_ab_gew"/>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
delete  from dim_person_attribute_aggr;\ | 
					 | 
				
			||||||
 \ | 
					 | 
				
			||||||
<#foreach einSemester in semester>\ | 
					 | 
				
			||||||
insert into dim_person_attribute_aggr \ | 
					 | 
				
			||||||
select dim_person_attribute.matrikel_nr,  \ | 
					 | 
				
			||||||
max(attribute1),max(attribute2),max(attribute3),max(attribute4),max(attribute5),max(attribute6)\ | 
					 | 
				
			||||||
,max(attribute7),max(attribute8),max(attribute9),max(attribute10), semester.tid\ | 
					 | 
				
			||||||
from dim_person_attribute, semester\ | 
					 | 
				
			||||||
where (${einSemester.key} between  semester_von and semester_bis and semester.tid = ${einSemester.key}) \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
group by dim_person_attribute.matrikel_nr, semester.tid;\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--zum testen der sqlvars\ | 
					 | 
				
			||||||
--select * from sx_fields\ | 
					 | 
				
			||||||
-- <#if <<tablestylesheet>>='tabelle_html.xsl'>\ | 
					 | 
				
			||||||
--     /*,<<Weitere Tabellen>> */\ | 
					 | 
				
			||||||
--     <#else>\ | 
					 | 
				
			||||||
--    , ${.vars["Weitere TabellenObject"].allKeys?replace("'","")}\ | 
					 | 
				
			||||||
--</#if>\ | 
					 | 
				
			||||||
--where 1=1 \ | 
					 | 
				
			||||||
--  <#if <<tablestylesheet>>='tabelle_html.xsl'>\ | 
					 | 
				
			||||||
-- /*  and  trim(table_name) || '.' || name in ( <<Felder>> )*/\ | 
					 | 
				
			||||||
--   <#else>\ | 
					 | 
				
			||||||
-- and  trim(table_name) || '.' || name in (${FelderObject.allKeys})\ | 
					 | 
				
			||||||
--   </#if>;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--drop table if exists tmp_tabelle ;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter="\ | 
					 | 
				
			||||||
/* and <<Hörerstatus>> */\ | 
					 | 
				
			||||||
/* and sem_rueck_beur_ein >= <<Seit Semester>> */\ | 
					 | 
				
			||||||
/* and sem_rueck_beur_ein <= <<Bis Semester>> */\ | 
					 | 
				
			||||||
/* AND fach_sem_zahl <= <<bis Fachsemester>> */\ | 
					 | 
				
			||||||
/* and "+basetable+".stichtag = <<Stichtag>> */\ | 
					 | 
				
			||||||
/* and kz_rueck_beur_ein in(<<Status>>) */\ | 
					 | 
				
			||||||
/* and geschlecht=<<Geschlecht>> */\ | 
					 | 
				
			||||||
/* and ${<<Filter Studierende>>} */\ | 
					 | 
				
			||||||
/* and L.abschluss in (<<Abschluss>>) */\ | 
					 | 
				
			||||||
" />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if "<<Matrikel-Nr.>>"!="">\ | 
					 | 
				
			||||||
<#assign filter=filter+" and " + basetable + ".matrikel_nr in (<<Matrikel-Nr.>>)"?replace("'","")/>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if "<<Köpfe oder Fälle ?>>"?index_of("S.gewichtung_id=")!=-1>\ | 
					 | 
				
			||||||
 <#assign filter=filter+" and "+.vars["Köpfe oder Fälle ?"]?replace('S.','sos_stud_gewichtung.')/>\ | 
					 | 
				
			||||||
  <#if "<<Weitere Tabellen>>"?index_of("dim_studiengang_gew")>-1>\ | 
					 | 
				
			||||||
   <#assign filter=filter+" and (dim_studiengang_gew.gewichtid is null or "+.vars["Köpfe oder Fälle ?"]?replace('S.','dim_studiengang_gew.')?replace("gewichtung_id","gewichtid")+")"/>\ | 
					 | 
				
			||||||
   </#if>\ | 
					 | 
				
			||||||
<#elseif "<<Köpfe oder Fälle ?>>"!="">\ | 
					 | 
				
			||||||
<#assign filter=filter+" and "+.vars["Köpfe oder Fälle ?"]/>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
 \ | 
					 | 
				
			||||||
<#assign filter = filter + " and 's_' || tid_stg in "+Studiengang.allNeededKeysList /> \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign semester_von_filter="19000" />\ | 
					 | 
				
			||||||
/* <#assign semester_von_filter="<<Seit Semester>>" /> */\ | 
					 | 
				
			||||||
<#assign semester_bis_filter="30000" />\ | 
					 | 
				
			||||||
/* <#assign semester_bis_filter="<<Bis Semester>>" /> */\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
/*<#assign filter = filter + " and 0 < (select count(*) from personattribute PA, personattributetype TY\ | 
					 | 
				
			||||||
where TY.personattributetype_id=PA.personattributetype_id\ | 
					 | 
				
			||||||
and TY.attributevalue='Jahrgang'\ | 
					 | 
				
			||||||
and PA.matrikel_nr="+basetable+".matrikel_nr\ | 
					 | 
				
			||||||
and (${semester_von_filter} between PA.semester_von and PA.semester_bis\ | 
					 | 
				
			||||||
or ${semester_bis_filter} between PA.semester_von and PA.semester_bis)\ | 
					 | 
				
			||||||
and PA.attributevalue='<<Jahrgang>>') "/>*/\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and 0 < (select count(*) from personattribute PA, personattributetype TY\ | 
					 | 
				
			||||||
where TY.personattributetype_id=PA.personattributetype_id\ | 
					 | 
				
			||||||
and TY.attributevalue='Status'\ | 
					 | 
				
			||||||
and PA.matrikel_nr="+basetable+".matrikel_nr\ | 
					 | 
				
			||||||
and (${semester_von_filter} between PA.semester_von and PA.semester_bis\ | 
					 | 
				
			||||||
or ${semester_bis_filter} between PA.semester_von and PA.semester_bis)\ | 
					 | 
				
			||||||
and PA.attributevalue='<<Zivilstatus>>') "/>*/\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and '' || ca12_staat in  "+Staatsangehörigkeit.allNeededKeysList />  --<<Staatsangehörigkeit>> */\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
 \ | 
					 | 
				
			||||||
-- /*<#assign filter = filter + " and dim_person_attribute.attribute9  = '<<StatusZ>>'"/> */\ | 
					 | 
				
			||||||
 --/*<#assign jahrgang_filter =  " and dim_person_attribute.attribute10  = '<<Jahrgang>>'"/>*/\ | 
					 | 
				
			||||||
--<#assign filter = filter + jahrgang_filter />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--first denormalize basetable:\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--get field_list_select\ | 
					 | 
				
			||||||
<#assign field_list_select="''::char(250) as _meldung" />\ | 
					 | 
				
			||||||
<#foreach feld in get_felder_fk>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if feld.name="summe">\ | 
					 | 
				
			||||||
<#assign field_list_select=field_list_select+", sum(summe) as "+basetable+"_summe" />\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
<#assign field_list_select=field_list_select+", "+feld.table_name +"."+feld.name +" as "+feld.table_name +"_"+feld.name />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if feld.foreignkey_uniquename != "">\ | 
					 | 
				
			||||||
<#assign field_list_select=field_list_select+",''::char(255) as " + feld.table_name +"_"+feld.name + "_uniquename" />\ | 
					 | 
				
			||||||
<#assign field_list_select=field_list_select+",''::char(255) as " + feld.table_name +"_"+feld.name + "_str" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--get fromclause\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign fromclause=lehr_stg_ab+" L,"+basetable />\ | 
					 | 
				
			||||||
<#foreach join in get_joins>\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+" left outer join "+join.foreignkey_tab +" on (" />\ | 
					 | 
				
			||||||
<#if join.foreignkey_tab ="dim_person_attribute_aggr" >\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+ basetable+".matrikel_nr=dim_person_attribute_aggr.matrikel_nr and dim_person_attribute_aggr.semester = "+basetable+".sem_rueck_beur_ein " />\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+ basetable+"."+ join.name+"=" />\ | 
					 | 
				
			||||||
<#if join.foreignkey_func != "">\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+join.foreignkey_func+"(" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+join.foreignkey_tab+"." +join.foreignkey_col />\ | 
					 | 
				
			||||||
<#if join.foreignkey_func != "">\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+")" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if join.foreignkey_cond != "">\ | 
					 | 
				
			||||||
<#if join.foreignkey_cond[0..0] = "1" || \ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "2" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "3" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "4" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "5" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "6" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "7" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "8" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "9" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "0" ||\ | 
					 | 
				
			||||||
join.foreignkey_cond[0..0] = "'" >\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+" and "+join.foreignkey_cond />\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+" and tmp_tabelle."+join.table_name+"_"+join.foreignkey_cond />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#if> --wenn nicht dim_person_attritubte_aggr\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+") " />\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
<#if ("<<Weitere Tabellen>>"+restriction)?index_of("dim_person_attribute_aggr") !=-1>\ | 
					 | 
				
			||||||
<#assign fromclause=fromclause+" left outer join dim_person_attribute_aggr on ("+basetable+".matrikel_nr=dim_person_attribute_aggr.matrikel_nr and "+basetable+".sem_rueck_beur_ein=dim_person_attribute_aggr.semester)" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--whereclause\ | 
					 | 
				
			||||||
<#assign whereclause=" L.tid="+basetable+".tid_stg " />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--get groupbyclause\ | 
					 | 
				
			||||||
<#assign groupbyclause="group by 1" />\ | 
					 | 
				
			||||||
<#foreach feld in get_felder_fk>\ | 
					 | 
				
			||||||
<#if feld.name!="summe">\ | 
					 | 
				
			||||||
<#assign groupbyclause=groupbyclause+", "+feld.table_name +"_"+feld.name />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<@selectintotmp\ | 
					 | 
				
			||||||
select=field_list_select\ | 
					 | 
				
			||||||
source=fromclause\ | 
					 | 
				
			||||||
target="tmp_tabelle">\ | 
					 | 
				
			||||||
where ${whereclause}\ | 
					 | 
				
			||||||
${filter}\ | 
					 | 
				
			||||||
${groupbyclause}\ | 
					 | 
				
			||||||
</@selectintotmp>\ | 
					 | 
				
			||||||
<@informixnolog/> ;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table tmp_rows(anz integer,max_anz integer) \ | 
					 | 
				
			||||||
<@informixnolog/> \ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
insert into tmp_rows(anz) select count(*) from tmp_tabelle;\ | 
					 | 
				
			||||||
update tmp_rows set max_anz=(select apnr from konstanten where beschreibung='Datenblatt max.Zeilenzahl');\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
delete from tmp_tabelle where 0 < (select count(*) from tmp_rows\ | 
					 | 
				
			||||||
where anz > max_anz);\ | 
					 | 
				
			||||||
 \ | 
					 | 
				
			||||||
select 'Warnung: die Abfrage kann nicht ausgeführt werden, denn ' ||  anz || ' Zeilen liegen über max. Grenze von ' || max_anz as _runtimeMessage\ | 
					 | 
				
			||||||
from tmp_rows\ | 
					 | 
				
			||||||
where anz > max_anz;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
drop table tmp_rows;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--denormalize:\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#foreach feld in get_felder_fk>\ | 
					 | 
				
			||||||
<#if feld.foreignkey_tab != "" >\ | 
					 | 
				
			||||||
<#if SQLdialect="Postgres">\ | 
					 | 
				
			||||||
update tmp_tabelle set\ | 
					 | 
				
			||||||
(${feld.table_name}_${feld.name}_uniquename, ${feld.table_name}_${feld.name}_str)=\ | 
					 | 
				
			||||||
(select ${feld.foreignkey_uniquename},${feld.foreignkey_cap}\ | 
					 | 
				
			||||||
from ${feld.foreignkey_tab}\ | 
					 | 
				
			||||||
where tmp_tabelle.${feld.table_name}_${feld.name}=\ | 
					 | 
				
			||||||
<#if feld.foreignkey_func != "">\ | 
					 | 
				
			||||||
${feld.foreignkey_func}(\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
${feld.foreignkey_tab}.${feld.foreignkey_col}\ | 
					 | 
				
			||||||
<#if feld.foreignkey_func != "">\ | 
					 | 
				
			||||||
)\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if feld.foreignkey_cond != "">\ | 
					 | 
				
			||||||
<#if feld.foreignkey_cond[0..0] = "1" || \ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "2" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "3" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "4" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "5" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "6" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "7" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "8" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "9" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "0" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "'" >\ | 
					 | 
				
			||||||
and ${feld.foreignkey_cond}\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
and tmp_tabelle.${feld.table_name}_${feld.foreignkey_cond}\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
);\ | 
					 | 
				
			||||||
<#else> --Wenn Informix:\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
update tmp_tabelle set (${feld.table_name}_${feld.name}_uniquename,${feld.table_name}_${feld.name}_str)\ | 
					 | 
				
			||||||
=(( select ${feld.foreignkey_uniquename},${feld.foreignkey_cap}\ | 
					 | 
				
			||||||
from ${feld.foreignkey_tab}\ | 
					 | 
				
			||||||
where tmp_tabelle.${feld.table_name}_${feld.name}=\ | 
					 | 
				
			||||||
<#if feld.foreignkey_func != "">\ | 
					 | 
				
			||||||
${feld.foreignkey_func}(\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
${feld.foreignkey_tab}.${feld.foreignkey_col}\ | 
					 | 
				
			||||||
<#if feld.foreignkey_func != "">\ | 
					 | 
				
			||||||
)\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if feld.foreignkey_cond != "">\ | 
					 | 
				
			||||||
<#if feld.foreignkey_cond[0..0] = "1" || \ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "2" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "3" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "4" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "5" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "6" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "7" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "8" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "9" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "0" ||\ | 
					 | 
				
			||||||
feld.foreignkey_cond[0..0] = "'" >\ | 
					 | 
				
			||||||
and ${feld.foreignkey_cond}\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
and tmp_tabelle.${feld.table_name}_${feld.foreignkey_cond}\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
))\ | 
					 | 
				
			||||||
where tmp_tabelle.${feld.table_name}_${feld.name} is not null\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#if> --Wenn Postgres/Informix\ | 
					 | 
				
			||||||
</#if> --wenn foreign_key\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if get_felder_fk?has_content >\ | 
					 | 
				
			||||||
select \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign rownum=1 />\ | 
					 | 
				
			||||||
<#foreach feld in get_felder_fk>\ | 
					 | 
				
			||||||
<#if feld.foreignkey_tab != "">\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
${feld.table_name}_${feld.name}_str\ | 
					 | 
				
			||||||
<#if <<Schlüssel anzeigen>>=1>\ | 
					 | 
				
			||||||
<#if feld.foreignkey_col=feld.foreignkey_uniquename>\ | 
					 | 
				
			||||||
,${feld.table_name}_${feld.name}\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
,${feld.table_name}_${feld.name}_uniquename\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
${feld.table_name}_${feld.name}\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if rownum < get_felder_fk?size>\ | 
					 | 
				
			||||||
,\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#assign rownum= rownum+1 />\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
from tmp_tabelle\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
</#if>^--Freemarker Template \ | 
					 | 
				
			||||||
<sqlvars>\ | 
					 | 
				
			||||||
<sqlvar name="basetable"><![CDATA[<#if "<<Köpfe oder Fälle ?>>"?index_of("S.gewichtung_id=")==-1>select 'sos_stg_aggr' from xdummy<#else>select 'sos_stud_gewichtung' from xdummy</#if>]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="restriction"><![CDATA[<#if basetable='sos_stg_aggr'>\ | 
					 | 
				
			||||||
<#assign restrict=DatenblattTables(<<tablestylesheet>>,"<<Weitere Tabellen>>",.vars["Weitere TabellenObject"].allKeys)/>;\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
<#assign restrict=DatenblattTables(<<tablestylesheet>>,"<<Weitere Tabellen>>",.vars["Weitere TabellenObject"].allKeys)?replace('sos_stg_aggr',basetable)?replace("'dim_studiengang'","'dim_studiengang_gew'")/>;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
select '${restrict?replace("\\x0027","\\x0027\\x0027")}' from xdummy;]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="get_felder"><![CDATA[\ | 
					 | 
				
			||||||
SELECT caption,\ | 
					 | 
				
			||||||
       foreignkey_tab,\ | 
					 | 
				
			||||||
       description as strukturStr\ | 
					 | 
				
			||||||
 from sx_fields\ | 
					 | 
				
			||||||
 where table_name in ('${basetable}'\ | 
					 | 
				
			||||||
    ${restriction}\ | 
					 | 
				
			||||||
    )\ | 
					 | 
				
			||||||
  and currentlyused=1\ | 
					 | 
				
			||||||
  --Pseudonyme eingeschaltet:\ | 
					 | 
				
			||||||
and (name != 'matrikel_nr' or 0=(select \ | 
					 | 
				
			||||||
count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\ | 
					 | 
				
			||||||
and apnr=1))\ | 
					 | 
				
			||||||
<#if basetable='sos_stg_aggr'>\ | 
					 | 
				
			||||||
${DatenblattFields(<<tablestylesheet>>,"<<Felder>>",FelderObject.allKeys)}\ | 
					 | 
				
			||||||
   <#else>\ | 
					 | 
				
			||||||
${DatenblattFields(<<tablestylesheet>>,"<<Felder>>"?replace("sos_stg_aggr","sos_stud_gewichtung")?replace("dim_studiengang.","dim_studiengang_gew."),\ | 
					 | 
				
			||||||
FelderObject.allKeys?replace("sos_stg_aggr","sos_stud_gewichtung")?replace("dim_studiengang.","dim_studiengang_gew."))}\ | 
					 | 
				
			||||||
   </#if>\ | 
					 | 
				
			||||||
and table_name !='dim_person_attribute_aggr'\ | 
					 | 
				
			||||||
--hier personattribute:\ | 
					 | 
				
			||||||
union SELECT P.attributevalue , -- F.caption,\ | 
					 | 
				
			||||||
       F.foreignkey_tab,\ | 
					 | 
				
			||||||
       F.description as strukturStr\ | 
					 | 
				
			||||||
 from sx_fields F, personattributetype P\ | 
					 | 
				
			||||||
 where F.table_name in ('${basetable}'\ | 
					 | 
				
			||||||
    ${restriction}\ | 
					 | 
				
			||||||
    )\ | 
					 | 
				
			||||||
  and currentlyused=1\ | 
					 | 
				
			||||||
  --Pseudonyme eingeschaltet:\ | 
					 | 
				
			||||||
and (name != 'matrikel_nr' or 0=(select \ | 
					 | 
				
			||||||
count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\ | 
					 | 
				
			||||||
and apnr=1))\ | 
					 | 
				
			||||||
<#if basetable='sos_stg_aggr'>\ | 
					 | 
				
			||||||
   ${DatenblattFields(<<tablestylesheet>>,"<<Felder>>",FelderObject.allKeys)}\ | 
					 | 
				
			||||||
   <#else>\ | 
					 | 
				
			||||||
   ${DatenblattFields(<<tablestylesheet>>,"<<Felder>>"?replace("sos_stg_aggr","sos_stud_gewichtung")?replace("dim_studiengang.","dim_studiengang_gew.")\ | 
					 | 
				
			||||||
   ,FelderObject.allKeys?replace("sos_stg_aggr","sos_stud_gewichtung")?replace("dim_studiengang.","dim_studiengang_gew."))}\ | 
					 | 
				
			||||||
   </#if>\ | 
					 | 
				
			||||||
and table_name ='dim_person_attribute_aggr'\ | 
					 | 
				
			||||||
and F.name='attribute'  || P.personattributetype_id\ | 
					 | 
				
			||||||
order by 1;]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
</sqlvars>\ | 
					 | 
				
			||||||
XIL List\ | 
					 | 
				
			||||||
   sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
   white_space_color=COLOR_WHITE fixed_columns=0\ | 
					 | 
				
			||||||
   min_heading_height=35\ | 
					 | 
				
			||||||
<#assign i=1 />\ | 
					 | 
				
			||||||
<#if get_felder?has_content >\ | 
					 | 
				
			||||||
<#foreach myfield in get_felder>\ | 
					 | 
				
			||||||
<#assign i=i+1 />\ | 
					 | 
				
			||||||
Column CID=${i} heading_text="${myfield.key}" explanation="${myfield.strukturStr}" center_heading\ | 
					 | 
				
			||||||
   row_selectable col_selectable rightJust heading_platform readonly\ | 
					 | 
				
			||||||
   width=20\ | 
					 | 
				
			||||||
<#if myfield.name != '' && <<Schlüssel anzeigen>>==1>\ | 
					 | 
				
			||||||
<#assign i=i+1 />\ | 
					 | 
				
			||||||
Column CID=${i} heading_text="${myfield.key}\\n(Schlüssel)" explanation="Schlüssel des Feldes ${myfield.key}" center_heading\ | 
					 | 
				
			||||||
   row_selectable col_selectable rightJust heading_platform readonly\ | 
					 | 
				
			||||||
   width=20\ | 
					 | 
				
			||||||
 </#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
@@@^Altersgruppe^Anzahl^Flexible Ausgabe der Studierendenstatistik, Studiengänge und Lehreinheiten^drop table tmp_tabelle;^^3^700^360^0^1^^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
16^44070^ | 
					 | 
				
			||||||
@ -1,34 +0,0 @@ | 
				
			|||||||
44100^Köpfe oder Fälle ?^-3^0^0^130^150^1^sql^30^1^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle;^hidden^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Köpfe';^ | 
					 | 
				
			||||||
44101^Seit Semester^1^0^0^130^80^1^integer^30^1^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()-(3*365) between sem_beginn  and sem_ende;^ | 
					 | 
				
			||||||
44102^Fächer^6^0^0^130^200^6^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^^^ | 
					 | 
				
			||||||
44103^bis Fachsemester^23^330^-1^130^100^1^integer^30^0^0^^hidden^^ | 
					 | 
				
			||||||
44104^Hörerstatus^18^0^0^130^150^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^hidden^<<SQL>> select apnr, eintrag from hoererstatus  where eintrag='alle';^ | 
					 | 
				
			||||||
44105^Stichtag^-2^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';^ | 
					 | 
				
			||||||
44106^Status^11^330^-1^130^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.';^ | 
					 | 
				
			||||||
44107^Bis Semester^3^330^-1^130^100^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;^ | 
					 | 
				
			||||||
44108^Abschluss^5^0^0^130^150^5^char^30^0^1^<<SQL>> select apnr,  trim(druck) || ' (' || trim(apnr) || ')'  from cifx where key = 35 order by 2;^^^ | 
					 | 
				
			||||||
44109^Fachkennz.^16^330^-1^130^150^1^char^30^0^1^<<SQL>> select apnr,druck from sos_k_kzfa order by 2^hidden^^ | 
					 | 
				
			||||||
44110^Vertiefung^7^330^-1^130^100^1^char^30^0^1^<<SQL>> select apnr,druck  from cifx where key=39  order by 2;^hidden^^ | 
					 | 
				
			||||||
44111^ab Fachsemester^22^0^0^130^100^1^integer^30^0^0^^hidden^^ | 
					 | 
				
			||||||
44112^Filter Studierende^120^0^0^130^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;^^^ | 
					 | 
				
			||||||
44113^Trennen nach^121^330^-1^130^100^1^char^20^0^1^<<SQL>> \ | 
					 | 
				
			||||||
select 'Fach' from xdummy  where (select count(*) from sos_gewichtungsvariante)=0 \ | 
					 | 
				
			||||||
union \ | 
					 | 
				
			||||||
select 'Abschluss' from xdummy^hidden^^ | 
					 | 
				
			||||||
44114^Studiengang^4^0^0^130^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;^^^ | 
					 | 
				
			||||||
44115^##line##^13^0^0^100^100^1^char^5000^0^8^^^1^ | 
					 | 
				
			||||||
44116^##line##^30^0^0^100^100^1^char^5000^0^8^^^1^ | 
					 | 
				
			||||||
44117^Grafik^1000^300^-1^170^150^1^char^30^0^1^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44100 order by 2;^ ^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44100 order by 2 limit 1;^ | 
					 | 
				
			||||||
44118^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^ | 
					 | 
				
			||||||
@ -1,19 +0,0 @@ | 
				
			|||||||
44100^44100^ | 
					 | 
				
			||||||
44100^44101^ | 
					 | 
				
			||||||
44100^44102^ | 
					 | 
				
			||||||
44100^44103^ | 
					 | 
				
			||||||
44100^44104^ | 
					 | 
				
			||||||
44100^44105^ | 
					 | 
				
			||||||
44100^44106^ | 
					 | 
				
			||||||
44100^44107^ | 
					 | 
				
			||||||
44100^44108^ | 
					 | 
				
			||||||
44100^44109^ | 
					 | 
				
			||||||
44100^44110^ | 
					 | 
				
			||||||
44100^44111^ | 
					 | 
				
			||||||
44100^44112^ | 
					 | 
				
			||||||
44100^44113^ | 
					 | 
				
			||||||
44100^44114^ | 
					 | 
				
			||||||
44100^44115^ | 
					 | 
				
			||||||
44100^44116^ | 
					 | 
				
			||||||
44100^44117^ | 
					 | 
				
			||||||
44100^44118^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
44100^Studierende Zeitreihe (VIZ)^<sximport>select select_stmt from maskeninfo where tid=16000</sximport>^<sximport>select xil_proplist from maskeninfo where tid=16000</sximport>^Semester^Anzahl^je Semester mit Geschlechtsangabe und Prozentwert^<sximport>select cleanup_stmt from maskeninfo where tid=16000</sximport>^-leer-^3^700^360^0^1^^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
16^44100^ | 
					 | 
				
			||||||
@ -1,46 +0,0 @@ | 
				
			|||||||
44130^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')\ | 
					 | 
				
			||||||
and R.systeminfo_id=7)\ | 
					 | 
				
			||||||
and uniquename in ('sos_stud_nach_alter')\ | 
					 | 
				
			||||||
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')\ | 
					 | 
				
			||||||
and R.systeminfo_id=7)\ | 
					 | 
				
			||||||
and uniquename in ('sos_stud_nach_alter')\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
 ;^ | 
					 | 
				
			||||||
44131^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;^ | 
					 | 
				
			||||||
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;^ ^ ^ | 
					 | 
				
			||||||
44133^Abschluss^40^0^0^100^200^3^char^1500^0^1^<<SQL>> select apnr, druck from cifx where key=35 order by 2;^ ^ ^ | 
					 | 
				
			||||||
44134^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^0^^ ^ ^ | 
					 | 
				
			||||||
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^ | 
					 | 
				
			||||||
44136^Hochschulzugangsberechtigung^120^300^-1^200^200^1^sql^30^0^1^hs_zugangsber^apnr, eintrag^ ^ | 
					 | 
				
			||||||
44137^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;^ | 
					 | 
				
			||||||
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;^ ^ ^ | 
					 | 
				
			||||||
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;^ ^ ^ | 
					 | 
				
			||||||
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;^ | 
					 | 
				
			||||||
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,18 +0,0 @@ | 
				
			|||||||
44130^44130^ | 
					 | 
				
			||||||
44130^44131^ | 
					 | 
				
			||||||
44130^44132^ | 
					 | 
				
			||||||
44130^44133^ | 
					 | 
				
			||||||
44130^44134^ | 
					 | 
				
			||||||
44130^44135^ | 
					 | 
				
			||||||
44130^44136^ | 
					 | 
				
			||||||
44130^44137^ | 
					 | 
				
			||||||
44130^44138^ | 
					 | 
				
			||||||
44130^44139^ | 
					 | 
				
			||||||
44130^44140^ | 
					 | 
				
			||||||
44130^44141^ | 
					 | 
				
			||||||
44130^44142^ | 
					 | 
				
			||||||
44130^44143^ | 
					 | 
				
			||||||
44130^44144^ | 
					 | 
				
			||||||
44130^44148^ | 
					 | 
				
			||||||
44130^44152^ | 
					 | 
				
			||||||
44130^44153^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
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>>;^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
16^44130^ | 
					 | 
				
			||||||
@ -1,51 +0,0 @@ | 
				
			|||||||
44160^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^13^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^hidden^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ | 
					 | 
				
			||||||
44161^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;^ ^<<SQL>> select tid,eintrag from semester where today()-(3*365) between sem_beginn  and sem_ende;^ | 
					 | 
				
			||||||
44162^Fächer^9^0^0^100^200^6^char^30^0^12^<<SQL>> select tid from sichten where art='Fächer-Sicht' order by sortnr^ ^ ^ | 
					 | 
				
			||||||
44163^Staatsangehörigkeit^35^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;^ ^ ^ | 
					 | 
				
			||||||
44164^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;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn  and sem_ende;^ | 
					 | 
				
			||||||
44165^Abschluss^12^0^0^100^100^6^char^30^0^1^<<SQL>> select apnr, druck from cifx where key=35 order by druck;^hidden^ ^ | 
					 | 
				
			||||||
44166^Weitere Tabellen^123^0^0^140^140^3^char^30^0^1^<<SQL>> \ | 
					 | 
				
			||||||
--freemarker template\ | 
					 | 
				
			||||||
select name,string_not_null(caption) || ' - ' || name from sx_tables where  name in ('_xy')\ | 
					 | 
				
			||||||
<#if <<tablestylesheet>>!='tabelle_html_datenblatt.xsl'>\ | 
					 | 
				
			||||||
 and  name in (select distinct tablename from stylesheet_field where stylesheet_id in (select tid from sx_stylesheets where filename=<<tablestylesheet>>)) \ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
order by 2^hidden^^ | 
					 | 
				
			||||||
44167^Geschlecht^75^0^0^140^170^1^integer^4^0^1^<<SQL>> select tid, beschreibung from konstanten where tid in (1,2);^ ^ ^ | 
					 | 
				
			||||||
44168^Felder^125^0^0^150^190^10^char^30^0^1^<<SQL>>\ | 
					 | 
				
			||||||
--freemarker template\ | 
					 | 
				
			||||||
 select trim(F.table_name) || '.' || F.name,trim(T.caption) || ':' || trim(F.caption) || ' - ' || trim(F.name) from sx_fields F,\ | 
					 | 
				
			||||||
 sx_tables T where F.table_name=T.name and F.currentlyused=1 \ | 
					 | 
				
			||||||
 and (F.table_name ='erfolg_ba_ma_uebergang'\ | 
					 | 
				
			||||||
  /* or F.table_name in (<<Weitere Tabellen>>) */) \ | 
					 | 
				
			||||||
and (F.name != 'matrikel_nr' or 0=(select \ | 
					 | 
				
			||||||
count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\ | 
					 | 
				
			||||||
and apnr=1))\ | 
					 | 
				
			||||||
  order by 2;^hidden^erfolg_ba_ma_uebergang.einschr_nachher_abschluss,erfolg_ba_ma_uebergang.summe,erfolg_ba_ma_uebergang.abschluss_vorher_abschluss^ | 
					 | 
				
			||||||
44169^Fachebene^28^330^-1^130^100^1^char^30^1^1^<<SQL>> select 'stg','Fach (intern)' from xdummy union\ | 
					 | 
				
			||||||
select 'stg_astat','Fach (amtlich)' from xdummy union\ | 
					 | 
				
			||||||
select 'lehr','Lehreinheit' from xdummy union\ | 
					 | 
				
			||||||
select 'fb','Fakultät' from xdummy union \ | 
					 | 
				
			||||||
select 'stg_astgrp','Fächergruppe' from xdummy \ | 
					 | 
				
			||||||
order by 1^hidden^<<SQL>> select 'stg','Fach (intern)' from xdummy^ | 
					 | 
				
			||||||
44171^Hörerstatus^36^0^0^140^80^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus where apnr like 'hrst%' order by 2^hidden^ ^ | 
					 | 
				
			||||||
44172^Richtung^38^0^0^150^190^1^char^30^1^1^<<SQL>>select 'gw','Grundständig zu weiterf.' from xdummy union select 'wg','Weiterf. zu Grundständig' from xdummy order by 1;^hidden^<<SQL>>select 'gw','Grundständig zu weiterf.' from xdummy^ | 
					 | 
				
			||||||
44173^Studiengang^15^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;^ ^ ^ | 
					 | 
				
			||||||
44174^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^ | 
					 | 
				
			||||||
44175^tablestylesheet^121^0^0^100^200^1^char^200^1^1^<<SQL>> select distinct filename,X.caption from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=44160^ ^<<SQL>> select filename,X.caption from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=44160 order by ord limit 1^ | 
					 | 
				
			||||||
44176^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'^ | 
					 | 
				
			||||||
44177^Grafik^1000^300^-1^170^150^1^char^30^0^1^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44160 order by 2;^^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44160 order by 2 limit 1^ | 
					 | 
				
			||||||
44178^##line##^30^0^0^100^100^1^char^5000^0^8^^ ^1^ | 
					 | 
				
			||||||
44179^##line##^40^0^0^100^100^1^char^5000^0^8^^ ^1^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
44160^120^ | 
					 | 
				
			||||||
@ -1,19 +0,0 @@ | 
				
			|||||||
44160^44160^ | 
					 | 
				
			||||||
44160^44161^ | 
					 | 
				
			||||||
44160^44162^ | 
					 | 
				
			||||||
44160^44163^ | 
					 | 
				
			||||||
44160^44164^ | 
					 | 
				
			||||||
44160^44165^ | 
					 | 
				
			||||||
44160^44166^ | 
					 | 
				
			||||||
44160^44167^ | 
					 | 
				
			||||||
44160^44168^ | 
					 | 
				
			||||||
44160^44169^ | 
					 | 
				
			||||||
44160^44171^ | 
					 | 
				
			||||||
44160^44172^ | 
					 | 
				
			||||||
44160^44173^ | 
					 | 
				
			||||||
44160^44174^ | 
					 | 
				
			||||||
44160^44175^ | 
					 | 
				
			||||||
44160^44176^ | 
					 | 
				
			||||||
44160^44177^ | 
					 | 
				
			||||||
44160^44178^ | 
					 | 
				
			||||||
44160^44179^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
44160^Übergang Bachelor/Master (Flussdiagramm)^<sximport>select select_stmt from maskeninfo where tid=30190</sximport>^<sximport>select xil_proplist from maskeninfo where tid=30190</sximport>^Altersgruppe^Anzahl^Übergang Bachelor-Master als Flussdiagramm (Sankey)^<sximport>select cleanup_stmt from maskeninfo where tid=30190</sximport>^^3^700^360^^1^^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
120^44160^ | 
					 | 
				
			||||||
@ -1,40 +0,0 @@ | 
				
			|||||||
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 \ | 
					 | 
				
			||||||
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';^ | 
					 | 
				
			||||||
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.';^ | 
					 | 
				
			||||||
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 \ | 
					 | 
				
			||||||
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 2,'2-spaltig' from xdummy^ | 
					 | 
				
			||||||
44197^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^0^ ^^^ | 
					 | 
				
			||||||
44199^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;^ | 
					 | 
				
			||||||
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;^^^ | 
					 | 
				
			||||||
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;^^^ | 
					 | 
				
			||||||
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^ | 
					 | 
				
			||||||
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^ ^ | 
					 | 
				
			||||||
44208^Jahr^110^0^0^140^80^1^integer^30^0^13^ ^ ^ ^ | 
					 | 
				
			||||||
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^ | 
					 | 
				
			||||||
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;^ ^ ^ | 
					 | 
				
			||||||
44212^Kachelhöhe^310^0^0^100^15^1^integer^5000^0^0^^^600^ | 
					 | 
				
			||||||
44213^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^ | 
					 | 
				
			||||||
@ -1,23 +0,0 @@ | 
				
			|||||||
44190^44190^ | 
					 | 
				
			||||||
44190^44191^ | 
					 | 
				
			||||||
44190^44192^ | 
					 | 
				
			||||||
44190^44193^ | 
					 | 
				
			||||||
44190^44194^ | 
					 | 
				
			||||||
44190^44195^ | 
					 | 
				
			||||||
44190^44196^ | 
					 | 
				
			||||||
44190^44197^ | 
					 | 
				
			||||||
44190^44199^ | 
					 | 
				
			||||||
44190^44200^ | 
					 | 
				
			||||||
44190^44201^ | 
					 | 
				
			||||||
44190^44202^ | 
					 | 
				
			||||||
44190^44203^ | 
					 | 
				
			||||||
44190^44204^ | 
					 | 
				
			||||||
44190^44205^ | 
					 | 
				
			||||||
44190^44206^ | 
					 | 
				
			||||||
44190^44207^ | 
					 | 
				
			||||||
44190^44208^ | 
					 | 
				
			||||||
44190^44209^ | 
					 | 
				
			||||||
44190^44210^ | 
					 | 
				
			||||||
44190^44211^ | 
					 | 
				
			||||||
44190^44212^ | 
					 | 
				
			||||||
44190^44213^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
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^^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
16^44190^ | 
					 | 
				
			||||||
@ -1,43 +0,0 @@ | 
				
			|||||||
44220^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_geschl_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_geschl_dashboard')\ | 
					 | 
				
			||||||
order by sortnr, caption limit 1\ | 
					 | 
				
			||||||
 ;^ | 
					 | 
				
			||||||
44221^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;^ | 
					 | 
				
			||||||
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;^ ^ ^ | 
					 | 
				
			||||||
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;^ | 
					 | 
				
			||||||
44226^Nur Endsemester^1000^0^0^140^80^1^integer^30^0^1^<<SQL>> select 1,'ja' from xdummy^Eintrag^ ^ | 
					 | 
				
			||||||
44227^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;^ | 
					 | 
				
			||||||
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;^ ^ ^ | 
					 | 
				
			||||||
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^ | 
					 | 
				
			||||||
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';^ | 
					 | 
				
			||||||
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';^ | 
					 | 
				
			||||||
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,17 +0,0 @@ | 
				
			|||||||
44220^44220^ | 
					 | 
				
			||||||
44220^44221^ | 
					 | 
				
			||||||
44220^44222^ | 
					 | 
				
			||||||
44220^44223^ | 
					 | 
				
			||||||
44220^44224^ | 
					 | 
				
			||||||
44220^44225^ | 
					 | 
				
			||||||
44220^44226^ | 
					 | 
				
			||||||
44220^44227^ | 
					 | 
				
			||||||
44220^44228^ | 
					 | 
				
			||||||
44220^44229^ | 
					 | 
				
			||||||
44220^44230^ | 
					 | 
				
			||||||
44220^44231^ | 
					 | 
				
			||||||
44220^44232^ | 
					 | 
				
			||||||
44220^44233^ | 
					 | 
				
			||||||
44220^44234^ | 
					 | 
				
			||||||
44220^44238^ | 
					 | 
				
			||||||
44220^44242^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
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>>;^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
16^44220^ | 
					 | 
				
			||||||
@ -1,43 +0,0 @@ | 
				
			|||||||
44250^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','sos_stud_astat')\ | 
					 | 
				
			||||||
and R.systeminfo_id=7)\ | 
					 | 
				
			||||||
and uniquename like  'sos_stud_ca12_staat%' or uniquename like 'sos_stud_hzb_staat%'\ | 
					 | 
				
			||||||
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','sos_stud_astat')\ | 
					 | 
				
			||||||
and R.systeminfo_id=7)\ | 
					 | 
				
			||||||
and uniquename like  'sos_stud_ca12_staat%' or uniquename like 'sos_stud_hzb_staat%'\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
limit 1\ | 
					 | 
				
			||||||
 ;^ | 
					 | 
				
			||||||
44251^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;^ | 
					 | 
				
			||||||
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;^ ^ ^ | 
					 | 
				
			||||||
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;^ | 
					 | 
				
			||||||
44257^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;^ | 
					 | 
				
			||||||
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;^ ^ ^ | 
					 | 
				
			||||||
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';^ | 
					 | 
				
			||||||
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';^ | 
					 | 
				
			||||||
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,16 +0,0 @@ | 
				
			|||||||
44250^44250^ | 
					 | 
				
			||||||
44250^44251^ | 
					 | 
				
			||||||
44250^44252^ | 
					 | 
				
			||||||
44250^44253^ | 
					 | 
				
			||||||
44250^44254^ | 
					 | 
				
			||||||
44250^44255^ | 
					 | 
				
			||||||
44250^44257^ | 
					 | 
				
			||||||
44250^44258^ | 
					 | 
				
			||||||
44250^44259^ | 
					 | 
				
			||||||
44250^44260^ | 
					 | 
				
			||||||
44250^44261^ | 
					 | 
				
			||||||
44250^44262^ | 
					 | 
				
			||||||
44250^44263^ | 
					 | 
				
			||||||
44250^44264^ | 
					 | 
				
			||||||
44250^44268^ | 
					 | 
				
			||||||
44250^44272^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
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>>;^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
16^44250^ | 
					 | 
				
			||||||
@ -1,43 +0,0 @@ | 
				
			|||||||
44280^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_fak_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_fak_dashboard')\ | 
					 | 
				
			||||||
order by sortnr, caption limit 1\ | 
					 | 
				
			||||||
 ;^ | 
					 | 
				
			||||||
44281^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;^ | 
					 | 
				
			||||||
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;^ ^ ^ | 
					 | 
				
			||||||
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;^ | 
					 | 
				
			||||||
44286^Nur Endsemester^1000^0^0^140^80^1^integer^30^0^1^<<SQL>> select 1,'ja' from xdummy^Eintrag^ ^ | 
					 | 
				
			||||||
44287^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;^ | 
					 | 
				
			||||||
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;^ ^ ^ | 
					 | 
				
			||||||
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^ | 
					 | 
				
			||||||
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';^ | 
					 | 
				
			||||||
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';^ | 
					 | 
				
			||||||
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,17 +0,0 @@ | 
				
			|||||||
44280^44280^ | 
					 | 
				
			||||||
44280^44281^ | 
					 | 
				
			||||||
44280^44282^ | 
					 | 
				
			||||||
44280^44283^ | 
					 | 
				
			||||||
44280^44284^ | 
					 | 
				
			||||||
44280^44285^ | 
					 | 
				
			||||||
44280^44286^ | 
					 | 
				
			||||||
44280^44287^ | 
					 | 
				
			||||||
44280^44288^ | 
					 | 
				
			||||||
44280^44289^ | 
					 | 
				
			||||||
44280^44290^ | 
					 | 
				
			||||||
44280^44291^ | 
					 | 
				
			||||||
44280^44292^ | 
					 | 
				
			||||||
44280^44293^ | 
					 | 
				
			||||||
44280^44294^ | 
					 | 
				
			||||||
44280^44298^ | 
					 | 
				
			||||||
44280^44302^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
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>>;^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
16^44280^ | 
					 | 
				
			||||||
@ -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,37 +0,0 @@ | 
				
			|||||||
44510^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'\ | 
					 | 
				
			||||||
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='sos_stud_astat'\ | 
					 | 
				
			||||||
and R.systeminfo_id=7) and uniquename='sos_stud_sem_jahr';^ | 
					 | 
				
			||||||
44511^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;^ | 
					 | 
				
			||||||
44512^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;^ ^ ^ | 
					 | 
				
			||||||
44513^Abschluss^40^0^0^100^200^3^char^1500^0^1^<<SQL>> select apnr, druck from cifx where key=35 order by 2;^ ^ ^ | 
					 | 
				
			||||||
44514^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^13^^ ^1^ | 
					 | 
				
			||||||
44515^Grafik^4000^300^-1^170^150^1^char^30^0^1^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44510 order by 2;^^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=44510 order by 2 limit 1;^ | 
					 | 
				
			||||||
44516^Hochschulzugangsberechtigung^120^300^-1^200^200^1^sql^30^0^1^hs_zugangsber^apnr, eintrag^ ^ | 
					 | 
				
			||||||
44517^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;^ | 
					 | 
				
			||||||
44518^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;^ ^ ^ | 
					 | 
				
			||||||
44519^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;^ ^ ^ | 
					 | 
				
			||||||
44520^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=44510 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=44510 order by ord limit 1^ | 
					 | 
				
			||||||
44521^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';^ | 
					 | 
				
			||||||
44522^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';^ | 
					 | 
				
			||||||
44528^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';^ | 
					 | 
				
			||||||
44532^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,15 +0,0 @@ | 
				
			|||||||
44510^44510^ | 
					 | 
				
			||||||
44510^44511^ | 
					 | 
				
			||||||
44510^44512^ | 
					 | 
				
			||||||
44510^44513^ | 
					 | 
				
			||||||
44510^44514^ | 
					 | 
				
			||||||
44510^44515^ | 
					 | 
				
			||||||
44510^44516^ | 
					 | 
				
			||||||
44510^44517^ | 
					 | 
				
			||||||
44510^44518^ | 
					 | 
				
			||||||
44510^44519^ | 
					 | 
				
			||||||
44510^44520^ | 
					 | 
				
			||||||
44510^44521^ | 
					 | 
				
			||||||
44510^44522^ | 
					 | 
				
			||||||
44510^44528^ | 
					 | 
				
			||||||
44510^44532^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
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>>;^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
16^44510^ | 
					 | 
				
			||||||
@ -1,28 +0,0 @@ | 
				
			|||||||
44540^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^50^1^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';^ | 
					 | 
				
			||||||
44541^Seit Semester^3^0^0^140^80^1^integer^30^1^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;^ | 
					 | 
				
			||||||
44542^Stichtag^1^350^-1^140^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';^ | 
					 | 
				
			||||||
44543^Fächer^8^0^0^140^200^6^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^^^ | 
					 | 
				
			||||||
44544^Status^10^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.';^ | 
					 | 
				
			||||||
44545^Hörerstatus^15^0^0^140^170^1^sql^30^1^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus  where eintrag='alle';^ | 
					 | 
				
			||||||
44547^bis Fachsemester^16^350^-1^140^100^1^integer^30^0^0^^^^ | 
					 | 
				
			||||||
44548^Abschluss^7^350^-1^140^190^4^char^30^0^12^<<SQL>> select tid from sichten where art='SOS-Abschluss-Sicht' order by 1;^^^ | 
					 | 
				
			||||||
44549^Bis Semester^4^350^-1^140^80^1^integer^30^1^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;^ | 
					 | 
				
			||||||
44550^Filter Studierende^120^350^-1^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;^^^ | 
					 | 
				
			||||||
44551^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;^^^ | 
					 | 
				
			||||||
44552^Filter bis Ebene^125^0^0^140^20^1^integer^30^0^0^^^^ | 
					 | 
				
			||||||
44553^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') and aktiv=1 order by 3,2;^^^ | 
					 | 
				
			||||||
44555^In der RSZ^14^330^-1^130^100^1^sql^30^0^1^<<SQL>> select wert, name  from aggregierung where kategorie='RSZ-Filter';^^^ | 
					 | 
				
			||||||
44556^##line##^13^0^0^100^100^1^char^5000^0^8^^^1^ | 
					 | 
				
			||||||
44557^##line##^115^0^0^100^100^1^char^5000^0^8^^^1^ | 
					 | 
				
			||||||
@ -1,16 +0,0 @@ | 
				
			|||||||
44540^44540^ | 
					 | 
				
			||||||
44540^44541^ | 
					 | 
				
			||||||
44540^44542^ | 
					 | 
				
			||||||
44540^44543^ | 
					 | 
				
			||||||
44540^44544^ | 
					 | 
				
			||||||
44540^44545^ | 
					 | 
				
			||||||
44540^44547^ | 
					 | 
				
			||||||
44540^44548^ | 
					 | 
				
			||||||
44540^44549^ | 
					 | 
				
			||||||
44540^44550^ | 
					 | 
				
			||||||
44540^44551^ | 
					 | 
				
			||||||
44540^44552^ | 
					 | 
				
			||||||
44540^44553^ | 
					 | 
				
			||||||
44540^44555^ | 
					 | 
				
			||||||
44540^44556^ | 
					 | 
				
			||||||
44540^44557^ | 
					 | 
				
			||||||
@ -1,151 +0,0 @@ | 
				
			|||||||
44540^Studierende nach Semester und Studiengang^--Freemarker Template\ | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/>\ | 
					 | 
				
			||||||
<#include "SuperX_general"/>\ | 
					 | 
				
			||||||
<sqlvars>\ | 
					 | 
				
			||||||
<sqlvar name="semesterliste" type="hashsequence"><![CDATA[\ | 
					 | 
				
			||||||
select tid as nr,eintrag as name from semester where 1=1\ | 
					 | 
				
			||||||
/* and tid >= <<Seit Semester>> */\ | 
					 | 
				
			||||||
/* and tid <= <<Bis Semester>> */\ | 
					 | 
				
			||||||
order by 1 desc;\ | 
					 | 
				
			||||||
 ]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
</sqlvars>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign feldtyp="integer" />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign maxEbene=20 />\ | 
					 | 
				
			||||||
<#if '<<Filter bis Ebene>>' != ''>\ | 
					 | 
				
			||||||
<#assign maxEbene='<<Filter bis Ebene>>'?number />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign lehr_stg_ab="lehr_stg_ab"/>\ | 
					 | 
				
			||||||
<#assign quelltabelle='sos_stg_aggr'/>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
-- ##################################################\ | 
					 | 
				
			||||||
-- ##### Zwischentabelle #############\ | 
					 | 
				
			||||||
-- ##################################################\ | 
					 | 
				
			||||||
-- 1. FS start Datentabelle\ | 
					 | 
				
			||||||
<@selectintotmp \ | 
					 | 
				
			||||||
select="S.tid_stg,S.sem_rueck_beur_ein,S.geschlecht,sum(summe) as summe"\ | 
					 | 
				
			||||||
source=quelltabelle+" S, "+lehr_stg_ab+" L"\ | 
					 | 
				
			||||||
target="tmp_zwischen"> \ | 
					 | 
				
			||||||
 where \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
 <<Köpfe oder Fälle ?>>\ | 
					 | 
				
			||||||
  and <<Hörerstatus>>\ | 
					 | 
				
			||||||
and S.sem_rueck_beur_ein between <<Seit Semester>> and <<Bis Semester>>\ | 
					 | 
				
			||||||
and 's_' || L.tid in <@printkeys Studiengang.allNeededKeysList/>\ | 
					 | 
				
			||||||
/* and L.stg in <@printkeys Fächer.allNeededKeysList/> --<<Fächer>> */ \ | 
					 | 
				
			||||||
/* AND S.fach_sem_zahl <= <<bis Fachsemester>> */\ | 
					 | 
				
			||||||
/* and S.stichtag = <<Stichtag>> */\ | 
					 | 
				
			||||||
/* and L.abschluss in (<<Abschluss>>) */ \ | 
					 | 
				
			||||||
and S.tid_stg = L.tid\ | 
					 | 
				
			||||||
/* and S.fach_sem_zahl <= <<In der RSZ>> */\ | 
					 | 
				
			||||||
/* and kz_rueck_beur_ein in(<<Status>>) */\ | 
					 | 
				
			||||||
/* and geschlecht=<<Geschlecht>> */\ | 
					 | 
				
			||||||
/* and ca12_staat <<Staatsangehörigkeit>> */\ | 
					 | 
				
			||||||
/* and ${<<Filter Studierende>>} */\ | 
					 | 
				
			||||||
and S.sem_rueck_beur_ein >= L.semester_von \ | 
					 | 
				
			||||||
and S.sem_rueck_beur_ein <= L.semester_bis \ | 
					 | 
				
			||||||
group by 1,2,3\ | 
					 | 
				
			||||||
</@selectintotmp>\ | 
					 | 
				
			||||||
 <@informixnolog/>;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
-- Ausgabe-Tabelle\ | 
					 | 
				
			||||||
create temp table tmp_aggre\ | 
					 | 
				
			||||||
(ebene int,\ | 
					 | 
				
			||||||
struktur varchar(255),\ | 
					 | 
				
			||||||
text varchar(255),\ | 
					 | 
				
			||||||
sortnr int,\ | 
					 | 
				
			||||||
semester_nr integer,\ | 
					 | 
				
			||||||
semester_name varchar(255),\ | 
					 | 
				
			||||||
summe ${feldtyp},\ | 
					 | 
				
			||||||
summe_w ${feldtyp}\ | 
					 | 
				
			||||||
) <@informixnolog/>;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
-- ##################################################\ | 
					 | 
				
			||||||
-- ######## Inserts in die Tabelle ##################\ | 
					 | 
				
			||||||
-- ##################################################\ | 
					 | 
				
			||||||
--Start der Schleifenverarbeitung über Fächer im ausgewählten Baum, Reihenfolge genau wie im Baum\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if semesterliste?has_content>\ | 
					 | 
				
			||||||
<#assign sortnr=1>\ | 
					 | 
				
			||||||
<#foreach semester in semesterliste>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#foreach einElement in Studiengang.elements>\ | 
					 | 
				
			||||||
<@addcomment "############  Schleife Nr. " +  "${sortnr}" + " Element: " + "${einElement.name}" + " strukturStr: " + "${einElement.strukturStr}  ###########################"/>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--select '${einElement.name} - ${einElement.strukturStr}' from xdummy; \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if einElement.level <= maxEbene >\ | 
					 | 
				
			||||||
<#assign sortnr=sortnr+1>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
-- ########## Einfügen ####################\ | 
					 | 
				
			||||||
insert into tmp_aggre (ebene,\ | 
					 | 
				
			||||||
struktur,\ | 
					 | 
				
			||||||
text, \ | 
					 | 
				
			||||||
sortnr,\ | 
					 | 
				
			||||||
semester_nr,\ | 
					 | 
				
			||||||
semester_name,\ | 
					 | 
				
			||||||
summe,\ | 
					 | 
				
			||||||
summe_w\ | 
					 | 
				
			||||||
)\ | 
					 | 
				
			||||||
select ${einElement.level}::smallint,\ | 
					 | 
				
			||||||
'${einElement.strukturStr}'::char(50),\ | 
					 | 
				
			||||||
'${einElement.name}'::char(255),\ | 
					 | 
				
			||||||
${sortnr},\ | 
					 | 
				
			||||||
${semester.nr} as semester_nr,\ | 
					 | 
				
			||||||
'${semester.name}' as semester_name,\ | 
					 | 
				
			||||||
summe,\ | 
					 | 
				
			||||||
(case when geschlecht=2 then summe else 0 end) as summe_w\ | 
					 | 
				
			||||||
from tmp_zwischen S\ | 
					 | 
				
			||||||
where 's_' || tid_stg in ${einElement.subkeys}\ | 
					 | 
				
			||||||
and sem_rueck_beur_ein=${semester.nr}\ | 
					 | 
				
			||||||
;  \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#if> \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#foreach>--Studiengang Baum\ | 
					 | 
				
			||||||
</#foreach>--Semester\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
-- ##################################################\ | 
					 | 
				
			||||||
-- ######## Ende Inserts in die Tabelle #############\ | 
					 | 
				
			||||||
-- ##################################################\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
drop table tmp_zwischen;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
-- Endselect\ | 
					 | 
				
			||||||
select  ebene,\ | 
					 | 
				
			||||||
(case when ebene=1 then semester_name else text end) as text,\ | 
					 | 
				
			||||||
sum(summe) as summe,\ | 
					 | 
				
			||||||
sum(summe_w) as summe_w\ | 
					 | 
				
			||||||
  from tmp_aggre\ | 
					 | 
				
			||||||
  group by 1,2,sortnr\ | 
					 | 
				
			||||||
order by sortnr,2\ | 
					 | 
				
			||||||
 ;^XIL List\ | 
					 | 
				
			||||||
   sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
  drop_and_delete movable_columns\ | 
					 | 
				
			||||||
   white_space_color=COLOR_WHITE\ | 
					 | 
				
			||||||
fixed_columns=3\ | 
					 | 
				
			||||||
   min_heading_height=35\ | 
					 | 
				
			||||||
Column CID=0 heading_text="Ebene" explanation="" center_heading\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=7 text_size=20 \ | 
					 | 
				
			||||||
Column CID=1 heading_text="Studiengang" explanation="@@@sos_studiengang@@@" center_heading\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=40 text_size=60\ | 
					 | 
				
			||||||
Column CID=2 heading_text="Summe"  explanation="@@@sos_gesamt_stud@@@" center_heading\ | 
					 | 
				
			||||||
   row_selectable col_selectable rightJust heading_platform readonly\ | 
					 | 
				
			||||||
   width=8\ | 
					 | 
				
			||||||
Column CID=2 heading_text="Summe weiblich" explanation="@@@sos_durchschnittsalter@@@"  center_heading\ | 
					 | 
				
			||||||
   row_selectable col_selectable rightJust heading_platform readonly\ | 
					 | 
				
			||||||
   width=12\ | 
					 | 
				
			||||||
@@@^Altersgruppe^Anzahl^je Fach/Studiengang^drop table tmp_aggre;^^3^700^360^0^1^^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
16^44540^ | 
					 | 
				
			||||||
@ -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,26 +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^^ ^ ^ | 
					 | 
				
			||||||
44637^Dashboard^1000^300^-1^170^150^1^char^30^1^1^<<SQL>> select uniquename,uniquename from viz_dashboard order by 2;^ ^ ^ | 
					 | 
				
			||||||
44645^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M , macro_masken_bez B\ | 
					 | 
				
			||||||
where S.tid=M.stylesheet_id and M.maskeninfo_id =B.maskeninfo_id1 and B.maskeninfo_id2=44630 group by 1,2,ord order by ord^hidden^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M , macro_masken_bez B\ | 
					 | 
				
			||||||
where S.tid=M.stylesheet_id and M.maskeninfo_id =B.maskeninfo_id1 and B.maskeninfo_id2=44630 group by 1,2,ord 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,13 +0,0 @@ | 
				
			|||||||
44630^44630^ | 
					 | 
				
			||||||
44630^44631^ | 
					 | 
				
			||||||
44630^44632^ | 
					 | 
				
			||||||
44630^44633^ | 
					 | 
				
			||||||
44630^44634^ | 
					 | 
				
			||||||
44630^44635^ | 
					 | 
				
			||||||
44630^44636^ | 
					 | 
				
			||||||
44630^44637^ | 
					 | 
				
			||||||
44630^44645^ | 
					 | 
				
			||||||
44630^44647^ | 
					 | 
				
			||||||
44630^44649^ | 
					 | 
				
			||||||
44630^44650^ | 
					 | 
				
			||||||
44630^44653^ | 
					 | 
				
			||||||
@ -1,192 +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>\ | 
					 | 
				
			||||||
<sqlvar name="dashboard" type="hash"><![CDATA[ \ | 
					 | 
				
			||||||
select tid,\ | 
					 | 
				
			||||||
       uniquename,\ | 
					 | 
				
			||||||
       caption,\ | 
					 | 
				
			||||||
       maskeninfo_id,\ | 
					 | 
				
			||||||
       booklet_stylesheet,\ | 
					 | 
				
			||||||
       gridtitle_felderinfo_id\ | 
					 | 
				
			||||||
       from viz_dashboard \ | 
					 | 
				
			||||||
       where uniquename=<<Dashboard>>;\ | 
					 | 
				
			||||||
       ]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="dashboard_tabs" type="hashsequence"><![CDATA[ \ | 
					 | 
				
			||||||
select T.tid,\ | 
					 | 
				
			||||||
T.dashboard_id,\ | 
					 | 
				
			||||||
T.caption as name,\ | 
					 | 
				
			||||||
T.maskeninfo_id,\ | 
					 | 
				
			||||||
T.sortnr,\ | 
					 | 
				
			||||||
T.select_clause,\ | 
					 | 
				
			||||||
T.fact_table,\ | 
					 | 
				
			||||||
T.where_clause,\ | 
					 | 
				
			||||||
T.optional_filter_name ,\ | 
					 | 
				
			||||||
T.optional_filter_value ,\ | 
					 | 
				
			||||||
T.booklet_stylesheet\ | 
					 | 
				
			||||||
FROM viz_dashboard_tab T, viz_dashboard D\ | 
					 | 
				
			||||||
       where T.dashboard_id=D.tid\ | 
					 | 
				
			||||||
       and D.uniquename=<<Dashboard>>\ | 
					 | 
				
			||||||
       order by T.sortnr;\ | 
					 | 
				
			||||||
       ]]>\ | 
					 | 
				
			||||||
</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":"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"\ | 
					 | 
				
			||||||
},\ | 
					 | 
				
			||||||
{"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"\ | 
					 | 
				
			||||||
}\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
] />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
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),\ | 
					 | 
				
			||||||
gridtitle_felderinfo_id integer\ | 
					 | 
				
			||||||
);\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--erster Reiter:\ | 
					 | 
				
			||||||
insert into tmp_erg(\ | 
					 | 
				
			||||||
ord,\ | 
					 | 
				
			||||||
kennz,\ | 
					 | 
				
			||||||
--wert,\ | 
					 | 
				
			||||||
hidden_link_maskeninfo_id,\ | 
					 | 
				
			||||||
hidden_booklet_stylesheet,\ | 
					 | 
				
			||||||
--optional_filter_name,\ | 
					 | 
				
			||||||
--optional_filter_value\ | 
					 | 
				
			||||||
gridtitle_felderinfo_id\ | 
					 | 
				
			||||||
)\ | 
					 | 
				
			||||||
select 1,\ | 
					 | 
				
			||||||
'${VIZ_HS_KUERZEL} ${dashboard.caption}'  ,\ | 
					 | 
				
			||||||
${dashboard.maskeninfo_id},\ | 
					 | 
				
			||||||
'${dashboard.booklet_stylesheet}',\ | 
					 | 
				
			||||||
val('${dashboard.gridtitle_felderinfo_id}')\ | 
					 | 
				
			||||||
from xdummy;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign ord=1 />\ | 
					 | 
				
			||||||
<#foreach kennzahl in dashboard_tabs>\ | 
					 | 
				
			||||||
<#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.select_clause},\ | 
					 | 
				
			||||||
${kennzahl.maskeninfo_id},\ | 
					 | 
				
			||||||
'${kennzahl.optional_filter_name}',\ | 
					 | 
				
			||||||
'${kennzahl.optional_filter_value}',\ | 
					 | 
				
			||||||
'${kennzahl.booklet_stylesheet}'\ | 
					 | 
				
			||||||
from ${kennzahl.fact_table}\ | 
					 | 
				
			||||||
where ${filter}\ | 
					 | 
				
			||||||
and 's_' || tid_stg  in <@printkeys Studiengang.allNeededKeysList/>\ | 
					 | 
				
			||||||
and ${kennzahl.where_clause}\ | 
					 | 
				
			||||||
group by 1,2;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
select ord,\ | 
					 | 
				
			||||||
kennz,\ | 
					 | 
				
			||||||
wert,\ | 
					 | 
				
			||||||
hidden_link_maskeninfo_id,\ | 
					 | 
				
			||||||
hidden_optional_filter_name,\ | 
					 | 
				
			||||||
hidden_optional_filter_value,\ | 
					 | 
				
			||||||
hidden_booklet_stylesheet,\ | 
					 | 
				
			||||||
gridtitle_felderinfo_id as hiddengridtitle_felderinfo_id\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
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\ | 
					 | 
				
			||||||
Column CID=0 heading_text="Titel (Grid)" 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;^hidden^<<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;^hidden^<<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^^^400^ | 
					 | 
				
			||||||
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 und Absolvierende 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^ | 
					 | 
				
			||||||
Some files were not shown because too many files have changed in this diff Show More
					Loading…
					
					
				
		Reference in new issue