Browse Source

Erweiterung HZB-Daten Studierende #32

master
Daniel Quathamer 17 hours ago
parent
commit
226da94fe1
  1. 42
      src-modules/module/costage/conf/costage.xml
  2. 26
      src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_denormalize.sql

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

@ -628,8 +628,24 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -628,8 +628,24 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<comment>Lookup via: st_studium_nr/st_sem_nr - costage_st_urlaube.st_studium_nr/st_sem_nr </comment>
</column>
<column name="summe" type ="INTEGER" size ="2" default ="" notnull ="false" description="Summe" />
<column name="stichtag" type ="INTEGER" size ="10" default ="" notnull ="false" description="Stichtag" >
<column name="stichtag" type ="INTEGER" size ="10" default ="" notnull ="false" description="Stichtag" currentlyUsed="false" >
</column>
<column name="hzb_ort_astat" type ="INTEGER" size ="10" default ="" notnull ="false" description="HZB-Ort (Statistik-Code)" >
<sourcefield table="costage_st_urlaube" name="st_urlaub_typ_nr" sourcesystem="co" />
<comment>Lookup via: costage_land_subregionen R - R.land_sub_reg_nr </comment>
</column>
<column name="hzb_staat_astat" type ="INTEGER" size ="10" default ="" notnull ="false" description="HZB-Staat (Statistik-Code)" >
<sourcefield table="costage_st_laender" name="statistik_code" sourcesystem="co" />
<comment>Lookup via: costage_st_laender.st_land_nr =H.hzb_land_nr </comment>
</column>
<column name="heimat_ort_astat" type ="INTEGER" size ="10" default ="" notnull ="false" description="Heimatwohnsitz Ort (Statistik-Code)" >
<sourcefield table="costage_st_urlaube" name="st_urlaub_typ_nr" sourcesystem="co" />
<comment>Lookup via: costage_land_subregionen R costage_st_adressen.land_kfz_kennzeichen </comment>
</column>
<column name="heimat_staat_astat" type ="INTEGER" size ="10" default ="" notnull ="false" description="Heimatwohnsitz Staat (Statistik-Code)" >
<sourcefield table="costage_st_laender" name="statistik_code" sourcesystem="co" />
<comment>Lookup via: costage_st_laender.st_land_nr =costage_st_adressen.st_land_nr </comment>
</column>
</columns>
<indexes>
<index name="ix_costage_st_studien_aggr1" unique="false">
@ -710,7 +726,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -710,7 +726,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
<column name="leistung_nr" type ="INTEGER" size ="4" default ="" notnull ="false" description="Eindeutige Leistungsnummer ESG/MSG" />
<column name="leistung_nr_tsg" type ="INTEGER" size ="4" default ="" notnull ="false" description="Eindeutige Leistungsnummer TSG" />
<column name="summe" type ="INTEGER" size ="2" default ="" notnull ="false" description="Summe" />
<column name="stichtag" type ="INTEGER" size ="10" default ="" notnull ="false" description="Stichtag" >
<column name="stichtag" type ="INTEGER" size ="10" default ="" notnull ="false" description="Stichtag" currentlyUsed="false">
</column>
</columns>
@ -846,7 +862,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" /> @@ -846,7 +862,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[CO]" />
</column>
<column name="summe" type ="INTEGER" size ="4" default ="" notnull ="false" description="Summe" />
<column name="stichtag" type ="INTEGER" size ="10" default ="" notnull ="false" description="Stichtag" >
<column name="stichtag" type ="INTEGER" size ="10" default ="" notnull ="false" description="Stichtag" currentlyUsed="false">
</column>
<column name="zurueckgezogen_kz" type ="VARCHAR" size ="10" default ="" notnull ="false" description="Kennzeichen Zurückgezogen" />
<column name="storniert_kz" type ="VARCHAR" size ="10" default ="" notnull ="false" description="Kennzeichen Storniert" />
@ -1954,7 +1970,7 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema> @@ -1954,7 +1970,7 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema>
displayType="select" visibleFields="matrikelnummer" format="%s">
<relation-column from="st_studstamm_nr" to="st_studstamm_nr" />
</relation>
<relation from="cif" to="costage_st_studien_aggr" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="" format="%s">
<relation from="cif" to="costage_st_studien_aggr" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="uniquename" format="%s">
<relation-column from="apnr" to="kz_rueck_beur_ein" />
<relation-column from="key" to="9001" />
</relation>
@ -1969,7 +1985,22 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema> @@ -1969,7 +1985,22 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema>
displayType="select" visibleFields="name" format="%s">
<relation-column from="tid" to="stichtag" />
</relation>
<relation from="cif" to="costage_st_studien_aggr" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="uniquename" format="%s">
<relation-column from="apnr" to="hzb_staat_astat" />
<relation-column from="key" to="12" />
</relation>
<relation from="cif" to="costage_st_studien_aggr" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="uniquename" format="%s">
<relation-column from="apnr" to="heimat_staat_astat" />
<relation-column from="key" to="12" />
</relation>
<relation from="cif" to="costage_st_studien_aggr" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="uniquename" format="%s">
<relation-column from="apnr" to="hzb_ort_astat" />
<relation-column from="key" to="11" />
</relation>
<relation from="cif" to="costage_st_studien_aggr" delete="FALSE" displayType="select" visibleFields="druck" uniquenameField="uniquename" format="%s">
<relation-column from="apnr" to="heimat_ort_astat" />
<relation-column from="key" to="11" />
</relation>
<!--costage_st_pruef_aggr-->
<relation from="costage_st_semester" to="costage_st_pruef_aggr" delete="FALSE"
displayType="select" visibleFields="semester_bezeichnung" format="%s">
@ -2186,6 +2217,7 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema> @@ -2186,6 +2217,7 @@ parent="CO Basisdaten">Abfragen zu Studienplänen und Ordnungen</thema>
<action>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_st_studien_aggr_fuellen_mit_primerflag.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_st_studien_aggr_fuellen_ohne_primerflag.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_st_studien_aggr_denormalize.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_st_pruef_aggr_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_bw_antr_aggr_fuellen.sql" database=""/>
<nativeaction sql="" scriptfile="$COSTAGE_PFAD/hilfstabellen/costage_st_lv_aggr_fuellen.sql" database=""/>

