Browse Source

Abschlussprüfungen Konnektor und Datenblatt #7

COStage_0.3_Release
Daniel Quathamer 2 years ago
parent
commit
1e0abb3aec
  1. 78
      src-modules/module/costage/conf/costage.xml
  2. 129
      src-modules/module/costage/hilfstabellen/costage_st_pruef_aggr_fuellen.sql
  3. 1
      src-modules/module/costage/hilfstabellen/vacuum_pg.sql
  4. 67
      src-modules/module/costage/masken/43080_felderinfo.unl
  5. 1
      src-modules/module/costage/masken/43080_maske_system_bez.unl
  6. 20
      src-modules/module/costage/masken/43080_masken_felder_bez.unl
  7. 133
      src-modules/module/costage/masken/43080_maskeninfo.unl
  8. 1
      src-modules/module/costage/masken/43080_sachgeb_maske_bez.unl
  9. 99
      src-modules/module/costage/rohdaten/sos_costage_unload.xml
  10. 3
      src-modules/module/costage/schluesseltabellen/sx_stylesheets_einfuegen.sql

78
src-modules/module/costage/conf/costage.xml

@ -491,13 +491,54 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="summe" type ="INTEGER" size ="2" default ="" notnull ="false" description="Summe" /> <column name="summe" type ="INTEGER" size ="2" default ="" notnull ="false" description="Summe" />
</columns> </columns>
<indexes></indexes> <indexes>
</indexes>
<primaryKeys><rs> <primaryKeys><rs>
</rs></primaryKeys> </rs></primaryKeys>
<foreignKeys><rs> <foreignKeys><rs>
</rs></foreignKeys> </rs></foreignKeys>
</table> </table>
<!-- neue Views in 0.3 --> <!-- neue Views in 0.3 -->
<table name="costage_st_pruef_aggr" thema="Prüfungen und Leistungen" caption="Prüfungen (CO)" typ="Hilfstabelle" releaseUnload="empty">
<columns><column name="st_studium_nr" type ="INTEGER" size ="8" default ="" notnull ="true" description="Studium (ID)" />
<column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" description="Studierendenstammdaten (ID)" />
<column name="matrikelnummer" type ="INTEGER" size ="8" default ="" notnull ="false" description="Matrikelnummer" />
<column name="semester" type ="INTEGER" size ="8" default ="" notnull ="false" description="Semester" />
<column name="st_studiengang_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="Studiengang (ID)" />
<column name="unikey" type ="CHAR" size ="10" default ="" notnull ="false" description="Hochschulnummer" />
<column name="studienidentifikator" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Studienidentifikator"/>
<column name="fachsemester" type ="INTEGER" size ="4" default ="" notnull ="false" description="Fachsemester" />
<column name="leistung_nr" type ="INTEGER" size ="4" default ="" notnull ="true" description="Eindeutige Laufnummer" />
<column name="leistungstyp_nr" type ="INTEGER" size ="4" default ="" notnull ="true" description="Leistungstyp" />
<column name="leistungsdetailtyp_kb" type ="VARCHAR" size ="10" default ="" notnull ="false" description="Leistungsdetailtyp" />
<column name="pnr" type ="INTEGER" size ="10" default ="" notnull ="false" description="Prüfungselement Nr." />
<column name="abschnitt" type ="INTEGER" size ="4" default ="" notnull ="false" description="Studienabschnitt"><comment>Hauptprüfung/TSAB</comment></column>
<column name="stp_sp_nr" type ="INTEGER" size ="4" default ="" notnull ="false" description="Prüfungsordnung Nr."><comment>Prüfungsordnung Nr.</comment></column>
<column name="note" type ="FLOAT" size ="4" default ="" notnull ="false" description="Note"/>
<column name="credits" type ="FLOAT" size ="4" default ="" notnull ="false" description="Credits" />
<column name="leistungsdatum" type ="DATE" size ="7" default ="" notnull ="false" description="Prüfungsdatum"/>
<column name="anerkannt_flag" type ="CHAR" size ="1" default ="" notnull ="false" description="Anerkannt"><comment>J/N</comment></column>
<column name="leistungsstatus_nr" type ="INTEGER" size ="4" default ="" notnull ="false" description="Redaktionsstatus" currentlyUsed="false" ><comment>gültig/In Bearbeitung </comment></column>
<column name="leistungsstatus_map_kb" type ="CHAR" size ="10" default ="" notnull ="false" description="Prüfungsstatus"/>
<column name="summe" type ="INTEGER" size ="2" default ="" notnull ="false" description="Summe" />
</columns>
<indexes>
<index name="ix_costage_st_pruef_aggr1" unique="false">
<index-column name="st_studiengang_nr"/>
</index>
<index name="ix_costage_st_pruef_aggr2" unique="false">
<index-column name="semester"/>
</index>
<index name="ix_costage_st_pruef_aggr3" unique="false">
<index-column name="leistungsdetailtyp_kb"/>
</index>
<index name="ix_costage_st_pruef_aggr4" unique="false">
<index-column name="leistungsstatus_nr"/>
</index>
</indexes>
</table>
<table name="costage_bw_bewerbungen" thema="Bewerbungen" caption="Bewerbungen (CO)" typ="Datentabelle" releaseUnload="empty"> <table name="costage_bw_bewerbungen" thema="Bewerbungen" caption="Bewerbungen (CO)" typ="Datentabelle" releaseUnload="empty">
<columns><column name="nr" type ="INTEGER" size ="4" default ="" notnull ="true" /> <columns><column name="nr" type ="INTEGER" size ="4" default ="" notnull ="true" />
<column name="st_studstamm_nr" type ="INTEGER" size ="4" default ="" notnull ="true" /> <column name="st_studstamm_nr" type ="INTEGER" size ="4" default ="" notnull ="true" />
@ -1032,7 +1073,8 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</table> </table>
<table name="costage_leistungen_status_typen" thema="Prüfungen und Leistungen" caption="Leistungsstati Typen (CO)" typ="Schlüsseltabelle" releaseUnload="empty"> <table name="costage_leistungen_status_typen" thema="Prüfungen und Leistungen" caption="Leistungsstati Typen (CO)" typ="Schlüsseltabelle" releaseUnload="empty">
<columns><column name="leistungsstatus_nr" type ="INTEGER" size ="4" default ="" notnull ="true" /> <columns>
<column name="leistungsstatus_nr" type ="INTEGER" size ="4" default ="" notnull ="true" />
<column name="kurzbezeichnung" type ="VARCHAR" size ="255" default ="" notnull ="true" /> <column name="kurzbezeichnung" type ="VARCHAR" size ="255" default ="" notnull ="true" />
<column name="name_de" type ="VARCHAR" size ="255" default ="" notnull ="false" /> <column name="name_de" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="name_en" type ="VARCHAR" size ="255" default ="" notnull ="false" /> <column name="name_en" type ="VARCHAR" size ="255" default ="" notnull ="false" />
@ -1102,7 +1144,12 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema>
<path>$COSTAGE_PFAD/masken</path> <path>$COSTAGE_PFAD/masken</path>
</src> </src>
</maske> </maske>
<maske tid="43080" name="Abschlussprüfungen Datenblatt (CO)" thema="CO Basisdaten">
<description>Absolv. Zeitreihe</description>
<src>
<path>$COSTAGE_PFAD/masken</path>
</src>
</maske>
</masken> </masken>
<data-integrity> <data-integrity>
@ -1222,6 +1269,30 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema>
displayType="select" visibleFields="name" format="%s"> displayType="select" visibleFields="name" format="%s">
<relation-column from="st_land_nr" to="adresse_staat_h" /> <relation-column from="st_land_nr" to="adresse_staat_h" />
</relation> </relation>
<!--costage_st_pruef_aggr-->
<relation from="costage_st_semester" to="costage_st_pruef_aggr" delete="FALSE"
displayType="select" visibleFields="semester_bezeichnung" format="%s">
<relation-column from="semester_tid" to="semester" />
</relation>
<relation from="costage_st_studien" to="costage_st_pruef_aggr" delete="FALSE"
displayType="select" visibleFields="st_studium_nr" format="%s">
<relation-column from="st_studium_nr" to="st_studium_nr" />
</relation>
<relation from="costage_st_studiengaenge" to="costage_st_pruef_aggr" delete="FALSE"
displayType="select" visibleFields="studiengangs_bezeichnung" format="%s">
<relation-column from="st_studiengang_nr" to="st_studiengang_nr" />
</relation>
<relation from="costage_leistungen_typen" to="costage_st_pruef_aggr" delete="FALSE"
displayType="select" visibleFields="name_de" format="%s">
<relation-column from="leistungstyp_nr" to="leistungstyp_nr" />
</relation>
<relation from="costage_leistungen_status_typen" to="costage_st_pruef_aggr" delete="FALSE"
displayType="select" visibleFields="kurzbezeichnung" format="%s">
<relation-column from="leistungsstatus_nr" to="leistungsstatus_nr" />
</relation>
</data-integrity> </data-integrity>
</database> </database>
@ -1299,6 +1370,7 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema>
<etl-step name="Aggregation" type="aggr"> <etl-step name="Aggregation" type="aggr">
<action> <action>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_st_studien_aggr_fuellen.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_st_studien_aggr_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_st_pruef_aggr_fuellen.sql" database=""/>
<!--<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/semester_bereinigen.sql" database=""> <!--<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/semester_bereinigen.sql" database="">
<description>Ungenutzte Semester, d.h. Semester, die keine Bewegungsdaten enthalten (z.B. WS 1937/1938) entfernen</description> <description>Ungenutzte Semester, d.h. Semester, die keine Bewegungsdaten enthalten (z.B. WS 1937/1938) entfernen</description>
</nativeaction>--> </nativeaction>-->

