Browse Source

Leistungsdaten TSG/MSG Filtern und ausgabe #6

COStage_0.3_Release
Daniel Quathamer 2 years ago
parent
commit
9aa29621da
  1. 14
      src-modules/module/costage/conf/costage.xml
  2. 99
      src-modules/module/costage/hilfstabellen/costage_st_pruef_aggr_fuellen.sql
  3. 13
      src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen.sql
  4. 13
      src-modules/module/costage/masken/43080_felderinfo.unl
  5. 46
      src-modules/module/costage/masken/43080_maskeninfo.unl
  6. 0
      src-modules/module/costage/rohdaten_sos/sos_costage_unload.x
  7. 117
      src-modules/module/costage/rohdaten_sos/sos_costage_unload.xml
  8. 0
      src-modules/module/costage/rohdaten_sos/sos_v1_unload.x
  9. 0
      src-modules/module/costage/rohdaten_sos/sos_v1_unload.xml
  10. 1
      src-modules/module/costage/rohdaten_sos/superx.datum

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

@ -423,6 +423,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="st_studstamm_nr" type ="INTEGER" size ="8" default ="" notnull ="true" description="Studierendenstammdaten (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="matrikelnummer" type ="INTEGER" size ="8" default ="" notnull ="false" description="Matrikelnummer" />
<column name="st_studiengang_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="Studiengang (ID)" /> <column name="st_studiengang_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="Studiengang (ID)" />
<column name="st_studiengang_nr_msg" type ="INTEGER" size ="8" default ="" notnull ="false" description="Studiengang (ID) des MSG" ><comment>nur bei TSG</comment></column>
<column name="st_studienstatus_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="Studienstatus (ID)" /> <column name="st_studienstatus_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="Studienstatus (ID)" />
<column name="statustyp" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienstatus"><comment>ESG oder, bei TSG, der Status des MSG</comment></column> <column name="statustyp" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienstatus"><comment>ESG oder, bei TSG, der Status des MSG</comment></column>
<column name="statustyp_tsg" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienstatus TSG" /> <column name="statustyp_tsg" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienstatus TSG" />
@ -506,13 +507,16 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="matrikelnummer" type ="INTEGER" size ="8" default ="" notnull ="false" description="Matrikelnummer" /> <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="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="st_studiengang_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="Studiengang (ID)" />
<column name="st_studiengang_nr_msg" type ="INTEGER" size ="8" default ="" notnull ="false" description="Studiengang (ID) des MSG" ><comment>nur bei TSG</comment></column>
<column name="unikey" type ="CHAR" size ="10" default ="" notnull ="false" description="Hochschulnummer" /> <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="studienidentifikator" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Studienidentifikator"/>
<column name="studiengang_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="Studiengang (Nr.)" currentlyUsed="false" />
<column name="fach_nr" type ="INTEGER" size ="8" default ="" notnull ="false" description="Fach (Nr.)" />
<column name="fachsemester" type ="INTEGER" size ="4" default ="" notnull ="false" description="Fachsemester" /> <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="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="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="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="pnr" type ="INTEGER" size ="10" default ="" notnull ="false" description="Prüfungselement Nr." currentlyUsed="false"/>
<column name="abschnitt" type ="INTEGER" size ="4" default ="" notnull ="false" description="Studienabschnitt"><comment>Hauptprüfung/TSAB</comment></column> <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="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="note" type ="FLOAT" size ="4" default ="" notnull ="false" description="Note"/>
@ -521,6 +525,9 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="anerkannt_flag" type ="CHAR" size ="1" default ="" notnull ="false" description="Anerkannt"><comment>J/N</comment></column> <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_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="leistungsstatus_map_kb" type ="CHAR" size ="10" default ="" notnull ="false" description="Prüfungsstatus"/>
<column name="leistung_nr_msg" type ="INTEGER" size ="4" default ="" notnull ="false" description="Eindeutige Laufnummer MSG" />
<column name="leistungsdatum_msg" type ="DATE" size ="7" default ="" notnull ="false" description="Prüfungsdatum MSG"/>
<column name="semester_msg" type ="INTEGER" size ="8" default ="" notnull ="false" description="Semester MSG" />
<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>
@ -1275,6 +1282,11 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema>
displayType="select" visibleFields="semester_bezeichnung" format="%s"> displayType="select" visibleFields="semester_bezeichnung" format="%s">
<relation-column from="semester_tid" to="semester" /> <relation-column from="semester_tid" to="semester" />
</relation> </relation>
<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_msg" />
</relation>
<relation from="costage_st_studien" to="costage_st_pruef_aggr" delete="FALSE" <relation from="costage_st_studien" to="costage_st_pruef_aggr" delete="FALSE"
displayType="select" visibleFields="st_studium_nr" format="%s"> displayType="select" visibleFields="st_studium_nr" format="%s">
<relation-column from="st_studium_nr" to="st_studium_nr" /> <relation-column from="st_studium_nr" to="st_studium_nr" />

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

