|
|
|
@ -3,30 +3,32 @@ SELECT uniquename, caption, sortnr\ |
|
|
|
FROM rpta_column_layout \ |
|
|
|
FROM rpta_column_layout \ |
|
|
|
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat_gew')\ |
|
|
|
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat_gew')\ |
|
|
|
and R.systeminfo_id=7)\ |
|
|
|
and R.systeminfo_id=7)\ |
|
|
|
and 1=(select 1 from sx_repository where art='SOS_KOEPFE_FAELLE_RPTA_GEW' and id='<<Köpfe oder Fälle ?>>')\ |
|
|
|
and (1=(select 1 from sx_repository where art='SOS_KOEPFE_FAELLE_RPTA_GEW' and 'R_' || id='<<Köpfe oder Fälle ?>>')\ |
|
|
|
|
|
|
|
or 1=(select 1 from koepfe_oder_faelle where 'K_' || tid='<<Köpfe oder Fälle ?>>' AND apnr ILIKE '%gew%')\ |
|
|
|
|
|
|
|
)\ |
|
|
|
union\ |
|
|
|
union\ |
|
|
|
SELECT uniquename, caption, sortnr\ |
|
|
|
SELECT uniquename, caption, sortnr\ |
|
|
|
FROM rpta_column_layout \ |
|
|
|
FROM rpta_column_layout \ |
|
|
|
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat','sos_stud_astat_archiv')\ |
|
|
|
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat','sos_stud_astat_archiv')\ |
|
|
|
and R.systeminfo_id=7)\ |
|
|
|
and R.systeminfo_id=7)\ |
|
|
|
and (1=(select 1 from sx_repository where art='SOS_KOEPFE_FAELLE_RPTA' and id='<<Köpfe oder Fälle ?>>')\ |
|
|
|
and (1=(select 1 from sx_repository where art='SOS_KOEPFE_FAELLE_RPTA' and 'R_' || id='<<Köpfe oder Fälle ?>>')\ |
|
|
|
or 1=(select 1 from koepfe_oder_faelle where apnr='<<Köpfe oder Fälle ?>>')\ |
|
|
|
or 1=(select 1 from koepfe_oder_faelle where 'K_' || tid='<<Köpfe oder Fälle ?>>' AND apnr NOT ILIKE '%gew%')\ |
|
|
|
)\ |
|
|
|
)\ |
|
|
|
order by sortnr, caption;^ ^<<SQL>> --Freemarker Template\ |
|
|
|
order by sortnr, caption;^ ^<<SQL>> --Freemarker Template\ |
|
|
|
SELECT uniquename, caption, sortnr\ |
|
|
|
SELECT uniquename, caption, sortnr\ |
|
|
|
FROM rpta_column_layout \ |
|
|
|
FROM rpta_column_layout \ |
|
|
|
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat_gew')\ |
|
|
|
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat_gew')\ |
|
|
|
and R.systeminfo_id=7)\ |
|
|
|
and R.systeminfo_id=7)\ |
|
|
|
and 1=(select 1 from sx_repository where art='SOS_KOEPFE_FAELLE_RPTA_GEW' and id='<<Köpfe oder Fälle ?>>')\ |
|
|
|
and (1=(select 1 from sx_repository where art='SOS_KOEPFE_FAELLE_RPTA_GEW' and 'R_' || id='<<Köpfe oder Fälle ?>>')\ |
|
|
|
\ |
|
|
|
or 1=(select 1 from koepfe_oder_faelle where 'K_' || tid='<<Köpfe oder Fälle ?>>' AND apnr ILIKE '%gew%')\ |
|
|
|
|
|
|
|
)\ |
|
|
|
union\ |
|
|
|
union\ |
|
|
|
\ |
|
|
|
|
|
|
|
SELECT uniquename, caption, sortnr\ |
|
|
|
SELECT uniquename, caption, sortnr\ |
|
|
|
FROM rpta_column_layout \ |
|
|
|
FROM rpta_column_layout \ |
|
|
|
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat','sos_stud_astat_archiv')\ |
|
|
|
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat','sos_stud_astat_archiv')\ |
|
|
|
and R.systeminfo_id=7) and uniquename='sos_stud_astat_rsz'\ |
|
|
|
and R.systeminfo_id=7)\ |
|
|
|
and (1=(select 1 from sx_repository where art='SOS_KOEPFE_FAELLE_RPTA' and id='<<Köpfe oder Fälle ?>>')\ |
|
|
|
and (1=(select 1 from sx_repository where art='SOS_KOEPFE_FAELLE_RPTA' and 'R_' || id='<<Köpfe oder Fälle ?>>')\ |
|
|
|
or 1=(select 1 from koepfe_oder_faelle where apnr='<<Köpfe oder Fälle ?>>')\ |
|
|
|
or 1=(select 1 from koepfe_oder_faelle where 'K_' || tid='<<Köpfe oder Fälle ?>>' AND apnr NOT ILIKE '%gew%')\ |
|
|
|
)\ |
|
|
|
)\ |
|
|
|
order by sortnr, caption\ |
|
|
|
order by sortnr, caption\ |
|
|
|
limit 1;^ |
|
|
|
limit 1;^ |
|
|
|
@ -48,7 +50,7 @@ limit 1;^ |
|
|
|
48016^Matrikel-Nr.^35^350^-1^140^80^1^char^30^0^13^^ ^ ^ |
|
|
|
48016^Matrikel-Nr.^35^350^-1^140^80^1^char^30^0^13^^ ^ ^ |
|
|
|
48018^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>>SELECT id, caption\ |
|
|
|
48018^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>>SELECT id, caption\ |
|
|
|
FROM (\ |
|
|
|
FROM (\ |
|
|
|
SELECT sort1, id, caption\ |
|
|
|
SELECT sort1, 'R_' || id as id, caption\ |
|
|
|
FROM sx_repository\ |
|
|
|
FROM sx_repository\ |
|
|
|
WHERE aktiv = 1\ |
|
|
|
WHERE aktiv = 1\ |
|
|
|
AND today() BETWEEN gueltig_seit AND gueltig_bis\ |
|
|
|
AND today() BETWEEN gueltig_seit AND gueltig_bis\ |
|
|
|
@ -56,9 +58,10 @@ FROM (\ |
|
|
|
\ |
|
|
|
\ |
|
|
|
UNION ALL\ |
|
|
|
UNION ALL\ |
|
|
|
\ |
|
|
|
\ |
|
|
|
SELECT 999999 AS sort1, apnr AS id, eintrag AS caption\ |
|
|
|
SELECT 999999 AS sort1, 'K_' || tid AS id, eintrag AS caption\ |
|
|
|
FROM koepfe_oder_faelle\ |
|
|
|
FROM koepfe_oder_faelle\ |
|
|
|
WHERE apnr NOT ILIKE '%gew%'\ |
|
|
|
WHERE 1=1\ |
|
|
|
|
|
|
|
--AND apnr NOT ILIKE '%gew%'\ |
|
|
|
AND NOT EXISTS (\ |
|
|
|
AND NOT EXISTS (\ |
|
|
|
SELECT 1\ |
|
|
|
SELECT 1\ |
|
|
|
FROM sx_repository\ |
|
|
|
FROM sx_repository\ |
|
|
|
@ -68,25 +71,29 @@ FROM (\ |
|
|
|
)\ |
|
|
|
)\ |
|
|
|
) x\ |
|
|
|
) x\ |
|
|
|
ORDER BY sort1, caption;^ ^<<SQL>>SELECT id, caption\ |
|
|
|
ORDER BY sort1, caption;^ ^<<SQL>>SELECT id, caption\ |
|
|
|
FROM sx_repository\ |
|
|
|
FROM (\ |
|
|
|
WHERE aktiv = 1\ |
|
|
|
SELECT sort1, 'R_' || id as id, caption\ |
|
|
|
|
|
|
|
FROM sx_repository\ |
|
|
|
|
|
|
|
WHERE aktiv = 1\ |
|
|
|
AND today() BETWEEN gueltig_seit AND gueltig_bis\ |
|
|
|
AND today() BETWEEN gueltig_seit AND gueltig_bis\ |
|
|
|
AND art = 'SOS_KOEPFE_FAELLE_RPTA'\ |
|
|
|
AND art IN ('SOS_KOEPFE_FAELLE_RPTA','SOS_KOEPFE_FAELLE_RPTA_GEW')\ |
|
|
|
AND caption = 'Fälle'\ |
|
|
|
AND caption = 'Fälle'\ |
|
|
|
\ |
|
|
|
\ |
|
|
|
UNION ALL\ |
|
|
|
UNION ALL\ |
|
|
|
\ |
|
|
|
\ |
|
|
|
SELECT apnr AS id, eintrag AS caption\ |
|
|
|
SELECT 999999 AS sort1, 'K_' || tid AS id, eintrag AS caption\ |
|
|
|
FROM koepfe_oder_faelle\ |
|
|
|
FROM koepfe_oder_faelle\ |
|
|
|
WHERE eintrag = 'Fälle'\ |
|
|
|
WHERE eintrag = 'Fälle'\ |
|
|
|
AND apnr NOT ILIKE '%gew%'\ |
|
|
|
--AND apnr NOT ILIKE '%gew%'\ |
|
|
|
AND NOT EXISTS (\ |
|
|
|
AND NOT EXISTS (\ |
|
|
|
SELECT 1\ |
|
|
|
SELECT 1\ |
|
|
|
FROM sx_repository\ |
|
|
|
FROM sx_repository\ |
|
|
|
WHERE aktiv = 1\ |
|
|
|
WHERE aktiv = 1\ |
|
|
|
AND today() BETWEEN gueltig_seit AND gueltig_bis\ |
|
|
|
AND today() BETWEEN gueltig_seit AND gueltig_bis\ |
|
|
|
AND art IN ('SOS_KOEPFE_FAELLE_RPTA','SOS_KOEPFE_FAELLE_RPTA_GEW')\ |
|
|
|
AND art IN ('SOS_KOEPFE_FAELLE_RPTA','SOS_KOEPFE_FAELLE_RPTA_GEW')\ |
|
|
|
);^ |
|
|
|
)\ |
|
|
|
|
|
|
|
) x\ |
|
|
|
|
|
|
|
ORDER BY sort1, caption;^ |
|
|
|
48019^Status^340^330^-1^130^180^1^sql^30^0^1^<<SQL>> select apnr,eintrag from sos_status order by 2^ ^ ^ |
|
|
|
48019^Status^340^330^-1^130^180^1^sql^30^0^1^<<SQL>> select apnr,eintrag from sos_status order by 2^ ^ ^ |
|
|
|
48022^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ |
|
|
|
48022^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ |
|
|
|
48023^Spalten^3001^0^0^150^190^10^char^30^0^1^<<SQL>>\ |
|
|
|
48023^Spalten^3001^0^0^150^190^10^char^30^0^1^<<SQL>>\ |
|
|
|
|