Browse Source

Feld Studiengang in Datenblätter aufgenommen, 2 Beispielsichten

COStage_0.3_Release
Daniel Quathamer 2 years ago
parent
commit
21a94fa7e0
  1. 137
      src-modules/module/costage/conf/costage.xml
  2. 25
      src-modules/module/costage/hilfstabellen/costage_st_pruef_aggr_fuellen.sql
  3. 3
      src-modules/module/costage/masken/43040_felderinfo.unl
  4. 1
      src-modules/module/costage/masken/43040_masken_felder_bez.unl
  5. 4
      src-modules/module/costage/masken/43040_maskeninfo.unl
  6. 3
      src-modules/module/costage/masken/43080_felderinfo.unl
  7. 1
      src-modules/module/costage/masken/43080_masken_felder_bez.unl
  8. 8
      src-modules/module/costage/masken/43080_maskeninfo.unl
  9. 3
      src-modules/module/costage/masken/43110_felderinfo.unl
  10. 1
      src-modules/module/costage/masken/43110_masken_felder_bez.unl
  11. 1
      src-modules/module/costage/masken/43110_maskeninfo.unl
  12. 2
      src-modules/module/costage/rohdaten_sos/sos_costage_unload.xml
  13. 65
      src-modules/module/costage/schluesseltabellen/costage_dim_studiengang_fuellen.sql
  14. 122
      src-modules/module/costage/schluesseltabellen/sichten_fuellen.sql
  15. 8
      src-modules/module/costage/schluesseltabellen/sichten_loeschen.sql
  16. 1
      src-modules/module/costage/upgrade/costage_upgrade_man.sql

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

@ -296,6 +296,42 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<foreignKeys><rs> <foreignKeys><rs>
</rs></foreignKeys> </rs></foreignKeys>
</table> </table>
<table name="costage_dim_studiengang" thema="Studierende und Gebühren" caption="Studiengänge (CO)" typ="Schlüsseltabelle" releaseUnload="empty">
<columns><column name="st_studiengang_nr" type ="INTEGER" size ="10" default ="" notnull ="false" description="Studiengang Laufnr."/>
<column name="studiengangs_identifikator" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Studiengang ID"/>
<column name="studiengangs_bezeichnung" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Studiengang Name"/>
<column name="st_absz_nr" type ="INTEGER" size ="10" default ="" notnull ="false" description="Abschlussziel Laufnr."/>
<column name="st_skz_nr" type ="INTEGER" size ="10" default ="" notnull ="false" description="Fach Laufnr."/>
<column name="fachkennzeichen" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Fachkennz." currentlyUsed="false"/>
<column name="st_std_art_nr" type ="INTEGER" size ="10" default ="" notnull ="false" description="Studienart Laufnr."/>
<column name="studiengangs_typ_name" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Studiengangs-Typ Name"/>
<column name="studiengangs_typ_kb" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Studiengangs-Typ KB" />
<column name="studientyp_name" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Studientyp Name"/>
<column name="studientyp_kb" type ="VARCHAR" size ="10" default ="" notnull ="false" description="Studientyp KB"/>
<column name="stp_stp_nr" type ="INTEGER" size ="10" default ="" notnull ="false" description="" currentlyUsed="false"/>
<column name="stuart" type ="CHAR" size ="10" default ="" notnull ="false" description="" currentlyUsed="false"/>
<column name="stufrm" type ="CHAR" size ="10" default ="" notnull ="false" description="" currentlyUsed="false"/>
<column name="pversion" type ="VARCHAR" size ="255" default ="" notnull ="false" description="P-Version"/>
<column name="rsz" type ="INTEGER" size ="10" default ="" notnull ="false" description="Regelstudienzeit"/>
<column name="skz_key" type ="CHAR" size ="10" default ="" notnull ="false" description="Studienfach (CO) Schlüssel" />
<column name="skz_name" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Studienfach (CO) Name"/>
<column name="unikey" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Hochschule"/>
<column name="fakultaet_key" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Fakultät Schlüssel"/>
<column name="abschluss_code" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Abschluss Schlüssel"/>
<column name="abschluss_name" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Abschluss Name"/>
<column name="fakultaet_kurztext" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Fakultät KB"/>
<column name="fakultaet_drucktext" type ="VARCHAR" size ="255" default ="" notnull ="false" description="Fakultät Name"/>
</columns>
<indexes></indexes>
<primaryKeys><rs>
</rs></primaryKeys>
<foreignKeys></foreignKeys>
<importedKeys></importedKeys>
<privileges><rs>
</rs></privileges>
</table>
<table name="costage_st_studienkennzahlen" thema="Studierende und Gebühren" caption="Studienfächer (CO)" typ="Datentabelle" releaseUnload="empty"> <table name="costage_st_studienkennzahlen" thema="Studierende und Gebühren" caption="Studienfächer (CO)" typ="Datentabelle" releaseUnload="empty">
<description>Studienfächer (CO)</description> <description>Studienfächer (CO)</description>
<columns><column name="st_skz_nr" type ="INTEGER" size ="8" default ="" notnull ="true" /> <columns><column name="st_skz_nr" type ="INTEGER" size ="8" default ="" notnull ="true" />
@ -1154,7 +1190,77 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</rs></privileges> </rs></privileges>
</table> </table>
<views> <views>
<view name="costage_abschluss_fach_stg" caption="Studiengänge nach Abschluss/Fach" thema="Studierende" typ="Schlüsseltabelle" releaseUnload="demo">
<description>Abschlüsse,Fächer und Studiengänge</description>
<columns><column name="druck" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="apnr" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="parent" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="struktur_str" type ="CHAR" size ="50" default ="" notnull ="false" />
</columns>
<sql dbsystem=""><![CDATA[
select 'Studiengänge nach Abschluss/Fach'::varchar(255) as druck,
'root'::varchar(255) as apnr,
null::varchar(255) as parent,
'Alle'::varchar(255) as struktur_str
from xdummy
union select 'Ohne Abschluss/Fach'::varchar(255) as druck,
'_o'::varchar(255) as apnr,
'root'::varchar(255) as parent,
'Abschluss/Fach'::varchar(255) as struktur_str
from xdummy
union select distinct G.abschluss_name || ' ' || G.skz_name,trim(abschluss_code) || '_' || trim(skz_key),'root',
'Abschluss/Fach'::varchar(255) as struktur_str from costage_dim_studiengang G
where (trim(abschluss_code) || '_' || trim(skz_key) is not null
and trim(abschluss_code) || '_' || trim(skz_key) !='_')
union select studiengangs_bezeichnung,'s_'|| G.st_studiengang_nr,trim(abschluss_code) || '_' || trim(skz_key),
'Studiengang'::varchar(255) as struktur_str from costage_dim_studiengang G
where (trim(abschluss_code) || '_' || trim(skz_key) is not null
and trim(abschluss_code) || '_' || trim(skz_key) !='_')
union select studiengangs_bezeichnung,'s_'|| G.st_studiengang_nr,'_o'::varchar(255),
'Studiengang'::varchar(255) as struktur_str from costage_dim_studiengang G
where (trim(abschluss_code) || '_' || trim(skz_key) is null
or trim(abschluss_code) || '_' || trim(skz_key) ='_')
]]></sql>
</view>
<view name="costage_abschluss_stg" caption="Studiengänge nach Abschluss" thema="Studierende" typ="Schlüsseltabelle" releaseUnload="demo">
<description>Abschlüsse und Studiengänge</description>
<columns><column name="druck" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="apnr" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="parent" type ="VARCHAR" size ="255" default ="" notnull ="false" />
<column name="struktur_str" type ="CHAR" size ="50" default ="" notnull ="false" />
</columns>
<sql dbsystem=""><![CDATA[
select 'Studiengänge nach Abschluss'::varchar(255) as druck,
'root'::varchar(255) as apnr,
null::varchar(255) as parent,
'Alle'::varchar(255) as struktur_str
from xdummy
union select 'Ohne Abschluss'::varchar(255) as druck,
'_o'::varchar(255) as apnr,
'root'::varchar(255) as parent,
'Abschluss'::varchar(255) as struktur_str
from xdummy
union select distinct G.abschluss_name,trim(abschluss_code),'root',
'Abschluss'::varchar(255) as struktur_str from costage_dim_studiengang G
where (trim(abschluss_code) is not null
and trim(abschluss_code) !='_')
union select distinct G.abschluss_name || ' ' || G.skz_name,trim(abschluss_code) || '_' || trim(skz_key),trim(abschluss_code),
'Abschluss/Fach'::varchar(255) as struktur_str from costage_dim_studiengang G
where (trim(abschluss_code) || '_' || trim(skz_key) is not null
and trim(abschluss_code) || '_' || trim(skz_key) !='_')
union select studiengangs_bezeichnung,'s_'|| G.st_studiengang_nr,trim(abschluss_code) || '_' || trim(skz_key),
'Studiengang'::varchar(255) as struktur_str from costage_dim_studiengang G
where (trim(abschluss_code) || '_' || trim(skz_key) is not null
and trim(abschluss_code) || '_' || trim(skz_key) !='_')
union select studiengangs_bezeichnung,'s_'|| G.st_studiengang_nr,'_o'::varchar(255),
'Studiengang'::varchar(255) as struktur_str from costage_dim_studiengang G
where (trim(abschluss_code) || '_' || trim(skz_key) is null
or trim(abschluss_code) || '_' || trim(skz_key) ='_')
]]></sql>
</view>
</views> </views>
<functions> <functions>
@ -1178,14 +1284,14 @@ 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="43020" name="Studierende CO Basisdaten" thema="CO Basisdaten"> <maske tid="43020" name="Studierende CO Basisdaten" thema="">
<description>CO Basisdaten</description> <description>CO Basisdaten</description>
<src> <src>
<path>$COSTAGE_PFAD/masken</path> <path>$COSTAGE_PFAD/masken</path>
</src> </src>
</maske> </maske>
<maske tid="43040" name="Studierende Datenblatt (CO)" thema="CO Basisdaten"> <maske tid="43040" name="Studierende Datenblatt (CO)" thema="CO Basisdaten">
<description>Studierende Zeitreihe</description> <description>Studierende Datenblatt (CO)</description>
<src> <src>
<path>$COSTAGE_PFAD/masken</path> <path>$COSTAGE_PFAD/masken</path>
</src> </src>
@ -1205,6 +1311,10 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema>
<data-integrity> <data-integrity>
<!--costage_st_studierendenstammdaten--> <!--costage_st_studierendenstammdaten-->
<relation from="cif" to="costage_st_studierendenstammdaten" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="" format="%s">
<relation-column from="apnr" to="geschlecht" />
<relation-column from="key" to="9003" />
</relation>
<relation from="costage_st_laender" to="costage_st_studierendenstammdaten" delete="FALSE" <relation from="costage_st_laender" to="costage_st_studierendenstammdaten" delete="FALSE"
displayType="select" visibleFields="name" format="%s"> displayType="select" visibleFields="name" format="%s">
<relation-column from="st_land_nr" to="st_land1_nr" /> <relation-column from="st_land_nr" to="st_land1_nr" />
@ -1261,7 +1371,7 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema>
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" />
</relation> </relation>
<relation from="costage_st_studiengaenge" to="costage_st_studien_aggr" delete="FALSE" <relation from="costage_dim_studiengang" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="studiengangs_bezeichnung" format="%s"> displayType="select" visibleFields="studiengangs_bezeichnung" format="%s">
<relation-column from="st_studiengang_nr" to="st_studiengang_nr" /> <relation-column from="st_studiengang_nr" to="st_studiengang_nr" />
</relation> </relation>
@ -1318,6 +1428,10 @@ 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>
<relation from="costage_st_studierendenstammdaten" to="costage_st_studien_aggr" delete="FALSE"
displayType="select" visibleFields="matrikelnummer" format="%s">
<relation-column from="st_studstamm_nr" to="st_studstamm_nr" />
</relation>
<!--costage_st_pruef_aggr--> <!--costage_st_pruef_aggr-->
<relation from="costage_st_semester" to="costage_st_pruef_aggr" delete="FALSE" <relation from="costage_st_semester" to="costage_st_pruef_aggr" delete="FALSE"
@ -1333,7 +1447,7 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema>
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" />
</relation> </relation>
<relation from="costage_st_studiengaenge" to="costage_st_pruef_aggr" delete="FALSE" <relation from="costage_dim_studiengang" to="costage_st_pruef_aggr" delete="FALSE"
displayType="select" visibleFields="studiengangs_bezeichnung" format="%s"> displayType="select" visibleFields="studiengangs_bezeichnung" format="%s">
<relation-column from="st_studiengang_nr" to="st_studiengang_nr" /> <relation-column from="st_studiengang_nr" to="st_studiengang_nr" />
</relation> </relation>
@ -1345,6 +1459,10 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema>
displayType="select" visibleFields="kurzbezeichnung" format="%s"> displayType="select" visibleFields="kurzbezeichnung" format="%s">
<relation-column from="leistungsstatus_nr" to="leistungsstatus_nr" /> <relation-column from="leistungsstatus_nr" to="leistungsstatus_nr" />
</relation> </relation>
<relation from="costage_st_studierendenstammdaten" to="costage_st_pruef_aggr" delete="FALSE"
displayType="select" visibleFields="matrikelnummer" format="%s">
<relation-column from="st_studstamm_nr" to="st_studstamm_nr" />
</relation>
<!--costage_bw_antr_aggr--> <!--costage_bw_antr_aggr-->
<relation from="costage_st_semester" to="costage_bw_antr_aggr" delete="FALSE" <relation from="costage_st_semester" to="costage_bw_antr_aggr" delete="FALSE"
displayType="select" visibleFields="semester_bezeichnung" format="%s"> displayType="select" visibleFields="semester_bezeichnung" format="%s">
@ -1359,7 +1477,7 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema>
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" />
</relation> </relation>
<relation from="costage_st_studiengaenge" to="costage_bw_antr_aggr" delete="FALSE" <relation from="costage_dim_studiengang" to="costage_bw_antr_aggr" delete="FALSE"
displayType="select" visibleFields="studiengangs_bezeichnung" format="%s"> displayType="select" visibleFields="studiengangs_bezeichnung" format="%s">
<relation-column from="st_studiengang_nr" to="st_studiengang_nr" /> <relation-column from="st_studiengang_nr" to="st_studiengang_nr" />
</relation> </relation>
@ -1367,6 +1485,10 @@ 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="nr" to="bw_zul_art_nr" /> <relation-column from="nr" to="bw_zul_art_nr" />
</relation> </relation>
<relation from="costage_st_studierendenstammdaten" to="costage_bw_antr_aggr" delete="FALSE"
displayType="select" visibleFields="matrikelnummer" format="%s">
<relation-column from="st_studstamm_nr" to="st_studstamm_nr" />
</relation>
</data-integrity> </data-integrity>
</database> </database>
@ -1442,6 +1564,7 @@ parent="CO Basisdaten">Abfragen zu Prüfungen und Leistungen</thema>
<!-- und dann die Studiengänge: --> <!-- und dann die Studiengänge: -->
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/trans_costage_st_studiengaenge.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/trans_costage_st_studiengaenge.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/datentabellen/trans_costage_st_studierendenstammdaten.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/datentabellen/trans_costage_st_studierendenstammdaten.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/costage_dim_studiengang_fuellen.sql" database=""/>
</action> </action>
</etl-step> </etl-step>
@ -1493,6 +1616,7 @@ gueltig_bis DATE
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sx_stylesheets_einfuegen.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sx_stylesheets_einfuegen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/cif_fuellen.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/cif_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sos_unload_params_fuellen.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sos_unload_params_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sichten_fuellen.sql" database=""/>
</action> </action>
</install-step> </install-step>
@ -1534,6 +1658,7 @@ gueltig_bis DATE
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sx_stylesheets_einfuegen.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sx_stylesheets_einfuegen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/cif_fuellen.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/cif_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sos_unload_params_fuellen.sql" database=""/> <nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sos_unload_params_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/schluesseltabellen/sichten_fuellen.sql" database=""/>
</action> </action>
</upgrade-step> </upgrade-step>

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

@ -140,6 +140,22 @@ where S.st_studium_nr=tmp_pruef.st_studium_nr
and S.st_studstamm_nr=tmp_pruef.st_studstamm_nr and S.st_studstamm_nr=tmp_pruef.st_studstamm_nr
; ;
--Prüfung kann nach letztem eingeschr. Semester sein, daher zuerst letztes Sem. ermitteln:
select S.st_studium_nr,
S.matrikelnummer,
null::integer as st_studienstatus_nr,
null::integer as studiengang_nr,
null::integer as fach_nr,
null::char(10) as unikey,
null::integer as st_studiengang_nr_msg,
max(S.semester) as semester
into temp tmp_max_sem
from costage_st_studien_aggr S, tmp_pruef P
where S.st_studium_nr=P.st_studium_nr
and S.matrikelnummer=P.matrikelnummer
group by 1,2
;
--Dann Studium vom letzten Semester in den Prüfungs-Datensatz schreiben:
update tmp_pruef set update tmp_pruef set
st_studienstatus_nr=S.st_studienstatus_nr, st_studienstatus_nr=S.st_studienstatus_nr,
fachsemester = S.fachsemester, fachsemester = S.fachsemester,
@ -147,12 +163,15 @@ studiengang_nr=S.studiengang_nr,
fach_nr=S.fach_nr, fach_nr=S.fach_nr,
unikey=S.unikey, unikey=S.unikey,
st_studiengang_nr_msg=S.st_studiengang_nr_msg st_studiengang_nr_msg=S.st_studiengang_nr_msg
from costage_st_studien_aggr S from tmp_max_sem M, costage_st_studien_aggr S
where S.st_studium_nr=tmp_pruef.st_studium_nr where S.matrikelnummer=M.matrikelnummer
and S.st_studium_nr=M.st_studium_nr
and S.semester=M.semester
and S.st_studium_nr=tmp_pruef.st_studium_nr
and S.matrikelnummer=tmp_pruef.matrikelnummer and S.matrikelnummer=tmp_pruef.matrikelnummer
and S.semester=tmp_pruef.semester
; ;
drop table tmp_max_sem;
--MSG-Daten nachladen: --MSG-Daten nachladen:
--zuerst Kopie nur mit MSG: --zuerst Kopie nur mit MSG:

