Compare commits
1 Commits
master
...
viz_worldm
Author | SHA1 | Date |
---|---|---|
|
45cc4d7d9e | 8 months ago |
113 changed files with 16396 additions and 17414 deletions
@ -1,461 +1 @@
@@ -1,461 +1 @@
|
||||
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^ ^ |
||||
44020^Studierende Datenblatt (Teiltabelle)^<sximport>select select_stmt from maskeninfo where tid=160440</sximport>^<sximport>select xil_proplist from maskeninfo where tid=160440</sximport>^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,22 +0,0 @@
@@ -1,22 +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>> select tid, eintrag from semester 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>> select tid, eintrag from semester 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 +0,0 @@
@@ -1 +0,0 @@
|
||||
44100^7^ |
@ -1,19 +0,0 @@
@@ -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 @@
@@ -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 @@
@@ -1 +0,0 @@
|
||||
16^44100^ |
@ -1,34 +0,0 @@
@@ -1,34 +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>> select tid, eintrag from semester 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>> select tid, eintrag from semester 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 +0,0 @@
@@ -1 +0,0 @@
|
||||
44130^7^ |
@ -1,18 +0,0 @@
@@ -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 @@
@@ -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 @@
@@ -1 +0,0 @@
|
||||
16^44130^ |
@ -1,39 +0,0 @@
@@ -1,39 +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>> select tid, eintrag from semester 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>> select tid, eintrag from semester 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 @@
@@ -1 +0,0 @@
|
||||
44160^120^ |
@ -1,19 +0,0 @@
@@ -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 @@
@@ -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 @@
@@ -1 +0,0 @@
|
||||
120^44160^ |
@ -1,25 +0,0 @@
@@ -1,25 +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>> select tid, eintrag from semester 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 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^ |
||||
44197^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^999^^^^ |
||||
44199^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||
44200^Filter Studierende^119^0^0^140^150^1^sql^20^0^999^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^^^ |
||||
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;^^^ |
||||
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^ |
||||
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^140^170^5^char^30^0^1^<<SQL>> select abint,dtxt from k_abint order by 2;^^^ |
||||
44212^Matrikel-Nr.^20^350^-1^150^180^1^char^200^0^13^^{InputCheck:matrikelnummern}^^ |
||||
44213^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^ |
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
44190^7^ |
@ -1,21 +0,0 @@
@@ -1,21 +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^44203^ |
||||
44190^44204^ |
||||
44190^44205^ |
||||
44190^44207^ |
||||
44190^44208^ |
||||
44190^44209^ |
||||
44190^44210^ |
||||
44190^44211^ |
||||
44190^44212^ |
||||
44190^44213^ |
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
44190^Studienanfänger_innen Übersicht^ ^ ^Altersgruppe^Anzahl^Studienanfänger_innen als Zeitreihe, nach Gesschlecht und Fakultät in verschiedenen Visualisierungen^drop table tmp_tabelle;^^3^700^360^0^1^^ |
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
16^44190^ |
@ -1,29 +0,0 @@
@@ -1,29 +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')\ |
||||
and R.systeminfo_id=7)\ |
||||
and uniquename in ('sos_stud_geschl')\ |
||||
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_geschl')\ |
||||
order by sortnr, caption limit 1\ |
||||
;^ |
||||
44221^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||
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^40^0^0^100^200^3^char^1500^0^1^<<SQL>> select apnr, druck from cifx where key=35 order by 2;^ ^ ^ |
||||
44224^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^13^^ ^ ^ |
||||
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;^ |
||||
44227^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||
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^ ^ ^ ^ |
||||
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 +0,0 @@
@@ -1 +0,0 @@
|
||||
44220^7^ |
@ -1,15 +0,0 @@
@@ -1,15 +0,0 @@
|
||||
44220^44220^ |
||||
44220^44221^ |
||||
44220^44222^ |
||||
44220^44223^ |
||||
44220^44224^ |
||||
44220^44225^ |
||||
44220^44227^ |
||||
44220^44228^ |
||||
44220^44229^ |
||||
44220^44230^ |
||||
44220^44231^ |
||||
44220^44232^ |
||||
44220^44233^ |
||||
44220^44238^ |
||||
44220^44242^ |
@ -1 +0,0 @@
@@ -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 @@
@@ -1 +0,0 @@
|
||||
16^44220^ |
@ -1,30 +0,0 @@
@@ -1,30 +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')\ |
||||
and R.systeminfo_id=7)\ |
||||
and uniquename in ('sos_stud_ca12_staat','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')\ |
||||
and R.systeminfo_id=7)\ |
||||
and uniquename in ('sos_stud_ca12_staat','sos_stud_hzb_staat')\ |
||||
order by sortnr, caption\ |
||||
limit 1\ |
||||
;^ |
||||
44251^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||
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>> select tid, eintrag from semester 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^ ^ ^ ^ |
||||
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 +0,0 @@
@@ -1 +0,0 @@
|
||||
44250^7^ |
@ -1,15 +0,0 @@
@@ -1,15 +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^44268^ |
||||
44250^44272^ |
@ -1 +0,0 @@
@@ -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 @@
@@ -1 +0,0 @@
|
||||
16^44250^ |
@ -1,29 +0,0 @@
@@ -1,29 +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')\ |
||||
and R.systeminfo_id=7)\ |
||||
and uniquename in ('sos_stud_fak')\ |
||||
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_fak')\ |
||||
order by sortnr, caption limit 1\ |
||||
;^ |
||||
44281^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||
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^1^<<SQL>> select apnr, druck from cifx where key=35 order by 2;^ ^ ^ |
||||
44284^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^13^^ ^ ^ |
||||
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;^ |
||||
44287^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||
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^ ^ ^ ^ |
||||
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 +0,0 @@
@@ -1 +0,0 @@
|
||||
44280^7^ |
@ -1,15 +0,0 @@
@@ -1,15 +0,0 @@
|
||||
44280^44280^ |
||||
44280^44281^ |
||||
44280^44282^ |
||||
44280^44283^ |
||||
44280^44284^ |
||||
44280^44285^ |
||||
44280^44287^ |
||||
44280^44288^ |
||||
44280^44289^ |
||||
44280^44290^ |
||||
44280^44291^ |
||||
44280^44292^ |
||||
44280^44293^ |
||||
44280^44298^ |
||||
44280^44302^ |
@ -1 +0,0 @@
@@ -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 @@
@@ -1 +0,0 @@
|
||||
16^44280^ |
@ -1,25 +0,0 @@
@@ -1,25 +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>> select tid, eintrag from semester 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>> select tid, eintrag from semester 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 +0,0 @@
@@ -1 +0,0 @@
|
||||
44510^7^ |
@ -1,15 +0,0 @@
@@ -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 @@
@@ -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 @@
@@ -1 +0,0 @@
|
||||
16^44510^ |
@ -1,16 +0,0 @@
@@ -1,16 +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>> select tid, eintrag from semester 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>> select tid, eintrag from semester 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 +0,0 @@
@@ -1 +0,0 @@
|
||||
44540^7^ |
@ -1,16 +0,0 @@
@@ -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 @@
@@ -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 @@
@@ -1 +0,0 @@
|
||||
16^44540^ |
@ -1,30 +0,0 @@
@@ -1,30 +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>> select tid, eintrag from semester 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>> select tid, eintrag from semester 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^999^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^^^ |
||||
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^ |
||||
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'\ |
||||
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';^ |
||||
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^140^170^5^char^30^0^1^<<SQL>> select abint,dtxt from k_abint order by 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 +0,0 @@
@@ -1 +0,0 @@
|
||||
44570^7^ |
@ -1,20 +0,0 @@
@@ -1,20 +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^44587^ |
||||
44570^44588^ |
||||
44570^44589^ |
||||
44570^44590^ |
||||
44570^44591^ |
||||
44570^44592^ |
||||
44570^44593^ |
@ -1 +0,0 @@
@@ -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 @@
@@ -1 +0,0 @@
|
||||
16^44570^ |
@ -1,29 +0,0 @@
@@ -1,29 +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')\ |
||||
and R.systeminfo_id=7)\ |
||||
and (uniquename like 'sos_stud_%_bland' 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')\ |
||||
and R.systeminfo_id=7)\ |
||||
and uniquename in ('sos_stud_hzb_bland')\ |
||||
order by sortnr, caption limit 1\ |
||||
;^ |
||||
44601^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||
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^1^<<SQL>> select apnr, druck from cifx where key=35 order by 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;^ |
||||
44607^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||
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^ ^ ^ ^ |
||||
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 +0,0 @@
@@ -1 +0,0 @@
|
||||
44600^7^ |
@ -1,15 +0,0 @@
@@ -1,15 +0,0 @@
|
||||
44600^44600^ |
||||
44600^44601^ |
||||
44600^44602^ |
||||
44600^44603^ |
||||
44600^44604^ |
||||
44600^44605^ |
||||
44600^44607^ |
||||
44600^44608^ |
||||
44600^44609^ |
||||
44600^44610^ |
||||
44600^44611^ |
||||
44600^44612^ |
||||
44600^44613^ |
||||
44600^44618^ |
||||
44600^44622^ |
@ -1 +0,0 @@
@@ -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 @@
@@ -1 +0,0 @@
|
||||
16^44600^ |
@ -1,13 +0,0 @@
@@ -1,13 +0,0 @@
|
||||
44630^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||
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^ ^ ^ ^ |
||||
44645^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=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^ |
||||
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;^ ^<<SQL>> SELECT 2,'2-spaltig' from xdummy;^ |
||||
44650^Kachelbreite^30^0^0^100^100^1^integer^5000^0^0^^^800^ |
||||
44653^Kachelhöhe^40^0^0^100^100^1^integer^5000^0^0^^^600^ |
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
44630^320^ |
@ -1,8 +0,0 @@
@@ -1,8 +0,0 @@
|
||||
44630^44630^ |
||||
44630^44631^ |
||||
44630^44632^ |
||||
44630^44645^ |
||||
44630^44647^ |
||||
44630^44649^ |
||||
44630^44650^ |
||||
44630^44653^ |
@ -1,117 +0,0 @@
@@ -1,117 +0,0 @@
|
||||
44630^Dashboard Kopfzeile^--Freemarker Template\ |
||||
<#include "SQL_lingua_franca"/>\ |
||||
<#include "SuperX_general"/>\ |
||||
--Freemarker Template\ |
||||
<sqlvars>\ |
||||
<sqlvar name="zul_antr_aggr_exists">\ |
||||
select sp_table_exists('zul_antr_aggr') from xdummy;\ |
||||
</sqlvar>\ |
||||
</sqlvars>\ |
||||
\ |
||||
\ |
||||
--Autor D. Quathamer 2024\ |
||||
<#assign jahr_filter="1=1" />\ |
||||
--Akad. Jahr 2022: WS + SS - Beispiel: WS 22/23 + SS 2023\ |
||||
<#if "<<Jahr>>" !="">\ |
||||
<#assign jahr_filter="(" />\ |
||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem_rueck_beur_ein from 5 for 1)='2' and val(substring('' || sem_rueck_beur_ein from 1 for 4))=<<Jahr>>)" />\ |
||||
<#assign jahr_filter=jahr_filter + " or "/>\ |
||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem_rueck_beur_ein from 5 for 1)='1' and (val(substring('' || sem_rueck_beur_ein from 1 for 4))-1)=<<Jahr>>)" />\ |
||||
<#assign jahr_filter=jahr_filter + ")" />\ |
||||
</#if>\ |
||||
\ |
||||
<#assign filter="1=1\ |
||||
/* and sem_rueck_beur_ein = <<Bis Semester>> */\ |
||||
" />\ |
||||
\ |
||||
<#assign filter= filter + " and " + jahr_filter />\ |
||||
\ |
||||
<#assign stg_filter = " and 's_' || tid_stg in "+Studiengang.allNeededKeysList /> \ |
||||
\ |
||||
create temp table tmp_erg(\ |
||||
ord integer,\ |
||||
kennz varchar(255),\ |
||||
wert integer,\ |
||||
link_maskeninfo_id integer\ |
||||
);\ |
||||
\ |
||||
<#if zul_antr_aggr_exists==1>\ |
||||
insert into tmp_erg(ord,kennz,wert)\ |
||||
select 1,'Bewerbungen',sum(summe)\ |
||||
from zul_antr_aggr A\ |
||||
where A.bewsem=<<Bis Semester>>\ |
||||
and A.stg in (select L.stg from lehr_stg_ab L where 's_' || L.tid in <@printkeys Studiengang.allNeededKeysList/>)\ |
||||
and A.abschl in (select L.abschluss from lehr_stg_ab L where 's_' || L.tid in <@printkeys Studiengang.allNeededKeysList/>)\ |
||||
group by 1,2;\ |
||||
</#if>\ |
||||
\ |
||||
\ |
||||
insert into tmp_erg(ord,kennz,wert)\ |
||||
select 10,'Studienanfänger*innen im 1. HS',sum(summe)\ |
||||
from sos_stg_aggr S, sos_stichtag I\ |
||||
where ${filter}\ |
||||
and S.studiengang_nr=1\ |
||||
and S.fach_nr=1\ |
||||
and S.stichtag=I.tid\ |
||||
and I.appl_key='0'\ |
||||
and 's_' || S.tid_stg in <@printkeys Studiengang.allNeededKeysList/>\ |
||||
and S.hssem=1\ |
||||
group by 1,2;\ |
||||
\ |
||||
\ |
||||
insert into tmp_erg(ord,kennz,wert)\ |
||||
select 20,'Studierende gesamt',sum(summe)\ |
||||
from sos_stg_aggr S, sos_stichtag I\ |
||||
where ${filter}\ |
||||
and S.studiengang_nr=1\ |
||||
and S.fach_nr=1\ |
||||
and S.stichtag=I.tid\ |
||||
and I.appl_key='0'\ |
||||
and 's_' || S.tid_stg in <@printkeys Studiengang.allNeededKeysList/>\ |
||||
group by 1,2;\ |
||||
\ |
||||
<#if TableFieldExists?exists && TableFieldExists('dim_studiengang','ist_lehramt')>\ |
||||
\ |
||||
insert into tmp_erg(ord,kennz,wert)\ |
||||
select 30,'Studierende im Lehramt',sum(summe)\ |
||||
from sos_stg_aggr S, sos_stichtag I, dim_studiengang D\ |
||||
where ${filter}\ |
||||
and S.studiengang_nr=1\ |
||||
and S.fach_nr=1\ |
||||
and S.stichtag=I.tid\ |
||||
and D.tid=S.tid_stg\ |
||||
and D.ist_lehramt=1\ |
||||
and I.appl_key='0'\ |
||||
and 's_' || S.tid_stg in <@printkeys Studiengang.allNeededKeysList/>\ |
||||
group by 1,2;\ |
||||
</#if>\ |
||||
\ |
||||
insert into tmp_erg(ord,kennz,wert)\ |
||||
select 30,'Absolvent*innen',sum(summe)\ |
||||
from sos_lab_aggr S, sos_stichtag I, dim_studiengang D\ |
||||
where S.sem_der_pruefung=<<Bis Semester>>\ |
||||
and S.studiengang_nr=1\ |
||||
and S.fach_nr=1\ |
||||
and S.stichtag=I.tid\ |
||||
and D.tid=S.tid_stg\ |
||||
and I.appl_key='2'\ |
||||
and 's_' || S.tid_stg in <@printkeys Studiengang.allNeededKeysList/>\ |
||||
group by 1,2;\ |
||||
\ |
||||
select kennz,wert,link_maskeninfo_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" explanation="" center_heading\ |
||||
row_selectable heading_platform readonly\ |
||||
width=10\ |
||||
Column CID=0 heading_text="Wert" explanation="" center_heading\ |
||||
row_selectable heading_platform readonly\ |
||||
width=30\ |
||||
Column CID=0 heading_text="Maske" explanation="" center_heading\ |
||||
row_selectable heading_platform readonly\ |
||||
width=30\ |
||||
@@@^ ^ ^Dashboard Inistialisierung^drop table tmp_erg;^^3^700^360^0^1^^ |
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
320^44630^ |
@ -1,45 +0,0 @@
@@ -1,45 +0,0 @@
|
||||
--freemarker template |
||||
<#include "RPTA-Makros"/> |
||||
<sqlvars> |
||||
<sqlvar name="rpta_installed"> |
||||
select count(*) from systeminfo where tid=330; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = |
||||
{"uniquename":"sos_stud_hmkfz_bland", |
||||
"caption":"Studierende nach Bundesland (Heimatanschrift)", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach Bundesland (Heimatanschrift)" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"hmkfz_bland", |
||||
"caption":"Bundesland (Heimatanschrift)", |
||||
"srcfieldname":"", |
||||
"targetfieldname":"hmkfz_bland", |
||||
"column_type":"logicalColumn", |
||||
"col_function":"case when (hmkfzkz=0 and hmkfz is not null and hmkfz<>-9999) then (select B.druck from sos_hzb_wohnsitz W, sos_k_bland B where W.bland=B.apnr and W.astat=hmkfz) else ''unbekannt/ außerhalb BRD'' end", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Bundesland (Heimatanschrift)" |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#if rpta_installed==1> |
||||
<@rpta_column_layout_fuellen /> |
||||
</#if> |
@ -1,45 +0,0 @@
@@ -1,45 +0,0 @@
|
||||
--freemarker template |
||||
<#include "RPTA-Makros"/> |
||||
<sqlvars> |
||||
<sqlvar name="rpta_installed"> |
||||
select count(*) from systeminfo where tid=330; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = |
||||
{"uniquename":"sos_stud_hzb_bland", |
||||
"caption":"Studierende nach Bundesland (HZB)", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach Bundesland (HZB" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"hzb_bland", |
||||
"caption":"Bundesland (HZB)", |
||||
"srcfieldname":"", |
||||
"targetfieldname":"hzb_bland", |
||||
"column_type":"logicalColumn", |
||||
"col_function":"case when (hzbkfzkz=0 and hzbkfz is not null and hzbkfz<>-9999 ) then (select B.druck from sos_hzb_wohnsitz W, sos_k_bland B where W.bland=B.apnr and W.astat=hzbkfz) else ''unbekannt/ außerhalb BRD'' end", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Bundesland (HZB)" |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#if rpta_installed==1> |
||||
<@rpta_column_layout_fuellen /> |
||||
</#if> |
@ -1,45 +0,0 @@
@@ -1,45 +0,0 @@
|
||||
--freemarker template |
||||
<#include "RPTA-Makros"/> |
||||
<sqlvars> |
||||
<sqlvar name="rpta_installed"> |
||||
select count(*) from systeminfo where tid=330; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = |
||||
{"uniquename":"sos_stud_semkfz_bland", |
||||
"caption":"Studierende nach Bundesland (Semesteranschrift)", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach Bundesland (Semesteranschrift)" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"semkfz_bland", |
||||
"caption":"Bundesland (Semesteranschrift)", |
||||
"srcfieldname":"", |
||||
"targetfieldname":"semkfz_bland", |
||||
"column_type":"logicalColumn", |
||||
"col_function":"case when (semkfzkz=0 and semkfz is not null and semkfz<>-9999) then (select B.druck from sos_hzb_wohnsitz W, sos_k_bland B where W.bland=B.apnr and W.astat=semkfz) else ''unbekannt/ außerhalb BRD'' end", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Bundesland (Semesteranschrift)" |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#if rpta_installed==1> |
||||
<@rpta_column_layout_fuellen /> |
||||
</#if> |
@ -1,63 +0,0 @@
@@ -1,63 +0,0 @@
|
||||
--freemarker template |
||||
<#include "RPTA-Makros"/> |
||||
<sqlvars> |
||||
<sqlvar name="rpta_installed"> |
||||
select count(*) from systeminfo where tid=330; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = {"uniquename":"sos_stud_fak", |
||||
"caption":"Studierende nach Fakultät", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach Fakultät" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"dim_studiengang_fak", |
||||
"caption":"Fakultät (Schlüssel)", |
||||
"srcfieldname":"dim_studiengang_fb", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"", |
||||
"is_visible":"1", |
||||
"visible_size":"10", |
||||
"is_aggregate":"0", |
||||
"description":"Fakultät (Schlüssel)" |
||||
}, |
||||
{"uniquename":"dim_studiengang_fak_str", |
||||
"caption":"Fakultät", |
||||
"srcfieldname":"dim_studiengang_fb_str", |
||||
"column_type":"lookupColumn", |
||||
"col_function":"select C.kurz from cifx C where C.key=90 and C.apnr=dim_studiengang_fb", |
||||
"is_visible":"1", |
||||
"visible_size":"10", |
||||
"is_aggregate":"0", |
||||
"description":"Fakultät (Name)" |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
}, |
||||
{"uniquename":"anteil", |
||||
"caption":"Anteil der Studierenden (in %)", |
||||
"srcfieldname":"", |
||||
"targetfieldname":"anteil", |
||||
"column_type":"computedColumn", |
||||
"col_function":"select (summe::float/(select G.summe from tmp_gesamt G)*100)::integer", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Anteil in % der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#if rpta_installed==1> |
||||
<@rpta_column_layout_fuellen /> |
||||
</#if> |
@ -1,54 +0,0 @@
@@ -1,54 +0,0 @@
|
||||
--freemarker template |
||||
<#include "RPTA-Makros"/> |
||||
<sqlvars> |
||||
<sqlvar name="rpta_installed"> |
||||
select count(*) from systeminfo where tid=330; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = {"uniquename":"sos_stud_fak_geschl", |
||||
"caption":"Studierende nach Fak. und Geschlecht", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach Fak. und Geschlecht" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"dim_studiengang_fak", |
||||
"caption":"Fakultät", |
||||
"srcfieldname":"dim_studiengang_fb_str", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"", |
||||
"is_visible":"1", |
||||
"visible_size":"10", |
||||
"is_aggregate":"0", |
||||
"description":"Fakultät" |
||||
}, |
||||
{"uniquename":"geschlecht_w", |
||||
"caption":"Geschlecht (weiblich)", |
||||
"srcfieldname":"geschlecht", |
||||
"targetfieldname":"", |
||||
"column_type":"logicalColumn", |
||||
"col_function":"case when geschlecht=2 then ''Weiblich''::varchar(255) else ''Nicht weiblich''::varchar(255) end", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Geschlecht weiblich" |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#if rpta_installed==1> |
||||
<@rpta_column_layout_fuellen /> |
||||
</#if> |
@ -1,54 +0,0 @@
@@ -1,54 +0,0 @@
|
||||
--freemarker template |
||||
<#include "RPTA-Makros"/> |
||||
<sqlvars> |
||||
<sqlvar name="rpta_installed"> |
||||
select count(*) from systeminfo where tid=330; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = {"uniquename":"sos_stud_fak_sem", |
||||
"caption":"Studierende nach Fak. und Semester", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach Fak. und Semester" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"dim_studiengang_fak", |
||||
"caption":"Fakultät", |
||||
"srcfieldname":"dim_studiengang_fb_str", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"", |
||||
"is_visible":"1", |
||||
"visible_size":"10", |
||||
"is_aggregate":"0", |
||||
"description":"Fakultät" |
||||
}, |
||||
{"uniquename":"sem_rueck_beur_ein", |
||||
"caption":"Semester", |
||||
"srcfieldname":"sem_rueck_beur_ein", |
||||
"targetfieldname":"", |
||||
"column_type":"logicalColumn", |
||||
"col_function":"substring(sem_rueck_beur_ein::varchar(255) from 1 for 4)", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Semester" |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#if rpta_installed==1> |
||||
<@rpta_column_layout_fuellen /> |
||||
</#if> |
@ -1,68 +0,0 @@
@@ -1,68 +0,0 @@
|
||||
--freemarker template |
||||
<#include "RPTA-Makros"/> |
||||
<sqlvars> |
||||
<sqlvar name="rpta_installed"> |
||||
select count(*) from systeminfo where tid=330; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = |
||||
{"uniquename":"sos_stud_geschl", |
||||
"caption":"Studierende nach Geschlecht", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach Geschlecht" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"geschlecht", |
||||
"caption":"Geschlecht (Schlüssel)", |
||||
"srcfieldname":"geschlecht", |
||||
"targetfieldname":"geschlecht", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"", |
||||
"is_visible":"0", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Geschlecht" |
||||
},{"uniquename":"geschlecht_str", |
||||
"caption":"Geschlecht", |
||||
"srcfieldname":"", |
||||
"targetfieldname":"geschlecht_str", |
||||
"column_type":"lookupColumn", |
||||
"col_function":"select druck from sos_k_geschl GE where GE.apnr=geschlecht", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Geschlecht" |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"targetfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
}, |
||||
{"uniquename":"anteil", |
||||
"caption":"Anteil der Studierenden (in %)", |
||||
"srcfieldname":"", |
||||
"targetfieldname":"anteil", |
||||
"column_type":"computedColumn", |
||||
"col_function":"select (summe::float/(select G.summe from tmp_gesamt G)*100)::integer", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Anteil in % der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#if rpta_installed==1> |
||||
<@rpta_column_layout_fuellen /> |
||||
</#if> |
@ -1,45 +0,0 @@
@@ -1,45 +0,0 @@
|
||||
--freemarker template |
||||
<#include "RPTA-Makros"/> |
||||
<sqlvars> |
||||
<sqlvar name="rpta_installed"> |
||||
select count(*) from systeminfo where tid=330; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = |
||||
{"uniquename":"sos_stud_geschl", |
||||
"caption":"Studierende nach Geschlecht", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach Geschlecht" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"geschlecht_w", |
||||
"caption":"Geschlecht (weiblich)", |
||||
"srcfieldname":"geschlecht", |
||||
"targetfieldname":"", |
||||
"column_type":"logicalColumn", |
||||
"col_function":"case when geschlecht=2 then ''Weiblich''::varchar(255) else ''Nicht weiblich''::varchar(255) end", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Geschlecht weiblich" |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#if rpta_installed==1> |
||||
<@rpta_column_layout_fuellen /> |
||||
</#if> |
@ -1,45 +0,0 @@
@@ -1,45 +0,0 @@
|
||||
--freemarker template |
||||
<#include "RPTA-Makros"/> |
||||
<sqlvars> |
||||
<sqlvar name="rpta_installed"> |
||||
select count(*) from systeminfo where tid=330; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = |
||||
{"uniquename":"sos_stud_hzb_staat", |
||||
"caption":"Studierende nach Staat der HZB", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach Staat der HZB" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"hzbstaat_iso3", |
||||
"caption":"Staat der HZB", |
||||
"srcfieldname":"hzbkfz", |
||||
"targetfieldname":"staat_iso3", |
||||
"column_type":"lookupColumn", |
||||
"col_function":"select I.iso3 from viz_staat_isocode I where I.astat=hzbkfz and hzbkfzkz=1 union select I.iso3 from viz_staat_isocode I where I.astat=0 and hzbkfzkz=0", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Staat (ISO Code)" |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#if rpta_installed==1> |
||||
<@rpta_column_layout_fuellen /> |
||||
</#if> |
@ -1,45 +0,0 @@
@@ -1,45 +0,0 @@
|
||||
--freemarker template |
||||
<#include "RPTA-Makros"/> |
||||
<sqlvars> |
||||
<sqlvar name="rpta_installed"> |
||||
select count(*) from systeminfo where tid=330; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = |
||||
{"uniquename":"sos_stud_hmkfz_lkreis", |
||||
"caption":"Studierende nach Landkreis (Heimatanschrift)", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach Landkreis (Heimatanschrift)" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"hmkfz_lkreis", |
||||
"caption":"Landkreis (Heimatanschrift)", |
||||
"srcfieldname":"", |
||||
"targetfieldname":"hmkfz_lkreis", |
||||
"column_type":"logicalColumn", |
||||
"col_function":"case when (hmkfzkz=0 and hmkfz is not null and hmkfz<>-9999) then (select text from sos_k_kfz where ikfz::integer=hmkfz) else ''unbekannt/ außerhalb BRD'' end", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Landkreis (Heimatanschrift)" |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#if rpta_installed==1> |
||||
<@rpta_column_layout_fuellen /> |
||||
</#if> |
@ -1,45 +0,0 @@
@@ -1,45 +0,0 @@
|
||||
--freemarker template |
||||
<#include "RPTA-Makros"/> |
||||
<sqlvars> |
||||
<sqlvar name="rpta_installed"> |
||||
select count(*) from systeminfo where tid=330; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = |
||||
{"uniquename":"sos_stud_hzb_lkreis", |
||||
"caption":"Studierende nach Landkreis (HZB)", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach Landkreis (HZB)" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"hzb_lkreis", |
||||
"caption":"Landkreis (HZB)", |
||||
"srcfieldname":"", |
||||
"targetfieldname":"hzb_lkreis", |
||||
"column_type":"logicalColumn", |
||||
"col_function":"case when (hzbkfzkz=0 and hzbkfz is not null and hzbkfz<>-9999 ) then (select text from sos_k_kfz where ikfz::integer=hzbkfz) else ''unbekannt/ außerhalb BRD'' end", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Landkreis (HZB)" |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#if rpta_installed==1> |
||||
<@rpta_column_layout_fuellen /> |
||||
</#if> |
@ -1,45 +0,0 @@
@@ -1,45 +0,0 @@
|
||||
--freemarker template |
||||
<#include "RPTA-Makros"/> |
||||
<sqlvars> |
||||
<sqlvar name="rpta_installed"> |
||||
select count(*) from systeminfo where tid=330; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = |
||||
{"uniquename":"sos_stud_semkfz_lkreis", |
||||
"caption":"Studierende nach Landkreis (Semesteranschrift)", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach Landkreis (Semesteranschrift)" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"semkfz_lkreis", |
||||
"caption":"Landkreis (Semesteranschrift)", |
||||
"srcfieldname":"", |
||||
"targetfieldname":"semkfz_lkreis", |
||||
"column_type":"logicalColumn", |
||||
"col_function":"case when (semkfzkz=0 and semkfz is not null and semkfz<>-9999) then (select text from sos_k_kfz where ikfz::integer=semkfz) else ''unbekannt/ außerhalb BRD'' end", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Landkreis (Semesteranschrift)" |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#if rpta_installed==1> |
||||
<@rpta_column_layout_fuellen /> |
||||
</#if> |
@ -1,77 +0,0 @@
@@ -1,77 +0,0 @@
|
||||
--freemarker template |
||||
<#include "RPTA-Makros"/> |
||||
<sqlvars> |
||||
<sqlvar name="sos_stud_astat_exists"> |
||||
select count(*) from rpta_resultset where uniquename='sos_stud_astat'; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = {"uniquename":"sos_stud_nach_alter", |
||||
"caption":"Studierende nach Alter", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach Alter" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"alter", |
||||
"caption":"Alter", |
||||
"srcfieldname":"alter", |
||||
"targetfieldname":"", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"", |
||||
"is_visible":"1", |
||||
"format_code":"INTEGER", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Alter in Jahren" |
||||
}, |
||||
{"uniquename":"geschlecht", |
||||
"caption":"Geschlecht", |
||||
"srcfieldname":"geschlecht", |
||||
"targetfieldname":"", |
||||
"column_type":"logicalColumn", |
||||
"col_function":"(select druck from cif where key=9003 and apnr=geschlecht)", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Geschlecht" |
||||
}, |
||||
{"uniquename":"geschlecht_schl", |
||||
"caption":"Geschlecht (Schlüssel)", |
||||
"srcfieldname":"geschlecht", |
||||
"targetfieldname":"geschlecht_schl", |
||||
"column_type":"logicalColumn", |
||||
"col_function":"geschlecht", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Geschlecht (Schlüssel)" |
||||
}, |
||||
{"uniquename":"matrikel_nr", |
||||
"caption":"Matrikelnummer", |
||||
"srcfieldname":"matrikel_nr", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"", |
||||
"is_visible":"1", |
||||
"format_code":"INT_NO_SEP", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Matrikelnr." |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<@rpta_column_layout_fuellen /> |
@ -1,246 +0,0 @@
@@ -1,246 +0,0 @@
|
||||
--freemarker template |
||||
<sqlvars> |
||||
<sqlvar name="rpta_installed"> |
||||
select count(*) from systeminfo where tid=330; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = |
||||
{"uniquename":"sos_stud_hzb_bland", |
||||
"caption":"Studierende nach HZB-Bundesland", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach HZB-Bundesland" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"hzb_bland", |
||||
"caption":"Bundesland (HZB)", |
||||
"srcfieldname":"", |
||||
"targetfieldname":"hzb_bland", |
||||
"column_type":"lookupColumn", |
||||
"col_function":"select B.druck from sos_hzb_wohnsitz W, sos_k_bland B where W.bland=B.apnr and W.astat=hzbkfz", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Bundesland (HZB)" |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#if rpta_installed==1> |
||||
---ab hier nicht mehr ändern: |
||||
|
||||
CREATE temp TABLE tmp_rpta_column |
||||
( |
||||
uniquename varchar(255) NOT NULL, |
||||
caption varchar(255), |
||||
srcfieldname varchar(255), |
||||
targetfieldname varchar(255), |
||||
column_type integer, |
||||
col_function text, |
||||
is_visible smallint, |
||||
visible_size smallint, |
||||
is_aggregate smallint, |
||||
resultset_id integer, |
||||
sortnr integer, |
||||
description TEXT |
||||
); |
||||
|
||||
CREATE temp TABLE tmp_rpta_column_layout |
||||
( |
||||
uniquename varchar(255) NOT NULL, |
||||
caption varchar(255), |
||||
resultset_id integer, |
||||
whereclause text, |
||||
description text |
||||
); |
||||
|
||||
insert into tmp_rpta_column_layout( |
||||
resultset_id, |
||||
uniquename, |
||||
caption, |
||||
whereclause, |
||||
description |
||||
) |
||||
select tid, |
||||
'${rpta_column_layout.uniquename}', |
||||
'${rpta_column_layout.caption}', |
||||
'${rpta_column_layout.whereclause}', |
||||
'${rpta_column_layout.description}' |
||||
FROM rpta_resultset |
||||
where uniquename='${rpta_column_layout.rpta_resultset}'; |
||||
|
||||
<#assign sortnr=0 /> |
||||
<#foreach column in rpta_columns> |
||||
<#assign sortnr=sortnr +1 /> |
||||
|
||||
INSERT INTO tmp_rpta_column |
||||
(resultset_id, |
||||
uniquename, |
||||
caption, |
||||
srcfieldname, |
||||
targetfieldname, |
||||
column_type, |
||||
col_function, |
||||
is_visible, |
||||
visible_size, |
||||
is_aggregate, |
||||
sortnr, |
||||
description |
||||
) |
||||
select R.tid, |
||||
'${column.uniquename}', |
||||
'${column.caption}', |
||||
'${column.srcfieldname}', |
||||
<#if !column.targetfieldname?exists || column.targetfieldname=="">null::varchar <#else>'${column.targetfieldname}' </#if>, |
||||
T.tid as column_type, |
||||
'${column.col_function}', |
||||
${column.is_visible}, |
||||
${column.visible_size}, |
||||
${column.is_aggregate}, |
||||
${sortnr*10}, |
||||
'${column.description}' |
||||
FROM rpta_resultset R, rpta_column_type T |
||||
where R.uniquename='${rpta_column_layout.rpta_resultset}' |
||||
and T.uniquename='${column.column_type}'; |
||||
|
||||
</#foreach> |
||||
|
||||
|
||||
select * into temp tmp_rpta_column2layout |
||||
from rpta_column2layout |
||||
where layout_id in (select L.tid |
||||
from rpta_column_layout L,rpta_resultset R |
||||
where R.tid=L.resultset_id |
||||
and R.uniquename='${rpta_column_layout.rpta_resultset}' |
||||
and L.uniquename='${rpta_column_layout.uniquename}' |
||||
) |
||||
; |
||||
|
||||
select * into temp tmp_rpta_column_layout_target |
||||
from rpta_column_layout |
||||
where resultset_id in (select tid |
||||
FROM rpta_resultset |
||||
where uniquename='${rpta_column_layout.rpta_resultset}') |
||||
and uniquename in (select uniquename from tmp_rpta_column_layout) |
||||
; |
||||
|
||||
insert into rpta_column_layout |
||||
(uniquename, |
||||
caption, |
||||
resultset_id, |
||||
whereclause, |
||||
description) |
||||
select uniquename, |
||||
caption, |
||||
resultset_id, |
||||
whereclause, |
||||
description |
||||
FROM tmp_rpta_column_layout T |
||||
where 0=(select count(*) from tmp_rpta_column_layout_target T2 |
||||
where T.uniquename=T2.uniquename); |
||||
|
||||
drop table tmp_rpta_column_layout_target; |
||||
|
||||
delete from rpta_column2layout |
||||
where layout_id in (select L.tid |
||||
from rpta_column_layout L,rpta_resultset R |
||||
where R.tid=L.resultset_id |
||||
and R.uniquename='${rpta_column_layout.rpta_resultset}' |
||||
and L.uniquename='${rpta_column_layout.uniquename}' |
||||
) |
||||
; |
||||
|
||||
select * into temp tmp_rpta_column2 |
||||
from tmp_rpta_column T |
||||
where (resultset_id,uniquename) not in |
||||
(select resultset_id,uniquename from rpta_column); |
||||
|
||||
INSERT INTO rpta_column |
||||
(resultset_id, |
||||
uniquename, |
||||
caption, |
||||
srcfieldname, |
||||
targetfieldname, |
||||
column_type, |
||||
col_function, |
||||
is_aggregate, |
||||
description, |
||||
custom |
||||
) |
||||
select |
||||
resultset_id, |
||||
uniquename, |
||||
caption, |
||||
srcfieldname, |
||||
targetfieldname, |
||||
column_type, |
||||
col_function, |
||||
is_aggregate, |
||||
description, |
||||
0 as custom |
||||
from tmp_rpta_column2; |
||||
|
||||
--evtl. neuen Satz einfügen, dann alle updaten |
||||
|
||||
update rpta_column set ( caption, |
||||
srcfieldname, |
||||
targetfieldname, |
||||
column_type, |
||||
col_function, |
||||
is_aggregate, |
||||
description) |
||||
= (select caption, |
||||
srcfieldname, |
||||
targetfieldname, |
||||
column_type, |
||||
col_function, |
||||
is_aggregate, |
||||
description |
||||
from tmp_rpta_column T |
||||
where T.resultset_id=rpta_column.resultset_id |
||||
and T.uniquename=rpta_column.uniquename) |
||||
where custom=0 |
||||
and (resultset_id,uniquename) in |
||||
(select T.resultset_id,T.uniquename |
||||
from tmp_rpta_column T) |
||||
; |
||||
|
||||
drop table tmp_rpta_column2; |
||||
|
||||
insert into rpta_column2layout(column_id, |
||||
layout_id, |
||||
sortnr, |
||||
is_visible, |
||||
visible_size, |
||||
caption, |
||||
description) |
||||
select C.tid as column_id, |
||||
L.tid as layout_id, |
||||
T.sortnr, |
||||
T.is_visible, |
||||
T.visible_size, |
||||
T.caption, |
||||
T.description |
||||
FROM rpta_column C, rpta_column_layout L, tmp_rpta_column T |
||||
where C.uniquename=T.uniquename |
||||
and C.resultset_id=T.resultset_id |
||||
and L.uniquename='${rpta_column_layout.uniquename}' |
||||
and L.resultset_id=T.resultset_id |
||||
; |
||||
drop table tmp_rpta_column; |
||||
drop TABLE tmp_rpta_column_layout; |
||||
drop TABLE tmp_rpta_column2layout; |
||||
</#if> |
@ -1,45 +0,0 @@
@@ -1,45 +0,0 @@
|
||||
--freemarker template |
||||
<#include "RPTA-Makros"/> |
||||
<sqlvars> |
||||
<sqlvar name="rpta_installed"> |
||||
select count(*) from systeminfo where tid=330; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = |
||||
{"uniquename":"sos_stud_ca12_staat", |
||||
"caption":"Studierende nach Staatsangehörigkeit", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach Staatsangehörigkeit" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"staat_iso3", |
||||
"caption":"Staatsangehörigkeit", |
||||
"srcfieldname":"ca12_staat", |
||||
"targetfieldname":"staat_iso3", |
||||
"column_type":"lookupColumn", |
||||
"col_function":"select I.iso3 from viz_staat_isocode I where I.astat=ca12_staat", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Staat (ISO Code)" |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#if rpta_installed==1> |
||||
<@rpta_column_layout_fuellen /> |
||||
</#if> |
@ -1,57 +0,0 @@
@@ -1,57 +0,0 @@
|
||||
--freemarker template |
||||
<#include "RPTA-Makros"/> |
||||
<sqlvars> |
||||
<sqlvar name="rpta_installed"> |
||||
select count(*) from systeminfo where tid=330; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = |
||||
{"uniquename":"sos_stud_sem", |
||||
"caption":"Studierende nach Semester", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach Semester" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"sem_rueck_beur_ein", |
||||
"caption":"Semester", |
||||
"srcfieldname":"sem_rueck_beur_ein", |
||||
"targetfieldname":"sem_rueck_beur_ein", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"", |
||||
"is_visible":"0", |
||||
"format_code":"TEXT", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"" |
||||
}, |
||||
{"uniquename":"semester_str", |
||||
"caption":"Semester Name", |
||||
"srcfieldname":"sem_rueck_beur_ein", |
||||
"targetfieldname":"semester_str", |
||||
"column_type":"lookupColumn", |
||||
"col_function":"select replace(replace(eintrag,''SoSe'',''''),''WiSe '','''') from semester SEM where SEM.tid=sem_rueck_beur_ein", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"" |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#if rpta_installed==1> |
||||
<@rpta_column_layout_fuellen /> |
||||
</#if> |
@ -1,57 +0,0 @@
@@ -1,57 +0,0 @@
|
||||
--freemarker template |
||||
<#include "RPTA-Makros"/> |
||||
<sqlvars> |
||||
<sqlvar name="rpta_installed"> |
||||
select count(*) from systeminfo where tid=330; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
<#assign rpta_column_layout = |
||||
{"uniquename":"sos_stud_sem_jahr", |
||||
"caption":"Studierende nach Studienjahr", |
||||
"rpta_resultset":"sos_stud_astat", |
||||
"whereclause":"", |
||||
"description":"Studierende nach Studienjahr" |
||||
} |
||||
/> |
||||
|
||||
<#assign rpta_columns = [ |
||||
{"uniquename":"jahr", |
||||
"caption":"Jahr", |
||||
"srcfieldname":"sem_rueck_beur_ein", |
||||
"targetfieldname":"jahr", |
||||
"column_type":"logicalColumn", |
||||
"col_function":"get_akad_jahr(sem_rueck_beur_ein,''A'')", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"(WS + darauffolgendes SS)" |
||||
}, |
||||
{"uniquename":"semestertyp", |
||||
"caption":"Semestertyp", |
||||
"srcfieldname":"sem_rueck_beur_ein", |
||||
"targetfieldname":"semestertyp", |
||||
"column_type":"logicalColumn", |
||||
"col_function":"(case when substring('''' || sem_rueck_beur_ein from 5 for 1)=''2'' then ''WiSe'' else ''SoSe'' end)::varchar(255) ", |
||||
"is_visible":"1", |
||||
"format_code":"", |
||||
"visible_size":"5", |
||||
"is_aggregate":"0", |
||||
"description":"Winter oder Sommersemester" |
||||
}, |
||||
{"uniquename":"summe", |
||||
"caption":"Anzahl der Studierenden", |
||||
"srcfieldname":"summe", |
||||
"column_type":"physicalColumn", |
||||
"col_function":"sum", |
||||
"is_visible":"1", |
||||
"visible_size":"5", |
||||
"is_aggregate":"1", |
||||
"description":"Summe der Studierenden" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#if rpta_installed==1> |
||||
<@rpta_column_layout_fuellen /> |
||||
</#if> |
File diff suppressed because one or more lines are too long
@ -1,240 +0,0 @@
@@ -1,240 +0,0 @@
|
||||
Südsudan^SSD^SS^278^ |
||||
Nordmazedonien^MKD^MK^144^ |
||||
Afghanistan^AFG^AF^423^ |
||||
Ägypten^EGY^EG^287^ |
||||
Albanien^ALB^AL^121^ |
||||
Algerien^DZA^DZ^221^ |
||||
Amerikanische Jungferninseln^VIR^VI^316^ |
||||
Amerikanische Überseeinseln, Kleinere^UMI^UM^534^ |
||||
Amerikanisch-Samoa^ASM^AS^517^ |
||||
Andorra^AND^AD^123^ |
||||
Angola^AGO^AO^223^ |
||||
Antigua und Barbuda^ATG^AG^320^ |
||||
Äquatorialguinea^GNQ^GQ^274^ |
||||
Argentinien^ARG^AR^323^ |
||||
Armenien^ARM^AM^422^ |
||||
Aruba^ABW^AW^311^ |
||||
Aserbaidschan^AZE^AZ^425^ |
||||
Äthiopien^ETH^ET^225^ |
||||
Australien^AUS^AU^523^ |
||||
Bahamas^BHS^BS^324^ |
||||
Bahrain^BHR^BH^424^ |
||||
Bangladesch^BGD^BD^460^ |
||||
Barbados^BRB^BB^322^ |
||||
Belarus (Weißrussland)^BLR^BY^169^ |
||||
Belgien^BEL^BE^124^ |
||||
Belize^BLZ^BZ^330^ |
||||
Benin^BEN^BJ^229^ |
||||
Bhutan^BTN^BT^426^ |
||||
Bolivien^BOL^BO^326^ |
||||
Bosnien und Herzegowina^BIH^BA^122^ |
||||
Botsuana^BWA^BW^227^ |
||||
Bouvetinsel^BVT^BV^522^ |
||||
Brasilien^BRA^BR^327^ |
||||
Britisches Territorium im Indischen Ozean^IOT^IO^185^ |
||||
Brunei Darussalam^BRN^BN^429^ |
||||
Bulgarien^BGR^BG^125^ |
||||
Burkina Faso^BFA^BF^258^ |
||||
Burundi^BDI^BI^291^ |
||||
Chile^CHL^CL^332^ |
||||
China^CHN^CN^479^ |
||||
Cookinseln^COK^CK^527^ |
||||
Costa Rica^CRI^CR^334^ |
||||
Cote d'Ivoire (Elfenbeinküste)^CIV^CI^231^ |
||||
Dänemark^DNK^DK^126^ |
||||
Deutschland^DEU^DE^0^ |
||||
Dominica^DMA^DM^333^ |
||||
Dominikanische Republik^DOM^DO^335^ |
||||
Dschibuti^DJI^DJ^230^ |
||||
Ecuador^ECU^EC^336^ |
||||
El Salvador^SLV^SV^337^ |
||||
Eritrea^ERI^ER^224^ |
||||
Estland^EST^EE^127^ |
||||
Färöer Inseln^FRO^FO^182^ |
||||
Fidschi^FJI^FJ^526^ |
||||
Finnland^FIN^FI^128^ |
||||
Frankreich^FRA^FR^129^ |
||||
Französische Südseegebiete^ATF^TF^542^ |
||||
Französisch-Guayana^GUF^GF^315^ |
||||
Französisch-Polynesien^PYF^PF^528^ |
||||
Gabun^GAB^GA^236^ |
||||
Gambia^GMB^GM^237^ |
||||
Georgien^GEO^GE^430^ |
||||
Ghana^GHA^GH^238^ |
||||
Gibraltar^GIB^GI^112^ |
||||
Grenada^GRD^GD^340^ |
||||
Griechenland^GRC^GR^134^ |
||||
Grönland^GRL^GL^342^ |
||||
Guadeloupe^GLP^GP^317^ |
||||
Guam^GUM^GU^529^ |
||||
Guatemala^GTM^GT^345^ |
||||
Guinea^GIN^GN^261^ |
||||
Guinea-Bissau^GNB^GW^259^ |
||||
Guyana^GUY^GY^328^ |
||||
Haiti^HTI^HT^346^ |
||||
Heard und die McDonaldinseln^HMD^HM^510^ |
||||
Honduras^HND^HN^347^ |
||||
Hongkong^HKG^HK^411^ |
||||
Indien^IND^IN^436^ |
||||
Indonesien^IDN^ID^437^ |
||||
Irak^IRQ^IQ^438^ |
||||
Iran^IRN^IR^439^ |
||||
Irland^IRL^IE^135^ |
||||
Island^ISL^IS^136^ |
||||
Israel^ISR^IL^441^ |
||||
Italien^ITA^IT^137^ |
||||
Jamaika^JAM^JM^355^ |
||||
Japan^JPN^JP^442^ |
||||
Jemen^YEM^YE^421^ |
||||
Jordanien^JOR^JO^445^ |
||||
Sudan^SDN^SD^277^ |
||||
Suriname^SUR^SR^364^ |
||||
Svalbard und Jan Mayen^SJM^SJ^116^ |
||||
Eswatini^SWZ^SZ^281^ |
||||
Syrien^SYR^SY^475^ |
||||
Tadschikistan^TJK^TJ^470^ |
||||
Taiwan (China)^TWN^TW^465^ |
||||
Tansania^TZA^TZ^282^ |
||||
Thailand^THA^TH^476^ |
||||
Togo^TGO^TG^283^ |
||||
Tokelau^TKL^TK^519^ |
||||
Tonga^TON^TO^541^ |
||||
Trinidad und Tobago^TTO^TT^371^ |
||||
Tschad^TCD^TD^284^ |
||||
Tschechien^CZE^CZ^164^ |
||||
Tunesien^TUN^TN^285^ |
||||
Türkei^TUR^TR^163^ |
||||
Turkmenistan^TKM^TM^471^ |
||||
Tuvalu^TUV^TV^540^ |
||||
Uganda^UGA^UG^286^ |
||||
Ukraine^UKR^UA^166^ |
||||
Ungarn^HUN^HU^165^ |
||||
Uruguay^URY^UY^365^ |
||||
Usbekistan^UZB^UZ^477^ |
||||
Vanuatu^VUT^VU^532^ |
||||
Vatikanstadt^VAT^VA^167^ |
||||
Venezuela^VEN^VE^367^ |
||||
Vereinigte Arabische Emirate^ARE^AE^469^ |
||||
Vereinigte Staaten (USA)^USA^US^368^ |
||||
Vereinigtes Königreich^GBR^GB^168^ |
||||
Vietnam^VNM^VN^432^ |
||||
Wallis und Futuna^WLF^WF^520^ |
||||
Weihnachtsinsel^CXR^CX^521^ |
||||
Zentralafrikanische Republik^CAF^CF^289^ |
||||
Zypern^CYP^CY^181^ |
||||
Staatenlos^---^ZZ^997^ |
||||
Serbien^SRB^RS^170^ |
||||
Kongo, Republik^COG^CG^245^ |
||||
Palästina^PSE^PS^459^ |
||||
Montenegro^MNE^ME^140^ |
||||
Staatsbürgerschaft ungeklärt^^XX^998^ |
||||
Kosovo^XKX^KSV^150^ |
||||
Kambodscha^KHM^KH^446^ |
||||
Kamerun^CMR^CM^262^ |
||||
Kanada^CAN^CA^348^ |
||||
Cabo Verde^CPV^CV^242^ |
||||
Kasachstan^KAZ^KZ^444^ |
||||
Katar^QAT^QA^447^ |
||||
Kenia^KEN^KE^243^ |
||||
Kirgisistan^KGZ^KG^450^ |
||||
Kiribati^KIR^KI^530^ |
||||
Kokosinseln (Keeling)^CCK^CC^512^ |
||||
Kolumbien^COL^CO^349^ |
||||
Komoren^COM^KM^244^ |
||||
Kongo, Demokratische Republik^COD^CD^246^ |
||||
Korea, Demokratische Volksrepublik^PRK^KP^434^ |
||||
Korea, Republik^KOR^KR^467^ |
||||
Kroatien^HRV^HR^130^ |
||||
Kuba^CUB^CU^351^ |
||||
Kuwait^KWT^KW^448^ |
||||
Laos^LAO^LA^449^ |
||||
Lesotho^LSO^LS^226^ |
||||
Lettland^LVA^LV^139^ |
||||
Libanon^LBN^LB^451^ |
||||
Liberia^LBR^LR^247^ |
||||
Libyen^LBY^LY^248^ |
||||
Liechtenstein^LIE^LI^141^ |
||||
Litauen^LTU^LT^142^ |
||||
Luxemburg^LUX^LU^143^ |
||||
Macau^MAC^MO^412^ |
||||
Madagaskar^MDG^MG^249^ |
||||
Malawi^MWI^MW^256^ |
||||
Malaysia^MYS^MY^482^ |
||||
Malediven^MDV^MV^454^ |
||||
Mali^MLI^ML^251^ |
||||
Malta^MLT^MT^145^ |
||||
Marianen, Nördliche^MNP^MP^514^ |
||||
Marokko^MAR^MA^252^ |
||||
Marshallinseln^MHL^MH^544^ |
||||
Martinique^MTQ^MQ^319^ |
||||
Mauretanien^MRT^MR^239^ |
||||
Mauritius^MUS^MU^253^ |
||||
Mayotte^MYT^YT^211^ |
||||
Mexiko^MEX^MX^353^ |
||||
Mikronesien (Föderierte Staaten von)^FSM^FM^545^ |
||||
Moldau^MDA^MD^146^ |
||||
Monaco^MCO^MC^147^ |
||||
Mongolei^MNG^MN^457^ |
||||
Mosambik^MOZ^MZ^254^ |
||||
Myanmar^MMR^MM^427^ |
||||
Namibia^NAM^NA^267^ |
||||
Nauru^NRU^NR^531^ |
||||
Nepal^NPL^NP^458^ |
||||
Neukaledonien^NCL^NC^513^ |
||||
Neuseeland^NZL^NZ^536^ |
||||
Nicaragua^NIC^NI^354^ |
||||
Niederlande^NLD^NL^148^ |
||||
Curaçao^CUW^AN^321^ |
||||
Niger^NER^NE^255^ |
||||
Nigeria^NGA^NG^232^ |
||||
Niue^NIU^NU^533^ |
||||
Norfolkinseln^NFK^NF^515^ |
||||
Norwegen^NOR^NO^149^ |
||||
Oman^OMN^OM^456^ |
||||
Österreich^AUT^AT^151^ |
||||
Timor-Leste^TMP^TP^483^ |
||||
Pakistan^PAK^PK^461^ |
||||
Palau^PLW^PW^537^ |
||||
Panama^PAN^PA^357^ |
||||
Papua-Neuguinea^PNG^PG^538^ |
||||
Paraguay^PRY^PY^359^ |
||||
Peru^PER^PE^361^ |
||||
Philippinen^PHL^PH^462^ |
||||
Polen^POL^PL^152^ |
||||
Portugal^PRT^PT^153^ |
||||
Puerto Rico^PRI^PR^325^ |
||||
Réunion^REU^RE^214^ |
||||
Ruanda^RWA^RW^265^ |
||||
Rumänien^ROU^RO^154^ |
||||
Russische Föderation^RUS^RU^160^ |
||||
Salomonen^SLB^SB^524^ |
||||
Sambia^ZMB^ZM^257^ |
||||
Samoa^WSM^WS^543^ |
||||
San Marino^SMR^SM^156^ |
||||
Sao Tomé und Principe^STP^ST^268^ |
||||
Saudi-Arabien^SAU^SA^472^ |
||||
Schweden^SWE^SE^157^ |
||||
Schweiz^CHE^CH^158^ |
||||
Senegal^SEN^SN^269^ |
||||
Seychellen^SYC^SC^271^ |
||||
Sierra Leone^SLE^SL^272^ |
||||
Simbabwe^ZWE^ZW^233^ |
||||
Singapur^SGP^SG^474^ |
||||
Slowakei^SVK^SK^155^ |
||||
Slowenien^SVN^SI^131^ |
||||
Somalia^SOM^SO^273^ |
||||
Spanien^ESP^ES^161^ |
||||
Sri Lanka^LKA^LK^431^ |
||||
St. Kitts und Nevis^KNA^KN^370^ |
||||
St. Lucia^LCA^LC^366^ |
||||
St. Pierre und Miquelon^SPM^PM^338^ |
||||
St. Vincent und die Grenadinen^VCT^VC^369^ |
||||
Südafrika^ZAF^ZA^263^ |
||||
Guernsey^GGY^GG^113^ |
||||
Jersey^JEY^JE^114^ |
||||
Insel Man^IMN^IM^115^ |
||||
Sint Maarten^SXM^SM1^341^ |
||||
Bonaire, Sint Eustatius, Saba^BES^BQ^344^ |
||||
Saint-Martin^MAF^SM2^331^ |
||||
Saint-Barthélemy^BLM^BL^329^ |
||||
unbekannt^^YY^999^ |
@ -1,14 +1,12 @@
@@ -1,14 +1,12 @@
|
||||
1^bar_x^Balkendiagramm (horizontal)^2^ ^ ^H^ ^^ |
||||
2^bar_y^Balkendiagramm (vertikal)^2^ ^ ^V^ ^^ |
||||
3^line^Linien (vertikal)^2^ ^ ^V^ ^^ |
||||
5^area_y^Flächendiagramm (vertikal)^2^^^V^ ^^ |
||||
6^dot^Punkte (vertikal)^2^^^V^ ^^ |
||||
7^box_x^Boxplot (horizontal)^2^ ^ ^H^ ^^ |
||||
8^area_x^Flächendiagramm (horizontal)^2^^^H^ ^^ |
||||
9^box_y^Boxplot (vertikal)^2^ ^ ^V^ ^^ |
||||
10^text^Wertelabel (vertikal)^2^ ^ ^V^ ^^ |
||||
11^bar_x_d3^Balken (horizontal)^1^^^H^^^ |
||||
12^sankey^Sankey^1^ ^^H^ ^^ |
||||
13^worldmap^Weltkarte^1^ ^^H^^^ |
||||
14^pie^Tortendiagramm^1^^^Z^ ^^ |
||||
15^sunburst^Sunburst-Diagramm^1^^^Z^ ^^ |
||||
1^bar_x^Balken (horizontal)^2^ ^ ^H^ |
||||
2^bar_y^Balken (vertikal)^2^ ^ ^V^ |
||||
3^line^Linien (vertikal)^2^ ^ ^V^ |
||||
5^area_y^Flächen (vertikal)^2^^^V^ |
||||
6^dot^Punkte (vertikal)^2^^^V^ |
||||
7^box_x^Boxplot (horizontal)^2^ ^ ^H^ |
||||
8^area_x^Flächen (horizontal)^2^^^H^ |
||||
9^box_y^Boxplot (vertikal)^2^ ^ ^V^ |
||||
10^text^Wertelabel^2^ ^ ^^ |
||||
11^bar_x_d3^Balken (horizontal)^1^^^H^ |
||||
12^sankey^Sankey^1^ ^^H^ |
||||
13^worldmap^Weltkarte^1^ ^^H^ |
||||
|
@ -1,647 +0,0 @@
@@ -1,647 +0,0 @@
|
||||
--Freemarker Template |
||||
<#include "SQL_lingua_franca"/> |
||||
<#include "SuperX_general"/> |
||||
|
||||
<sqlvars> |
||||
<sqlvar name="renderer"> |
||||
select tid from viz_renderer where uniquename='d3js'; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
|
||||
<#assign viz_types = [ |
||||
{"uniquename":"sankey", "caption":"Sankey", |
||||
"orientation":"H", |
||||
"description":"Horizontales Sankeydiagramm", |
||||
"explanation":""}, |
||||
{"uniquename":"pie", "caption":"Tortendiagramm", |
||||
"orientation":"Z", |
||||
"description":"Tortendiagramm", |
||||
"explanation":""}, |
||||
{"uniquename":"sunburst", "caption":"Sunburst-Diagramm", |
||||
"orientation":"Z", |
||||
"description":"Sunburst-Diagramm", |
||||
"explanation":""} |
||||
|
||||
] |
||||
/> |
||||
|
||||
<#assign viz_properties = [ |
||||
{ "caption":"Dimension 1", |
||||
"prop_uniquename":"dimension1", |
||||
"explanation":"Dimension 1", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"SELECT", |
||||
"property_group_uniquename":"CATEGORY", |
||||
"sortnr":"608", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"string" |
||||
}, |
||||
{ "caption":"Dimension 2", |
||||
"prop_uniquename":"dimension2", |
||||
"explanation":"Dimension 2", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"SELECT", |
||||
"property_group_uniquename":"CATEGORY", |
||||
"sortnr":"609", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"string" |
||||
} |
||||
, |
||||
{ "caption":"Maß 1", |
||||
"prop_uniquename":"measure1", |
||||
"explanation":"Maß", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"SELECT", |
||||
"property_group_uniquename":"CATEGORY", |
||||
"sortnr":"610", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"string" |
||||
}, |
||||
{ "caption":"Innerer Radius", |
||||
"prop_uniquename":"innerRadius", |
||||
"explanation":"Innerer Radius bei Tortendiagrammen (Faktor in %). Bei 0 wird kein innerer Radius genutzt, ein Wert größer 0 macht das Tortendiagramm zum Donut.", |
||||
"prop_default":"0", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"LAYOUT", |
||||
"sortnr":"", |
||||
"range_from":"0", |
||||
"range_to":"100", |
||||
"prop_value_type":"string" |
||||
}, |
||||
{ "caption":"Beschriftung Radius", |
||||
"prop_uniquename":"labelRadiusFactor", |
||||
"explanation":"Beschrftungs-Radius Faktor bei Tortendiagrammen (Faktor in %). Bei 0 wird kein innerer Radius genutzt, ein Wert größer 0 macht das Tortendiagramm zum Donut.", |
||||
"prop_default":"80", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"LAYOUT", |
||||
"sortnr":"", |
||||
"range_from":"0", |
||||
"range_to":"100", |
||||
"prop_value_type":"string" |
||||
}, |
||||
{ "caption":"Kanten-Radius", |
||||
"prop_uniquename":"cornerRadius", |
||||
"explanation":"Ecken-Radius bei Tortendiagrammen (in Pixel). Bei 0 wird keine gerundete Kante genutzt, ein Wert größer 0 macht das Tortendiagramm zum Donut.", |
||||
"prop_default":"10", |
||||
"prop_unit":"px", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"LAYOUT", |
||||
"sortnr":"", |
||||
"range_from":"0", |
||||
"range_to":"50", |
||||
"prop_value_type":"string" |
||||
}, |
||||
{ "caption":"Label-Deckungsgrad", |
||||
"prop_uniquename":"labelOpacity", |
||||
"explanation":"Deckungsgrad Faktor bei Beschriftungen (Faktor in %). Bei 100 ist maximale Deckung erreicht", |
||||
"prop_default":"70", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"LAYOUT", |
||||
"sortnr":"", |
||||
"range_from":"0", |
||||
"range_to":"100", |
||||
"prop_value_type":"string" |
||||
} |
||||
|
||||
|
||||
] |
||||
/> |
||||
|
||||
<#assign viz_type_properties = [ |
||||
{ "viz_type_uniquename":"sankey", |
||||
"viz_property_uniquename":"dimension1", |
||||
"is_mandatory":"1", |
||||
"sortnr":"1"}, |
||||
{ "viz_type_uniquename":"sankey", |
||||
"viz_property_uniquename":"dimension2", |
||||
"is_mandatory":"1", |
||||
"sortnr":"10"}, |
||||
{ "viz_type_uniquename":"sankey", |
||||
"viz_property_uniquename":"measure1", |
||||
"is_mandatory":"1", |
||||
"sortnr":"20"}, |
||||
{ "viz_type_uniquename":"sankey", |
||||
"viz_property_uniquename":"fontSize", |
||||
"is_mandatory":"0", |
||||
"sortnr":"100"}, |
||||
{ "viz_type_uniquename":"sankey", |
||||
"viz_property_uniquename":"fontSize", |
||||
"is_mandatory":"0", |
||||
"sortnr":"100"}, |
||||
{ "viz_type_uniquename":"sankey", |
||||
"viz_property_uniquename":"fontFamily", |
||||
"is_mandatory":"0", |
||||
"sortnr":"110"}, |
||||
{ "viz_type_uniquename":"sankey", |
||||
"viz_property_uniquename":"color", |
||||
"is_mandatory":"0", |
||||
"sortnr":"120"}, |
||||
{ "viz_type_uniquename":"pie", |
||||
"viz_property_uniquename":"dimension1", |
||||
"is_mandatory":"1", |
||||
"sortnr":"1"}, |
||||
{ "viz_type_uniquename":"pie", |
||||
"viz_property_uniquename":"measure1", |
||||
"is_mandatory":"1", |
||||
"sortnr":"20"}, |
||||
{ "viz_type_uniquename":"pie", |
||||
"viz_property_uniquename":"width", |
||||
"is_mandatory":"1", |
||||
"sortnr":"30"}, |
||||
{ "viz_type_uniquename":"pie", |
||||
"viz_property_uniquename":"height", |
||||
"is_mandatory":"1", |
||||
"sortnr":"40"}, |
||||
{ "viz_type_uniquename":"pie", |
||||
"viz_property_uniquename":"innerRadius", |
||||
"is_mandatory":"1", |
||||
"sortnr":"50"}, |
||||
{ "viz_type_uniquename":"pie", |
||||
"viz_property_uniquename":"backgroundColor", |
||||
"is_mandatory":"1", |
||||
"sortnr":"45"}, |
||||
{ "viz_type_uniquename":"pie", |
||||
"viz_property_uniquename":"scheme", |
||||
"is_mandatory":"1", |
||||
"sortnr":"47"}, |
||||
{ "viz_type_uniquename":"pie", |
||||
"viz_property_uniquename":"cornerRadius", |
||||
"is_mandatory":"1", |
||||
"sortnr":"57"}, |
||||
{ "viz_type_uniquename":"pie", |
||||
"viz_property_uniquename":"labelRadiusFactor", |
||||
"is_mandatory":"1", |
||||
"sortnr":"67"}, |
||||
{ "viz_type_uniquename":"pie", |
||||
"viz_property_uniquename":"labelOpacity", |
||||
"is_mandatory":"0", |
||||
"sortnr":"77"}, |
||||
|
||||
{ "viz_type_uniquename":"sunburst", |
||||
"viz_property_uniquename":"dimension1", |
||||
"is_mandatory":"1", |
||||
"sortnr":"1"}, |
||||
{ "viz_type_uniquename":"sunburst", |
||||
"viz_property_uniquename":"dimension2", |
||||
"is_mandatory":"1", |
||||
"sortnr":"10"}, |
||||
{ "viz_type_uniquename":"sunburst", |
||||
"viz_property_uniquename":"measure1", |
||||
"is_mandatory":"1", |
||||
"sortnr":"20"} |
||||
] |
||||
/> |
||||
|
||||
<#assign viz_type_properties_general = [ |
||||
] |
||||
/> |
||||
|
||||
|
||||
|
||||
<@create_temp_tables /> |
||||
|
||||
<@fill_viz_properties /> |
||||
|
||||
<#foreach viz_type in viz_types> |
||||
|
||||
<@fill_viz_type_properties_general viz_type_p=viz_type /> |
||||
|
||||
<@fill_viz_type_properties viz_type_p=viz_type /> |
||||
|
||||
</#foreach> |
||||
|
||||
<@drop_temp_tables /> |
||||
|
||||
|
||||
<#macro fill_viz_type_properties_general viz_type_p> |
||||
select 'Befülle Grafikelement ${viz_type_p.caption}' from xdummy; |
||||
|
||||
delete from tmp_viz_type; |
||||
|
||||
insert into tmp_viz_type(tid, |
||||
uniquename, |
||||
caption, |
||||
renderer_id, |
||||
-- srcpath, |
||||
-- method, |
||||
orientation, |
||||
explanation) |
||||
select T.tid, |
||||
'${viz_type_p.uniquename}', |
||||
'${viz_type_p.caption}', |
||||
${renderer}, |
||||
'${viz_type_p.orientation}', |
||||
'${viz_type_p.explanation}' |
||||
from xdummy left outer join viz_type T on ( |
||||
T.uniquename='${viz_type_p.uniquename}' |
||||
and T.renderer_id=${renderer} |
||||
) |
||||
; |
||||
|
||||
insert into viz_type( |
||||
uniquename, |
||||
caption, |
||||
renderer_id, |
||||
-- srcpath, |
||||
-- method, |
||||
orientation) |
||||
select uniquename, |
||||
caption, |
||||
renderer_id, |
||||
-- srcpath, |
||||
-- method, |
||||
orientation |
||||
from tmp_viz_type T |
||||
where T.tid is null; |
||||
|
||||
|
||||
|
||||
update viz_type set |
||||
uniquename=T.uniquename, |
||||
caption=T.caption, |
||||
renderer_id=T.renderer_id, |
||||
-- srcpath, |
||||
-- method, |
||||
orientation=T.orientation, |
||||
explanation=T.explanation |
||||
from tmp_viz_type T |
||||
where T.tid=viz_type.tid |
||||
and viz_type.tid in (select distinct T.tid from tmp_viz_type); |
||||
|
||||
|
||||
|
||||
|
||||
delete from viz_type_property |
||||
where (viz_type_id, |
||||
viz_property_id) |
||||
in (select Y.tid as viz_type_id, |
||||
P.tid as viz_property_id |
||||
from tmp_viz_property T,viz_type Y, viz_property P |
||||
where Y.uniquename='${viz_type_p.uniquename}' |
||||
and Y.renderer_id=${renderer} |
||||
and P.prop_uniquename=T.prop_uniquename |
||||
and T.is_general=1) |
||||
|
||||
; |
||||
|
||||
insert into viz_type_property( |
||||
viz_type_id, |
||||
viz_property_id, |
||||
is_mandatory, |
||||
sortnr) |
||||
select Y.tid as viz_type_id, |
||||
P.tid as viz_property_id, |
||||
P.is_mandatory, |
||||
T.sortnr |
||||
from tmp_viz_property T,viz_type Y, viz_property P |
||||
where Y.uniquename='${viz_type_p.uniquename}' |
||||
and Y.renderer_id=${renderer} |
||||
and P.prop_uniquename=T.prop_uniquename |
||||
and T.is_general=1; |
||||
|
||||
|
||||
|
||||
</#macro> |
||||
|
||||
<#macro fill_viz_type_properties viz_type_p> |
||||
|
||||
<#foreach viz_prop in viz_type_properties> |
||||
<#if viz_prop.viz_type_uniquename==viz_type_p.uniquename > |
||||
|
||||
delete from viz_type_property |
||||
where (viz_type_id, |
||||
viz_property_id) |
||||
in (select Y.tid as viz_type_id, |
||||
P.tid as viz_property_id |
||||
from viz_type Y, viz_property P |
||||
where Y.uniquename='${viz_type_p.uniquename}' |
||||
and Y.renderer_id=${renderer} |
||||
and P.prop_uniquename='${viz_prop.viz_property_uniquename}') ; |
||||
|
||||
|
||||
insert into viz_type_property( |
||||
viz_type_id, |
||||
viz_property_id, |
||||
is_mandatory, |
||||
sortnr) |
||||
select Y.tid as viz_type_id, |
||||
P.tid as viz_property_id, |
||||
${viz_prop.is_mandatory}, |
||||
${viz_prop.sortnr} |
||||
from viz_type Y, viz_property P |
||||
where Y.uniquename='${viz_type_p.uniquename}' |
||||
and Y.renderer_id=${renderer} |
||||
and P.prop_uniquename='${viz_prop.viz_property_uniquename}' |
||||
; |
||||
|
||||
</#if> |
||||
</#foreach> |
||||
|
||||
</#macro> |
||||
|
||||
<#macro create_temp_tables> |
||||
CREATE temp TABLE tmp_viz_type |
||||
( |
||||
tid INTEGER , |
||||
uniquename varchar(255) NOT NULL, |
||||
caption varchar(255), |
||||
renderer_id integer, |
||||
srcpath varchar(255), |
||||
method varchar(255), |
||||
orientation char(1), |
||||
description text, |
||||
explanation text |
||||
); |
||||
|
||||
CREATE temp TABLE tmp_viz_type_property |
||||
( |
||||
tid serial NOT NULL, |
||||
viz_type_id integer, |
||||
viz_property_id integer, |
||||
is_mandatory smallint DEFAULT 0, |
||||
sortnr smallint DEFAULT 0 |
||||
); |
||||
|
||||
|
||||
CREATE temp TABLE tmp_viz_property_renderer |
||||
( |
||||
tid serial NOT NULL, |
||||
renderer_id integer NOT NULL, |
||||
property_id integer NOT NULL, |
||||
variable_name varchar(255) |
||||
); |
||||
|
||||
create temp table tmp_viz_property_group |
||||
( |
||||
tid serial NOT NULL, |
||||
uniquename varchar(255) NOT NULL, |
||||
caption varchar(255), |
||||
sortnr integer |
||||
); |
||||
|
||||
CREATE temp TABLE tmp_viz_property_group_renderer |
||||
( |
||||
tid serial NOT NULL, |
||||
renderer_id integer NOT NULL, |
||||
property_group_id integer NOT NULL, |
||||
variable_name varchar(255) |
||||
); |
||||
|
||||
|
||||
|
||||
CREATE temp TABLE tmp_viz_property |
||||
( |
||||
tid integer, |
||||
caption varchar(255), |
||||
prop_uniquename varchar(255), |
||||
prop_default varchar(255), |
||||
prop_unit varchar(255), |
||||
is_generic smallint DEFAULT 1, |
||||
static_values text, |
||||
is_mandatory smallint DEFAULT 0, |
||||
input_type_id integer DEFAULT 1, |
||||
input_type_uniquename varchar(255), |
||||
property_group_id integer, |
||||
property_group_uniquename varchar(255), |
||||
explanation text, |
||||
sortnr integer, |
||||
range_from integer, |
||||
range_to integer, |
||||
prop_value_type varchar(255) DEFAULT 'string'::character varying, |
||||
variable_name varchar(255), |
||||
is_general smallint |
||||
); |
||||
</#macro> |
||||
|
||||
<#macro drop_temp_tables> |
||||
|
||||
drop table tmp_viz_type; |
||||
drop table tmp_viz_property_group; |
||||
drop table tmp_viz_property; |
||||
drop table tmp_viz_type_property; |
||||
drop table tmp_viz_property_renderer; |
||||
drop table tmp_viz_property_group_renderer; |
||||
|
||||
</#macro> |
||||
|
||||
<#macro fill_viz_properties> |
||||
|
||||
|
||||
<#assign sortnr=0 /> |
||||
<#foreach viz_prop in viz_properties> |
||||
<#assign sortnr=sortnr+100 /> |
||||
insert into tmp_viz_property(tid, |
||||
caption, |
||||
prop_uniquename, |
||||
prop_default, |
||||
prop_unit, |
||||
is_generic, |
||||
static_values, |
||||
is_mandatory, |
||||
input_type_uniquename, |
||||
property_group_uniquename, |
||||
explanation, |
||||
sortnr, |
||||
range_from, |
||||
range_to, |
||||
prop_value_type, |
||||
variable_name, |
||||
is_general) |
||||
select P.tid, |
||||
'${viz_prop.caption}', |
||||
'${viz_prop.prop_uniquename}', |
||||
'${viz_prop.prop_default}', |
||||
'${viz_prop.prop_unit}', |
||||
${viz_prop.is_generic}, |
||||
'${viz_prop.static_values}', |
||||
${viz_prop.is_mandatory}, |
||||
'${viz_prop.input_type_uniquename}', |
||||
'${viz_prop.property_group_uniquename}', |
||||
'${viz_prop.explanation}', |
||||
${sortnr}, |
||||
val('${viz_prop.range_from}'), |
||||
val('${viz_prop.range_to}'), |
||||
'${viz_prop.prop_value_type}', |
||||
<#if viz_prop.variable_name?exists> |
||||
'${viz_prop.variable_name}', |
||||
<#else> |
||||
'', |
||||
</#if> |
||||
0 as is_general |
||||
from xdummy left outer join viz_property P |
||||
on (P.prop_uniquename='${viz_prop.prop_uniquename}') |
||||
; |
||||
</#foreach> |
||||
|
||||
<#assign sortnr=1000 /> |
||||
<#foreach viz_prop in viz_type_properties_general> |
||||
<#assign sortnr=sortnr+100 /> |
||||
insert into tmp_viz_property(tid, |
||||
caption, |
||||
prop_uniquename, |
||||
prop_default, |
||||
prop_unit, |
||||
is_generic, |
||||
static_values, |
||||
is_mandatory, |
||||
input_type_uniquename, |
||||
property_group_uniquename, |
||||
explanation, |
||||
sortnr, |
||||
range_from, |
||||
range_to, |
||||
prop_value_type, |
||||
variable_name, |
||||
is_general) |
||||
select P.tid, |
||||
'${viz_prop.caption}', |
||||
'${viz_prop.prop_uniquename}', |
||||
'${viz_prop.prop_default}', |
||||
'${viz_prop.prop_unit}', |
||||
${viz_prop.is_generic}, |
||||
'${viz_prop.static_values}', |
||||
${viz_prop.is_mandatory}, |
||||
'${viz_prop.input_type_uniquename}', |
||||
'${viz_prop.property_group_uniquename}', |
||||
'${viz_prop.explanation}', |
||||
${sortnr}, |
||||
val('${viz_prop.range_from}'), |
||||
val('${viz_prop.range_to}'), |
||||
'${viz_prop.prop_value_type}', |
||||
<#if viz_prop.variable_name?exists> |
||||
'${viz_prop.variable_name}', |
||||
<#else> |
||||
'', |
||||
</#if> |
||||
1 as is_general |
||||
from xdummy left outer join viz_property P |
||||
on (P.prop_uniquename='${viz_prop.prop_uniquename}') |
||||
; |
||||
</#foreach> |
||||
|
||||
update tmp_viz_property set input_type_id=T.tid |
||||
from viz_property_input_type T |
||||
where T.uniquename=tmp_viz_property.input_type_uniquename; |
||||
|
||||
select 'Warnung: Property ohne input_type: ' || prop_uniquename |
||||
from tmp_viz_property |
||||
where input_type_id is null; |
||||
|
||||
|
||||
update tmp_viz_property set property_group_id=T.tid |
||||
from viz_property_group T |
||||
where T.uniquename=tmp_viz_property.property_group_uniquename; |
||||
|
||||
select 'Warnung: Property ohne property_group: ' || prop_uniquename |
||||
from tmp_viz_property |
||||
where property_group_id is null; |
||||
|
||||
|
||||
|
||||
|
||||
--neue Datensätze: |
||||
insert into viz_property( |
||||
caption, |
||||
prop_uniquename, |
||||
prop_default, |
||||
prop_unit, |
||||
is_generic, |
||||
static_values, |
||||
is_mandatory, |
||||
input_type_id, |
||||
property_group_id, |
||||
explanation, |
||||
sortnr, |
||||
range_from, |
||||
range_to, |
||||
prop_value_type) |
||||
select |
||||
caption, |
||||
prop_uniquename, |
||||
prop_default, |
||||
prop_unit, |
||||
is_generic, |
||||
static_values, |
||||
is_mandatory, |
||||
input_type_id, |
||||
property_group_id, |
||||
explanation, |
||||
sortnr, |
||||
range_from, |
||||
range_to, |
||||
prop_value_type |
||||
from tmp_viz_property P |
||||
where P.tid is null; |
||||
|
||||
update viz_property |
||||
set caption=T.caption, |
||||
--prop_uniquename, |
||||
prop_default=T.prop_default, |
||||
prop_unit=T.prop_unit, |
||||
is_generic=T.is_generic, |
||||
static_values=T.static_values, |
||||
is_mandatory=T.is_mandatory, |
||||
input_type_id=T.input_type_id, |
||||
property_group_id=T.property_group_id, |
||||
explanation=T.explanation, |
||||
sortnr=T.sortnr, |
||||
range_from=T.range_from, |
||||
range_to=T.range_to, |
||||
prop_value_type=T.prop_value_type |
||||
from tmp_viz_property T |
||||
where T.tid=viz_property.tid |
||||
and viz_property.tid in (select T.tid from tmp_viz_property T); |
||||
|
||||
|
||||
--renderer: |
||||
delete from viz_property_renderer |
||||
where (renderer_id, property_id) |
||||
in (select ${renderer},P.tid |
||||
from tmp_viz_property P); |
||||
|
||||
delete from viz_property_renderer |
||||
where (renderer_id, property_id) |
||||
in (select ${renderer},P.tid |
||||
from tmp_viz_property P); |
||||
|
||||
|
||||
insert into viz_property_renderer( |
||||
renderer_id, |
||||
property_id, |
||||
variable_name) |
||||
select ${renderer}, |
||||
P.tid, |
||||
case when P.variable_name !='' then P.variable_name else P.prop_uniquename end |
||||
from tmp_viz_property P; |
||||
|
||||
</#macro> |
@ -1,833 +0,0 @@
@@ -1,833 +0,0 @@
|
||||
--Freemarker Template |
||||
<#include "SQL_lingua_franca"/> |
||||
<#include "SuperX_general"/> |
||||
|
||||
<sqlvars> |
||||
<sqlvar name="renderer_plot_id"> |
||||
select tid from viz_renderer where uniquename='plot'; |
||||
</sqlvar> |
||||
</sqlvars> |
||||
|
||||
<#assign viz_types = [ |
||||
{"uniquename":"bar_x", "caption":"Balkendiagramm (horizontal)", |
||||
"orientation":"H", |
||||
"description":"Horizontales Balkendiagramm", |
||||
"explanation":""}, |
||||
{"uniquename":"bar_y", "caption":"Balkendiagramm (vertikal)", |
||||
"orientation":"V", |
||||
"description":"Vertikales Balkendiagramm", |
||||
"explanation":""}, |
||||
{"uniquename":"line", "caption":"Linien (vertikal)", |
||||
"orientation":"V", |
||||
"description":"Vertikales Liniendiagramm", |
||||
"explanation":""}, |
||||
{"uniquename":"area_x", "caption":"Flächendiagramm (horizontal)", |
||||
"orientation":"H", |
||||
"description":"Horizontales Flächendiagramm", |
||||
"explanation":""}, |
||||
{"uniquename":"area_y", "caption":"Flächendiagramm (vertikal)", |
||||
"orientation":"V", |
||||
"description":"Vertikales Flächendiagramm", |
||||
"explanation":""}, |
||||
{"uniquename":"dot", "caption":"Punkte (vertikal)", |
||||
"orientation":"V", |
||||
"description":"Vertikales Punktdiagramm", |
||||
"explanation":""}, |
||||
|
||||
{"uniquename":"box_x", "caption":"Boxplot (horizontal)", |
||||
"orientation":"H", |
||||
"description":"Horizontales Boxplot", |
||||
"explanation":""}, |
||||
{"uniquename":"box_y", "caption":"Boxplot (vertikal)", |
||||
"orientation":"V", |
||||
"description":"Vertikales Boxplot", |
||||
"explanation":""}, |
||||
|
||||
{"uniquename":"text", "caption":"Wertelabel (vertikal)", |
||||
"orientation":"V", |
||||
"description":"Wertelabel für vertikales Diagramm", |
||||
"explanation":""} |
||||
|
||||
] |
||||
/> |
||||
|
||||
<#assign viz_properties = [ |
||||
{ "caption":"X-Achse", |
||||
"prop_uniquename":"x", |
||||
"explanation":"X-Achsendefinition", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"CATEGORY", |
||||
"sortnr":"", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"string" |
||||
}, |
||||
{ "caption":"Y-Achse", |
||||
"prop_uniquename":"y", |
||||
"explanation":"Y-Achsendefinition", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"CATEGORY", |
||||
"sortnr":"", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"string" |
||||
} |
||||
, |
||||
{ "caption":"Serien-Dimension", |
||||
"prop_uniquename":"stroke", |
||||
"explanation":"Serien-Dimension zusätzlich zu Achsen", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"CATEGORY", |
||||
"sortnr":"", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"string" |
||||
}, |
||||
{ "caption":"Beschriftung", |
||||
"prop_uniquename":"text", |
||||
"explanation":"Nur für Grafikelement Wertelabel", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"CATEGORY", |
||||
"sortnr":"", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"string" |
||||
}, |
||||
{ "caption":"Zusätzl. Sortierung", |
||||
"prop_uniquename":"sortchannel", |
||||
"explanation":"Standardmäßig wird nach den Achsendimensionen alphabetisch aufsteigend sortiert. Wenn Sie nach einem anderen Merkmal sortieren wollen, geben Sie dies hier an (z.B. die Zeilennummer, um die Sortierung der Datentabelle zu nutzen). Nützlich z.B. um Semesternamen zu sortieren.", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"CATEGORY", |
||||
"sortnr":"800", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"string" |
||||
} |
||||
] |
||||
/> |
||||
|
||||
<#assign viz_type_properties = [ |
||||
{ "viz_type_uniquename":"bar_x", |
||||
"viz_property_uniquename":"x", |
||||
"is_mandatory":"1", |
||||
"sortnr":"1"}, |
||||
{ "viz_type_uniquename":"bar_x", |
||||
"viz_property_uniquename":"y", |
||||
"is_mandatory":"1", |
||||
"sortnr":"10"}, |
||||
{ "viz_type_uniquename":"bar_x", |
||||
"viz_property_uniquename":"stroke", |
||||
"is_mandatory":"0", |
||||
"sortnr":"20"}, |
||||
|
||||
{ "viz_type_uniquename":"bar_y", |
||||
"viz_property_uniquename":"x", |
||||
"is_mandatory":"1", |
||||
"sortnr":"1"}, |
||||
{ "viz_type_uniquename":"bar_y", |
||||
"viz_property_uniquename":"y", |
||||
"is_mandatory":"1", |
||||
"sortnr":"10"}, |
||||
{ "viz_type_uniquename":"bar_y", |
||||
"viz_property_uniquename":"stroke", |
||||
"is_mandatory":"0", |
||||
"sortnr":"20"}, |
||||
|
||||
{ "viz_type_uniquename":"line", |
||||
"viz_property_uniquename":"x", |
||||
"is_mandatory":"1", |
||||
"sortnr":"1"}, |
||||
{ "viz_type_uniquename":"line", |
||||
"viz_property_uniquename":"y", |
||||
"is_mandatory":"1", |
||||
"sortnr":"10"}, |
||||
{ "viz_type_uniquename":"line", |
||||
"viz_property_uniquename":"stroke", |
||||
"is_mandatory":"0", |
||||
"sortnr":"20"}, |
||||
|
||||
{ "viz_type_uniquename":"dot", |
||||
"viz_property_uniquename":"x", |
||||
"is_mandatory":"1", |
||||
"sortnr":"1"}, |
||||
{ "viz_type_uniquename":"dot", |
||||
"viz_property_uniquename":"y", |
||||
"is_mandatory":"1", |
||||
"sortnr":"10"}, |
||||
{ "viz_type_uniquename":"dot", |
||||
"viz_property_uniquename":"stroke", |
||||
"is_mandatory":"0", |
||||
"sortnr":"20"}, |
||||
|
||||
{ "viz_type_uniquename":"box_x", |
||||
"viz_property_uniquename":"x", |
||||
"is_mandatory":"1", |
||||
"sortnr":"1"}, |
||||
{ "viz_type_uniquename":"box_x", |
||||
"viz_property_uniquename":"y", |
||||
"is_mandatory":"1", |
||||
"sortnr":"10"}, |
||||
|
||||
{ "viz_type_uniquename":"box_y", |
||||
"viz_property_uniquename":"x", |
||||
"is_mandatory":"1", |
||||
"sortnr":"1"}, |
||||
{ "viz_type_uniquename":"box_y", |
||||
"viz_property_uniquename":"y", |
||||
"is_mandatory":"1", |
||||
"sortnr":"10"}, |
||||
|
||||
{ "viz_type_uniquename":"text", |
||||
"viz_property_uniquename":"x", |
||||
"is_mandatory":"1", |
||||
"sortnr":"1"}, |
||||
{ "viz_type_uniquename":"text", |
||||
"viz_property_uniquename":"y", |
||||
"is_mandatory":"1", |
||||
"sortnr":"10"}, |
||||
{ "viz_type_uniquename":"text", |
||||
"viz_property_uniquename":"stroke", |
||||
"is_mandatory":"0", |
||||
"sortnr":"20"}, |
||||
{ "viz_type_uniquename":"text", |
||||
"viz_property_uniquename":"text", |
||||
"is_mandatory":"0", |
||||
"sortnr":"30"} |
||||
|
||||
] |
||||
/> |
||||
|
||||
<#assign viz_type_properties_general = [ |
||||
{ "caption":"Textuelle Beschreibung des Grafikelements", |
||||
"prop_uniquename":"ariaDescription", |
||||
"explanation":"für barrierearme Grafiken", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"STYLE", |
||||
"sortnr":"", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"string" |
||||
}, |
||||
{ "caption":"Strichfarbe", |
||||
"prop_uniquename":"stroke_static", |
||||
"explanation":"Strichfarbe (einfach)", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"COLOR", |
||||
"property_group_uniquename":"STYLE", |
||||
"sortnr":"", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"string" |
||||
} |
||||
, |
||||
{ "caption":"Flächenfarbe", |
||||
"prop_uniquename":"fill_static", |
||||
"explanation":"Nur für Grafikelemente Flächen und Balken. Füllfarbe.", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"COLOR", |
||||
"property_group_uniquename":"STYLE", |
||||
"sortnr":"", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"string", |
||||
"variable_name":"fill" |
||||
}, |
||||
{ "caption":"CSS-Klasse", |
||||
"prop_uniquename":"className", |
||||
"explanation":"Klassenname des Grafikelements für CSS-basierte Layouts", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"STYLE", |
||||
"sortnr":"", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"string" |
||||
} |
||||
, |
||||
{ "caption":"CSS-Filter für Bilder", |
||||
"prop_uniquename":"imageFilter", |
||||
"explanation":"z.B. blur(5px)", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"STYLE", |
||||
"sortnr":"", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"string" |
||||
}, |
||||
{ "caption":"Offset (horizontal)", |
||||
"prop_uniquename":"dx", |
||||
"explanation":"Horizontales Offset des Grafikelements in Pixel", |
||||
"prop_default":"", |
||||
"prop_unit":"px", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"LAYOUT", |
||||
"sortnr":"", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"integer" |
||||
}, |
||||
{ "caption":"Offset (vertikal)", |
||||
"prop_uniquename":"dy", |
||||
"explanation":"Vertikales Offset des Grafikelements in Pixel", |
||||
"prop_default":"", |
||||
"prop_unit":"px", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"LAYOUT", |
||||
"sortnr":"", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"integer" |
||||
}, |
||||
{ "caption":"Deckungsgrad Farbe", |
||||
"prop_uniquename":"fillOpacity", |
||||
"explanation":"Deckungsrad (opacity) zwischen 0 und 1", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"STYLE", |
||||
"sortnr":"", |
||||
"range_from":"0", |
||||
"range_to":"1", |
||||
"prop_value_type":"string" |
||||
}, |
||||
{ "caption":"Deckungsgrad Objekt", |
||||
"prop_uniquename":"opacity", |
||||
"explanation":"Deckungsrad (opacity) des Grafikelements zwischen 0 und 1", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"STYLE", |
||||
"sortnr":"", |
||||
"range_from":"0", |
||||
"range_to":"1", |
||||
"prop_value_type":"string" |
||||
}, |
||||
|
||||
{ "caption":"Strichlinie Abstand-Intervalle", |
||||
"prop_uniquename":"strokeDasharray", |
||||
"explanation":"Abstand von Bindestrichen (Komma-separierte Pixel), z.B. [10,5] für 10 und dann 5 Pixel Abstand", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"STYLE", |
||||
"sortnr":"", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"string" |
||||
}, |
||||
{ "caption":"Strichlinie Breite", |
||||
"prop_uniquename":"strokeWidth", |
||||
"explanation":"Strichbreite in Pixel", |
||||
"prop_default":"", |
||||
"prop_unit":"px", |
||||
"is_generic":"0", |
||||
"static_values":"", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"TEXT", |
||||
"property_group_uniquename":"STYLE", |
||||
"sortnr":"", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"integer" |
||||
} |
||||
, |
||||
{ "caption":"Tooltip einschalten", |
||||
"prop_uniquename":"tip", |
||||
"explanation":"Sollen implizite Tooltips angezeigt werden (true,false)", |
||||
"prop_default":"", |
||||
"prop_unit":"", |
||||
"is_generic":"0", |
||||
"static_values":"true|false", |
||||
"is_mandatory":"0", |
||||
"input_type_uniquename":"SELECT", |
||||
"property_group_uniquename":"LAYOUT", |
||||
"sortnr":"", |
||||
"range_from":"", |
||||
"range_to":"", |
||||
"prop_value_type":"boolean" |
||||
} |
||||
] /> |
||||
|
||||
--ab hier nicht mehr ändern: |
||||
--Die Sortierunmmer ergibt sich aus der Reihenfolge |
||||
--daher hier mit Bedacht ändern: |
||||
|
||||
<@create_temp_tables /> |
||||
|
||||
<@fill_viz_properties /> |
||||
|
||||
<#foreach viz_type in viz_types> |
||||
|
||||
<@fill_viz_type_properties_general viz_type_p=viz_type /> |
||||
|
||||
<@fill_viz_type_properties viz_type_p=viz_type /> |
||||
|
||||
</#foreach> |
||||
|
||||
<@drop_temp_tables /> |
||||
|
||||
|
||||
<#macro fill_viz_type_properties_general viz_type_p> |
||||
select 'Befülle Grafikelement ${viz_type_p.caption}' from xdummy; |
||||
|
||||
delete from tmp_viz_type; |
||||
|
||||
insert into tmp_viz_type(tid, |
||||
uniquename, |
||||
caption, |
||||
renderer_id, |
||||
-- srcpath, |
||||
-- method, |
||||
orientation, |
||||
explanation) |
||||
select T.tid, |
||||
'${viz_type_p.uniquename}', |
||||
'${viz_type_p.caption}', |
||||
${renderer_plot_id}, |
||||
'${viz_type_p.orientation}', |
||||
'${viz_type_p.explanation}' |
||||
from xdummy left outer join viz_type T on ( |
||||
T.uniquename='${viz_type_p.uniquename}' |
||||
and T.renderer_id=${renderer_plot_id} |
||||
) |
||||
; |
||||
|
||||
insert into viz_type( |
||||
uniquename, |
||||
caption, |
||||
renderer_id, |
||||
-- srcpath, |
||||
-- method, |
||||
orientation) |
||||
select uniquename, |
||||
caption, |
||||
renderer_id, |
||||
-- srcpath, |
||||
-- method, |
||||
orientation |
||||
from tmp_viz_type T |
||||
where T.tid is null; |
||||
|
||||
|
||||
|
||||
update viz_type set |
||||
uniquename=T.uniquename, |
||||
caption=T.caption, |
||||
renderer_id=T.renderer_id, |
||||
-- srcpath, |
||||
-- method, |
||||
orientation=T.orientation, |
||||
explanation=T.explanation |
||||
from tmp_viz_type T |
||||
where T.tid=viz_type.tid |
||||
and viz_type.tid in (select distinct T.tid from tmp_viz_type); |
||||
|
||||
|
||||
|
||||
|
||||
delete from viz_type_property |
||||
where (viz_type_id, |
||||
viz_property_id) |
||||
in (select Y.tid as viz_type_id, |
||||
P.tid as viz_property_id |
||||
from tmp_viz_property T,viz_type Y, viz_property P |
||||
where Y.uniquename='${viz_type_p.uniquename}' |
||||
and Y.renderer_id=${renderer_plot_id} |
||||
and P.prop_uniquename=T.prop_uniquename |
||||
and T.is_general=1) |
||||
|
||||
; |
||||
|
||||
insert into viz_type_property( |
||||
viz_type_id, |
||||
viz_property_id, |
||||
is_mandatory, |
||||
sortnr) |
||||
select Y.tid as viz_type_id, |
||||
P.tid as viz_property_id, |
||||
P.is_mandatory, |
||||
T.sortnr |
||||
from tmp_viz_property T,viz_type Y, viz_property P |
||||
where Y.uniquename='${viz_type_p.uniquename}' |
||||
and Y.renderer_id=${renderer_plot_id} |
||||
and P.prop_uniquename=T.prop_uniquename |
||||
and T.is_general=1; |
||||
|
||||
|
||||
|
||||
</#macro> |
||||
|
||||
<#macro fill_viz_type_properties viz_type_p> |
||||
|
||||
<#foreach viz_prop in viz_type_properties> |
||||
<#if viz_prop.viz_type_uniquename==viz_type_p.uniquename > |
||||
|
||||
delete from viz_type_property |
||||
where (viz_type_id, |
||||
viz_property_id) |
||||
in (select Y.tid as viz_type_id, |
||||
P.tid as viz_property_id |
||||
from viz_type Y, viz_property P |
||||
where Y.uniquename='${viz_type_p.uniquename}' |
||||
and Y.renderer_id=${renderer_plot_id} |
||||
and P.prop_uniquename='${viz_prop.viz_property_uniquename}') ; |
||||
|
||||
|
||||
insert into viz_type_property( |
||||
viz_type_id, |
||||
viz_property_id, |
||||
is_mandatory, |
||||
sortnr) |
||||
select Y.tid as viz_type_id, |
||||
P.tid as viz_property_id, |
||||
${viz_prop.is_mandatory}, |
||||
${viz_prop.sortnr} |
||||
from viz_type Y, viz_property P |
||||
where Y.uniquename='${viz_type_p.uniquename}' |
||||
and Y.renderer_id=${renderer_plot_id} |
||||
and P.prop_uniquename='${viz_prop.viz_property_uniquename}' |
||||
; |
||||
|
||||
</#if> |
||||
</#foreach> |
||||
|
||||
</#macro> |
||||
|
||||
<#macro create_temp_tables> |
||||
CREATE temp TABLE tmp_viz_type |
||||
( |
||||
tid serial NOT NULL, |
||||
uniquename varchar(255) NOT NULL, |
||||
caption varchar(255), |
||||
renderer_id integer, |
||||
srcpath varchar(255), |
||||
method varchar(255), |
||||
orientation char(1), |
||||
description text, |
||||
explanation text |
||||
); |
||||
|
||||
CREATE temp TABLE tmp_viz_type_property |
||||
( |
||||
tid serial NOT NULL, |
||||
viz_type_id integer, |
||||
viz_property_id integer, |
||||
is_mandatory smallint DEFAULT 0, |
||||
sortnr smallint DEFAULT 0 |
||||
); |
||||
|
||||
|
||||
CREATE temp TABLE tmp_viz_property_renderer |
||||
( |
||||
tid serial NOT NULL, |
||||
renderer_id integer NOT NULL, |
||||
property_id integer NOT NULL, |
||||
variable_name varchar(255) |
||||
); |
||||
|
||||
create temp table tmp_viz_property_group |
||||
( |
||||
tid serial NOT NULL, |
||||
uniquename varchar(255) NOT NULL, |
||||
caption varchar(255), |
||||
sortnr integer |
||||
); |
||||
|
||||
CREATE temp TABLE tmp_viz_property_group_renderer |
||||
( |
||||
tid serial NOT NULL, |
||||
renderer_id integer NOT NULL, |
||||
property_group_id integer NOT NULL, |
||||
variable_name varchar(255) |
||||
); |
||||
|
||||
|
||||
|
||||
CREATE temp TABLE tmp_viz_property |
||||
( |
||||
tid integer, |
||||
caption varchar(255), |
||||
prop_uniquename varchar(255), |
||||
prop_default varchar(255), |
||||
prop_unit varchar(255), |
||||
is_generic smallint DEFAULT 1, |
||||
static_values text, |
||||
is_mandatory smallint DEFAULT 0, |
||||
input_type_id integer DEFAULT 1, |
||||
input_type_uniquename varchar(255), |
||||
property_group_id integer, |
||||
property_group_uniquename varchar(255), |
||||
explanation text, |
||||
sortnr integer, |
||||
range_from integer, |
||||
range_to integer, |
||||
prop_value_type varchar(255) DEFAULT 'string'::character varying, |
||||
variable_name varchar(255), |
||||
is_general smallint |
||||
); |
||||
</#macro> |
||||
|
||||
<#macro drop_temp_tables> |
||||
|
||||
drop table tmp_viz_type; |
||||
drop table tmp_viz_property_group; |
||||
drop table tmp_viz_property; |
||||
drop table tmp_viz_type_property; |
||||
drop table tmp_viz_property_renderer; |
||||
drop table tmp_viz_property_group_renderer; |
||||
|
||||
</#macro> |
||||
|
||||
<#macro fill_viz_properties> |
||||
|
||||
|
||||
<#assign sortnr=0 /> |
||||
<#foreach viz_prop in viz_properties> |
||||
<#assign sortnr=sortnr+100 /> |
||||
insert into tmp_viz_property(tid, |
||||
caption, |
||||
prop_uniquename, |
||||
prop_default, |
||||
prop_unit, |
||||
is_generic, |
||||
static_values, |
||||
is_mandatory, |
||||
input_type_uniquename, |
||||
property_group_uniquename, |
||||
explanation, |
||||
sortnr, |
||||
range_from, |
||||
range_to, |
||||
prop_value_type, |
||||
variable_name, |
||||
is_general) |
||||
select P.tid, |
||||
'${viz_prop.caption}', |
||||
'${viz_prop.prop_uniquename}', |
||||
'${viz_prop.prop_default}', |
||||
'${viz_prop.prop_unit}', |
||||
${viz_prop.is_generic}, |
||||
'${viz_prop.static_values}', |
||||
${viz_prop.is_mandatory}, |
||||
'${viz_prop.input_type_uniquename}', |
||||
'${viz_prop.property_group_uniquename}', |
||||
'${viz_prop.explanation}', |
||||
${sortnr}, |
||||
val('${viz_prop.range_from}'), |
||||
val('${viz_prop.range_to}'), |
||||
'${viz_prop.prop_value_type}', |
||||
<#if viz_prop.variable_name?exists> |
||||
'${viz_prop.variable_name}', |
||||
<#else> |
||||
'', |
||||
</#if> |
||||
0 as is_general |
||||
from xdummy left outer join viz_property P |
||||
on (P.prop_uniquename='${viz_prop.prop_uniquename}') |
||||
; |
||||
</#foreach> |
||||
|
||||
<#assign sortnr=1000 /> |
||||
<#foreach viz_prop in viz_type_properties_general> |
||||
<#assign sortnr=sortnr+100 /> |
||||
insert into tmp_viz_property(tid, |
||||
caption, |
||||
prop_uniquename, |
||||
prop_default, |
||||
prop_unit, |
||||
is_generic, |
||||
static_values, |
||||
is_mandatory, |
||||
input_type_uniquename, |
||||
property_group_uniquename, |
||||
explanation, |
||||
sortnr, |
||||
range_from, |
||||
range_to, |
||||
prop_value_type, |
||||
variable_name, |
||||
is_general) |
||||
select P.tid, |
||||
'${viz_prop.caption}', |
||||
'${viz_prop.prop_uniquename}', |
||||
'${viz_prop.prop_default}', |
||||
'${viz_prop.prop_unit}', |
||||
${viz_prop.is_generic}, |
||||
'${viz_prop.static_values}', |
||||
${viz_prop.is_mandatory}, |
||||
'${viz_prop.input_type_uniquename}', |
||||
'${viz_prop.property_group_uniquename}', |
||||
'${viz_prop.explanation}', |
||||
${sortnr}, |
||||
val('${viz_prop.range_from}'), |
||||
val('${viz_prop.range_to}'), |
||||
'${viz_prop.prop_value_type}', |
||||
<#if viz_prop.variable_name?exists> |
||||
'${viz_prop.variable_name}', |
||||
<#else> |
||||
'', |
||||
</#if> |
||||
1 as is_general |
||||
from xdummy left outer join viz_property P |
||||
on (P.prop_uniquename='${viz_prop.prop_uniquename}') |
||||
; |
||||
</#foreach> |
||||
|
||||
update tmp_viz_property set input_type_id=T.tid |
||||
from viz_property_input_type T |
||||
where T.uniquename=tmp_viz_property.input_type_uniquename; |
||||
|
||||
select 'Warnung: Property ohne input_type: ' || prop_uniquename |
||||
from tmp_viz_property |
||||
where input_type_id is null; |
||||
|
||||
|
||||
update tmp_viz_property set property_group_id=T.tid |
||||
from viz_property_group T |
||||
where T.uniquename=tmp_viz_property.property_group_uniquename; |
||||
|
||||
select 'Warnung: Property ohne property_group: ' || prop_uniquename |
||||
from tmp_viz_property |
||||
where property_group_id is null; |
||||
|
||||
|
||||
|
||||
|
||||
--neue Datensätze: |
||||
insert into viz_property( |
||||
caption, |
||||
prop_uniquename, |
||||
prop_default, |
||||
prop_unit, |
||||
is_generic, |
||||
static_values, |
||||
is_mandatory, |
||||
input_type_id, |
||||
property_group_id, |
||||
explanation, |
||||
sortnr, |
||||
range_from, |
||||
range_to, |
||||
prop_value_type) |
||||
select |
||||
caption, |
||||
prop_uniquename, |
||||
prop_default, |
||||
prop_unit, |
||||
is_generic, |
||||
static_values, |
||||
is_mandatory, |
||||
input_type_id, |
||||
property_group_id, |
||||
explanation, |
||||
sortnr, |
||||
range_from, |
||||
range_to, |
||||
prop_value_type |
||||
from tmp_viz_property P |
||||
where P.tid is null; |
||||
|
||||
update viz_property |
||||
set caption=T.caption, |
||||
--prop_uniquename, |
||||
prop_default=T.prop_default, |
||||
prop_unit=T.prop_unit, |
||||
is_generic=T.is_generic, |
||||
static_values=T.static_values, |
||||
is_mandatory=T.is_mandatory, |
||||
input_type_id=T.input_type_id, |
||||
property_group_id=T.property_group_id, |
||||
explanation=T.explanation, |
||||
sortnr=T.sortnr, |
||||
range_from=T.range_from, |
||||
range_to=T.range_to, |
||||
prop_value_type=T.prop_value_type |
||||
from tmp_viz_property T |
||||
where T.tid=viz_property.tid |
||||
and viz_property.tid in (select T.tid from tmp_viz_property T); |
||||
|
||||
|
||||
--renderer: |
||||
delete from viz_property_renderer |
||||
where (renderer_id, property_id) |
||||
in (select ${renderer_plot_id},P.tid |
||||
from tmp_viz_property P); |
||||
|
||||
delete from viz_property_renderer |
||||
where (renderer_id, property_id) |
||||
in (select ${renderer_plot_id},P.tid |
||||
from tmp_viz_property P); |
||||
|
||||
|
||||
insert into viz_property_renderer( |
||||
renderer_id, |
||||
property_id, |
||||
variable_name) |
||||
select ${renderer_plot_id}, |
||||
P.tid, |
||||
case when P.variable_name !='' then P.variable_name else P.prop_uniquename end |
||||
from tmp_viz_property P; |
||||
|
||||
</#macro> |
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
MIT License |
||||
|
||||
Copyright (c) 2020 CreativeBulma |
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
of this software and associated documentation files (the "Software"), to deal |
||||
in the Software without restriction, including without limitation the rights |
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
copies of the Software, and to permit persons to whom the Software is |
||||
furnished to do so, subject to the following conditions: |
||||
|
||||
The above copyright notice and this permission notice shall be included in all |
||||
copies or substantial portions of the Software. |
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
SOFTWARE. |
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,222 +0,0 @@
@@ -1,222 +0,0 @@
|
||||
|
||||
Apache License |
||||
Version 2.0, January 2004 |
||||
http://www.apache.org/licenses/ |
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION |
||||
|
||||
1. Definitions. |
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction, |
||||
and distribution as defined by Sections 1 through 9 of this document. |
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by |
||||
the copyright owner that is granting the License. |
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all |
||||
other entities that control, are controlled by, or are under common |
||||
control with that entity. For the purposes of this definition, |
||||
"control" means (i) the power, direct or indirect, to cause the |
||||
direction or management of such entity, whether by contract or |
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the |
||||
outstanding shares, or (iii) beneficial ownership of such entity. |
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity |
||||
exercising permissions granted by this License. |
||||
|
||||
"Source" form shall mean the preferred form for making modifications, |
||||
including but not limited to software source code, documentation |
||||
source, and configuration files. |
||||
|
||||
"Object" form shall mean any form resulting from mechanical |
||||
transformation or translation of a Source form, including but |
||||
not limited to compiled object code, generated documentation, |
||||
and conversions to other media types. |
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or |
||||
Object form, made available under the License, as indicated by a |
||||
copyright notice that is included in or attached to the work |
||||
(an example is provided in the Appendix below). |
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object |
||||
form, that is based on (or derived from) the Work and for which the |
||||
editorial revisions, annotations, elaborations, or other modifications |
||||
represent, as a whole, an original work of authorship. For the purposes |
||||
of this License, Derivative Works shall not include works that remain |
||||
separable from, or merely link (or bind by name) to the interfaces of, |
||||
the Work and Derivative Works thereof. |
||||
|
||||
"Contribution" shall mean any work of authorship, including |
||||
the original version of the Work and any modifications or additions |
||||
to that Work or Derivative Works thereof, that is intentionally |
||||
submitted to Licensor for inclusion in the Work by the copyright owner |
||||
or by an individual or Legal Entity authorized to submit on behalf of |
||||
the copyright owner. For the purposes of this definition, "submitted" |
||||
means any form of electronic, verbal, or written communication sent |
||||
to the Licensor or its representatives, including but not limited to |
||||
communication on electronic mailing lists, source code control systems, |
||||
and issue tracking systems that are managed by, or on behalf of, the |
||||
Licensor for the purpose of discussing and improving the Work, but |
||||
excluding communication that is conspicuously marked or otherwise |
||||
designated in writing by the copyright owner as "Not a Contribution." |
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity |
||||
on behalf of whom a Contribution has been received by Licensor and |
||||
subsequently incorporated within the Work. |
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of |
||||
this License, each Contributor hereby grants to You a perpetual, |
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
||||
copyright license to reproduce, prepare Derivative Works of, |
||||
publicly display, publicly perform, sublicense, and distribute the |
||||
Work and such Derivative Works in Source or Object form. |
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of |
||||
this License, each Contributor hereby grants to You a perpetual, |
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
||||
(except as stated in this section) patent license to make, have made, |
||||
use, offer to sell, sell, import, and otherwise transfer the Work, |
||||
where such license applies only to those patent claims licensable |
||||
by such Contributor that are necessarily infringed by their |
||||
Contribution(s) alone or by combination of their Contribution(s) |
||||
with the Work to which such Contribution(s) was submitted. If You |
||||
institute patent litigation against any entity (including a |
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work |
||||
or a Contribution incorporated within the Work constitutes direct |
||||
or contributory patent infringement, then any patent licenses |
||||
granted to You under this License for that Work shall terminate |
||||
as of the date such litigation is filed. |
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the |
||||
Work or Derivative Works thereof in any medium, with or without |
||||
modifications, and in Source or Object form, provided that You |
||||
meet the following conditions: |
||||
|
||||
(a) You must give any other recipients of the Work or |
||||
Derivative Works a copy of this License; and |
||||
|
||||
(b) You must cause any modified files to carry prominent notices |
||||
stating that You changed the files; and |
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works |
||||
that You distribute, all copyright, patent, trademark, and |
||||
attribution notices from the Source form of the Work, |
||||
excluding those notices that do not pertain to any part of |
||||
the Derivative Works; and |
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its |
||||
distribution, then any Derivative Works that You distribute must |
||||
include a readable copy of the attribution notices contained |
||||
within such NOTICE file, excluding those notices that do not |
||||
pertain to any part of the Derivative Works, in at least one |
||||
of the following places: within a NOTICE text file distributed |
||||
as part of the Derivative Works; within the Source form or |
||||
documentation, if provided along with the Derivative Works; or, |
||||
within a display generated by the Derivative Works, if and |
||||
wherever such third-party notices normally appear. The contents |
||||
of the NOTICE file are for informational purposes only and |
||||
do not modify the License. You may add Your own attribution |
||||
notices within Derivative Works that You distribute, alongside |
||||
or as an addendum to the NOTICE text from the Work, provided |
||||
that such additional attribution notices cannot be construed |
||||
as modifying the License. |
||||
|
||||
You may add Your own copyright statement to Your modifications and |
||||
may provide additional or different license terms and conditions |
||||
for use, reproduction, or distribution of Your modifications, or |
||||
for any such Derivative Works as a whole, provided Your use, |
||||
reproduction, and distribution of the Work otherwise complies with |
||||
the conditions stated in this License. |
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise, |
||||
any Contribution intentionally submitted for inclusion in the Work |
||||
by You to the Licensor shall be under the terms and conditions of |
||||
this License, without any additional terms or conditions. |
||||
Notwithstanding the above, nothing herein shall supersede or modify |
||||
the terms of any separate license agreement you may have executed |
||||
with Licensor regarding such Contributions. |
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade |
||||
names, trademarks, service marks, or product names of the Licensor, |
||||
except as required for reasonable and customary use in describing the |
||||
origin of the Work and reproducing the content of the NOTICE file. |
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or |
||||
agreed to in writing, Licensor provides the Work (and each |
||||
Contributor provides its Contributions) on an "AS IS" BASIS, |
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
||||
implied, including, without limitation, any warranties or conditions |
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A |
||||
PARTICULAR PURPOSE. You are solely responsible for determining the |
||||
appropriateness of using or redistributing the Work and assume any |
||||
risks associated with Your exercise of permissions under this License. |
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory, |
||||
whether in tort (including negligence), contract, or otherwise, |
||||
unless required by applicable law (such as deliberate and grossly |
||||
negligent acts) or agreed to in writing, shall any Contributor be |
||||
liable to You for damages, including any direct, indirect, special, |
||||
incidental, or consequential damages of any character arising as a |
||||
result of this License or out of the use or inability to use the |
||||
Work (including but not limited to damages for loss of goodwill, |
||||
work stoppage, computer failure or malfunction, or any and all |
||||
other commercial damages or losses), even if such Contributor |
||||
has been advised of the possibility of such damages. |
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing |
||||
the Work or Derivative Works thereof, You may choose to offer, |
||||
and charge a fee for, acceptance of support, warranty, indemnity, |
||||
or other liability obligations and/or rights consistent with this |
||||
License. However, in accepting such obligations, You may act only |
||||
on Your own behalf and on Your sole responsibility, not on behalf |
||||
of any other Contributor, and only if You agree to indemnify, |
||||
defend, and hold each Contributor harmless for any liability |
||||
incurred by, or claims asserted against, such Contributor by reason |
||||
of your accepting any such warranty or additional liability. |
||||
|
||||
END OF TERMS AND CONDITIONS |
||||
|
||||
APPENDIX: How to apply the Apache License to your work. |
||||
|
||||
To apply the Apache License to your work, attach the following |
||||
boilerplate notice, with the fields enclosed by brackets "[]" |
||||
replaced with your own identifying information. (Don't include |
||||
the brackets!) The text should be enclosed in the appropriate |
||||
comment syntax for the file format. We also recommend that a |
||||
file or class name and description of purpose be included on the |
||||
same "printed page" as the copyright notice for easier |
||||
identification within third-party archives. |
||||
|
||||
Copyright [yyyy] [name of copyright owner] |
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); |
||||
you may not use this file except in compliance with the License. |
||||
You may obtain a copy of the License at |
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0 |
||||
|
||||
Unless required by applicable law or agreed to in writing, software |
||||
distributed under the License is distributed on an "AS IS" BASIS, |
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
See the License for the specific language governing permissions and |
||||
limitations under the License. |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
======================================================================== |
||||
Apache ECharts Subcomponents: |
||||
|
||||
The Apache ECharts project contains subcomponents with separate copyright |
||||
notices and license terms. Your use of the source code for these |
||||
subcomponents is also subject to the terms and conditions of the following |
||||
licenses. |
||||
|
||||
BSD 3-Clause (d3.js): |
||||
The following files embed [d3.js](https://github.com/d3/d3) BSD 3-Clause: |
||||
`/src/chart/treemap/treemapLayout.ts`, |
||||
`/src/chart/tree/layoutHelper.ts`, |
||||
`/src/chart/graph/forceHelper.ts`, |
||||
`/src/util/number.ts` |
||||
See `d3-7.8.0-license.txt` for details of the license. |
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue