Browse Source

Visualisierung der Spalten #3

xcube0.1
Daniel Quathamer 2 years ago
parent
commit
760aab28ca
  1. 3
      src-modules/module/xcube/masken/21000_felderinfo.unl
  2. 1
      src-modules/module/xcube/masken/21000_masken_felder_bez.unl
  3. 52
      src-modules/module/xcube/masken/21000_maskeninfo.unl

3
src-modules/module/xcube/masken/21000_felderinfo.unl

@ -46,3 +46,6 @@ and trim(F.table_name) || '.' || F.name in (select trim(tablename)||'.'||trim(fi
21025^Alter^39^0^0^140^80^1^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('XCUBE-Alter-Sicht') order by 3,2;^^^ 21025^Alter^39^0^0^140^80^1^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('XCUBE-Alter-Sicht') order by 3,2;^^^
21026^HZB-Note^40^0^0^140^80^1^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('XCUBE-HZB-Note-Sicht') order by 3,2;^^^ 21026^HZB-Note^40^0^0^140^80^1^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('XCUBE-HZB-Note-Sicht') order by 3,2;^^^
21027^Hörerstatus (intern)^43^0^0^140^80^1^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('XCUBE-Hörerstatus-Sicht') order by 3,2;^^^ 21027^Hörerstatus (intern)^43^0^0^140^80^1^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('XCUBE-Hörerstatus-Sicht') order by 3,2;^^^
21028^Spaltenvisualisierung^10000^0^0^140^80^1^char^30^0^1^<<SQL>> select '_graph','Balken (horiz. linksb.)' from xdummy\
union select '_graphbarright','Balken (horiz. rechtsb.)' from xdummy\
union select '_graphbaralternating','Balken (horiz. rechtsb./linksb.)' from xdummy^^^

1
src-modules/module/xcube/masken/21000_masken_felder_bez.unl

@ -26,3 +26,4 @@
21000^21025^ 21000^21025^
21000^21026^ 21000^21026^
21000^21027^ 21000^21027^
21000^21028^

52
src-modules/module/xcube/masken/21000_maskeninfo.unl

@ -142,6 +142,11 @@ select 'nicht relevant' from xdummy;</#if>\
<#if coldef.is_virtual?number=1||rowdef.is_virtual?number=1> <#return 1><#else> return <#return 0> </#if>\ <#if coldef.is_virtual?number=1||rowdef.is_virtual?number=1> <#return 1><#else> return <#return 0> </#if>\
</#function>\ </#function>\
\ \
<#assign graph_col= "col" />\
/* <#assign graph_col=<<Spaltenvisualisierung>> /> */\
\
create temp table tmp_cellmax (maxvalue ${datatype} );\
insert into tmp_cellmax values(0);\
\ \
<#if hasVirtualColumns()=1||kennzahlInRowOrCol()=1>\ <#if hasVirtualColumns()=1||kennzahlInRowOrCol()=1>\
select * into temp tmp_rohdaten from \ select * into temp tmp_rohdaten from \
@ -330,6 +335,21 @@ drop table if exists tmp_rohdaten;\
<#assign i=i+1/>\ <#assign i=i+1/>\
update tmp_erg set c${i}=0 where c${i} is null; \ update tmp_erg set c${i}=0 where c${i} is null; \
</#foreach>\ </#foreach>\
<#assign lastcol=i />\
\
--Wenn Grafikfunktion eingeschaltet ist, wird Maximalwert ermittelt:\
<#if i != 0 && graph_col != "col" >\
\
<#assign i=0/>\
<#foreach spalte in ergspalten>\
<#assign i=i+1/>\
<#if i == lastcol>\
update tmp_cellmax set maxvalue = (select max(c${i}) from tmp_erg) \
where tmp_cellmax.maxvalue < (select max(c${i}) from tmp_erg) ;\
</#if> \
</#foreach>\
\
</#if>\
\ \
<#if "<<Leere Zeilen ausblenden>>"="'ja'">\ <#if "<<Leere Zeilen ausblenden>>"="'ja'">\
delete from tmp_erg where 1=1\ delete from tmp_erg where 1=1\
@ -351,16 +371,37 @@ update tmp_erg set name=replace(name,col1||' - ','');\
\ \
\ \
select \ select \
<#if rowdef.is_sicht&gt;0>ebene,</#if>\ <#if rowdef.is_sicht&gt;0>\
<#if graph_col=="col">\
ebene,\
<#else>\
ebene as level, --bei Grafiken keine Ebenenanzeige\
</#if>\
</#if>\
name\ name\
<#if "<<2.Ansicht in Zeilen>>"!=""&&"<<2.Ansicht in Zeilen>>"!="<<2.Ansicht in Zeilen>>">,col2</#if>\ --TODO: wenn <<2.Ansicht in Zeilen>>"!="" dann ,col2\
<#assign i=0/>\ <#assign i=0/>\
<#foreach spalte in ergspalten>\ <#foreach spalte in ergspalten>\
<#assign i=i+1/>\ <#assign i=i+1/>\
,c${i}::${datatype} \ <#if i != lastcol && graph_col != "col" >\
<#if graph_col == "_graphbaralternating">\
--bei symmetr. Balken jeder 2. Balken rechtsbündig\
<#if i % 2 == 0>\
, '' || c${i}::${datatype} || '|' || tmp_cellmax.maxvalue as _graph${i}\
<#else>\
, '' || c${i}::${datatype} || '|' || tmp_cellmax.maxvalue as _graphbarright${i}\
</#if>\
<#else>\
, '' || c${i}::${datatype} || '|' || tmp_cellmax.maxvalue as ${graph_col}${i}\
</#if>\
\
<#else>\
, c${i}::${datatype} as col${i}\
</#if>\
\
</#foreach>\ </#foreach>\
\ \
from tmp_erg order by sortnr;^--freemarker Template\ from tmp_erg, tmp_cellmax order by sortnr;^--freemarker Template\
XIL List\ XIL List\
sizable_columns horizontal_scrolling\ sizable_columns horizontal_scrolling\
drop_and_delete movable_columns\ drop_and_delete movable_columns\
@ -389,4 +430,5 @@ Column CID=1 heading_text="${spalte.name}" center_heading\
row_selectable heading_platform readonly explanation="Ausprägung ${spalte.name}"\ row_selectable heading_platform readonly explanation="Ausprägung ${spalte.name}"\
width=12\ width=12\
</#foreach>\ </#foreach>\
@@@^Altersgruppe^Anzahl^Dynamische Darstellung von Studierendenzahlen^drop table tmp_erg;^^3^700^360^0^1^^ @@@^Altersgruppe^Anzahl^Dynamische Darstellung von Studierendenzahlen^drop table tmp_erg;\
drop table tmp_cellmax;^ ^3^700^360^0^1^ ^

Loading…
Cancel
Save