3
src-modules/module/costage/masken/43040_felderinfo.unl

@ -5,12 +5,13 @@
</#list>\ </#list>\
order by 1^ ^^ order by 1^ ^^
43041^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()-(4*365) between date(semester_anfang) and date(semester_ende);^ 43041^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()-(4*365) between date(semester_anfang) and date(semester_ende);^
43042^Studiengang^9^0^0^130^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('COSTAGE-Studiengang-Sicht') order by 3,2;^^^
43043^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;^^^ 43043^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;^^^
43044^Status^14^350^-1^140^180^1^char^30^0^1^<<SQL>> select apnr,druck from cifx where key=400 order by 2^^ ^ 43044^Status^14^350^-1^140^180^1^char^30^0^1^<<SQL>> select apnr,druck from cifx where key=400 order by 2^^ ^
43045^Hörerstatus^33^0^0^140^170^1^char^30^0^1^<<SQL>> select apnr, druck from cifx where key=401 order by 2^ ^ ^ 43045^Hörerstatus^33^0^0^140^170^1^char^30^0^1^<<SQL>> select apnr, druck from cifx where key=401 order by 2^ ^ ^
43046^Weitere Tabellen^123^0^0^140^140^10^char^30^0^1^<<SQL>> \ 43046^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_dim_studiengang')\
<#if <<tablestylesheet>>!='tabelle_html_datenblatt.xsl'>\ <#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>>)) \ and name in (select distinct tablename from stylesheet_field where stylesheet_id in (select tid from sx_stylesheets where filename=<<tablestylesheet>>)) \
</#if>\ </#if>\