129
src-modules/module/costage/hilfstabellen/costage_st_pruef_aggr_fuellen.sql

@ -0,0 +1,129 @@
SELECT
S.st_studium_nr,
S.st_studstamm_nr,
S.matrikelnummer,
S.st_studiengang_nr,
S.st_studienstatus_nr,
S.semester,
S.fachsemester,
S.unikey,
L.leistung_nr,
L.leistungstyp_nr,
L.leistungsdetailtyp_kb,
L.studienidentifikator,
L.spov_abschluss,
L.stp_sp_nr,
L.veranstaltung_nummer,
L.veranstaltung_semester,
L.veranstaltung_titel,
L.veranstaltung_art,
L.semesterstunden,
L.unterrichtseinheiten,
L.thema_individuell,
L.pv_notenskala_nr,
L.note,
L.note_name,
L.note_zahl,
L.pv_pruef_zusatz_typen_nr,
L.note_zusatz,
L.note_zusatz_name,
L.note_positiv_flag,
L.note_negativ_flag,
L.pv_notenskala_typ_nr,
L.pv_notenskala_typ_kb,
L.pv_notenskala_typ_name,
L.credits,
date(L.leistungsdatum) as leistungsdatum,
L.anerkannt_flag,
L.zusatzleistung_flag,
L.leistungsstatus_nr,
L.leistungsstatus_map_kb,
2::integer as abschnitt, --provisorisch erstmal nur Hauptprüfungen
null::integer as pnr
into temp tmp_pruef
FROM costage_st_studien_aggr S, costage_leistungen L, costage_st_semester E, costage_leistungen_typen T
where L.st_studium_nr=S.st_studium_nr
and L.matrikelnummer=S.matrikelnummer::varchar(255)
and E.semester_id=L.veranstaltung_semester
and E.semester_tid=S.semester
and T.leistungstyp_nr=L.leistungstyp_nr
-- TSAB/AB:
and T.kurzbezeichnung='AP' --Abschlussprüfung
and L.leistungsstatus_nr in (4,2) --Letztgültig/Final/gültige Leistung
--px_leistungen_status_typen_v:
--4^F^Letztgültig^Final^
--1^P^in Bearbeitung^in process^
--2^V^gültige Leistung^valid^
--3^I^ungültige Leistung^invalid^
--5^D^gelöscht^deleted^
;
--TSAB:
update tmp_pruef set pnr=9068
where leistungsdetailtyp_kb in ('TSAB');
--Abschluss Bachelorstudium:
update tmp_pruef set pnr=9024
where leistungsdetailtyp_kb in ('BAKN')
;
--Abschluss Masterstudium
update tmp_pruef set pnr=9025
where leistungsdetailtyp_kb in ('BAKN');
--Staatsexamen
update tmp_pruef set pnr=9054
where leistungsdetailtyp_kb in ('STEX');
--Abschluss eines Ergänzungsstudiums
update tmp_pruef set pnr=9060
where leistungsdetailtyp_kb in ('ERGAB');
truncate table costage_st_pruef_aggr;
insert into costage_st_pruef_aggr(st_studium_nr,
st_studstamm_nr,
matrikelnummer,
semester,
st_studiengang_nr,
unikey,
studienidentifikator,
fachsemester,
leistung_nr,
leistungstyp_nr,
leistungsdetailtyp_kb,
pnr,
abschnitt,
stp_sp_nr,
note,
credits,
leistungsdatum,
anerkannt_flag,
leistungsstatus_map_kb,
summe)
select
st_studium_nr,
st_studstamm_nr,
matrikelnummer,
semester,
st_studiengang_nr,
unikey,
substring(studienidentifikator from 1 for 255),
fachsemester,
leistung_nr,
leistungstyp_nr,
leistungsdetailtyp_kb,
pnr,
abschnitt,
stp_sp_nr,
case when pv_notenskala_typ_kb in ('DE1','DE2','DE3','DE4','DE5','DE6','DE7') or pv_notenskala_typ_kb is null then note_zahl else null::float end as note,
credits,
leistungsdatum,
anerkannt_flag,
leistungsstatus_map_kb,
count(*)
from tmp_pruef
group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19;
drop table tmp_pruef;

