Visualisierungsmodul für SuperX http://www.superx-projekt.de/doku/viz_modul/
 
 
 
 

102 lines
2.7 KiB

44000^Visualisierungen verwalten^--Autor: D. Quathamer\
--Datum: 2.8.2019\
--freemarker template\
create temp table tmp_ergebnis (\
ord smallint,\
tid integer, \
userinfo_id integer,\
benutzer varchar(255),\
caption varchar(255),\
uniquename varchar(255),\
maskeninfo_id integer,\
maskeninfo_name varchar(255),\
nextedit varchar(255)\
);\
insert into tmp_ergebnis (ord,\
tid,\
userinfo_id, \
benutzer,\
caption,\
uniquename,\
maskeninfo_id,\
maskeninfo_name,\
nextedit) \
select 1 as ord,\
C.tid,\
C.userinfo_id,\
nvl(U.name,U.benutzer),\
C.caption,\
C.uniquename,\
C.maskeninfo_id,\
M.name,\
('../edit/viz/viz_chart_edit.jsp|tid=' || C.tid)::varchar(255)\
FROM maskeninfo M, viz_chart C left outer join userinfo U\
on (U.tid=C.userinfo_id)\
where M.tid=C.maskeninfo_id\
/* and C.userinfo_id=<<Benutzer/in>> */\
/* and C.caption ilike '%<<Name>>%' */\
/* and C.uniquename ilike '%<<Schlüssel>>%' */\
/* and C.maskeninfo_id=<<Maske>> */\
\
;\
\
\
insert into tmp_ergebnis (ord,\
--tid,userinfo_id, benutzer,\
caption, --maskeninfo_id,\
--maskeninfo_name,\
-- is_active,\
-- stylesheet_id,\
-- contenttype,\
-- output_filename,\
-- letzter_lauf,\
nextedit) \
select 10, --ord\
'Neuer Eintrag',\
nvl(('../edit/viz/viz_chart_edit.jsp|tid=' || max(tid)+1)::varchar(255),'../edit/viz/viz_chart_edit.jsp'::varchar(255))\
from viz_chart\
--where 0=(select count(*) from qa_mask_execution)\
;\
\
<@selectintotmp \
select="caption,\
uniquename,\
maskeninfo_name,\
benutzer,\
nextedit,\
ord"\
source="tmp_ergebnis"\
target="tmp_ergebnis2">\
order by ord,caption ,uniquename,maskeninfo_name\
</@selectintotmp>\
<@informixnolog/>;\
\
drop table tmp_ergebnis;\
\
select \
caption,\
uniquename,\
maskeninfo_name,\
benutzer,\
nextedit \
from tmp_ergebnis2\
;^XIL List\
drop_and_delete movable_columns sizable_columns horizontal_scrolling\
white_space_color=COLOR_WHITE fixed_columns=2\
min_heading_height=35\
Column CID=0 heading_text="Name" center_heading\
row_selectable col_selectable heading_platform readonly\
width=50 text_size=100\
Column CID=0 heading_text="Schlüssel" center_heading\
row_selectable col_selectable heading_platform readonly\
width=50 text_size=100\
Column CID=1 heading_text="Maske" center_heading\
row_selectable col_selectable heading_platform readonly\
width=150 text_size=200\
Column CID=1 heading_text="Benutzer/in " center_heading\
row_selectable col_selectable heading_platform readonly\
width=30 text_size=200\
Column CID=1 heading_text="Bearbeiten" center_heading\
row_selectable col_selectable heading_platform readonly\
width=5 text_size=200\
@@@^^^Diagrammtypen und Eigenschaften verwalten^drop table tmp_ergebnis2;^^1^440^360^0^1^^