1
src-modules/module/costage/masken/43040_masken_felder_bez.unl

@ -1,5 +1,6 @@
43040^43040^ 43040^43040^
43040^43041^ 43040^43041^
43040^43042^
43040^43043^ 43040^43043^
43040^43044^ 43040^43044^
43040^43045^ 43040^43045^

4
src-modules/module/costage/masken/43040_maskeninfo.unl

@ -83,6 +83,8 @@ SELECT name,\
<#assign filter=filter+" and costage_st_studien_aggr.matrikelnummer in (<<Matrikel-Nr.>>)"?replace("'","")/>\ <#assign filter=filter+" and costage_st_studien_aggr.matrikelnummer in (<<Matrikel-Nr.>>)"?replace("'","")/>\
</#if>\ </#if>\
\ \
\
/* <#assign filter = filter + " and 's_' || costage_st_studien_aggr.st_studiengang_nr in "+Studiengang.allNeededKeysList /> --<<Studiengang>> */ \
\ \
\ \
<@generate_resultset_multitable tabellen=table_list\ <@generate_resultset_multitable tabellen=table_list\
@ -165,4 +167,4 @@ Column CID=${i} heading_text="${myfield.key}\\n(Schlüssel)" explanation="Schlü
</#if>\ </#if>\
</#foreach>\ </#foreach>\
</#if>\ </#if>\
@@@^Altersgruppe^Anzahl^Flexible Ausgabe der Studierendenstatistik, Studiengänge und Lehreinheiten^drop table tmp_tabelle;^^2^700^360^0^1^^ @@@^Altersgruppe^Anzahl^Flexible Ausgabe der Studierendenstatistik, Studiengänge und Studierendenstammdaten^drop table tmp_tabelle;^^2^700^360^0^1^^

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