1
src-modules/module/costage/hilfstabellen/vacuum_pg.sql

@ -6,3 +6,4 @@ vacuum costage_st_semester;
vacuum costage_st_studierendenstammdaten; vacuum costage_st_studierendenstammdaten;
vacuum costage_st_studiengaenge; vacuum costage_st_studiengaenge;
vacuum costage_st_studien_aggr; vacuum costage_st_studien_aggr;
vacuum costage_st_pruef_aggr;

67
src-modules/module/costage/masken/43080_felderinfo.unl

@ -0,0 +1,67 @@
43080^Studiengang-Nr.^110^0^0^140^150^1^integer^70^0^13^<<SQL>> --Freemarker template\
<#list 1..6 as i>\
select ${i},'${i}. Studiengang' from xdummy\
<#if i_has_next> union </#if>\
</#list>\
order by 1^ ^^
43081^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> select semester_tid, semester_bezeichnung from costage_st_semester order by 1 DESC;^ ^<<SQL>> select semester_tid, semester_bezeichnung from costage_st_semester where today()-365 between date(semester_anfang) and date(semester_ende);^
43083^Staatsangehörigkeit^36^0^0^130^150^10^sql^30^0^1^<<SQL>> SELECT st_land_nr, name from costage_st_laender order by 2;^^^
43084^Prüfungsstatus^14^350^-1^140^180^1^char^30^0^1^<<SQL>> select apnr,druck from cifx where key=622 order by 2^^ ^
43085^Studienabschnitt^10^330^-1^130^150^1^integer^4^0^13^<<SQL>> select tid, eintrag from studienabschnitt where tid <= 2;^^<<SQL>> select tid, eintrag from studienabschnitt where tid = 2;^
43086^Weitere Tabellen^123^0^0^140^140^10^char^30^0^1^<<SQL>> \
--freemarker template\
select name,string_not_null(caption) || ' - ' || name from sx_tables where name in ('costage_st_studierendenstammdaten','costage_st_studiengaenge')\
<#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^^^
43087^Leistungsdetailtyp^35^350^-1^140^100^10^integer^30^0^1^<<SQL>> select leistungsdetailtyp_kb,name_de from costage_leistungen_detail_typen\
where leistungsdetailtyp_kb in (select distinct leistungsdetailtyp_kb from costage_st_pruef_aggr);^^^
43089^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> select semester_tid, semester_bezeichnung from costage_st_semester order by 1 DESC;^ ^<<SQL>> select semester_tid, semester_bezeichnung from costage_st_semester where today() between date(semester_anfang) and date(semester_ende);^
43090^Fach-Nr.^119^0^0^140^150^1^integer^20^0^13^<<SQL>> --Freemarker template\
<#list 1..10 as i>\
select ${i},'${i}. Fach' from xdummy\
<#if i_has_next> union </#if>\
</#list>\
order by 1^ ^^
43091^Geschlecht^37^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif WHERE cif.key = 9003 order by 2;^^^
43092^Felder^125^0^0^150^190^10^char^30^0^1^<<SQL>>\
--freemarker template\
select trim(F.table_name) || '.' || F.name,trim(T.caption) || ':' || trim(F.caption) || ' - ' || trim(F.name) from sx_fields F,\
sx_tables T where F.table_name=T.name and F.currentlyused=1\
--Pseudonyme eingeschaltet:\
and (F.name != 'matrikel_nr' or 0=(select \
count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\
and apnr=1)) \
<#if <<tablestylesheet>>='tabelle_html_datenblatt.xsl'>\
and (F.table_name ='costage_st_studien_aggr'\
/* or F.table_name in (<<Weitere Tabellen>>) */) \
<#else>\
and trim(F.table_name) || '.' || F.name in (select trim(tablename)||'.'||trim(fieldname) from stylesheet_field where stylesheet_id in \
(select tid from sx_stylesheets where filename=<<tablestylesheet>>))\
</#if>\
order by 2;^^^
43093^Fach^6^0^0^140^150^50^char^30^0^1^<<SQL>>\
SELECT \
skz_key,\
skz_name\
FROM costage_st_studienkennzahlen\
/* where unikey=<<Hochschule>> */\
order by 2\
;^^^
43094^Schlüssel anzeigen^150^0^0^100^100^1^integer^30^1^1^<<SQL>> select 1,'Ja' from xdummy union select 0,'Nein' from xdummy^^<<SQL>> select 1,'Ja' from xdummy^
43095^tablestylesheet^121^0^0^100^200^1^char^200^1^1^<<SQL>> select distinct filename,X.caption,ord from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=43080 order by ord^^<<SQL>> select distinct filename,X.caption from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=43080 and S.ord=1^
43096^Ausgabeformat^2001^0^0^100^150^1^char^200^1^1^<<SQL>> select element_value,description from menu_element where element='Ausgabeformat' and nature::smallint<100 order by nature::smallint^^<<SQL>> select element_value,description from menu_element where element='Ausgabeformat' and description='HTML'^
43099^Hochschule^5^350^-1^140^80^1^char^255^0^1^<<SQL>>select distinct K.unikey,K.unikey\
from costage_st_studienkennzahlen K\
order by 2;^ ^<<SQL>> select distinct K.unikey,K.unikey\
from costage_st_studienkennzahlen K, hochschulinfo H\
where K.unikey=H.hs_nr::char(10)^
43100^##line##^10^0^0^100^100^1^char^5000^0^8^^^1^
43101^Abschluss^7^0^0^140^170^5^char^30^0^1^<<SQL>> SELECT \
code,\
name\
FROM costage_st_abschlussziele_lokal\
order by 2;^^^
43102^Matrikel-Nr.^20^350^-1^150^180^1^char^200^0^0^^^^
43103^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^