@ -1,13 +1,15 @@
SELECT SELECT
S.st_studium_nr, L.st_studium_nr,
S.st_studstamm_nr, S.st_studstamm_nr,
S.matrikelnummer, val(L.matrikelnummer) as matrikelnummer,
S.st_studiengang_nr, null::integer as st_studiengang_nr,
S.st_studienstatus_nr, null::integer as studiengang_nr,
S.semester, null::integer as fach_nr,
S.fachsemester, null::integer as st_studienstatus_nr,
S.unikey, E.semester_tid as semester,
null::integer as fachsemester,
null::varchar(255) as unikey,
L.leistung_nr, L.leistung_nr,
L.leistungstyp_nr, L.leistungstyp_nr,
L.leistungsdetailtyp_kb, L.leistungsdetailtyp_kb,
@ -40,14 +42,16 @@ L.zusatzleistung_flag,
L.leistungsstatus_nr, L.leistungsstatus_nr,
L.leistungsstatus_map_kb, L.leistungsstatus_map_kb,
2::integer as abschnitt, --provisorisch erstmal nur Hauptprüfungen 2::integer as abschnitt, --provisorisch erstmal nur Hauptprüfungen
null::integer as pnr null::integer as pnr,
null::integer as leistung_nr_msg,
null::integer as st_studiengang_nr_msg,
null::date as leistungsdatum_msg,
null::integer as semester_msg
into temp tmp_pruef into temp tmp_pruef
FROM costage_st_studien_aggr S, costage_leistungen L, costage_st_semester E, costage_leistungen_typen T FROM costage_st_semester E, costage_leistungen_typen T, costage_leistungen L, costage_st_studierendenstammdaten S
where L.st_studium_nr=S.st_studium_nr where E.semester_id=L.veranstaltung_semester
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 and T.leistungstyp_nr=L.leistungstyp_nr
and S.matrikelnummer::varchar(255)=L.matrikelnummer
-- TSAB/AB: -- TSAB/AB:
and T.kurzbezeichnung='AP' --Abschlussprüfung and T.kurzbezeichnung='AP' --Abschlussprüfung
and L.leistungsstatus_nr in (4,2) --Letztgültig/Final/gültige Leistung and L.leistungsstatus_nr in (4,2) --Letztgültig/Final/gültige Leistung
@ -58,26 +62,49 @@ and L.leistungsstatus_nr in (4,2) --Letztgültig/Final/gültige Leistung
--3^I^ungültige Leistung^invalid^ --3^I^ungültige Leistung^invalid^
--5^D^gelöscht^deleted^ --5^D^gelöscht^deleted^
; ;
--TSAB:
update tmp_pruef set pnr=9068
where leistungsdetailtyp_kb in ('TSAB'); update tmp_pruef set st_studiengang_nr=S.st_studiengang_nr
from costage_st_studien S
where S.st_studium_nr=tmp_pruef.st_studium_nr
and S.st_studstamm_nr=tmp_pruef.st_studstamm_nr
;
--Abschluss Bachelorstudium: update tmp_pruef set
update tmp_pruef set pnr=9024 st_studienstatus_nr=S.st_studienstatus_nr,
where leistungsdetailtyp_kb in ('BAKN') fachsemester = S.fachsemester,
studiengang_nr=S.studiengang_nr,
fach_nr=S.fach_nr,
unikey=S.unikey,
st_studiengang_nr_msg=S.st_studiengang_nr_msg
from costage_st_studien_aggr S
where S.st_studium_nr=tmp_pruef.st_studium_nr
and S.matrikelnummer=tmp_pruef.matrikelnummer
and S.semester=tmp_pruef.semester
; ;
--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 --MSG-Daten nachladen:
update tmp_pruef set pnr=9060 --zuerst Kopie nur mit MSG:
where leistungsdetailtyp_kb in ('ERGAB'); select * into temp tmp_pruef2
from tmp_pruef
where leistungsdetailtyp_kb !='TSAB'
;
update tmp_pruef set leistung_nr_msg=T.leistung_nr,
leistungsdatum_msg=T.leistungsdatum,
semester_msg=T.semester
from tmp_pruef2 T
where tmp_pruef.leistungsdetailtyp_kb ='TSAB'
and T.matrikelnummer=tmp_pruef.matrikelnummer
and T.st_studiengang_nr=tmp_pruef.st_studiengang_nr_msg
;
update tmp_pruef set leistung_nr_msg=leistung_nr,
leistungsdatum_msg=leistungsdatum,
semester_msg=semester
where tmp_pruef.leistungsdetailtyp_kb !='TSAB'
;
truncate table costage_st_pruef_aggr; truncate table costage_st_pruef_aggr;
@ -86,6 +113,9 @@ insert into costage_st_pruef_aggr(st_studium_nr,
matrikelnummer, matrikelnummer,
semester, semester,
st_studiengang_nr, st_studiengang_nr,
st_studiengang_nr_msg,
studiengang_nr,
fach_nr,
unikey, unikey,
studienidentifikator, studienidentifikator,
fachsemester, fachsemester,
@ -100,6 +130,9 @@ insert into costage_st_pruef_aggr(st_studium_nr,
leistungsdatum, leistungsdatum,
anerkannt_flag, anerkannt_flag,
leistungsstatus_map_kb, leistungsstatus_map_kb,
leistung_nr_msg,
leistungsdatum_msg,
semester_msg,
summe) summe)
select select
st_studium_nr, st_studium_nr,
@ -107,6 +140,9 @@ select
matrikelnummer, matrikelnummer,
semester, semester,
st_studiengang_nr, st_studiengang_nr,
st_studiengang_nr_msg,
studiengang_nr,
fach_nr,
unikey, unikey,
substring(studienidentifikator from 1 for 255), substring(studienidentifikator from 1 for 255),
fachsemester, fachsemester,
@ -121,9 +157,12 @@ select
leistungsdatum, leistungsdatum,
anerkannt_flag, anerkannt_flag,
leistungsstatus_map_kb, leistungsstatus_map_kb,
leistung_nr_msg,
leistungsdatum_msg,
semester_msg,
count(*) count(*)
from tmp_pruef from tmp_pruef
group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19; group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25;
drop table tmp_pruef; drop table tmp_pruef;