@ -5,6 +5,7 @@
</#list>\ </#list>\
order by 1^ ^^ 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);^
43082^Studiengang^9^0^0^130^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('COSTAGE-Studiengang-Sicht') order by 3,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;^^^ 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^Auswertungsebene Prüfungen^25^330^-1^130^150^1^char^4^1^1^<<SQL>> select 'G','Gesamtabschluss' from xdummy\ 43085^Auswertungsebene Prüfungen^25^330^-1^130^150^1^char^4^1^1^<<SQL>> select 'G','Gesamtabschluss' from xdummy\
@ -13,7 +14,7 @@ union select 'T','Teilstudienabschluss' from xdummy\
order by 1;^^<<SQL>> select 'T','Teilstudienabschluss' from xdummy;^ order by 1;^^<<SQL>> select 'T','Teilstudienabschluss' from xdummy;^
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_dim_studiengang')\
<#if <<tablestylesheet>>!='tabelle_html_datenblatt.xsl'>\ <#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>>)) \ and name in (select distinct tablename from stylesheet_field where stylesheet_id in (select tid from sx_stylesheets where filename=<<tablestylesheet>>)) \
</#if>\ </#if>\

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

@ -1,5 +1,6 @@
43080^43080^ 43080^43080^
43080^43081^ 43080^43081^
43080^43082^
43080^43083^ 43080^43083^
43080^43084^ 43080^43084^
43080^43085^ 43080^43085^

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

@ -79,6 +79,7 @@ SELECT name,\
<#if "<<Matrikel-Nr.>>"!="">\ <#if "<<Matrikel-Nr.>>"!="">\
<#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>\
/* <#assign filter = filter + " and 's_' || costage_st_pruef_aggr.st_studiengang_nr in "+Studiengang.allNeededKeysList /> --<<Studiengang>> */ \
\ \
--Feld Auswertungsebene Prüfungen\ --Feld Auswertungsebene Prüfungen\
--Was wird ausgewertet? Welche Leistungsdetailtypen sin betroffen? Welches Prüfungsdatum/Semester soll ausgewertet werden?\ --Was wird ausgewertet? Welche Leistungsdetailtypen sin betroffen? Welches Prüfungsdatum/Semester soll ausgewertet werden?\
@ -90,7 +91,7 @@ SELECT name,\
<#assign semester_feld="semester" />\ <#assign semester_feld="semester" />\
\ \
<#assign fach_filter="1=1" />\ <#assign fach_filter="1=1" />\
--Default: TSG\ --Default: \
/* <#assign fach_filter="costage_st_pruef_aggr.st_studiengang_nr in (select G.st_studiengang_nr from costage_st_studiengaenge G where G.skz_key in (<<Fach>>)) "/> \ /* <#assign fach_filter="costage_st_pruef_aggr.st_studiengang_nr in (select G.st_studiengang_nr from costage_st_studiengaenge G where G.skz_key in (<<Fach>>)) "/> \
*/\ */\
\ \
@ -100,11 +101,6 @@ SELECT name,\
<#if <<Auswertungsebene Prüfungen>>=="G">\ <#if <<Auswertungsebene Prüfungen>>=="G">\
<#assign ldt_filter="leistungsdetailtyp_kb in ('BAKN', 'MAGN', 'STEX', 'ERGAB')" />\ <#assign ldt_filter="leistungsdetailtyp_kb in ('BAKN', 'MAGN', 'STEX', 'ERGAB')" />\
<#assign semester_feld="semester_msg" />\ <#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.skz_key in (<<Fach>>)) "/> \
*/\
\ \
\ \
</#if> \ </#if> \

3
src-modules/module/costage/masken/43110_felderinfo.unl

@ -5,6 +5,7 @@
</#list>\ </#list>\
order by 1^ ^^ order by 1^ ^^
43111^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);^ 43111^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);^
43112^Studiengang^9^0^0^130^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('COSTAGE-Studiengang-Sicht') order by 3,2;^^^
43113^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;^^^ 43113^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;^^^
43114^Zulassungsart^14^350^-1^140^180^1^integer^30^0^1^<<SQL>> select nr, name\ 43114^Zulassungsart^14^350^-1^140^180^1^integer^30^0^1^<<SQL>> select nr, name\
FROM costage_bw_zulassungsarten order by 2^^ ^ FROM costage_bw_zulassungsarten order by 2^^ ^
@ -14,7 +15,7 @@ union select 'T','Teilstudienabschluss' from xdummy\
order by 1;^^ ^ order by 1;^^ ^
43116^Weitere Tabellen^123^0^0^140^140^10^char^30^0^1^<<SQL>> \ 43116^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_dim_studiengang')\
<#if <<tablestylesheet>>!='tabelle_html_datenblatt.xsl'>\ <#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>>)) \ and name in (select distinct tablename from stylesheet_field where stylesheet_id in (select tid from sx_stylesheets where filename=<<tablestylesheet>>)) \
</#if>\ </#if>\