1
src-modules/module/costage/masken/43080_maske_system_bez.unl

@ -0,0 +1 @@
43080^310^

20
src-modules/module/costage/masken/43080_masken_felder_bez.unl

@ -0,0 +1,20 @@
43080^43080^
43080^43081^
43080^43083^
43080^43084^
43080^43085^
43080^43086^
43080^43087^
43080^43089^
43080^43090^
43080^43091^
43080^43092^
43080^43093^
43080^43094^
43080^43095^
43080^43096^
43080^43099^
43080^43100^
43080^43101^
43080^43102^
43080^43103^

133
src-modules/module/costage/masken/43080_maskeninfo.unl

@ -0,0 +1,133 @@
43080^Abschlussprüfungen Datenblatt (CO)^--Freemarker Template\
<#include "SQL_lingua_franca"/>\
<#include "SuperX_general"/>\
<#include "SQL_multitable_output"/>\
\
--ram excelexport \
<#include "SQL_lingua_franca"/>\
<#include "SuperX_general"/>\
<#include "SQL_multitable_output"/>\
\
<sqlvars>\
<sqlvar name="get_tables"><![CDATA[\
SELECT distinct name,name\
from sx_tables\
where name in ('costage_st_pruef_aggr'\
${DatenblattTables(<<tablestylesheet>>,"<<Weitere Tabellen>>",.vars["Weitere TabellenObject"].allKeys)}\
\
)\
order by 2;]]>\
</sqlvar>\
<sqlvar name="get_table_joins"><![CDATA[\
select table_name || '.' || name || '=' || foreignkey_tab || '.' || foreignkey_col,table_name \
from sx_fields where table_name in ('costage_st_pruef_aggr'\
${DatenblattTables(<<tablestylesheet>>,"<<Weitere Tabellen>>",.vars["Weitere TabellenObject"].allKeys)} )\
and foreignkey_tab in ('costage_st_pruef_aggr'\
${DatenblattTables(<<tablestylesheet>>,"<<Weitere Tabellen>>",.vars["Weitere TabellenObject"].allKeys)})\
;]]>\
</sqlvar>\
<sqlvar name="get_felder"><![CDATA[\
SELECT name,\
caption,\
(trim(field_type) || '#' || is_primarykey || '#' || trim(string_not_null(foreignkey_tab)) || '#' || trim(string_not_null(foreignkey_col))\
|| '#' || trim(string_not_null(foreignkey_cap))\
|| '#' || trim(string_not_null(foreignkey_cond))\
|| '#' || trim(string_not_null(foreignkey_func))\
|| '#' || trim(string_not_null(table_name))\
|| '#' || trim(string_not_null(foreignkey_uniquename)))::char(255) as strukturStr\
from sx_fields\
where table_name in ('costage_st_pruef_aggr'\
${DatenblattTables(<<tablestylesheet>>,"<<Weitere Tabellen>>",.vars["Weitere TabellenObject"].allKeys)}\
)\
and currentlyused=1\
${DatenblattFields(<<tablestylesheet>>,"<<Felder>>",FelderObject.allKeys)}\
order by 2,3;]]>\
</sqlvar>\
<sqlvar name="get_felder_fk"><![CDATA[\
SELECT name,\
caption,\
(trim(table_name)\
|| '#' || trim(string_not_null(foreignkey_tab))\
|| '#' || trim(string_not_null(foreignkey_uniquename)))::char(255) as strukturStr\
from sx_fields\
where table_name in ('costage_st_pruef_aggr' ${DatenblattTables(<<tablestylesheet>>,"<<Weitere Tabellen>>",.vars["Weitere TabellenObject"].allKeys)}\
)\
and currentlyused=1\
${DatenblattFields(<<tablestylesheet>>,"<<Felder>>",FelderObject.allKeys)}\
order by 2,3;]]>\
</sqlvar>\
</sqlvars>\
\
<@generate_multitable_list />\
<@generate_field_list_multitable aggregationsfeld="summe" aggregatfunktion="sum(" />\
<@generate_foreign_fields_multitable />\
\
\
<#assign filter="\
/* and hrst in (<<Hörerstatus>>) */\
/* and semester >= <<Seit Semester>> */\
/* and semester <= <<Bis Semester>> */\
/* AND leistungsdetailtyp_kb in (<<Leistungsdetailtyp>>) */\
/* and leistungsstatus_map_kb in(<<Prüfungsstatus>>) */\
/* and costage_st_pruef_aggr.st_studiengang_nr in (select G.st_studiengang_nr from costage_st_studiengaenge G where G.abschluss in (<<Abschluss>>)) */\
/* and costage_st_pruef_aggr.st_studiengang_nr in (select G.st_studiengang_nr from costage_st_studiengaenge G where G.stg in (<<Fach>>)) */\
/* and studiengang_nr =<<Studiengang-Nr.>> */\
/* and fach_nr =<<Fach-Nr.>> */\
/* and costage_st_pruef_aggr.st_studstamm_nr in (select S.st_studstamm_nr from costage_st_studierendenstammdaten S where S.st_land1_nr in (<<Staatsangehörigkeit>>) ) */\
/* and costage_st_pruef_aggr.st_studstamm_nr in (select S2.st_studstamm_nr from costage_st_studierendenstammdaten S2 where S2.geschlecht = <<Geschlecht>> ) */\
" />\
\
\
<#if "<<Matrikel-Nr.>>"!="">\
<#assign filter=filter+" and costage_st_pruef_aggr.matrikelnummer in (<<Matrikel-Nr.>>)"?replace("'","")/>\
</#if>\
\
\
\
<@generate_resultset_multitable tabellen=table_list\
p_show_keys=<<Schlüssel anzeigen>>\
p_field_list_select=field_list_select\
p_foreign_fields=foreign_fields\
p_filter=filter\
p_field_list_groupby=field_list_groupby\
p_join_clause=join_clause\
/>^--Freemarker Template \
<sqlvars>\
<sqlvar name="basetable">select 'costage_st_pruef_aggr' from xdummy</sqlvar>\
<sqlvar name="restriction"><![CDATA[\
<#assign restrict=DatenblattTables(<<tablestylesheet>>,"<<Weitere Tabellen>>",.vars["Weitere TabellenObject"].allKeys)/>;\
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\
${DatenblattFields(<<tablestylesheet>>,"<<Felder>>",FelderObject.allKeys)}\
order by 1;]]>\
</sqlvar>\
</sqlvars>\
XIL List\
sizable_columns horizontal_scrolling\
white_space_color=COLOR_WHITE fixed_columns=1\
min_heading_height=35\
<#assign i=1 />\
<#if get_felder?has_content >\
<#foreach myfield in get_felder>\
<#assign i=i+1 />\
Column CID=${i} heading_text="${myfield.key}" explanation="${myfield.strukturStr}" center_heading\
row_selectable col_selectable rightJust heading_platform readonly\
width=20\
<#if myfield.name != '' && <<Schlüssel anzeigen>>==1>\
<#assign i=i+1 />\
Column CID=${i} heading_text="${myfield.key}\\n(Schlüssel)" explanation="Schlüssel des Feldes ${myfield.key}" center_heading\
row_selectable col_selectable rightJust heading_platform readonly\
width=20\
</#if>\
</#foreach>\
</#if>\
@@@^Altersgruppe^Anzahl^Flexible Ausgabe der Studierendenstatistik, Studiengänge und Lehreinheiten^drop table tmp_tabelle;^ ^2^700^360^0^1^ ^

