Browse Source

neue Maske zum Vergleich bel. Hochschulen

sxc_0.3_Release
Marlies Winterstein 4 months ago
parent
commit
dc2dcd4ea9
  1. 7
      src-modules/module/sxc/masken/48520_felderinfo.unl
  2. 1
      src-modules/module/sxc/masken/48520_maske_system_bez.unl
  3. 21
      src-modules/module/sxc/masken/48520_masken_felder_bez.unl
  4. 88
      src-modules/module/sxc/masken/48520_maskeninfo.unl
  5. 1
      src-modules/module/sxc/masken/48520_sachgeb_maske_bez.unl

7
src-modules/module/sxc/masken/48520_felderinfo.unl

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
48520^Hochschule^0^0^0^100^150^3^char^30^0^12^<<SQL>> select tid, type, name,sortnr from sichten where art in('SXC_Hochschulen-Sicht') order by sortnr, name;^^ ^
48521^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester where tid in (select semester from uol_stud_sem_da_geschl_hs_aggr) order by tid DESC;^ ^ ^
48527^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester where tid in (select semester from uol_stud_sem_da_geschl_hs_aggr) order by tid DESC;^ ^ ^
48528^Deutsche/Ausländer?^30^0^0^100^100^1^integer^30^0^1^<<SQL>> select 0 as tid,'Deutsche' as text from xdummy union select 1 as tid, 'Ausländer' as text from xdummy order by text;^^ ^
48529^Anfänger/Gesamt?^40^0^0^100^100^1^char^30^0^1^<<SQL>> select 'A' as tid,'Studienanfänger 1.HS' as text from xdummy union select 'G' as tid, 'Studierende gesamt' as text from xdummy order by text;^^<<SQL>> select 'G' as tid, 'Studierende gesamt' as text from xdummy;^
48539^tablestylesheet^1500^0^0^100^100^1^char^255^0^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=47140 order by ord^hidden^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=47140 order by ord limit 1^
48542^Geschlecht^35^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT 0 as apnr, 'männlich' as text from xdummy union select 1 as apnr, 'weiblich' as text from xdummy order by text;^ ^ ^

1
src-modules/module/sxc/masken/48520_maske_system_bez.unl

@ -0,0 +1 @@ @@ -0,0 +1 @@
48520^7^

21
src-modules/module/sxc/masken/48520_masken_felder_bez.unl

@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
48520^48520^
48520^48521^
48520^48522^
48520^48523^
48520^48524^
48520^48525^
48520^48526^
48520^48527^
48520^48528^
48520^48529^
48520^48530^
48520^48531^
48520^48533^
48520^48534^
48520^48535^
48520^48536^
48520^48537^
48520^48538^
48520^48539^
48520^48542^
48520^48543^

88
src-modules/module/sxc/masken/48520_maskeninfo.unl

@ -0,0 +1,88 @@ @@ -0,0 +1,88 @@
48520^Studierende (Kopfstatistik) Vergleich bel. Hochschulen^--Freemarker Template\
<#include "SQL_lingua_franca"/>\
<#include "SuperX_general"/>\
\
<sqlvars>\
<sqlvar name="hs_auswahl" type="hash"><![CDATA[\
select hs_nr, kurztext, ort, name from sxc_hochschulen where \
hs_nr in <@printkeys Hochschule.allNeededKeysList/> order by kurztext\
;]]>\
</sqlvar> \
<sqlvar name="kohorte">\
select 'stud_gesamt' from xdummy;\
</sqlvar>\
</sqlvars>\
\
\
select hs_nr, semester , geschlecht_w, nationalitaet_a, stud_gesamt, studanf_gesamt\
into temp tmp_stud\
from sxc_stud_sem_da_geschl_hs_aggr where \
semester >= <<Seit Semester>>\
and semester <= <<Bis Semester>>\
/* and geschlecht_w = <<Geschlecht>> */\
/* and <<Deutsche/Ausländer?>> = nationalitaet_a */\
and hs_nr in <@printkeys Hochschule.allNeededKeysList/>\
;\
<#if <<Anfänger/Gesamt?>> = 'A'>\
<#assign kohorte='studanf_gesamt'>\
</#if>\
create temp table tmp_vergleich_e (\
semester integer, semester_str char(30),\
<#foreach hs in hs_auswahl>\
gesamt_${hs.hs_nr} integer,\
quote_${hs.hs_nr} decimal(5,2),\
</#foreach>\
gesamtsumme integer);\
\
\
<#foreach hs in hs_auswahl>\
insert into tmp_vergleich_e(semester,gesamt_${hs.hs_nr})\
select semester, ${kohorte} from tmp_stud where hs_nr='${hs.hs_nr}';\
</#foreach>\
\
update tmp_vergleich_e set semester_str=(select eintrag from semester where tid=tmp_vergleich_e.semester);\
\
drop table tmp_stud;\
select semester_str,\
<#foreach hs in hs_auswahl>\
sum(gesamt_${hs.hs_nr}) as gesamt_${hs.hs_nr},\
</#foreach>\
sum(gesamtsumme) as gesamtsumme\
into temp tmp_vergleich from tmp_vergleich_e group by 1;\
update tmp_vergleich set gesamtsumme=0;\
<#foreach hs in hs_auswahl>\
update tmp_vergleich set gesamtsumme = gesamtsumme + gesamt_${hs.hs_nr};\
</#foreach>\
drop table tmp_vergleich_e;\
select \
semester_str,\
<#foreach hs in hs_auswahl>\
gesamt_${hs.hs_nr},\
(100.00/gesamtsumme)*gesamt_${hs.hs_nr},\
</#foreach>\
gesamtsumme\
\
from tmp_vergleich order by semester_str;^--Freemarker Template\
<sqlvars>\
<sqlvar name="hs_auswahl" type="hash"><![CDATA[\
select hs_nr, kurztext, ort, name from sxc_hochschulen where \
hs_nr in <@printkeys Hochschule.allNeededKeysList/> order by kurztext\
;]]>\
</sqlvar> \
</sqlvars>\
Column CID=0 heading_text="Semester" center_heading explanation=""\
row_selectable heading_platform readonly\
width=5 text_size=60\
<#foreach hs in hs_auswahl>\
Column CID=0 heading_text="${hs.kurztext}\\000Gesamt" center_heading explanation=""\
row_selectable heading_platform readonly\
width=5 text_size=60\
Column CID=0 heading_text="${hs.kurztext}\\000Anteil*" center_heading explanation=""\
row_selectable heading_platform readonly\
width=5 text_size=60\
</#foreach>\
Column CID=0 heading_text="Gesamt" center_heading explanation=""\
row_selectable heading_platform readonly\
width=5 text_size=60\
\
@@@^Studienfach^Anzahl bzw. Anteil^Studierende bzw. Studienanfänger nach 1.HS, Vergleich beliebiger Hochschulen. Quelle der Vergleichszahlen: @@@destatis_21311@@@^drop table tmp_vergleich;^^2^850^540^^1^ ^

1
src-modules/module/sxc/masken/48520_sachgeb_maske_bez.unl

@ -0,0 +1 @@ @@ -0,0 +1 @@
16^48520^
Loading…
Cancel
Save