13
src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_fuellen.sql

@ -165,7 +165,7 @@ min(T.semester) as startsemester,
max(T.semester) as endsemester max(T.semester) as endsemester
into temp tmp_studien_msg into temp tmp_studien_msg
from tmp_studien T from tmp_studien T
where T.studienstatustyp in ('B','E','I','X') --nur tatsächlich eingeschrieben where T.studienstatustyp in ('U','B','E','I','X') --nur tatsächlich eingeschrieben
and T.studiengangs_typ_kb ='MSG'--enthält die MSG and T.studiengangs_typ_kb ='MSG'--enthält die MSG
and T.status_historie=1 and T.status_historie=1
group by 1,2 group by 1,2
@ -370,13 +370,6 @@ and T.st_studiengang_nr_msg=tmp_studien2.st_studiengang_nr_msg
) )
; ;
select distinct st_studiengang_nr_msg, matrikelnummer, semester
into temp temp_tmp_studien2
from tmp_studien2
where primaerflag =1
and studiengangs_typ_kb ='TSG';
delete from costage_st_studien_aggr delete from costage_st_studien_aggr
--provisorisch in Testphase: --provisorisch in Testphase:
where ${COSTAGE_STUDENT_FILTER}; where ${COSTAGE_STUDENT_FILTER};
@ -388,6 +381,7 @@ st_studium_nr,
st_studstamm_nr, st_studstamm_nr,
matrikelnummer, matrikelnummer,
st_studiengang_nr, st_studiengang_nr,
st_studiengang_nr_msg,
st_studienstatus_nr, st_studienstatus_nr,
statustyp, statustyp,
statustyp_tsg, statustyp_tsg,
@ -413,6 +407,7 @@ select st_studium_nr,
st_studstamm_nr, st_studstamm_nr,
matrikelnummer, matrikelnummer,
st_studiengang_nr, st_studiengang_nr,
st_studiengang_nr_msg,
st_studienstatus_nr, st_studienstatus_nr,
studienstatustyp, studienstatustyp,
statustyp_tsg, statustyp_tsg,
@ -457,6 +452,7 @@ st_studium_nr,
st_studstamm_nr, st_studstamm_nr,
matrikelnummer, matrikelnummer,
st_studiengang_nr, st_studiengang_nr,
st_studiengang_nr_msg,
st_studienstatus_nr, st_studienstatus_nr,
statustyp, statustyp,
statustyp_tsg, statustyp_tsg,
@ -482,6 +478,7 @@ select st_studium_nr,
st_studstamm_nr, st_studstamm_nr,
matrikelnummer, matrikelnummer,
st_studiengang_nr, st_studiengang_nr,
st_studiengang_nr_msg,
st_studienstatus_nr, st_studienstatus_nr,
studienstatustyp, studienstatustyp,
statustyp_tsg, statustyp_tsg,

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