1
src-modules/module/costage/masken/43080_sachgeb_maske_bez.unl

@ -0,0 +1 @@
310^43080^

99
src-modules/module/costage/rohdaten/sos_costage_unload.xml

@ -2504,7 +2504,54 @@ on (C.id=L.course_of_study_id)
</extraction-sql> </extraction-sql>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
select * from k_stg where 1=0; SELECT
P.matrikelnummer,
null::integer as studiengang_nr,
null::integer as fach_nr,
G.abschluss,
P.semester,
P.leistungsdatum,
G.stg,
null::integer as vert,
null::integer as schwp,
G.fachkennzeichen,
round(P.note::decimal(15,4),2) as note,
null::integer as vken1,
null::char(7), --pruefungsamt_nr
P.pnr,
val(G.pversion),
P.leistungsstatus_map_kb as pstatus,
P.fachsemester ,
null::char(7) as part,
P.leistung_nr,
null::integer as pversuch,
null::char(7)as ppruef1,
null::char(7) as ppruef2,
null::char(7) as malus,
P.credits as bonus,
stp_sp_nr as pordnr,
null::integer as psws,
null::char(1), --relation_id nur bei HIS1
null::integer as pvermerk,
null::integer as prueck,
null::integer as ptermin, --term_segment
null::integer as pform,
null::char(1), --anger. fs insg.
null::char(1), --berufspraktische taetigkeit
null::char(1), --aus auslandsstudium
null::char(1), --aus anderem stg an einer deutschen hs
null::char(1), -- amtl. Schl. Art der Promotion
P.anerkannt_flag as panerk,
null::integer as pstatkennz,
null::integer as ppunkte,
null::CHAR(1), --stuart
G.stufrm,
null::CHAR(1) --stutyp
FROM costage_st_pruef_aggr P, costage_st_studiengaenge G
where G.st_studiengang_nr=P.st_studiengang_nr
AND P.semester >= $start_pruef_sem
;
]]> ]]>
</extraction-sql> </extraction-sql>
@ -5358,50 +5405,28 @@ null as sortorder
FROM costage_st_studiengaenge FROM costage_st_studiengaenge
WHERE fachkennzeichen is not null WHERE fachkennzeichen is not null
and trim(fachkennzeichen)!='' and trim(fachkennzeichen)!=''
-- union union
-- SELECT SELECT distinct
-- 622, 622,
-- -1, -1,
-- pstatus, leistungsstatus_map_kb as pstatus,
-- pstatus as ktxt, leistungsstatus_map_kb as ktxt,
-- dtxt, leistungsstatus_map_kb as dtxt,
-- ltxt, leistungsstatus_map_kb as ltxt,
-- '', -- '',
-- '', -- '',
-- pstatus , leistungsstatus_map_kb ,
-- '', -- '',
-- '', -- '',
-- '', --gültig von '', --gültig von
-- '', --gültig bis '', --gültig bis
-- pstatus , --sourcesystem_id leistungsstatus_map_kb , --sourcesystem_id
-- '' , --hiskey_id
-- '' , --struktur_c
--null as lid,
--null as parent_lid,
--null as sortorder
-- FROM k_pstatus
union
SELECT
11,
-1,
ikfz,
ktxt,
dtxt,
ltxt,
astat,
'',
ikfz,
bland,
'' ,
null as gueltig_von,
null as gueltig_bis,
ikfz , --sourcesystem_id
'' , --hiskey_id '' , --hiskey_id
aikz , --struktur_c '' , --struktur_c
null as lid, null as lid,
null as parent_lid, null as parent_lid,
null as sortorder null as sortorder
FROM k_ikfz FROM costage_st_pruef_aggr
union union
SELECT SELECT
12, 12,

3
src-modules/module/costage/schluesseltabellen/sx_stylesheets_einfuegen.sql

@ -4,7 +4,8 @@
--Bitte nur Freemarker Variablen füllen --Bitte nur Freemarker Variablen füllen
<#assign masken = [ <#assign masken = [
{"mask":"43040", "filename":"tabelle_html_datenblatt.xsl", "ord":"1"} {"mask":"43040", "filename":"tabelle_html_datenblatt.xsl", "ord":"1"},
{"mask":"43080", "filename":"tabelle_html_datenblatt.xsl", "ord":"1"}
] /> ] />
<#assign stylesheet = [ <#assign stylesheet = [

Loading…
Cancel
Save