5 changed files with 278 additions and 0 deletions
@ -0,0 +1,85 @@
@@ -0,0 +1,85 @@
|
||||
48520^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^999^<<SQL>>SELECT id, caption\ |
||||
FROM (\ |
||||
SELECT sort1, id, caption\ |
||||
FROM sx_repository\ |
||||
WHERE aktiv = 1\ |
||||
AND today() BETWEEN gueltig_seit AND gueltig_bis\ |
||||
AND art IN ('SOS_KOEPFE_FAELLE_RPTA','SOS_KOEPFE_FAELLE_RPTA_GEW')\ |
||||
\ |
||||
UNION ALL\ |
||||
\ |
||||
SELECT 999999 AS sort1, apnr AS id, eintrag AS caption\ |
||||
FROM koepfe_oder_faelle\ |
||||
WHERE apnr NOT ILIKE '%gew%'\ |
||||
AND NOT EXISTS (\ |
||||
SELECT 1\ |
||||
FROM sx_repository\ |
||||
WHERE aktiv = 1\ |
||||
AND today() BETWEEN gueltig_seit AND gueltig_bis\ |
||||
AND art IN ('SOS_KOEPFE_FAELLE_RPTA','SOS_KOEPFE_FAELLE_RPTA_GEW')\ |
||||
)\ |
||||
) x\ |
||||
ORDER BY sort1, caption;^ ^<<SQL>>SELECT id, caption\ |
||||
FROM sx_repository\ |
||||
WHERE aktiv = 1\ |
||||
AND today() BETWEEN gueltig_seit AND gueltig_bis\ |
||||
AND art = 'SOS_KOEPFE_FAELLE_RPTA'\ |
||||
AND caption = 'Fälle'\ |
||||
\ |
||||
UNION ALL\ |
||||
\ |
||||
SELECT apnr AS id, eintrag AS caption\ |
||||
FROM koepfe_oder_faelle\ |
||||
WHERE eintrag = 'Fälle'\ |
||||
AND apnr NOT ILIKE '%gew%'\ |
||||
AND NOT EXISTS (\ |
||||
SELECT 1\ |
||||
FROM sx_repository\ |
||||
WHERE aktiv = 1\ |
||||
AND today() BETWEEN gueltig_seit AND gueltig_bis\ |
||||
AND art IN ('SOS_KOEPFE_FAELLE_RPTA','SOS_KOEPFE_FAELLE_RPTA_GEW')\ |
||||
);^ |
||||
48521^Seit Semester^3^0^0^140^80^1^integer^30^0^999^<<SQL>> --freemarker template \ |
||||
select tid, eintrag from semester \ |
||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
||||
and sem_beginn <=today()\ |
||||
</#if>\ |
||||
order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today()-(4*365) between sem_beginn and sem_ende;^ |
||||
48522^Stichtag^1^350^-1^140^100^1^sql^30^0^999^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Prüfungen';^ ^<<SQL>> select tid, name from sos_stichtag where stichtagsart='Prüfungen' and appl_key='2';^ |
||||
48523^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^ ^ |
||||
48524^Prüfungsstatus^13^0^0^140^70^1^char^30^0^999^<<SQL>> select apnr,druck from sos_k_pstatus;^ ^<<SQL>> select apnr,druck from sos_k_pstatus where apnr='BE';^ |
||||
48525^Fächer^9^0^0^130^150^6^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ |
||||
48527^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^13^^ ^ ^ |
||||
48529^Bis Semester^4^350^-1^140^80^1^integer^30^0^999^<<SQL>> --freemarker template \ |
||||
select tid, eintrag from semester \ |
||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ |
||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ |
||||
and sem_beginn <=today()\ |
||||
</#if>\ |
||||
order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ |
||||
48531^Geschlecht^37^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ |
||||
48533^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;^ ^ ^ |
||||
48534^Jahr^110^0^0^140^80^1^integer^30^0^13^^ ^ ^ |
||||
48535^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=48520 order by ord,2^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=48520 order by ord,2 limit 1^ |
||||
48538^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>> --Freemarker Template\ |
||||
SELECT uniquename, caption, sortnr\ |
||||
FROM rpta_column_layout \ |
||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('rpta_lm_ects_soll_ist')\ |
||||
and R.systeminfo_id=7)\ |
||||
order by sortnr, caption;^ ^<<SQL>> --Freemarker Template\ |
||||
SELECT uniquename, caption, sortnr\ |
||||
FROM rpta_column_layout \ |
||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('rpta_lm_ects_soll_ist')\ |
||||
and R.systeminfo_id=7)\ |
||||
order by sortnr, caption\ |
||||
limit 1;^ |
||||
48539^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^ ^ |
||||
48540^##line##^30^0^0^100^100^1^char^5000^0^8^^ ^1^ |
||||
48541^Abschluss^7^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^ |
||||
48542^Matrikel-Nr.^20^350^-1^150^180^1^char^200^0^0^^{InputCheck:matrikelnummern}^ ^ |
||||
48543^##line##^40^0^0^100^100^1^char^5000^0^8^^ ^1^ |
||||
48544^Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ |
||||
select tid, eintrag from semester \ |
||||
order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today()-(2*365) between sem_beginn and sem_ende;^ |
||||
48545^Hochschulzugangsber.^60^300^-1^100^200^1^sql^30^0^1^<<SQL>> select apnr,eintrag from hs_zugangsber order by 2^apnr,eintrag^ ^ |
||||
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
48520^7^ |
||||
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
48520^48520^ |
||||
48520^48521^ |
||||
48520^48522^ |
||||
48520^48523^ |
||||
48520^48524^ |
||||
48520^48525^ |
||||
48520^48527^ |
||||
48520^48529^ |
||||
48520^48531^ |
||||
48520^48533^ |
||||
48520^48534^ |
||||
48520^48535^ |
||||
48520^48538^ |
||||
48520^48539^ |
||||
48520^48540^ |
||||
48520^48541^ |
||||
48520^48542^ |
||||
48520^48543^ |
||||
48520^48544^ |
||||
48520^48545^ |
||||
@ -0,0 +1,171 @@
@@ -0,0 +1,171 @@
|
||||
48520^ECTS-Konten^--Freemarker Template\ |
||||
<#include "SQL_lingua_franca"/>\ |
||||
<#include "SuperX_general"/>\ |
||||
--\ |
||||
--Autor D. Quathamer 2024\ |
||||
<sqlvars>\ |
||||
<sqlvar name="my_base_rs"><![CDATA[\ |
||||
select R.uniquename\ |
||||
from rpta_resultset R, rpta_column_layout L\ |
||||
where L.resultset_id=R.tid\ |
||||
and L.uniquename=<<Spaltenlayout>>;]]>\ |
||||
</sqlvar>\ |
||||
<sqlvar name="basetable" type="hash"><![CDATA[\ |
||||
SELECT distinct name,\ |
||||
0::smallint as is_virtual,\ |
||||
name as runtime_tablename\ |
||||
from sx_tables\ |
||||
where name in ('${my_base_rs}')\ |
||||
and 0=(select count(*) from rpta_resultset R where R.uniquename='${my_base_rs}')\ |
||||
union\ |
||||
select R.uniquename,\ |
||||
1::smallint as is_virtual,\ |
||||
'tmp_' || R.uniquename as runtime_tablename\ |
||||
from rpta_resultset R where R.uniquename='${my_base_rs}'\ |
||||
;\ |
||||
]]>\ |
||||
</sqlvar>\ |
||||
<sqlvar name="rpta_resultset" type="hash"><![CDATA[\ |
||||
select caption,\ |
||||
uniquename,\ |
||||
fieldclause,\ |
||||
joinclause,\ |
||||
whereclause,\ |
||||
systeminfo_id\ |
||||
from rpta_resultset\ |
||||
where uniquename='${basetable.name}';\ |
||||
\ |
||||
]]></sqlvar>\ |
||||
<sqlvar name="rpta_column_layout" type="hash"><![CDATA[\ |
||||
select L.uniquename,\ |
||||
L.caption,\ |
||||
L.whereclause,\ |
||||
R.is_virtual,\ |
||||
L.sortclause\ |
||||
from rpta_resultset R, rpta_column_layout L\ |
||||
where L.resultset_id=R.tid\ |
||||
and R.uniquename='${basetable.name}'\ |
||||
and L.uniquename=<<Spaltenlayout>>;\ |
||||
\ |
||||
]]></sqlvar>\ |
||||
<sqlvar name="columns" type="hashsequence"><![CDATA[\ |
||||
SELECT C.srcfieldname,\ |
||||
(case when string_not_null(C.targetfieldname)='' then C.srcfieldname else C.targetfieldname end) as targetfieldname,\ |
||||
T.uniquename as coltype,\ |
||||
C.is_aggregate,\ |
||||
(case when string_not_null(CL.caption)='' then C.caption else CL.caption end) as caption,\ |
||||
CL.is_visible,\ |
||||
CL.visible_size as visible_width,\ |
||||
F.sql_code as format_sql,\ |
||||
F.uniquename as format_uniquename,\ |
||||
C.col_function as colfunction,\ |
||||
(case when string_not_null(CL.description)='' then C.description else CL.description end) as description\ |
||||
FROM rpta_column_layout L, rpta_column C, rpta_column_type T, rpta_column2layout CL\ |
||||
left outer join rpta_format_code F on (F.tid=CL.format_code_id)\ |
||||
where L.tid=CL.layout_id\ |
||||
and C.tid=CL.column_id\ |
||||
and T.tid=C.column_type\ |
||||
and L.uniquename=<<Spaltenlayout>>\ |
||||
/* and C.uniquename in (<<Spalten>>) */\ |
||||
order by CL.sortnr\ |
||||
;\ |
||||
]]></sqlvar>\ |
||||
<sqlvar name="endsemester"><![CDATA[\ |
||||
SELECT max(tid)\ |
||||
from semester \ |
||||
where 1=1\ |
||||
/* and tid >= <<Seit Semester>> */\ |
||||
/* and tid <= <<Bis Semester>> */\ |
||||
<#if "<<Semestertyp>>"="1" || "<<Semestertyp>>"="2">\ |
||||
and substring('' || tid from 5 for 1)='<<Semestertyp>>'\ |
||||
</#if>\ |
||||
;\ |
||||
\ |
||||
]]></sqlvar>\ |
||||
</sqlvars>\ |
||||
\ |
||||
<#assign jahr_param="" />\ |
||||
<#assign jahr_filter="1=1" />\ |
||||
/* <#assign jahr_param="<<Jahr>>" /> */\ |
||||
--Akad. Jahr 2022: WS + SS - Beispiel: WS 22/23 + SS 2023\ |
||||
<#if jahr_param !="">\ |
||||
<#assign jahr_filter="(" />\ |
||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem_der_pruefung from 5 for 1)='2' and val(substring('' || sem_der_pruefung from 1 for 4))="+jahr_param+")" />\ |
||||
<#assign jahr_filter=jahr_filter + " or "/>\ |
||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem_der_pruefung from 5 for 1)='1' and (val(substring('' || sem_der_pruefung from 1 for 4))-1)="+jahr_param+")" />\ |
||||
<#assign jahr_filter=jahr_filter + ")" />\ |
||||
</#if>\ |
||||
\ |
||||
<#assign semester_filter ="1=1\ |
||||
/* and sem_der_pruefung >= <<Seit Semester>> */\ |
||||
/* and sem_der_pruefung <= <<Bis Semester>> */\ |
||||
" />\ |
||||
<#if "<<Semestertyp>>"="1" || "<<Semestertyp>>"="2">\ |
||||
<#assign semester_filter = semester_filter+ " and substring('' || sem_der_pruefung from 5 for 1)='<<Semestertyp>>'" />\ |
||||
</#if>\ |
||||
<#if "<<Nur Endsemester>>"="1">\ |
||||
--nur Endsemester\ |
||||
<#assign semester_filter = semester_filter+ " and 1=1 and sem_der_pruefung = "+endsemester /> \ |
||||
</#if>\ |
||||
\ |
||||
\ |
||||
\ |
||||
<#assign filter="1=1\ |
||||
/* and endsemester = <<Semester>> */\ |
||||
/* and geschlecht = <<Geschlecht>> */\ |
||||
/* and fach_sem_zahl <= <<bis Fachsemester>> */\ |
||||
/* and substring('' || sem_der_pruefung from 5 for 1)='<<Semestertyp>>' */\ |
||||
/* and <<Hochschulzugangsber.>> */\ |
||||
/* and matrikel_nr = <<Matrikel-Nr.>> */\ |
||||
" />\ |
||||
\ |
||||
\ |
||||
\ |
||||
\ |
||||
\ |
||||
\ |
||||
\ |
||||
\ |
||||
<#assign filter= filter + " and " + jahr_filter />\ |
||||
\ |
||||
<#assign filter= filter + " and " + semester_filter />\ |
||||
\ |
||||
\ |
||||
<#assign filter = filter + " and 's_' || tid_stg in "+Studiengang.allNeededKeysList /> \ |
||||
/* <#assign filter = filter + " and '' || ca12_staat in "+Staatsangehörigkeit.allNeededKeysList /> --<<Staatsangehörigkeit>> */\ |
||||
/* <#assign filter = filter + " and tid_stg in (select L2.tid from lehr_stg_ab L2 where L2.stg in "+Fächer.allNeededKeysList +")" /> --<<Fächer>> */\ |
||||
/* <#assign filter = filter + " and tid_stg in (select L2.tid from lehr_stg_ab L2 where L2.abschluss in "+Abschluss.allNeededKeysList +")" /> --<<Abschluss>> */\ |
||||
\ |
||||
<#if columns?has_content>\ |
||||
\ |
||||
<#if basetable.is_virtual==1>\ |
||||
\ |
||||
create temp table ${basetable.runtime_tablename} as\ |
||||
select ${rpta_resultset.fieldclause} \ |
||||
from ${rpta_resultset.joinclause} \ |
||||
where 1=1\ |
||||
<#if rpta_resultset.whereclause != ""> \ |
||||
${rpta_resultset.whereclause} </#if>\ |
||||
and ${filter}\ |
||||
;\ |
||||
</#if>\ |
||||
\ |
||||
\ |
||||
\ |
||||
<@rpta_interpret_column_layout nonvirtualTableFilter=1/>\ |
||||
\ |
||||
\ |
||||
</#if> --wenn columns?has_content^--Freemarker Template\ |
||||
XIL List\ |
||||
sizable_columns horizontal_scrolling\ |
||||
drop_and_delete movable_columns \ |
||||
white_space_color=COLOR_WHITE fixed_columns=1\ |
||||
min_heading_height=55\ |
||||
<#foreach column in columns>\ |
||||
<#if column.is_visible!=0>\ |
||||
Column CID=0 heading_text="${column.caption}" center_heading explanation="${column.description}"\ |
||||
row_selectable heading_platform readonly\ |
||||
width=${column.visible_width} text_size=60\ |
||||
</#if>\ |
||||
</#foreach>\ |
||||
@@@^Altersgruppe^Anzahl^Auswertungen zu Leistungsmonitoring-ECTS-Daten^drop table if exists tmp_stud2; drop table if exists tmp_stud3;^^3^700^360^^1^^ |
||||
Loading…
Reference in new issue