@ -7,7 +7,10 @@ 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);^ 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;^^^ 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^^ ^ 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;^ 43085^Auswertungsebene Prüfungen^25^330^-1^130^150^1^char^4^0^1^<<SQL>> select 'G','Gesamtabschluss' from xdummy\
union select 'F','Absolvent*innenfachfälle' from xdummy\
union select 'T','Teilstudienabschluss' from xdummy\
order by 1;^^ ^
43086^Weitere Tabellen^123^0^0^140^140^10^char^30^0^1^<<SQL>> \ 43086^Weitere Tabellen^123^0^0^140^140^10^char^30^0^1^<<SQL>> \
--freemarker template\ --freemarker template\
select name,string_not_null(caption) || ' - ' || name from sx_tables where name in ('costage_st_studierendenstammdaten','costage_st_studiengaenge')\ select name,string_not_null(caption) || ' - ' || name from sx_tables where name in ('costage_st_studierendenstammdaten','costage_st_studiengaenge')\
@ -15,8 +18,8 @@ select name,string_not_null(caption) || ' - ' || name from sx_tables where name
and name in (select distinct tablename from stylesheet_field where stylesheet_id in (select tid from sx_stylesheets where filename=<<tablestylesheet>>)) \ and name in (select distinct tablename from stylesheet_field where stylesheet_id in (select tid from sx_stylesheets where filename=<<tablestylesheet>>)) \
</#if>\ </#if>\
order by 2^^^ 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\ 43087^Leistungsdetailtyp^20^350^-1^140^100^10^char^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);^^^ 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);^ 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\ 43090^Fach-Nr.^119^0^0^140^150^1^integer^20^0^13^<<SQL>> --Freemarker template\
<#list 1..10 as i>\ <#list 1..10 as i>\
@ -34,7 +37,7 @@ order by 1^ ^^
count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\ count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\
and apnr=1)) \ and apnr=1)) \
<#if <<tablestylesheet>>='tabelle_html_datenblatt.xsl'>\ <#if <<tablestylesheet>>='tabelle_html_datenblatt.xsl'>\
and (F.table_name ='costage_st_studien_aggr'\ and (F.table_name ='costage_st_pruef_aggr'\
/* or F.table_name in (<<Weitere Tabellen>>) */) \ /* or F.table_name in (<<Weitere Tabellen>>) */) \
<#else>\ <#else>\
and trim(F.table_name) || '.' || F.name in (select trim(tablename)||'.'||trim(fieldname) from stylesheet_field where stylesheet_id in \ and trim(F.table_name) || '.' || F.name in (select trim(tablename)||'.'||trim(fieldname) from stylesheet_field where stylesheet_id in \
@ -63,5 +66,5 @@ where K.unikey=H.hs_nr::char(10)^
name\ name\
FROM costage_st_abschlussziele_lokal\ FROM costage_st_abschlussziele_lokal\
order by 2;^^^ order by 2;^^^
43102^Matrikel-Nr.^20^350^-1^150^180^1^char^200^0^0^^^^ 43102^Matrikel-Nr.^30^350^-1^150^180^1^char^200^0^0^^^^
43103^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^ 43103^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^

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

@ -65,12 +65,9 @@ SELECT name,\
\ \
<#assign filter="\ <#assign filter="\
/* and hrst in (<<Hörerstatus>>) */\ /* and hrst in (<<Hörerstatus>>) */\
/* and semester >= <<Seit Semester>> */\
/* and semester <= <<Bis Semester>> */\
/* AND leistungsdetailtyp_kb in (<<Leistungsdetailtyp>>) */\ /* AND leistungsdetailtyp_kb in (<<Leistungsdetailtyp>>) */\
/* and leistungsstatus_map_kb in(<<Prüfungsstatus>>) */\ /* 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.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 studiengang_nr =<<Studiengang-Nr.>> */\
/* and fach_nr =<<Fach-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 S.st_studstamm_nr from costage_st_studierendenstammdaten S where S.st_land1_nr in (<<Staatsangehörigkeit>>) ) */\
@ -82,8 +79,49 @@ SELECT name,\
<#assign filter=filter+" and costage_st_pruef_aggr.matrikelnummer in (<<Matrikel-Nr.>>)"?replace("'","")/>\ <#assign filter=filter+" and costage_st_pruef_aggr.matrikelnummer in (<<Matrikel-Nr.>>)"?replace("'","")/>\
</#if>\ </#if>\
\ \
--Feld Auswertungsebene Prüfungen\
--Was wird ausgewertet? Welche Leistungsdetailtypen sin betroffen? Welches Prüfungsdatum/Semester soll ausgewertet werden?\
--G=Gesamtabschluss=BAKN, MAGN, STEX, ERGAB Prüfungsdatum/Semester\
--F=Absolvent*innenfachfälle=TSAB Prüfungsdatum/Semester des MSG\
--T=Teilstudienabschluss=TSAB Prüfungsdatum/Semester\
\
<#assign semester_filter="1=1" />\
<#assign semester_feld="semester" />\
\
<#assign fach_filter="1=1" />\
--Default: TSG\
/* <#assign fach_filter="costage_st_pruef_aggr.st_studiengang_nr in (select G.st_studiengang_nr from costage_st_studiengaenge G where G.stg in (<<Fach>>)) "/> \
*/\
\
\
\
<#assign ldt_filter="1=1" />\
/*<#if <<Auswertungsebene Prüfungen>>=="G">\
<#assign ldt_filter="leistungsdetailtyp_kb in ('BAKN', 'MAGN', 'STEX', 'ERGAB')" />\
<#assign semester_feld="semester_msg" />\
/* <#assign fach_filter="costage_st_pruef_aggr.st_studiengang_nr in \
(select M.st_studiengang_nr_msg from costage_st_studiengaenge G , costage_st_studiengaenge_mtsg M\
where M.st_studiengang_nr_tsg=G.st_studiengang_nr\
and G.stg in (<<Fach>>)) "/> \
*/\
\
\
</#if> */\
/*<#if <<Auswertungsebene Prüfungen>>=="F">\
<#assign ldt_filter="leistungsdetailtyp_kb in ('TSAB')" />\
<#assign semester_feld="semester_msg" />\
</#if> */\
/*<#if <<Auswertungsebene Prüfungen>>=="T">\
<#assign ldt_filter="leistungsdetailtyp_kb in ('TSAB')" />\
</#if> */\
\
\
/* <#assign semester_filter=semester_filter + " and "+semester_feld + " >= <<Seit Semester>>" /> */\
/* <#assign semester_filter=semester_filter + " and "+semester_feld + " <= <<Bis Semester>>" /> */\
\
\
<#assign filter=filter+" and "+ldt_filter + " and " + semester_filter +" and " + fach_filter />\
\ \
\
<@generate_resultset_multitable tabellen=table_list\ <@generate_resultset_multitable tabellen=table_list\
p_show_keys=<<Schlüssel anzeigen>>\ p_show_keys=<<Schlüssel anzeigen>>\
p_field_list_select=field_list_select\ p_field_list_select=field_list_select\

0
src-modules/module/costage/rohdaten/sos_costage_unload.x → src-modules/module/costage/rohdaten_sos/sos_costage_unload.x

117
src-modules/module/costage/rohdaten/sos_costage_unload.xml → src-modules/module/costage/rohdaten_sos/sos_costage_unload.xml

@ -1670,8 +1670,9 @@ null::char(1),-- -- country.astat nur h1
null::char(1) , --Art der Promotion null::char(1) , --Art der Promotion
null::char(1) as field_of_study, null::char(1) as field_of_study,
primaerflag as primaerfach, primaerflag as primaerfach,
unikey --, unikey ,
--null::numeric(9,6) -- individual_number_of_semesters null::numeric(9,6) ,-- individual_number_of_semesters
F.st_studium_nr as degree_program_id
FROM costage_st_studiengaenge G, costage_st_studien_aggr F, superx_sos S FROM costage_st_studiengaenge G, costage_st_studien_aggr F, superx_sos S
WHERE F.matrikelnummer = S.mtknr WHERE F.matrikelnummer = S.mtknr
and G.st_studiengang_nr=F.st_studiengang_nr and G.st_studiengang_nr=F.st_studiengang_nr
@ -2506,8 +2507,8 @@ on (C.id=L.course_of_study_id)
<![CDATA[ <![CDATA[
SELECT SELECT
P.matrikelnummer, P.matrikelnummer,
null::integer as studiengang_nr, P.studiengang_nr,
null::integer as fach_nr, P.fach_nr,
G.abschluss, G.abschluss,
P.semester, P.semester,
P.leistungsdatum, P.leistungsdatum,
@ -2546,7 +2547,14 @@ null::integer as pstatkennz,
null::integer as ppunkte, null::integer as ppunkte,
null::CHAR(1), --stuart null::CHAR(1), --stuart
G.stufrm, G.stufrm,
null::CHAR(1) --stutyp null::CHAR(1), --stutyp
st_studium_nr as degree_program_id,
null::char(1) as k_elementtype_id,
null::char(1) as ut_top_unit_id,
null::char(1) as ut_top_k_elementtype_id,
null::char(1) as child_ut_top_unit_id,
null::char(1) as child_ut_top_unit_stat,
null::char(1) as k_unit_purpose_id
FROM costage_st_pruef_aggr P, costage_st_studiengaenge G FROM costage_st_pruef_aggr P, costage_st_studiengaenge G
where G.st_studiengang_nr=P.st_studiengang_nr where G.st_studiengang_nr=P.st_studiengang_nr
AND P.semester >= $start_pruef_sem AND P.semester >= $start_pruef_sem
@ -3151,7 +3159,13 @@ WHERE CURRENT_DATE BETWEEN ou.valid_from AND ou.valid_to AND
</extraction-sql> </extraction-sql>
<extraction-sql sourcesystem="co" database="" version=""> <extraction-sql sourcesystem="co" database="" version="">
<![CDATA[ <![CDATA[
select unikey,null::char(1),null::char(1) from tmp_hskonst select unikey,null::char(1) as bland,
null::char(1) as hsbez,
null::char(1) as hsort,
null::char(1) as hsstrasse,
null::char(1) as hsplz,
null::char(1) as hspostfach
from tmp_hskonst
where max_anzahl=1; where max_anzahl=1;
]]> ]]>
</extraction-sql> </extraction-sql>
@ -5300,8 +5314,8 @@ null as parent,
abint,--sortc1 wird später uniquename abint,--sortc1 wird später uniquename
' ', ' ',
null as sprache, null as sprache,
null as gueltig_von, null::date as gueltig_von,
null as gueltig_bis, null::date as gueltig_bis,
abint, --sourcesystem_id abint, --sourcesystem_id
' ', --hiskey_id ' ', --hiskey_id
aikz, --struktur_c aikz, --struktur_c
@ -5324,8 +5338,8 @@ null as parent,
apnr, --sortc1 wird später uniquename apnr, --sortc1 wird später uniquename
null as bund_apnr, null as bund_apnr,
null as sprache, null as sprache,
null as gueltig_von, null::date gueltig_von,
null as gueltig_bis, null::date gueltig_bis,
apnr , --sourcesystem_id apnr , --sourcesystem_id
' ', --hiskey_id ' ', --hiskey_id
struktur_c as fb, struktur_c as fb,
@ -5347,8 +5361,8 @@ null as sortorder
studienform_statistik_code , studienform_statistik_code ,
'', '',
'', '',
null as gueltig_von, null::date as gueltig_von,
null as gueltig_bis, null::date as gueltig_bis,
studienform_statistik_code , --sourcesystem_id studienform_statistik_code , --sourcesystem_id
'', --hiskey_id '', --hiskey_id
'' , --struktur_c '' , --struktur_c
@ -5372,8 +5386,8 @@ null as sortorder
hoererstatus_kb , hoererstatus_kb ,
' ', ' ',
' ', ' ',
null as gueltig_von, null::date as gueltig_von,
null as gueltig_bis, null::date as gueltig_bis,
hoererstatus_kb, --sourcesystem_id hoererstatus_kb, --sourcesystem_id
' ' , --hiskey_id ' ' , --hiskey_id
' ' , --struktur_c ' ' , --struktur_c
@ -5394,8 +5408,8 @@ null as parent,
fachkennzeichen,--sortc1 wird später uniquename fachkennzeichen,--sortc1 wird später uniquename
' ', ' ',
null as sprache, null as sprache,
null as gueltig_von, null::date as gueltig_von,
null as gueltig_bis, null::date as gueltig_bis,
fachkennzeichen, --sourcesystem_id fachkennzeichen, --sourcesystem_id
' ', --hiskey_id ' ', --hiskey_id
'A', --struktur_c 'A', --struktur_c
@ -5406,20 +5420,20 @@ null as sortorder
WHERE fachkennzeichen is not null WHERE fachkennzeichen is not null
and trim(fachkennzeichen)!='' and trim(fachkennzeichen)!=''
union union
SELECT distinct SELECT distinct
622, 622,
-1, -1,
leistungsstatus_map_kb as pstatus, leistungsstatus_map_kb as pstatus,
leistungsstatus_map_kb as ktxt, leistungsstatus_map_kb as ktxt,
leistungsstatus_map_kb as dtxt, leistungsstatus_map_kb as dtxt,
leistungsstatus_map_kb as ltxt, leistungsstatus_map_kb as ltxt,
-- '', '',
-- '', '',
leistungsstatus_map_kb , leistungsstatus_map_kb ,
-- '', '',
-- '', '',
'', --gültig von null::date ,-- gültig von,
'', --gültig bis null::date, -- gültig bis,
leistungsstatus_map_kb , --sourcesystem_id leistungsstatus_map_kb , --sourcesystem_id
'' , --hiskey_id '' , --hiskey_id
'' , --struktur_c '' , --struktur_c
@ -5440,8 +5454,8 @@ null as sortorder
statistik_code as akfz,--uniqename statistik_code as akfz,--uniqename
'' as erdteil, '' as erdteil,
'' , '' ,
null as gueltig_von, null::date as gueltig_von,
null as gueltig_bis, null::date as gueltig_bis,
statistik_code, --sourcesystem_id statistik_code, --sourcesystem_id
'' , --hiskey_id '' , --hiskey_id
'' ,--egmitgl struktur_c '' ,--egmitgl struktur_c
@ -5463,8 +5477,8 @@ R.statistik_code as astat,
R.statistik_code as bland, R.statistik_code as bland,
'', '',
'', '',
null as gueltig_von, null::date as gueltig_von,
null as gueltig_bis, null::date as gueltig_bis,
R.statistik_code , --sourcesystem_id R.statistik_code , --sourcesystem_id
'' , --hiskey_id '' , --hiskey_id
'', --struktur_c '', --struktur_c
@ -5488,8 +5502,8 @@ SELECT
'1',--status, '1',--status,
' ', ' ',
' ', ' ',
null as gueltig_von, null::date as gueltig_von,
null as gueltig_bis, null::date as gueltig_bis,
'1', --sourcesystem_id '1', --sourcesystem_id
' ' , --hiskey_id ' ' , --hiskey_id
' ' , --struktur_c ' ' , --struktur_c
@ -5510,8 +5524,8 @@ null as sortorder
'2',--status, '2',--status,
' ', ' ',
' ', ' ',
null as gueltig_von, null::date as gueltig_von,
null as gueltig_bis, null::date as gueltig_bis,
'2', --sourcesystem_id '2', --sourcesystem_id
' ' , --hiskey_id ' ' , --hiskey_id
' ' , --struktur_c ' ' , --struktur_c
@ -5532,8 +5546,8 @@ null as sortorder
'3',--status, '3',--status,
' ', ' ',
' ', ' ',
null as gueltig_von, null::date as gueltig_von,
null as gueltig_bis, null::date as gueltig_bis,
'3', --sourcesystem_id '3', --sourcesystem_id
' ' , --hiskey_id ' ' , --hiskey_id
' ' , --struktur_c ' ' , --struktur_c
@ -5554,8 +5568,8 @@ null as sortorder
'4',--status, '4',--status,
' ', ' ',
' ', ' ',
null as gueltig_von, null::date as gueltig_von,
null as gueltig_bis, null::date as gueltig_bis,
'4', --sourcesystem_id '4', --sourcesystem_id
' ' , --hiskey_id ' ' , --hiskey_id
' ' , --struktur_c ' ' , --struktur_c
@ -5576,8 +5590,8 @@ null as sortorder
'5',--status, '5',--status,
' ', ' ',
' ', ' ',
null as gueltig_von, null::date as gueltig_von,
null as gueltig_bis, null::date as gueltig_bis,
'5', --sourcesystem_id '5', --sourcesystem_id
' ' , --hiskey_id ' ' , --hiskey_id
' ' , --struktur_c ' ' , --struktur_c
@ -7227,5 +7241,32 @@ select * from k_stg where 1=0;
]]> ]]>
</extraction-sql> </extraction-sql>
</unload-job> </unload-job>
<unload-job id="sos_pordnr_pnr" extraction-table="" extraction-script="" transfer-unload-file="unl/sos_pordnr_pnr.unl" >
<comment></comment>
<extraction-sql sourcesystem="hisinone" database="" version="">
<![CDATA[
SELECT U.unit_id as pordnr,
6 as sourcesystem,
O.id as institution,
U.valid_from,
U.valid_to,
R.uniquename as art,
O.sortorder
FROM hisinone.orgunit O, hisinone.unit_orgunit U left outer join hisinone.k_unit_orgunit_relation R
on (R.id=U.k_unit_orgunit_relation_id)
where O.lid=U.orgunit_lid
;
]]>
</extraction-sql>
<extraction-sql sourcesystem="sospos" database="" version="">
<![CDATA[
select * from k_stg where 1=0;
]]>
</extraction-sql>
<extraction-sql sourcesystem="co" database="" version="">
<![CDATA[
select * from k_stg where 1=0;
]]>
</extraction-sql>
</unload-job>
</superx-unload> </superx-unload>

0
src-modules/module/costage/rohdaten/sos_v1_unload.x → src-modules/module/costage/rohdaten_sos/sos_v1_unload.x

0
src-modules/module/costage/rohdaten/sos_v1_unload.xml → src-modules/module/costage/rohdaten_sos/sos_v1_unload.xml

1
src-modules/module/costage/rohdaten_sos/superx.datum

@ -0,0 +1 @@
23.09.2022
Loading…
Cancel
Save