Browse Source

Definition View sxc_hochschulen_liste

master
Marlies Winterstein 7 months ago
parent
commit
caec9d458c
  1. 24
      src-modules/module/sxc/conf/sxc.xml

24
src-modules/module/sxc/conf/sxc.xml

@ -244,7 +244,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[SXC]" />
<views> <views>
<view name="sxc_hochschulen_hsk_art"> <view name="sxc_hochschulen_art">
<columns><column name="druck" type ="CHAR" size ="2147483647" default ="" notnull ="false" /> <columns><column name="druck" type ="CHAR" size ="2147483647" default ="" notnull ="false" />
<column name="apnr" type ="INTEGER" size ="10" default ="" notnull ="false" /> <column name="apnr" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="parent" type ="INTEGER" size ="10" default ="" notnull ="false" /> <column name="parent" type ="INTEGER" size ="10" default ="" notnull ="false" />
@ -265,7 +265,7 @@ where hs_nr_hauptsitz is not null and hs_nr is not null;
]]></sql> ]]></sql>
</view> </view>
<view name="sxc_hochschulen_hsk_bland"> <view name="sxc_hochschulen_bland">
<columns><column name="druck" type ="CHAR" size ="2147483647" default ="" notnull ="false" /> <columns><column name="druck" type ="CHAR" size ="2147483647" default ="" notnull ="false" />
<column name="apnr" type ="INTEGER" size ="10" default ="" notnull ="false" /> <column name="apnr" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="parent" type ="INTEGER" size ="10" default ="" notnull ="false" /> <column name="parent" type ="INTEGER" size ="10" default ="" notnull ="false" />
@ -285,7 +285,25 @@ union select trim(name)|| ' Standort '||standort_ort, hs_nr::char(10), 'ST_'||hs
where hs_nr_hauptsitz is not null and hs_nr is not null; where hs_nr_hauptsitz is not null and hs_nr is not null;
]]></sql> ]]></sql>
</view> </view>
<view name="sxc_hochschulen_liste">
<columns><column name="druck" type ="CHAR" size ="2147483647" default ="" notnull ="false" />
<column name="apnr" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="parent" type ="INTEGER" size ="10" default ="" notnull ="false" />
<column name="ebene" type ="INTEGER" size ="10" default ="" notnull ="false" />
</columns>
<sql dbsystem=""><![CDATA[
select 'Hochschulen', 0::char(10) as hs_nr, null::char(10) as parent, 0::smallint as ebene from xdummy
union
select name, hs_nr::char(10), '0'::char(10) as parent, 1::smallint as ebene from sxc_hochschulen where
hs_nr is not null and hsk_laufnummer not in (select hsk_laufnummer from sxc_hochschulen_standorte where hauptsitz='1')
union
select name, 'ST_'||hs_nr::char(10), '0'::char(10) as parent, 1::smallint as ebene from sxc_hochschulen where
hs_nr is not null and hsk_laufnummer in (select hsk_laufnummer from sxc_hochschulen_standorte where hauptsitz='1')
--und die Standorte
union select trim(name)|| ' Standort '||standort_ort, hs_nr::char(10), 'ST_'||hs_nr_hauptsitz as parent, 1::smallint as ebene from sxc_hochschulen_standorte
where hs_nr_hauptsitz is not null and hs_nr is not null;
]]></sql>
</view>
</views> </views>
<functions> <functions>

Loading…
Cancel
Save