1
src-modules/module/costage/masken/43110_masken_felder_bez.unl

@ -1,5 +1,6 @@
43110^43110^ 43110^43110^
43110^43111^ 43110^43111^
43110^43112^
43110^43113^ 43110^43113^
43110^43114^ 43110^43114^
43110^43115^ 43110^43115^

1
src-modules/module/costage/masken/43110_maskeninfo.unl

@ -73,6 +73,7 @@ SELECT name,\
/* and fachsemester <= <<bis Fachsemester>> */\ /* and fachsemester <= <<bis Fachsemester>> */\
" />\ " />\
\ \
/* <#assign filter = filter + " and 's_' || costage_bw_antr_aggr.st_studiengang_nr in "+Studiengang.allNeededKeysList /> --<<Studiengang>> */ \
\ \
<#if "<<Matrikel-Nr.>>"!="">\ <#if "<<Matrikel-Nr.>>"!="">\
<#assign filter=filter+" and costage_bw_antr_aggr.matrikelnummer in (<<Matrikel-Nr.>>)"?replace("'","")/>\ <#assign filter=filter+" and costage_bw_antr_aggr.matrikelnummer in (<<Matrikel-Nr.>>)"?replace("'","")/>\

2
src-modules/module/costage/rohdaten_sos/sos_costage_unload.xml

@ -1631,7 +1631,7 @@ AND to_number('' || P.term_year || T.termnumber,'99999') >= $start_stud_sem
SELECT SELECT
S.mtknr_ldsg, S.mtknr_ldsg,
G.abschluss, G.abschluss,
G.stg, G.skz_key as stg,
'' ,--vert, '' ,--vert,
'' ,--schwp, '' ,--schwp,
G.fachkennzeichen, G.fachkennzeichen,

65
src-modules/module/costage/schluesseltabellen/costage_dim_studiengang_fuellen.sql

@ -0,0 +1,65 @@
truncate table costage_dim_studiengang;
insert into costage_dim_studiengang(st_studiengang_nr,
studiengangs_identifikator,
studiengangs_bezeichnung,
st_absz_nr,
st_skz_nr,
fachkennzeichen,
st_std_art_nr,
studiengangs_typ_name,
studiengangs_typ_kb,
studientyp_name,
studientyp_kb,
stp_stp_nr,
stuart,
stufrm,
pversion,
rsz,
skz_key,
skz_name,
unikey,
fakultaet_key,
abschluss_code,
abschluss_name,
fakultaet_kurztext,
fakultaet_drucktext)
SELECT G.st_studiengang_nr,
substring(G.studiengangs_identifikator from 1 for 255) as studiengangs_identifikator,
substring(G.studiengangs_bezeichnung from 1 for 255) as studiengangs_bezeichnung,
G.st_absz_nr,
G.st_skz_nr,
G.fachkennzeichen,
G.st_std_art_nr,
G.studiengangs_typ_name,
G.studiengangs_typ_kb,
G.studientyp_name,
G.studientyp_kb,
G.stp_stp_nr,
--G.abschluss,
G.stuart,
G.stufrm,
G.pversion,
G.rsz,
SKZ.skz_key,
SKZ.skz_name,
SKZ.unikey,
SKZ.fakultaet_key,
A.code as abschluss_code,
A.name as abschluss_name,
null::varchar(255) as fakultaet_kurztext,
null::varchar(255) as fakultaet_drucktext
FROM costage_st_studiengaenge G left outer join costage_st_studienkennzahlen SKZ
on ( SKZ.st_skz_nr=G.st_skz_nr)
left outer join costage_st_abschlussziele_lokal A on (A.st_absz_nr=G.st_absz_nr);
update costage_dim_studiengang set fakultaet_kurztext=F.fakultaet_bezeichnung,
fakultaet_drucktext=F.fakultaet_name
from costage_st_fakultaeten F
where F.fakultaet_key=costage_dim_studiengang.fakultaet_key
and F.unikey=costage_dim_studiengang.unikey;