26
src-modules/module/costage/hilfstabellen/costage_st_studien_aggr_denormalize.sql

@ -0,0 +1,26 @@ @@ -0,0 +1,26 @@
--HZB-Ort:
update costage_st_studien_aggr A set hzb_ort_astat=
val(R.statistik_code) from costage_land_subregionen R where R.land_sub_reg_nr = A.hzb_land_sub_r_nr;
--HZB-Staat:
update costage_st_studien_aggr A set hzb_staat_astat=
val(L.statistik_code) from costage_st_laender L
where L.st_land_nr=A.hzb_land_nr
;
--heimat_ort_astat
update costage_st_studien_aggr A set heimat_ort_astat= val(S.statistik_code)
from costage_st_land_regionen R, costage_land_subregionen S,costage_st_adressen AH
where AH.st_studstamm_nr=A.st_studstamm_nr
and AH.st_adresse_typ='H'
and AH.land_kfz_kennzeichen='D'
and AH.land_kfz_kennzeichen_subregion=S.land_kfz_kennzeichen_subregion
and R.st_land_reg_nr=S.st_land_reg_nr
and R.st_land_nr=56 --BRD
;
--heimat_staat_astat
update costage_st_studien_aggr A set heimat_staat_astat= val(L.statistik_code)
from costage_st_laender L, costage_st_adressen AH
where AH.st_studstamm_nr=A.st_studstamm_nr
and AH.st_adresse_typ='H'
and AH.st_land_nr=L.st_land_nr;
Loading…
Cancel
Save