122
src-modules/module/costage/schluesseltabellen/sichten_fuellen.sql

@ -0,0 +1,122 @@
--freemarker template
<#if SQLdialect='Postgres'>
select setval('sichten_tid_seq',(select max(tid) from sichten));
</#if>
CREATE temp TABLE tmp_sichten (
parent character(255),
systeminfoid integer DEFAULT 0 NOT NULL,
art character(40),
type integer ,
name_intern character(200),
name character(200),
beschreibung character(255),
sortnr integer DEFAULT 0 NOT NULL,
quelle character(255),
alt_hier_id character(150),
treecfgtable character(255),
treecfgid character(150),
label smallint DEFAULT 0 NOT NULL,
user_rechte smallint DEFAULT 1 NOT NULL,
rechtequelle character(255),
sesamkey character(100),
standbutton smallint DEFAULT 0 NOT NULL,
attribut1 character(255),
attribut2 character(255),
attribut3 integer,
attribut4 integer,
xmlmaxentries integer,
gueltig_seit date ,
gueltig_bis date,
aktiv smallint DEFAULT 1
);
-- Studiengänge nach Abschluss/Fach
INSERT INTO tmp_sichten(
systeminfoid ,
art ,
type ,
name_intern ,
name ,
sortnr ,
quelle ,
label ,
user_rechte ,
standbutton ,
gueltig_seit ,
gueltig_bis , aktiv
) select
310 ,
'COSTAGE-Studiengang-Sicht' ,
10 ,
'costage_studieng_abschluss_fach' ,
'Studiengang nach Abschluss/Fach' ,
1 ,
'select druck,apnr,parent,struktur_str from costage_abschluss_fach_stg order by 1',
0 ,
0 ,
0 ,
date_val('01.01.1900') , date_val('01.01.3000') , 1 from xdummy;
-- Studiengänge nach Abschluss, darunter Abschluss/Fach
INSERT INTO tmp_sichten(
systeminfoid ,
art ,
type ,
name_intern ,
name ,
sortnr ,
quelle ,
label ,
user_rechte ,
standbutton ,
gueltig_seit ,
gueltig_bis , aktiv
) select
310 ,
'COSTAGE-Studiengang-Sicht' ,
10 ,
'costage_studieng_abschluss' ,
'Studiengang nach Abschluss' ,
0 ,
'select druck,apnr,parent,struktur_str from costage_abschluss_stg order by 1',
0 ,
0 ,
0 ,
date_val('01.01.1900') , date_val('01.01.3000') , 1 from xdummy;
delete from tmp_sichten where name_intern in (select name_intern from sichten);
INSERT INTO sichten(
systeminfoid , art , type , name_intern , name ,
sortnr , quelle , label ,
user_rechte , standbutton ,
xmlmaxentries ,
gueltig_seit , gueltig_bis , aktiv)
select systeminfoid , art , type , name_intern , name ,
sortnr , quelle , label ,
user_rechte , standbutton ,
xmlmaxentries ,
gueltig_seit , gueltig_bis , aktiv
from tmp_sichten S;
--Rechte für Sichten geben
select 'Rechte für Sichten geben' from xdummy;
delete from sachgeb_sichtarten where sichtart in
(select distinct art from tmp_sichten);
insert into sachgeb_sichtarten
(
sachgebiete_id ,
sichtart
)
select distinct 310,art from tmp_sichten;
drop table tmp_sichten;

8
src-modules/module/costage/schluesseltabellen/sichten_loeschen.sql

@ -0,0 +1,8 @@
delete from sichten where systeminfoid =121; --GANG
delete from sachgeb_sichtarten where sachgebiete_id in (121);

1
src-modules/module/costage/upgrade/costage_upgrade_man.sql

@ -5,6 +5,7 @@
alter table costage_st_studienkennzahlen alter column skz_key type char(10); alter table costage_st_studienkennzahlen alter column skz_key type char(10);
alter table costage_st_studierendenstammdaten_neu alter column aufnahmedatum type varchar(255); alter table costage_st_studierendenstammdaten_neu alter column aufnahmedatum type varchar(255);
--alter table costage_st_studierendenstammdaten alter column geschlecht type integer using val(geschlecht);
</#if> </#if>

Loading…
Cancel
Save