Browse Source

Verlagerung nach src-modules, Dateien umbenannt #1

rpta_0.1_Release
Daniel Quathamer 1 year ago
parent
commit
0dd4a24f8e
  1. 10
      conf/excludes.txt
  2. 9
      conf/includes.txt
  3. 476
      conf/rpta.xml
  4. 17
      src-modules/module/rpta/conf/includes.txt
  5. 29
      src-modules/module/rpta/conf/rpta.xml
  6. 0
      src-modules/module/rpta/schluesseltabellen/rpta_column_type.unl
  7. 62
      src-modules/module/rpta/schluesseltabellen/sx_stylesheets_einfuegen.sql
  8. 14
      superx/WEB-INF/conf/edustore/db/bin/SQL_ENV_rpta.sam
  9. 2
      superx/WEB-INF/reports/simple_table.jrtx
  10. 536
      superx/WEB-INF/reports/tabelle_jrxml_a4_quer.xsl.jrxml
  11. 53
      superx/images/icons/magic.svg
  12. 6
      superx/xml/rpta_assistent.xsl
  13. 133
      superx/xml/rpta_templates.xsl
  14. 53
      superx/xml/sx_stylesheets_einfuegen.sql
  15. 6
      superx/xml/tabelle_jrxml_a4_quer.xsl

10
conf/excludes.txt

@ -1,10 +0,0 @@
rohdaten/ETL_ENV
rohdaten/*.properties
preparation.sql
finalize.sql
rohdaten/*.err
*.log
*.err
rohdaten/unl/*
conf/customize.sql
conf/*.log

9
conf/includes.txt

@ -1,9 +0,0 @@
doku/viz_modul/viz.html
WEB-INF/conf/edustore/db/bin/SQL_ENV_viz.sam
xml/js/viz/viz_functions.js
xml/js/viz/d3.min.js
xml/js/viz/d3-license.txt
xml/viz_html_chart.xsl
images/icons/chart-bar.svg
xml/js/viz/plot.js

476
conf/rpta.xml

@ -1,476 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--<!DOCTYPE module SYSTEM "../../../conf/superx-module.dtd"> -->
<module name="rpta" version="0.1" sachgebiet_id="330"
sachgebiet="Berichtsassistent" systeminfo_id="330"
system="Berichtsassistent" thema="Berichtsassistent" thema_parent="Abfragen">
<database name="superx" system="superx">
<sachgebiete>
<sachgebiet id="331" name="Berichtsassistent Administr."
rightname="CS_BIA_STANDARDREPORTS_ADMIN[RPTA]" />
</sachgebiete>
<table name="rpta_column" thema="Berichtsassistent" typ="Schlüsseltabelle"
releaseUnload="empty">
<description>Schlüsseltabelle für Spaltendefinitionen</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="uniquename" type="VARCHAR" size="255" default="" notnull="true" description="Unique Name" />
<column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
<column name="srcfieldname" type="VARCHAR" size="255" default="" notnull="" description="Quellfeld" />
<column name="targetfieldname" type="VARCHAR" size="255" default="" notnull="" description="Zielfeld" />
<column name="column_type" type="INTEGER" size="" default="" notnull="" description="Spaltentyp" ><comment>Physische Spalte/Logische Spalte/Lookup</comment></column>
<column name="col_function" type="VARCHAR" size="255" default="" notnull="" description="Funktion" ><comment>Bei logischen Spalten/Lookup</comment></column>
<column name="is_visible" type="SMALLINT" size="2" default="" notnull="" description="Sichtbare Spalte" ></column>
<column name="visible_size" type="SMALLINT" size="2" default="" notnull="" description="Länge in Zeichen" ><comment>Bei String-Spalten</comment></column>
<column name="is_aggregate" type="SMALLINT" size="2" default="" notnull="" description="Aggregierte Spalte" ></column>
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>rpta_column</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>rpta_column_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<table name="rpta_column_type" thema="Berichtsassistent" typ="Schlüsseltabelle"
releaseUnload="empty">
<description>Spaltentypen</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="uniquename" type="VARCHAR" size="255" default="" notnull="true" description="Unique Name" />
<column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>rpta_column_type</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>rpta_column_type_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<table name="rpta_column_layout" thema="Berichtsassistent" typ="Schlüsseltabelle"
releaseUnload="empty">
<description>Spaltenlayouts</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="uniquename" type="VARCHAR" size="255" default="" notnull="true" description="Unique Name" />
<column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
<column name="resultset_id" type="INTEGER" size="255" default="" notnull="" description="Resultset" />
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>rpta_column_layout</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>rpta_column_layout_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<table name="rpta_column2resultset" thema="Berichtsassistent" typ="Schlüsseltabelle"
releaseUnload="empty">
<description>Spalten zu Resultsets</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="column_id" type="INTEGER" size="255" default="" notnull="" description="Spalte" />
<column name="resultset_id" type="INTEGER" size="255" default="" notnull="" description="Resultset" />
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>rpta_column2resultset</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>rpta_column2resultset_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<table name="rpta_column2layout" thema="Berichtsassistent" typ="Schlüsseltabelle"
releaseUnload="empty">
<description>Spalten zu Layouts</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="column_id" type="INTEGER" size="255" default="" notnull="" description="Spalte" />
<column name="layout_id" type="INTEGER" size="255" default="" notnull="" description="Layout" />
<column name="sortnr" type="SMALLINT" size="2" default="" notnull="" description="Sortiernr." />
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>rpta_column2layout</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>rpta_column2layout_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<table name="rpta_resultset" thema="Berichtsassistent" typ="Schlüsseltabelle"
releaseUnload="empty">
<description>Schlüsseltabelle für mögliche Resultsets</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
<column name="uniquename" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
<column name="fieldclause" type="VARCHAR" size="255" default="" notnull="false" description="Defaultwert" />
<column name="joinclause" type="VARCHAR" size="255" default="" notnull="false" description="Defaultwert" />
<column name="whereclause" type="VARCHAR" size="255" default="" notnull="false" description="Einheit" />
<column name="systeminfo_id" type="INTEGER" size="255"
default="" notnull="false" description="Quellsystem">
</column>
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>rpta_resultset</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>rpta_resultset_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<table name="rpta_report_property" thema="Berichtsassistent" typ="Datentabelle"
releaseUnload="empty">
<description>Eigenschaften für Berichte</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Eigenschaft Name" />
<column name="uniquename" type="VARCHAR" size="255" default="" notnull="" description="Schlüssel" />
<column name="default_value" type="VARCHAR" size="255" default="" notnull="false" description="Default-Wert" />
<column name="default_value" type="VARCHAR" size="255" default="" notnull="false" description="Default-Wert" />
<column name="description" type="VARCHAR" size="255" default=""
notnull="false" description="Beschreibung der Variable" />
<column name="value_range" type="TEXT" size="32255" default=""
notnull="false" description="Wertebereich"/>
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>viz_chart_property</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>viz_chart_property_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<table name="viz_property" thema="Administration" typ="Schlüsseltabelle"
releaseUnload="empty">
<description>Schlüsseltabelle für Eigenschaften von Visualisieren</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
<column name="prop_uniquename" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
<column name="prop_default" type="VARCHAR" size="255" default="" notnull="false" description="Defaultwert" />
<column name="prop_unit" type="VARCHAR" size="255" default="" notnull="false" description="Einheit" />
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>viz_property</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>viz_property_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<views>
</views>
<functions>
</functions>
<themen>
<thema name="Administration Berichtsassistent"
parent="Berichtsassistent">Abfragen zur Administration von Berichtsassistent </thema>
</themen>
<masken>
<!--
<maske tid="45000" name="Berichtsassistent suchen" thema="Administration Berichtsassistent">
<description>Berichtsassistent verwalten</description>
<src>
<path>$RPTA_PFAD/masken</path>
</src>
</maske>
-->
</masken>
<data-integrity>
<!--rpta_column-->
<relation from="rpta_column_type" to="rpta_column" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="column_type" />
</relation>
x<relation from="rpta_resultset" to="rpta_column_layout" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="resultset_id" />
</relation>
<relation from="rpta_resultset" to="rpta_column2resultset" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="resultset_id" />
</relation>
<relation from="systeminfo" to="rpta_resultset" delete="FALSE"
displayType="select" visibleFields="name" format="%s">
<relation-column from="tid" to="systeminfo_id" />
</relation>
<relation from="rpta_column" to="rpta_column2resultset" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="column_id" />
</relation>
<relation from="rpta_column_layout" to="rpta_column2layout" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="layout_id" />
</relation>
<relation from="rpta_column" to="rpta_column2layout" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="column_id" />
</relation>
</data-integrity>
</database>
<!-- ********************* Liste der RPTA-Prozesse ************************** -->
<etl>
<etl-step name="Transformation" type="trans">
<action>
<nativeaction sql="update systeminfo set datum=today() where tid in (280)" scriptfile="" database=""/>
</action>
</etl-step>
</etl>
<install>
<install-step name="Füllen der Modul-Tabellen">
<action error="stop">
<loadtable refresh="true" delimiter="^" header="false" tabname="rpta_column_type"><file path="$RPTA_PFAD/schluesseltabellen/rpta_column_type.unl"/></loadtable>
<nativeaction sql="" scriptfile="$RPTA_PFAD/schluesseltabellen/sx_stylesheets_einfuegen.sql" database=""/>
</action>
</install-step>
</install>
<upgrade>
<upgrade-step>
<action error="stop">
<loadtable refresh="true" delimiter="^" header="false" tabname="rpta_column_type"><file path="$RPTA_PFAD/schluesseltabellen/rpta_column_type.unl"/></loadtable>
<nativeaction sql="" scriptfile="$RPTA_PFAD/schluesseltabellen/sx_stylesheets_einfuegen.sql" database=""/>
</action>
<action>
</action>
</upgrade-step>
</upgrade>
<uninstall-step name="Deinstalliere Schlüssel">
<action error="stop">
</action>
</uninstall-step>
<!-- ********************* Liste der RPTA-Prozesse ************************** -->
<dbforms>
<form name="rpta_column_layout_list"
table="rpta_column_layout"
path="/edit/rpta/rpta_column_layout_list.jsp"
followUp=""
caption="Spaltenlayouts verwalten"
orderBy="caption"
gotoHt=""
helpfile=""
maxRows="*"
mode="full">
<description>In diesem Formular können Sie Spaltenlayouts verwalten. </description>
<filters>
</filters>
<field-selection complete="false" />
<customfield name="tid" nullFieldValue="" />
<customfield name="caption" nullFieldValue="" visibleSize="30" />
<customfield type="link" name="Details" path="/superx/edit/rpta/rpta_column_layout_edit.jsp" linkid="tid"/>
</form>
<form name="rpta_column_layout_edit"
table="rpta_column_layout"
path="/edit/rpta/rpta_column_layout_edit.jsp"
followUp=""
caption="Spaltenlayouts bearbeiten"
orderBy="caption"
gotoHt=""
helpfile=""
maxRows="1"
mode="full">
<description>In diesem Formular können Sie Spaltenlayouts verwalten.</description>
<filters>
<filter mandatory="true" type="equals">tid</filter>
</filters>
<field-selection complete="false" />
<customfield name="tid" />
<customfield name="caption" visibleSize="50" nullFieldValue="" />
<customfield name="resultset_id" visibleSize="50" nullFieldValue="" />
<customfield name="Spalten" type="subform" multipart="false" autoUpdate="false"
maxRows="*" table="rpta_column2layout" parentField="tid" childField="layout_id"
orderBy="" allowNew="true"
mode="full">
<field-selection complete="false" />
<customfield name="layout_id" type="hidden" overrideValue="tid" />
<customfield name="column_id" nullFieldValue="" visibleSize="5" />
<customfield name="sortnr" nullFieldValue="" visibleSize="10" />
</customfield>
</form>
<form name="rpta_resultset_list"
table="rpta_resultset"
path="/edit/rpta/rpta_resultset_list.jsp"
followUp=""
caption="Resultsets verwalten"
orderBy="caption"
gotoHt=""
helpfile=""
maxRows="*"
mode="full">
<description>In diesem Formular können Sie Ergebnistabellen verwalten. Im Details-Formular können Sie Eigenschaften zuordnen.</description>
<filters>
</filters>
<field-selection complete="false" />
<customfield name="tid" nullFieldValue="" />
<customfield name="caption" nullFieldValue="" visibleSize="30" />
<customfield type="link" name="Details" path="/superx/edit/rpta/rpta_resultset_edit.jsp" linkid="tid"/>
</form>
<form name="rpta_resultset_edit"
table="rpta_resultset"
path="/edit/rpta/rpta_resultset_edit.jsp"
followUp=""
caption="Ergebnistabellen bearbeiten"
orderBy="caption"
gotoHt=""
helpfile=""
maxRows="1"
mode="full">
<description>In diesem Formular können Sie Ergebnistabellen verwalten.</description>
<filters>
<filter mandatory="true" type="equals">tid</filter>
</filters>
<field-selection complete="false" />
<customfield name="tid" />
<customfield name="caption" visibleSize="50" nullFieldValue="" />
<customfield name="fieldclause" visibleSize="50" nullFieldValue="" />
<customfield name="joinclause" visibleSize="50" nullFieldValue="" />
<customfield name="whereclause" visibleSize="10" nullFieldValue="" />
<customfield name="systeminfo_id" visibleSize="10" nullFieldValue="" />
</form>
<form name="rpta_column_list"
table="rpta_column"
path="/edit/rpta/rpta_column_list.jsp"
followUp=""
caption="Spalten verwalten"
orderBy="caption"
gotoHt=""
helpfile=""
maxRows="*"
mode="full">
<description>In diesem Formular können Sie Spalten verwalten. Im Details-Formular können Sie Eigenschaften zuordnen.</description>
<filters>
</filters>
<field-selection complete="false" />
<customfield name="tid" nullFieldValue="" />
<customfield name="caption" nullFieldValue="" visibleSize="30" />
<customfield name="column_type_id" nullFieldValue="" visibleSize="30" />
<customfield type="link" name="Details" path="/superx/edit/rpta/rpta_column_edit.jsp" linkid="tid"/>
</form>
<form name="rpta_column_edit"
table="rpta_column"
path="/edit/rpta/rpta_column_edit.jsp"
followUp=""
caption="Spaltendefinition bearbeiten"
orderBy="caption"
gotoHt=""
helpfile=""
maxRows="1"
mode="full">
<description>In diesem Formular können Sie Spaltendefinitionen verwalten.</description>
<filters>
<filter mandatory="true" type="equals">tid</filter>
</filters>
<field-selection complete="false" />
<customfield name="tid" />
<customfield name="caption" visibleSize="50" nullFieldValue="" />
<customfield name="srcfieldname" visibleSize="50" nullFieldValue="" />
<customfield name="targetfieldname" visibleSize="50" nullFieldValue="" />
<customfield name="column_type_id" visibleSize="10" nullFieldValue="" />
<customfield name="col_function" visibleSize="100" nullFieldValue="" />
<customfield name="is_visible" visibleSize="10" nullFieldValue="" />
<customfield name="visible_size" visibleSize="10" nullFieldValue="" />
<customfield name="is_aggregate" visibleSize="10" nullFieldValue="" />
</form>
</dbforms>
</module>

17
src-modules/module/rpta/conf/includes.txt

@ -1,9 +1,8 @@
doku/viz_modul/viz.html doku/rpta_modul/rpta.html
WEB-INF/conf/edustore/db/bin/SQL_ENV_viz.sam WEB-INF/conf/edustore/db/bin/SQL_ENV_rpta.sam
xml/js/viz/viz_functions.js images/icons/magic.svg
xml/js/viz/d3.min.js WEB-INF/conf/edustore/db/module/rpta/schluesseltabellen/sx_stylesheets_einfuegen.sql
xml/js/viz/d3-license.txt WEB-INF/reports/simple_table.jrtx
xml/viz_html_chart.xsl xml/tabelle_jrxml_a4_quer.xsl
images/icons/chart-bar.svg xml/rpta_templates.xsl
xml/js/viz/plot.js xml/rpta_assistent.xsl

29
src-modules/module/rpta/conf/rpta.xml

@ -176,7 +176,6 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[RPTA]" />
<column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Eigenschaft Name" /> <column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Eigenschaft Name" />
<column name="uniquename" type="VARCHAR" size="255" default="" notnull="" description="Schlüssel" /> <column name="uniquename" type="VARCHAR" size="255" default="" notnull="" description="Schlüssel" />
<column name="default_value" type="VARCHAR" size="255" default="" notnull="false" description="Default-Wert" /> <column name="default_value" type="VARCHAR" size="255" default="" notnull="false" description="Default-Wert" />
<column name="default_value" type="VARCHAR" size="255" default="" notnull="false" description="Default-Wert" />
<column name="description" type="VARCHAR" size="255" default="" <column name="description" type="VARCHAR" size="255" default=""
notnull="false" description="Beschreibung der Variable" /> notnull="false" description="Beschreibung der Variable" />
<column name="value_range" type="TEXT" size="32255" default="" <column name="value_range" type="TEXT" size="32255" default=""
@ -187,10 +186,10 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[RPTA]" />
<row> <row>
<fld name='table_cat'>superx</fld> <fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld> <fld name='table_schem'>superx</fld>
<fld name='table_name'>viz_chart_property</fld> <fld name='table_name'>rpta_report_property</fld>
<fld name='column_name'>tid</fld> <fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld> <fld name='key_seq'>1</fld>
<fld name='pk_name'>viz_chart_property_pk</fld> <fld name='pk_name'>rpta_report_property_pk</fld>
</row> </row>
</rs> </rs>
</primaryKeys> </primaryKeys>
@ -198,31 +197,7 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[RPTA]" />
</indexes> </indexes>
</table> </table>
<table name="viz_property" thema="Administration" typ="Schlüsseltabelle"
releaseUnload="empty">
<description>Schlüsseltabelle für Eigenschaften von Visualisieren</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="caption" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
<column name="prop_uniquename" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" />
<column name="prop_default" type="VARCHAR" size="255" default="" notnull="false" description="Defaultwert" />
<column name="prop_unit" type="VARCHAR" size="255" default="" notnull="false" description="Einheit" />
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>viz_property</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>viz_property_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<views> <views>

0
src-modules/module/rpta/schluesseltabellen/rpta_column_type.unl

62
src-modules/module/rpta/schluesseltabellen/sx_stylesheets_einfuegen.sql

@ -10,15 +10,24 @@
"caption":"Gener. Standardlayout JR (A4 quer)", "caption":"Gener. Standardlayout JR (A4 quer)",
"description":"Gener. Standardlayout JR (A4 quer)", "description":"Gener. Standardlayout JR (A4 quer)",
"relation":"table", "relation":"table",
"contenttype":"application/jrxml", "contenttype":"text/xml",
"is_generic":"1" "is_generic":"1",
"toolbar_icon_filepath":"",
"usage_resultset_data":"T",
"stylesheet_type":"XSL_JRXML",
"jr_datasource":""
}, },
{"filename":"rpta_assistent.xsl", {"filename":"rpta_assistent.xsl",
"caption":"Berichtsassistent", "caption":"Berichtsassistent",
"description":"Export als formatierter Bericht", "description":"Export als formatierter Bericht",
"relation":"table", "relation":"table",
"contenttype":"text/html", "contenttype":"text/html",
"is_generic":"1"} "is_generic":"1",
"toolbar_icon_filepath":"images/icons/magic.svg",
"usage_resultset_data":"T",
"stylesheet_type":"XSL",
"jr_datasource":""
}
] /> ] />
<#assign stylesheet_field = [ <#assign stylesheet_field = [
@ -28,7 +37,6 @@
--Hier eventuell notwendige delete's auf die Tabellen sx_mask_style, sx_stylesheets oder stylesheet_field einfügen. --Hier eventuell notwendige delete's auf die Tabellen sx_mask_style, sx_stylesheets oder stylesheet_field einfügen.
--Achtung: ab hier nicht ändern, Mutterdatei ist $SUPERX_DIR/db/module/sos/schluesseltabellen/sx_stylesheets_fuellen.sql
<@sx_stylesheets_insert <@sx_stylesheets_insert
m_masken=masken m_masken=masken
m_stylesheet=stylesheet m_stylesheet=stylesheet
@ -61,7 +69,12 @@ description CHAR(255) ,
relation CHAR(10) , relation CHAR(10) ,
useragent CHAR(255) , useragent CHAR(255) ,
contenttype CHAR(200) , contenttype CHAR(200) ,
is_generic smallint is_generic smallint,
toolbar_icon_filepath VARCHAR(255) ,
usage_resultset_data CHAR(10) default 'T' ,
stylesheet_type CHAR(10) default 'XSL' ,
jr_datasource CHAR(10)
); );
create temp table tmp_hilf (tid integer); create temp table tmp_hilf (tid integer);
@ -70,13 +83,27 @@ update tmp_hilf set tid=1 where tid is null;
<#assign counter_tid = 1 /> <#assign counter_tid = 1 />
<#foreach column in m_stylesheet> <#foreach column in m_stylesheet>
insert into tmp_stylesheets (tid,filename,caption,description,relation,contenttype,is_generic) insert into tmp_stylesheets (tid,
filename,
caption,
description,
relation,
contenttype,
is_generic,
toolbar_icon_filepath ,
usage_resultset_data ,
stylesheet_type ,
jr_datasource)
select max(tid)+${counter_tid},'${column.filename}', select max(tid)+${counter_tid},'${column.filename}',
'${column.caption}', '${column.caption}',
'${column.description}', '${column.description}',
'${column.relation}', '${column.relation}',
'${column.contenttype}', '${column.contenttype}',
${column.is_generic} ${column.is_generic},
'${column.toolbar_icon_filepath}' ,
'${column.usage_resultset_data}' ,
'${column.stylesheet_type}' ,
'${column.jr_datasource}'
from tmp_hilf; from tmp_hilf;
<#assign counter_tid = counter_tid + 1 /> <#assign counter_tid = counter_tid + 1 />
</#foreach> </#foreach>
@ -96,11 +123,23 @@ filename, caption, description, relation, useragent, contenttype
<#if TableFieldExists?exists && TableFieldExists('sx_stylesheets','is_generic')> <#if TableFieldExists?exists && TableFieldExists('sx_stylesheets','is_generic')>
,is_generic ,is_generic
</#if> </#if>
<#if TableFieldExists?exists && TableFieldExists('sx_stylesheets','toolbar_icon_filepath')>
,toolbar_icon_filepath ,
usage_resultset_data ,
stylesheet_type ,
jr_datasource
</#if>
) )
SELECT tid, filename, caption, description, relation, useragent, contenttype SELECT tid, filename, caption, description, relation, useragent, contenttype
<#if TableFieldExists?exists && TableFieldExists('sx_stylesheets','is_generic')> <#if TableFieldExists?exists && TableFieldExists('sx_stylesheets','is_generic')>
,is_generic ,is_generic
</#if> </#if>
<#if TableFieldExists?exists && TableFieldExists('sx_stylesheets','toolbar_icon_filepath')>
,toolbar_icon_filepath ,
usage_resultset_data ,
stylesheet_type ,
jr_datasource
</#if>
FROM tmp_stylesheets; FROM tmp_stylesheets;
drop table tmp_stylesheets; drop table tmp_stylesheets;
@ -169,6 +208,15 @@ FROM tmp_stylesheet_field;
drop table tmp_stylesheet_field; drop table tmp_stylesheet_field;
drop table tmp_hilf; drop table tmp_hilf;
update sx_stylesheets
set
contenttype='txt/xml',
is_generic=1,
usage_resultset_data='T',
stylesheet_type='XSL_JRXML'
where filename in ('tabelle_jrxml_a4_quer.xsl');
<#if SQLdialect='Postgres'> <#if SQLdialect='Postgres'>
select sp_update_sequence('sx_stylesheets'); select sp_update_sequence('sx_stylesheets');
select sp_update_sequence('sx_mask_style'); select sp_update_sequence('sx_mask_style');

14
superx/WEB-INF/conf/edustore/db/bin/SQL_ENV_rpta.sam

@ -0,0 +1,14 @@
#Beispielumgebung für das RPTA-Modul:
#SUPERX_MODULE=$SUPERX_DIR/db/module
#SUPERX_ROHDATEN=rohdaten
RPTA_PFAD=$SUPERX_MODULE/rpta; export RPTA_PFAD
RPTA_ERRORDAT=$RPTA_PFAD/rpta_update.err; export RPTA_ERRORDAT
#Hier stehen die Rohdaten (im Unterverzeichnis unl)
RPTA_LOAD_PFAD=$RPTA_PFAD/$SUPERX_ROHDATEN; export RPTA_LOAD_PFAD
RPTA_ERRORMAIL=$ERRORMAIL; export RPTA_ERRORMAIL
RPTA_LOGMAIL=$LOGMAIL; export RPTA_LOGMAIL

2
superx/WEB-INF/reports/simple_table.jrtx

@ -51,7 +51,7 @@
<style name="LegendLabel" style="Standard Bodytext" mode="Transparent" backcolor="#FFFFFF"> <style name="LegendLabel" style="Standard Bodytext" mode="Transparent" backcolor="#FFFFFF">
<pen lineWidth="1.0" lineStyle="Solid" lineColor="#030000"/> <pen lineWidth="1.0" lineStyle="Solid" lineColor="#030000"/>
</style> </style>
<style name="TableColumnHeader" mode="Transparent" forecolor="#000000" backcolor="#7A93AB" hTextAlign="Center" vTextAlign="Middle" fontName="Liberation Sans" fontSize="8"> <style name="TableColumnHeader" mode="Transparent" forecolor="#000000" backcolor="#ccccff" hTextAlign="Center" vTextAlign="Middle" fontName="Liberation Sans" fontSize="8">
<box> <box>
<pen lineColor="#FFFFFF"/> <pen lineColor="#FFFFFF"/>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/> <topPen lineWidth="1.0" lineStyle="Solid" lineColor="#FFFFFF"/>

536
superx/WEB-INF/reports/tabelle_jrxml_a4_quer.xsl.jrxml

@ -1,536 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"
name="Studierende nach Erst- und Neueinschreibung (Zeitreihe)"
language="groovy"
pageWidth="842"
pageHeight="595"
orientation="Landscape"
columnWidth="818"
leftMargin="12"
rightMargin="12"
topMargin="12"
bottomMargin="12"
isIgnorePagination="true">
<!--Import von jr_properties-->
<property name="net.sf.jasperreports.export.xls.create.custom.palette"
value="true"/>
<property name="net.sf.jasperreports.export.xls.detect.cell.type" value="true"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns"
value="true"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows "
value="true"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.1"
value="pageHeader"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2"
value="pageFooter"/>
<property name="net.sf.jasperreports.export.xlsx.exclude.origin.band.1"
value="pageHeader"/>
<property name="net.sf.jasperreports.export.xlsx.exclude.origin.band.2"
value="pageFooter"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter"
value="beispiel_einzeltabelle_schmal"/>
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
<property name="com.jaspersoft.studio.property.dataset.dialog.DatasetDialog.sash.w1"
value="466"/>
<property name="com.jaspersoft.studio.property.dataset.dialog.DatasetDialog.sash.w2"
value="522"/>
<template>"simple_table.jrtx"</template>
<style name="TableRowDetail"
mode="Opaque"
forecolor="#000000"
backcolor="#FFFFFF"
hTextAlign="Right"
vTextAlign="Middle"
isBlankWhenNull="true"
fontName="Liberation Sans"
fontSize="8">
<box rightPadding="2">
<pen lineColor="#FFFFFF"/>
</box>
<paragraph leftIndent="2"
rightIndent="1"
spacingBefore="0"
spacingAfter="0"/>
<conditionalStyle>
<conditionExpression>Boolean.valueOf( $V{PAGE_COUNT} % 2 == 1 )</conditionExpression>
<style mode="Opaque" forecolor="#000000" backcolor="#E3E8EB"/>
</conditionalStyle>
</style>
<queryString language="xPath">/ergebnisse/ergebnis/ergebniselement[@ordnr=0]/sqlerg/row</queryString>
<field name="REPORT_HEADING_INSTITUTION" class="java.lang.String">
<fieldDescription>/ergebnisse/generalinfo/REPORT_HEADING_INSTITUTION</fieldDescription>
</field>
<field name="REPORT_HEADING_URL" class="java.lang.String">
<fieldDescription>/ergebnisse/generalinfo/REPORT_HEADING_URL</fieldDescription>
</field>
<field name="REPORT_LOGO_FILE" class="java.lang.String">
<fieldDescription>/ergebnisse/generalinfo/REPORT_LOGO_FILE</fieldDescription>
</field>
<field name="REPORT_HEADING_ADRESS" class="java.lang.String">
<fieldDescription>/ergebnisse/generalinfo/REPORT_HEADING_ADRESS</fieldDescription>
</field>
<field name="REPORT_EMAIL" class="java.lang.String">
<fieldDescription>/ergebnisse/generalinfo/REPORT_EMAIL</fieldDescription>
</field>
<field name="REPORT_DOCUMENTATION_URL" class="java.lang.String">
<fieldDescription>/ergebnisse/generalinfo/REPORT_DOCUMENTATION_URL</fieldDescription>
</field>
<field name="Berichtsname" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis[ @ordnr='0']/maskenname</fieldDescription>
</field>
<field name="Erlaeuterung" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis[ @ordnr='0']/explanation</fieldDescription>
</field>
<!-- dann die Tabellenspalten -->
<field name="Semester" class="java.lang.String">
<fieldDescription>col[@id="0" and wert!=""]/wert</fieldDescription>
</field>
<field name="Gesamt- zahl" class="java.lang.Integer">
<fieldDescription>col[@id="1" and wert!=""]/wert</fieldDescription>
</field>
<field name="1. FS gesamt" class="java.lang.Integer">
<fieldDescription>col[@id="2" and wert!=""]/wert</fieldDescription>
</field>
<field name="1. FS in %" class="java.lang.Double">
<fieldDescription>col[@id="3" and wert!=""]/wert</fieldDescription>
</field>
<field name="1. HS gesamt" class="java.lang.Integer">
<fieldDescription>col[@id="4" and wert!=""]/wert</fieldDescription>
</field>
<field name="1. HS in %" class="java.lang.Double">
<fieldDescription>col[@id="5" and wert!=""]/wert</fieldDescription>
</field>
<field name="dar. Frauen" class="java.lang.Integer">
<fieldDescription>col[@id="7" and wert!=""]/wert</fieldDescription>
</field>
<field name="Frauen in %" class="java.lang.Double">
<fieldDescription>col[@id="8" and wert!=""]/wert</fieldDescription>
</field>
<field name="1. FS Frauen" class="java.lang.Integer">
<fieldDescription>col[@id="9" and wert!=""]/wert</fieldDescription>
</field>
<field name="1. FS Frauen in %" class="java.lang.Double">
<fieldDescription>col[@id="10" and wert!=""]/wert</fieldDescription>
</field>
<field name="1. HS Frauen" class="java.lang.Integer">
<fieldDescription>col[@id="11" and wert!=""]/wert</fieldDescription>
</field>
<field name="1. HS Frauen in %" class="java.lang.Double">
<fieldDescription>col[@id="12" and wert!=""]/wert</fieldDescription>
</field>
<field name="legende_Köpfe oder Fälle ?_label" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/completefields/feld [@varname="Köpfe oder Fälle ?"]/@varname</fieldDescription>
</field>
<field name="legende_Köpfe oder Fälle ?_value" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/felder/feld [@varname="Köpfe oder Fälle ?"]/value_caption</fieldDescription>
</field>
<field name="legende_Stichtag_label" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/completefields/feld [@varname="Stichtag"]/@varname</fieldDescription>
</field>
<field name="legende_Stichtag_value" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/felder/feld [@varname="Stichtag"]/value_caption</fieldDescription>
</field>
<field name="legende_Seit Semester_label" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/completefields/feld [@varname="Seit Semester"]/@varname</fieldDescription>
</field>
<field name="legende_Seit Semester_value" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/felder/feld [@varname="Seit Semester"]/value_caption</fieldDescription>
</field>
<field name="legende_Bis Semester_label" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/completefields/feld [@varname="Bis Semester"]/@varname</fieldDescription>
</field>
<field name="legende_Bis Semester_value" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/felder/feld [@varname="Bis Semester"]/value_caption</fieldDescription>
</field>
<field name="legende_Studiengang_label" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/completefields/feld [@varname="Studiengang"]/@varname</fieldDescription>
</field>
<field name="legende_Studiengang_value" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/felder/feld [@varname="Studiengang"]/value_caption</fieldDescription>
</field>
<field name="legende_Abschluss_label" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/completefields/feld [@varname="Abschluss"]/@varname</fieldDescription>
</field>
<field name="legende_Abschluss_value" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/felder/feld [@varname="Abschluss"]/value_caption</fieldDescription>
</field>
<field name="legende_Fächer_label" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/completefields/feld [@varname="Fächer"]/@varname</fieldDescription>
</field>
<field name="legende_Fächer_value" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/felder/feld [@varname="Fächer"]/value_caption</fieldDescription>
</field>
<field name="legende_Vertiefung_label" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/completefields/feld [@varname="Vertiefung"]/@varname</fieldDescription>
</field>
<field name="legende_Vertiefung_value" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/felder/feld [@varname="Vertiefung"]/value_caption</fieldDescription>
</field>
<field name="legende_Status_label" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/completefields/feld [@varname="Status"]/@varname</fieldDescription>
</field>
<field name="legende_Status_value" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/felder/feld [@varname="Status"]/value_caption</fieldDescription>
</field>
<field name="legende_##line##_label" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/completefields/feld [@varname="##line##"]/@varname</fieldDescription>
</field>
<field name="legende_##line##_value" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/felder/feld [@varname="##line##"]/value_caption</fieldDescription>
</field>
<field name="legende_Fachkennz._label" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/completefields/feld [@varname="Fachkennz."]/@varname</fieldDescription>
</field>
<field name="legende_Fachkennz._value" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/felder/feld [@varname="Fachkennz."]/value_caption</fieldDescription>
</field>
<field name="legende_Hörerstatus_label" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/completefields/feld [@varname="Hörerstatus"]/@varname</fieldDescription>
</field>
<field name="legende_Hörerstatus_value" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/felder/feld [@varname="Hörerstatus"]/value_caption</fieldDescription>
</field>
<field name="legende_ab Fachsemester_label" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/completefields/feld [@varname="ab Fachsemester"]/@varname</fieldDescription>
</field>
<field name="legende_ab Fachsemester_value" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/felder/feld [@varname="ab Fachsemester"]/value_caption</fieldDescription>
</field>
<field name="legende_bis Fachsemester_label" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/completefields/feld [@varname="bis Fachsemester"]/@varname</fieldDescription>
</field>
<field name="legende_bis Fachsemester_value" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/felder/feld [@varname="bis Fachsemester"]/value_caption</fieldDescription>
</field>
<field name="legende_Filter Studierende_label" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/completefields/feld [@varname="Filter Studierende"]/@varname</fieldDescription>
</field>
<field name="legende_Filter Studierende_value" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/felder/feld [@varname="Filter Studierende"]/value_caption</fieldDescription>
</field>
<field name="legende_Trennen nach_label" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/completefields/feld [@varname="Trennen nach"]/@varname</fieldDescription>
</field>
<field name="legende_Trennen nach_value" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis/felder/feld [@varname="Trennen nach"]/value_caption</fieldDescription>
</field>
<field name="standdatum" class="java.lang.String">
<fieldDescription>/ergebnisse/ergebnis[ @ordnr='0']/stand</fieldDescription>
</field>
<field name="user" class="java.lang.String">
<fieldDescription>/ergebnisse/user</fieldDescription>
</field>
<variable name="tabellennr" class="java.lang.Integer">
<variableExpression>0</variableExpression>
</variable>
<group name="tabellennr">
<groupExpression>$V{tabellennr}</groupExpression>
<groupHeader>
<band height="90">
<textField>
<reportElement style="LegendLabel" x="0" y="0" width="818" height="20"/>
<textElement verticalAlignment="Bottom"/>
<textFieldExpression>"Filterkriterien: "</textFieldExpression>
</textField>
<textField>
<reportElement style="LegendContent" x="0" y="20" width="818" height="40"/>
<textFieldExpression>""+(($F{legende_Köpfe oder Fälle ?_value}==null || $F{legende_Köpfe oder Fälle ?_value}=="")?"":($F{legende_Köpfe oder Fälle ?_label}+": "+$F{legende_Köpfe oder Fälle ?_value}+";"))
+(($F{legende_Stichtag_value}==null || $F{legende_Stichtag_value}=="")?"":($F{legende_Stichtag_label}+": "+$F{legende_Stichtag_value}+";"))
+(($F{legende_Seit Semester_value}==null || $F{legende_Seit Semester_value}=="")?"":($F{legende_Seit Semester_label}+": "+$F{legende_Seit Semester_value}+";"))
+(($F{legende_Bis Semester_value}==null || $F{legende_Bis Semester_value}=="")?"":($F{legende_Bis Semester_label}+": "+$F{legende_Bis Semester_value}+";"))
+(($F{legende_Studiengang_value}==null || $F{legende_Studiengang_value}=="")?"":($F{legende_Studiengang_label}+": "+$F{legende_Studiengang_value}+";"))
+(($F{legende_Abschluss_value}==null || $F{legende_Abschluss_value}=="")?"":($F{legende_Abschluss_label}+": "+$F{legende_Abschluss_value}+";"))
+(($F{legende_Fächer_value}==null || $F{legende_Fächer_value}=="")?"":($F{legende_Fächer_label}+": "+$F{legende_Fächer_value}+";"))
+(($F{legende_Vertiefung_value}==null || $F{legende_Vertiefung_value}=="")?"":($F{legende_Vertiefung_label}+": "+$F{legende_Vertiefung_value}+";"))
+(($F{legende_Status_value}==null || $F{legende_Status_value}=="")?"":($F{legende_Status_label}+": "+$F{legende_Status_value}+";"))
+(($F{legende_##line##_value}==null || $F{legende_##line##_value}=="")?"":($F{legende_##line##_label}+": "+$F{legende_##line##_value}+";"))
+(($F{legende_Fachkennz._value}==null || $F{legende_Fachkennz._value}=="")?"":($F{legende_Fachkennz._label}+": "+$F{legende_Fachkennz._value}+";"))
+(($F{legende_Hörerstatus_value}==null || $F{legende_Hörerstatus_value}=="")?"":($F{legende_Hörerstatus_label}+": "+$F{legende_Hörerstatus_value}+";"))
+(($F{legende_ab Fachsemester_value}==null || $F{legende_ab Fachsemester_value}=="")?"":($F{legende_ab Fachsemester_label}+": "+$F{legende_ab Fachsemester_value}+";"))
+(($F{legende_bis Fachsemester_value}==null || $F{legende_bis Fachsemester_value}=="")?"":($F{legende_bis Fachsemester_label}+": "+$F{legende_bis Fachsemester_value}+";"))
+(($F{legende_Filter Studierende_value}==null || $F{legende_Filter Studierende_value}=="")?"":($F{legende_Filter Studierende_label}+": "+$F{legende_Filter Studierende_value}+";"))
+(($F{legende_Trennen nach_value}==null || $F{legende_Trennen nach_value}=="")?"":($F{legende_Trennen nach_label}+": "+$F{legende_Trennen nach_value}+";"))
+"Datenstand: "+ $F{standdatum} + "; " + "Erstellt: "+ DATEFORMAT( TODAY(), "dd.MM.YYYY")</textFieldExpression>
</textField>
<staticText>
<reportElement style="TableColumnHeader"
mode="Opaque"
x="0"
y="60"
width="83"
height="30"/>
<text>Semester</text>
</staticText>
<staticText>
<reportElement style="TableColumnHeader"
mode="Opaque"
x="83"
y="60"
width="66"
height="30"/>
<text>Gesamt-
zahl</text>
</staticText>
<staticText>
<reportElement style="TableColumnHeader"
mode="Opaque"
x="149"
y="60"
width="66"
height="30"/>
<text>1. FS
gesamt</text>
</staticText>
<staticText>
<reportElement style="TableColumnHeader"
mode="Opaque"
x="215"
y="60"
width="66"
height="30"/>
<text>1. FS
in %</text>
</staticText>
<staticText>
<reportElement style="TableColumnHeader"
mode="Opaque"
x="281"
y="60"
width="66"
height="30"/>
<text>1. HS gesamt</text>
</staticText>
<staticText>
<reportElement style="TableColumnHeader"
mode="Opaque"
x="347"
y="60"
width="66"
height="30"/>
<text>1. HS
in %</text>
</staticText>
<staticText>
<reportElement style="TableColumnHeader"
mode="Opaque"
x="413"
y="60"
width="8"
height="30"/>
<text> </text>
</staticText>
<staticText>
<reportElement style="TableColumnHeader"
mode="Opaque"
x="421"
y="60"
width="66"
height="30"/>
<text>dar.
Frauen</text>
</staticText>
<staticText>
<reportElement style="TableColumnHeader"
mode="Opaque"
x="487"
y="60"
width="66"
height="30"/>
<text>Frauen
in %</text>
</staticText>
<staticText>
<reportElement style="TableColumnHeader"
mode="Opaque"
x="553"
y="60"
width="66"
height="30"/>
<text>1. FS
Frauen</text>
</staticText>
<staticText>
<reportElement style="TableColumnHeader"
mode="Opaque"
x="619"
y="60"
width="66"
height="30"/>
<text>1. FS
Frauen
in %</text>
</staticText>
<staticText>
<reportElement style="TableColumnHeader"
mode="Opaque"
x="685"
y="60"
width="66"
height="30"/>
<text>1. HS
Frauen</text>
</staticText>
<staticText>
<reportElement style="TableColumnHeader"
mode="Opaque"
x="751"
y="60"
width="66"
height="30"/>
<text>1. HS
Frauen
in %</text>
</staticText>
</band>
</groupHeader>
</group>
<title>
<band height="75">
<textField>
<reportElement x="0"
y="0"
width="818"
height="30"
style="ReportHeadingInstitution"/>
<textFieldExpression>$F{REPORT_HEADING_INSTITUTION} + " | "+ $F{user}</textFieldExpression>
</textField>
<textField>
<reportElement style="ReportTitle" x="0" y="30" width="818" height="45"/>
<textFieldExpression>$F{Berichtsname}</textFieldExpression>
</textField>
</band>
</title>
<detail>
<band height="30" splitType="Stretch">
<textField isStretchWithOverflow="true" isBlankWhenNull="true" pattern="">
<reportElement style="TableRowDetail"
stretchType="ContainerHeight"
x="0"
y="0"
width="83"
height="30"/>
<textElement textAlignment="Left"/>
<textFieldExpression>$F{Semester}</textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true" pattern="#">
<reportElement style="TableRowDetail"
stretchType="ContainerHeight"
x="83"
y="0"
width="66"
height="30"/>
<textFieldExpression>$F{Gesamt- zahl}</textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true" pattern="#">
<reportElement style="TableRowDetail"
stretchType="ContainerHeight"
x="149"
y="0"
width="66"
height="30"/>
<textFieldExpression>$F{1. FS gesamt}</textFieldExpression>
</textField>
<textField isStretchWithOverflow="true"
isBlankWhenNull="true"
pattern="#,###.00;-#,###.00">
<reportElement style="TableRowDetail"
stretchType="ContainerHeight"
x="215"
y="0"
width="66"
height="30"/>
<textFieldExpression>$F{1. FS in %}</textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true" pattern="#">
<reportElement style="TableRowDetail"
stretchType="ContainerHeight"
x="281"
y="0"
width="66"
height="30"/>
<textFieldExpression>$F{1. HS gesamt}</textFieldExpression>
</textField>
<textField isStretchWithOverflow="true"
isBlankWhenNull="true"
pattern="#,###.00;-#,###.00">
<reportElement style="TableRowDetail"
stretchType="ContainerHeight"
x="347"
y="0"
width="66"
height="30"/>
<textFieldExpression>$F{1. HS in %}</textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true" pattern="#">
<reportElement style="TableRowDetail"
stretchType="ContainerHeight"
x="421"
y="0"
width="66"
height="30"/>
<textFieldExpression>$F{dar. Frauen}</textFieldExpression>
</textField>
<textField isStretchWithOverflow="true"
isBlankWhenNull="true"
pattern="#,###.00;-#,###.00">
<reportElement style="TableRowDetail"
stretchType="ContainerHeight"
x="487"
y="0"
width="66"
height="30"/>
<textFieldExpression>$F{Frauen in %}</textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true" pattern="#">
<reportElement style="TableRowDetail"
stretchType="ContainerHeight"
x="553"
y="0"
width="66"
height="30"/>
<textFieldExpression>$F{1. FS Frauen}</textFieldExpression>
</textField>
<textField isStretchWithOverflow="true"
isBlankWhenNull="true"
pattern="#,###.00;-#,###.00">
<reportElement style="TableRowDetail"
stretchType="ContainerHeight"
x="619"
y="0"
width="66"
height="30"/>
<textFieldExpression>$F{1. FS Frauen in %}</textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true" pattern="#">
<reportElement style="TableRowDetail"
stretchType="ContainerHeight"
x="685"
y="0"
width="66"
height="30"/>
<textFieldExpression>$F{1. HS Frauen}</textFieldExpression>
</textField>
<textField isStretchWithOverflow="true"
isBlankWhenNull="true"
pattern="#,###.00;-#,###.00">
<reportElement style="TableRowDetail"
stretchType="ContainerHeight"
x="751"
y="0"
width="66"
height="30"/>
<textFieldExpression>$F{1. HS Frauen in %}</textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>

53
superx/images/icons/magic.svg

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="914"
version="1.1"
id="svg4"
sodipodi:docname="magic.svg"
height="914"
inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="2560"
inkscape:window-height="1361"
id="namedview6"
showgrid="false"
inkscape:zoom="0.47598537"
inkscape:cx="449.29999"
inkscape:cy="942.6"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4" />
<path
d="M 649,324 813,161 753,101 589,265 Z M 898,161 q 0,15 -10,25 L 171,904 q -10,10 -25,10 -15,0 -25,-10 L 10,793 Q 0,783 0,768 0,753 10,743 L 728,25 q 10,-10 25,-10 15,0 25,10 l 110,111 q 10,10 10,25 z M 145,55 199,71 145,88 128,143 111,88 56,71 111,55 128,0 Z M 340,145 449,179 340,212 306,321 273,212 164,179 273,145 306,36 Z m 519,267 55,17 -55,16 -17,55 -17,-55 -54,-16 54,-17 17,-55 z M 502,55 556,71 502,88 485,143 468,88 414,71 468,55 485,0 Z"
id="path2"
inkscape:connector-curvature="0" />
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

6
superx/xml/rpta_assistent.xsl

@ -588,7 +588,7 @@ self.location=callurl;
<![CDATA[ <![CDATA[
callurl+="&treetableid="+nodeid+"&getKidRows="+internalrowno; callurl+="&treetableid="+nodeid+"&getKidRows="+internalrowno;
]]> ]]>
dojo.io.bind({url:callurl,encoding: "ISO-8859-1",method: "post", dojo.io.bind({url:callurl,encoding: "UTF-8",method: "post",
handler: function(type,data,evt) handler: function(type,data,evt)
{ {
// dojo.debug(data); // dojo.debug(data);
@ -843,7 +843,7 @@ function deeplink_dialog()
<form name="Weiterverarbeitung" method="post" target="_self" charset="UTF-8"> <form name="Weiterverarbeitung" method="post" target="_self" charset="UTF-8">
<xsl:attribute name="action"> <xsl:attribute name="action">
<!-- MB 9/14 encode URL ignoriert jsession id --> <!-- MB 9/14 encode URL ignoriert jsession id -->
<xsl:value-of select="HtmlUtils:encodeURL('SuperXmlTabelle',/ergebnisse/@jsessionid)" /></xsl:attribute> <xsl:value-of select="'SuperXmlTabelle'" /></xsl:attribute>
<!-- start Kopf--> <!-- start Kopf-->
<xsl:call-template name="pccustomize"><xsl:with-param name="position" select="'table_inform'"></xsl:with-param></xsl:call-template> <xsl:call-template name="pccustomize"><xsl:with-param name="position" select="'table_inform'"></xsl:with-param></xsl:call-template>
<xsl:call-template name="tablecustomize"><xsl:with-param name="position" select="'table_inform'"></xsl:with-param></xsl:call-template> <xsl:call-template name="tablecustomize"><xsl:with-param name="position" select="'table_inform'"></xsl:with-param></xsl:call-template>
@ -1139,7 +1139,7 @@ var platform='superx';
<form name="Weiterverarbeitung" method="post" target="_self" charset="UTF-8"> <form name="Weiterverarbeitung" method="post" target="_self" charset="UTF-8">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="HtmlUtils:encodeURL('SuperXmlTabelle',/ergebnisse/@jsessionid)" /></xsl:attribute> <xsl:value-of select="'SuperXmlTabelle'" /></xsl:attribute>
<div class="navpanel-container"> <div class="navpanel-container">
<nav class="navpanel"> <nav class="navpanel">

133
superx/xml/jr_templates.xsl → superx/xml/rpta_templates.xsl

@ -3,6 +3,7 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://jasperreports.sourceforge.net/jasperreports"> xmlns="http://jasperreports.sourceforge.net/jasperreports">
<xsl:param name="font" select="'Liberation Sans'" /><!--TODO {$font} als style--> <xsl:param name="font" select="'Liberation Sans'" /><!--TODO {$font} als style-->
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:template name="generateJasperReport"> <xsl:template name="generateJasperReport">
<xsl:param name="isMainReport" select="'true'" /> <xsl:param name="isMainReport" select="'true'" />
<xsl:param name="ergebniselementOrdnr" select="0" /> <xsl:param name="ergebniselementOrdnr" select="0" />
@ -18,6 +19,8 @@ xmlns="http://jasperreports.sourceforge.net/jasperreports">
<!-- Wenn keine Spaltenbreite definiert ist, wird 12 (Einheit Applet-Breite) verwendet. --> <!-- Wenn keine Spaltenbreite definiert ist, wird 12 (Einheit Applet-Breite) verwendet. -->
<xsl:param name="std_spaltenbreite" select="'12'" /> <xsl:param name="std_spaltenbreite" select="'12'" />
<xsl:param name="std_zeilenhoehe_header" select="30" /> <xsl:param name="std_zeilenhoehe_header" select="30" />
<xsl:param name="std_zeilenhoehe_tablerow" select="25" />
<xsl:param name="isMacroReport" select="'false'" />
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"
name="{/ergebnisse/ergebnis[@ordnr=$ergebniselementOrdnr]/maskenname}" name="{/ergebnisse/ergebnis[@ordnr=$ergebniselementOrdnr]/maskenname}"
@ -37,45 +40,38 @@ isIgnorePagination="{$isIgnorePagination}" >
<property name="net.sf.jasperreports.export.xlsx.exclude.origin.band.1" value="pageHeader"/> <property name="net.sf.jasperreports.export.xlsx.exclude.origin.band.1" value="pageHeader"/>
<property name="net.sf.jasperreports.export.xlsx.exclude.origin.band.2" value="pageFooter"/> <property name="net.sf.jasperreports.export.xlsx.exclude.origin.band.2" value="pageFooter"/>
<!-- zum Testen--> <!-- zum Testen-->
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="beispiel_einzeltabelle_schmal"/> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="TUHH_kennz_bericht_ba"/>
<property name="com.jaspersoft.studio.unit." value="pixel"/> <!--<property name="com.jaspersoft.studio.property.dataset.dialog.DatasetDialog.sash.w1" value="466"/>
<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/> <property name="com.jaspersoft.studio.property.dataset.dialog.DatasetDialog.sash.w2" value="522"/>-->
<property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
<property name="com.jaspersoft.studio.property.dataset.dialog.DatasetDialog.sash.w1" value="466"/>
<property name="com.jaspersoft.studio.property.dataset.dialog.DatasetDialog.sash.w2" value="522"/>
<template><xsl:value-of select="concat('&quot;',$stylesFile,'&quot;')" /></template> <template><xsl:value-of select="concat('&quot;',$stylesFile,'&quot;')" /></template>
<xsl:call-template name="jr_styles" /> <xsl:call-template name="jr_styles" />
<xsl:call-template name="querystring">
<queryString language="xPath"><xsl:value-of select="concat('/ergebnisse/ergebnis/ergebniselement[@ordnr=',$ergebniselementOrdnr,']/sqlerg/row')" /> <xsl:with-param name="ordnr" select="$ergebniselementOrdnr" />
</queryString> </xsl:call-template>
<xsl:if test="$isMainReport='true'"> <xsl:if test="$isMainReport='true'">
<xsl:call-template name="jr_fields_report_level" /> <xsl:call-template name="jr_fields_report_level" />
</xsl:if> </xsl:if>
<xsl:call-template name="jr_fields" > <xsl:call-template name="jr_fields" >
<xsl:with-param name="ergebniselementOrdnr" select="$ergebniselementOrdnr"/> <xsl:with-param name="ergebniselementOrdnr" select="$ergebniselementOrdnr"/>
<!--<xsl:with-param name="isMacroReport" select="$isMacroReport" />--> <xsl:with-param name="isMacroReport" select="/ergebnisse/@isMakro" />
</xsl:call-template> </xsl:call-template>
<variable name="tabellennr" class="java.lang.Integer"> <variable name="tabellennr" class="java.lang.Integer">
<variableExpression><xsl:value-of select="$ergebniselementOrdnr"/></variableExpression> <variableExpression><xsl:value-of select="$ergebniselementOrdnr"/></variableExpression>
</variable> </variable>
<xsl:call-template name="generateGroupHeaderBandSimple"> <xsl:call-template name="generateGroupHeaderBandSimple">
<xsl:with-param name="ergebniselementOrdnr" select="$ergebniselementOrdnr" />
<xsl:with-param name="std_zeilenhoehe_header" select="$std_zeilenhoehe_header" /> <xsl:with-param name="std_zeilenhoehe_header" select="$std_zeilenhoehe_header" />
<xsl:with-param name="druckbreite" select="$druckbreite" /> <xsl:with-param name="druckbreite" select="$druckbreite" />
<xsl:with-param name="std_spaltenbreite" select="$std_spaltenbreite" /> <xsl:with-param name="std_spaltenbreite" select="$std_spaltenbreite" />
</xsl:call-template> </xsl:call-template>
<xsl:if test="$isMainReport='true'"> <xsl:if test="$isMainReport='true'">
<xsl:call-template name="generateTitleBand" > <xsl:call-template name="generateTitleBand" >
<xsl:with-param name="druckbreite" select="$druckbreite" /> <xsl:with-param name="druckbreite" select="$druckbreite" />
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
<detail> <detail>
<xsl:for-each select="/ergebnisse/ergebnis/ergebniselement[@ordnr=$ergebniselementOrdnr]"> <xsl:for-each select="/ergebnisse/ergebnis/ergebniselement[@ordnr=$ergebniselementOrdnr]">
@ -90,7 +86,7 @@ isIgnorePagination="{$isIgnorePagination}" >
</xsl:choose> </xsl:choose>
</xsl:variable> </xsl:variable>
<band height="30" splitType="Stretch"> <band height="{$std_zeilenhoehe_tablerow}" splitType="Stretch">
<xsl:for-each select="sqlerg/headers/header[not(starts-with(f_name,'hidden')) and not(starts-with(f_name,'next')) ]"> <xsl:for-each select="sqlerg/headers/header[not(starts-with(f_name,'hidden')) and not(starts-with(f_name,'next')) ]">
<xsl:variable name="columnWidth"> <xsl:variable name="columnWidth">
<xsl:call-template name="getColumnwidth"> <xsl:call-template name="getColumnwidth">
@ -116,6 +112,8 @@ isIgnorePagination="{$isIgnorePagination}" >
<xsl:with-param name="colId" select="@id" /> <xsl:with-param name="colId" select="@id" />
<xsl:with-param name="x" select="$columnX" /> <xsl:with-param name="x" select="$columnX" />
<xsl:with-param name="width" select="$columnWidth" /> <xsl:with-param name="width" select="$columnWidth" />
<xsl:with-param name="height" select="$std_zeilenhoehe_tablerow" />
<xsl:with-param name="flavorTableRowStyle" select="'listAlternatingBg'" /> <xsl:with-param name="flavorTableRowStyle" select="'listAlternatingBg'" />
<xsl:with-param name="tableRowLevel" select="10" /> <xsl:with-param name="tableRowLevel" select="10" />
</xsl:call-template> </xsl:call-template>
@ -128,6 +126,7 @@ isIgnorePagination="{$isIgnorePagination}" >
<xsl:with-param name="colId" select="@id" /> <xsl:with-param name="colId" select="@id" />
<xsl:with-param name="x" select="$columnX" /> <xsl:with-param name="x" select="$columnX" />
<xsl:with-param name="width" select="$columnWidth" /> <xsl:with-param name="width" select="$columnWidth" />
<xsl:with-param name="height" select="$std_zeilenhoehe_tablerow" />
<xsl:with-param name="flavorTableRowStyle" select="'treeTable'" /> <xsl:with-param name="flavorTableRowStyle" select="'treeTable'" />
<xsl:with-param name="tableRowLevel" select="1" /> <xsl:with-param name="tableRowLevel" select="1" />
<xsl:with-param name="maxLevel" select="10"/> <xsl:with-param name="maxLevel" select="10"/>
@ -146,6 +145,8 @@ isIgnorePagination="{$isIgnorePagination}" >
</band> </band>
</xsl:for-each> </xsl:for-each>
</detail> </detail>
</jasperReport> </jasperReport>
</xsl:template> </xsl:template>
<xsl:template name="jr_properties"><xsl:text> <xsl:template name="jr_properties"><xsl:text>
@ -155,6 +156,17 @@ isIgnorePagination="{$isIgnorePagination}" >
<property xmlns="http://jasperreports.sourceforge.net/jasperreports" name="net.sf.jasperreports.export.xls.detect.cell.type" value="true"/> <property xmlns="http://jasperreports.sourceforge.net/jasperreports" name="net.sf.jasperreports.export.xls.detect.cell.type" value="true"/>
<property xmlns="http://jasperreports.sourceforge.net/jasperreports" name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/> <property xmlns="http://jasperreports.sourceforge.net/jasperreports" name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
<property xmlns="http://jasperreports.sourceforge.net/jasperreports" name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows " value="true"/> <property xmlns="http://jasperreports.sourceforge.net/jasperreports" name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows " value="true"/>
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
<property name="net.sf.jasperreports.print.create.bookmarks" value="true"/>
</xsl:template> </xsl:template>
<xsl:template name="jr_styles"> <xsl:template name="jr_styles">
@ -217,7 +229,7 @@ isIgnorePagination="{$isIgnorePagination}" >
</xsl:template> </xsl:template>
<xsl:template name="jr_fields"> <xsl:template name="jr_fields">
<xsl:param name="ergebniselementOrdnr" select="0"/> <xsl:param name="ergebniselementOrdnr" select="0"/>
<xsl:variable name="isMacroReport" select="/ergebnisse/@isMakro" /> <xsl:param name="isMacroReport" />
<field name="Berichtsname" class="java.lang.String"> <field name="Berichtsname" class="java.lang.String">
<fieldDescription> <fieldDescription>
<xsl:choose> <xsl:choose>
@ -238,7 +250,8 @@ isIgnorePagination="{$isIgnorePagination}" >
</field> </field>
<xsl:comment> dann die Tabellenspalten </xsl:comment> <xsl:comment> dann die Tabellenspalten </xsl:comment>
<xsl:for-each select="/ergebnisse/ergebnis/ergebniselement[@ordnr=$ergebniselementOrdnr]"> <xsl:for-each select="/ergebnisse/ergebnis/ergebniselement">
<xsl:variable name="ordnr"><xsl:value-of select="@ordnr"/></xsl:variable>
<xsl:for-each select="sqlerg/complete_headers/header"> <xsl:for-each select="sqlerg/complete_headers/header">
<xsl:variable name="jasperFieldname"> <xsl:variable name="jasperFieldname">
<xsl:call-template name="createJasperFieldname"> <xsl:call-template name="createJasperFieldname">
@ -247,19 +260,19 @@ isIgnorePagination="{$isIgnorePagination}" >
</xsl:variable> </xsl:variable>
<xsl:variable name="fldPrefix"> <xsl:variable name="fldPrefix">
<xsl:if test="$isMacroReport='true'"> <xsl:if test="$isMacroReport='true'">
<xsl:text>tab_</xsl:text><xsl:value-of select="$ergebniselementOrdnr" /> <xsl:text>tab_</xsl:text><xsl:value-of select="$ordnr" />
</xsl:if> </xsl:if>
</xsl:variable> </xsl:variable>
<xsl:if test="normalize-space($jasperFieldname)!=''"> <!-- keine leeren Feldnamen--> <xsl:if test="normalize-space($jasperFieldname)!=''"> <!-- keine leeren Feldnamen-->
<field name="{$jasperFieldname}"><!--{concat($fldPrefix,$jasperFieldname)}--> <field name="{concat($fldPrefix,$jasperFieldname)}">
<xsl:attribute name="class"><xsl:call-template name="getJavaType"> <xsl:attribute name="class"><xsl:call-template name="getJavaType">
<xsl:with-param name="ordnr"><xsl:value-of select="$ergebniselementOrdnr"/></xsl:with-param> <xsl:with-param name="ordnr"><xsl:value-of select="$ordnr"/></xsl:with-param>
<xsl:with-param name="col_id"><xsl:value-of select="@id"/></xsl:with-param></xsl:call-template></xsl:attribute> <xsl:with-param name="col_id"><xsl:value-of select="@id"/></xsl:with-param></xsl:call-template></xsl:attribute>
<fieldDescription><xsl:text><![CDATA[col[@id="]]></xsl:text> <fieldDescription><xsl:text><![CDATA[col[@id="]]></xsl:text>
<xsl:value-of select="@id"/><xsl:text><![CDATA[" and wert!=""]]></xsl:text> <xsl:value-of select="@id"/><xsl:text><![CDATA[" and wert!=""]]></xsl:text>
<xsl:if test="$isMacroReport='true'"> <xsl:if test="$isMacroReport='true'">
<xsl:text><![CDATA[ and ../../../@ordnr=']]></xsl:text><xsl:value-of select="$ergebniselementOrdnr" /><xsl:text>'</xsl:text> <xsl:text><![CDATA[ and ../../../@ordnr=']]></xsl:text><xsl:value-of select="$ordnr" /><xsl:text>'</xsl:text>
</xsl:if> </xsl:if>
<xsl:text><![CDATA[]/wert]]></xsl:text> <xsl:text><![CDATA[]/wert]]></xsl:text>
</fieldDescription> </fieldDescription>
@ -487,17 +500,13 @@ isIgnorePagination="{$isIgnorePagination}" >
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:attribute> </xsl:attribute>
<reportElement style="TableRowDetail" stretchType="ContainerHeight" x="{$x}" y="0" width="{$width}" height="{$height}" > <reportElement stretchType="ContainerHeight" x="{$x}" y="0" width="{$width}" height="{$height}" >
<xsl:attribute name="style"> <xsl:attribute name="style">
<xsl:choose> <xsl:call-template name="TableRowStyle" >
<xsl:when test="$flavorTableRowStyle='listAlternatingBg'"> <xsl:with-param name="flavorTableRowStyle" select="$flavorTableRowStyle"/>
<xsl:text>TableRowDetail</xsl:text> <xsl:with-param name="tableRowLevel" select="$flavorTableRowStyle"/>
</xsl:when> <xsl:with-param name="ergebnisElementOrdnr" select="$ergebnisElementOrdnr" />
<xsl:when test="$flavorTableRowStyle='treeTable'"> </xsl:call-template>
<xsl:value-of select="concat('TableRowLevel',$tableRowLevel)" />
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:attribute> </xsl:attribute>
<xsl:if test="$flavorTableRowStyle='treeTable'"> <xsl:if test="$flavorTableRowStyle='treeTable'">
<printWhenExpression><xsl:value-of select="concat('$F{Ebene}==',$tableRowLevel)" /></printWhenExpression> <printWhenExpression><xsl:value-of select="concat('$F{Ebene}==',$tableRowLevel)" /></printWhenExpression>
@ -506,7 +515,7 @@ isIgnorePagination="{$isIgnorePagination}" >
<xsl:if test="$fieldType!='3' and $fieldType!='4' "><!--Zahlen immer rechtsbündig, alles andere links--> <xsl:if test="$fieldType!='3' and $fieldType!='4' "><!--Zahlen immer rechtsbündig, alles andere links-->
<textElement textAlignment="Left"/> <textElement textAlignment="Left"/>
</xsl:if> </xsl:if>
<textFieldExpression><xsl:value-of select="concat('$F{',fldPrefix,$jasperFieldname,'}')" /></textFieldExpression> <textFieldExpression><xsl:value-of select="concat('$F{',$fldPrefix,$jasperFieldname,'}')" /></textFieldExpression>
</textField> </textField>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
@ -517,8 +526,10 @@ isIgnorePagination="{$isIgnorePagination}" >
</xsl:template> </xsl:template>
<xsl:template name="getLegendExpression"> <xsl:template name="getLegendExpression">
<xsl:param name="ergebniselementOrdnr" select="0"/>
<xsl:text>""</xsl:text> <xsl:text>""</xsl:text>
<xsl:for-each select="distinct-values(//ergebnisse/ergebnis/completefields/feld/@varname)"> <!-- <xsl:for-each select="distinct-values(//ergebnisse/ergebnis[@ordnr = 1 ]/completefields/feld/@varname)">-->
<xsl:for-each select="/ergebnisse/ergebnis[@ordnr = $ergebniselementOrdnr ]/felder/feld/@varname">
<xsl:variable name="jasperFieldname"> <xsl:variable name="jasperFieldname">
<xsl:call-template name="createJasperFieldname"> <xsl:call-template name="createJasperFieldname">
@ -677,7 +688,7 @@ isIgnorePagination="{$isIgnorePagination}" >
<xsl:if test="$isMacroReport = 'true'"> <xsl:if test="$isMacroReport = 'true'">
<textField> <textField>
<reportElement style="subReportTitle" x="0" y="0" width="{$druckbreite}" height="{$subReportTitleHeight}" /> <reportElement style="subReportTitle" x="0" y="0" width="{$druckbreite}" height="{$subReportTitleHeight}" />
<textFieldExpression><xsl:text disable-output-escaping="yes"><![CDATA[ $F{Berichtsname}]]></xsl:text></textFieldExpression> <textFieldExpression><xsl:text>"</xsl:text><xsl:value-of select="/ergebnisse/ergebnis[@ordnr=$ergebniselementOrdnr]/maskenname"/><xsl:text>"</xsl:text></textFieldExpression>
</textField> </textField>
</xsl:if> </xsl:if>
<!--Legende --> <!--Legende -->
@ -690,7 +701,9 @@ isIgnorePagination="{$isIgnorePagination}" >
<textField> <textField>
<reportElement style="LegendContent" x="0" y="{$subReportTitleHeight+$legendLabelHeight}" width="{$druckbreite}" height="{$legendContentHeight}" /> <reportElement style="LegendContent" x="0" y="{$subReportTitleHeight+$legendLabelHeight}" width="{$druckbreite}" height="{$legendContentHeight}" />
<textFieldExpression> <textFieldExpression>
<xsl:call-template name="getLegendExpression" /> <xsl:call-template name="getLegendExpression">
<xsl:with-param name="ergebniselementOrdnr" select="$ergebniselementOrdnr"/>
</xsl:call-template>
<xsl:text disable-output-escaping="yes"><![CDATA[ +"Datenstand: "+ $F{standdatum} + "; " + "Erstellt: "+ DATEFORMAT( TODAY(), "dd.MM.YYYY")]]></xsl:text></textFieldExpression> <xsl:text disable-output-escaping="yes"><![CDATA[ +"Datenstand: "+ $F{standdatum} + "; " + "Erstellt: "+ DATEFORMAT( TODAY(), "dd.MM.YYYY")]]></xsl:text></textFieldExpression>
</textField> </textField>
<!--nun Spaltenüberschriften--> <!--nun Spaltenüberschriften-->
@ -756,4 +769,46 @@ isIgnorePagination="{$isIgnorePagination}" >
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="TableRowStyle">
<xsl:param name="flavorTableRowStyle"/>
<xsl:param name="tableRowLevel"/>
<xsl:param name="ergebnisElementOrdnr" select="0" />
<xsl:choose>
<xsl:when test="$flavorTableRowStyle='listAlternatingBg'">
<xsl:text>TableRowDetail</xsl:text>
</xsl:when>
<xsl:when test="$flavorTableRowStyle='treeTable'">
<xsl:value-of select="concat('TableRowLevel',$tableRowLevel)" />
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="querystring">
<xsl:param name="ordnr" select="'0'" />
<xsl:param name="rownr" />
<xsl:variable name="quote"><xsl:text>'</xsl:text></xsl:variable>
<xsl:variable name="rowfilter">
<xsl:choose>
<xsl:when test="$rownr &gt; 0">
<xsl:text>[position() = </xsl:text><xsl:value-of select="$rownr"/><xsl:text> ]</xsl:text>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<queryString language="xPath"><xsl:value-of select="concat('/ergebnisse/ergebnis/ergebniselement[@ordnr=',$quote,$ordnr,$quote,']/sqlerg/row',$rowfilter)" />
</queryString>
</xsl:template>
<xsl:template name="trunc_string">
<xsl:param name="maxlength" select="28" />
<xsl:param name="mystring" />
<xsl:choose><xsl:when test="string-length($mystring) &gt; $maxlength">
<xsl:variable name="ceiling_length"><xsl:value-of select="$maxlength - 3"/></xsl:variable>
<xsl:value-of select="concat(substring($mystring,0,$ceiling_length ),'...')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$mystring"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

53
schluesseltabellen/sx_stylesheet_tabelle_jrxml_einfuegen.sql → superx/xml/sx_stylesheets_einfuegen.sql

@ -10,15 +10,24 @@
"caption":"Gener. Standardlayout JR (A4 quer)", "caption":"Gener. Standardlayout JR (A4 quer)",
"description":"Gener. Standardlayout JR (A4 quer)", "description":"Gener. Standardlayout JR (A4 quer)",
"relation":"table", "relation":"table",
"contenttype":"application/jrxml", "contenttype":"text/xml",
"is_generic":"1" "is_generic":"1",
"toolbar_icon_filepath":"",
"usage_resultset_data":"T",
"stylesheet_type":"XSL_JRXML",
"jr_datasource":""
}, },
{"filename":"rpta_assistent.xsl", {"filename":"rpta_assistent.xsl",
"caption":"Berichtsassistent", "caption":"Berichtsassistent",
"description":"Export als formatierter Bericht", "description":"Export als formatierter Bericht",
"relation":"table", "relation":"table",
"contenttype":"text/html", "contenttype":"text/html",
"is_generic":"1"} "is_generic":"1",
"toolbar_icon_filepath":"images/icons/magic.svg",
"usage_resultset_data":"T",
"stylesheet_type":"XSL",
"jr_datasource":""
}
] /> ] />
<#assign stylesheet_field = [ <#assign stylesheet_field = [
@ -28,7 +37,6 @@
--Hier eventuell notwendige delete's auf die Tabellen sx_mask_style, sx_stylesheets oder stylesheet_field einfügen. --Hier eventuell notwendige delete's auf die Tabellen sx_mask_style, sx_stylesheets oder stylesheet_field einfügen.
--Achtung: ab hier nicht ändern, Mutterdatei ist $SUPERX_DIR/db/module/sos/schluesseltabellen/sx_stylesheets_fuellen.sql
<@sx_stylesheets_insert <@sx_stylesheets_insert
m_masken=masken m_masken=masken
m_stylesheet=stylesheet m_stylesheet=stylesheet
@ -61,7 +69,12 @@ description CHAR(255) ,
relation CHAR(10) , relation CHAR(10) ,
useragent CHAR(255) , useragent CHAR(255) ,
contenttype CHAR(200) , contenttype CHAR(200) ,
is_generic smallint is_generic smallint,
toolbar_icon_filepath VARCHAR(255) ,
usage_resultset_data CHAR(10) default 'T' ,
stylesheet_type CHAR(10) default 'XSL' ,
jr_datasource CHAR(10)
); );
create temp table tmp_hilf (tid integer); create temp table tmp_hilf (tid integer);
@ -70,13 +83,27 @@ update tmp_hilf set tid=1 where tid is null;
<#assign counter_tid = 1 /> <#assign counter_tid = 1 />
<#foreach column in m_stylesheet> <#foreach column in m_stylesheet>
insert into tmp_stylesheets (tid,filename,caption,description,relation,contenttype,is_generic) insert into tmp_stylesheets (tid,
filename,
caption,
description,
relation,
contenttype,
is_generic,
toolbar_icon_filepath ,
usage_resultset_data ,
stylesheet_type ,
jr_datasource)
select max(tid)+${counter_tid},'${column.filename}', select max(tid)+${counter_tid},'${column.filename}',
'${column.caption}', '${column.caption}',
'${column.description}', '${column.description}',
'${column.relation}', '${column.relation}',
'${column.contenttype}', '${column.contenttype}',
${column.is_generic} ${column.is_generic},
'${column.toolbar_icon_filepath}' ,
'${column.usage_resultset_data}' ,
'${column.stylesheet_type}' ,
'${column.jr_datasource}'
from tmp_hilf; from tmp_hilf;
<#assign counter_tid = counter_tid + 1 /> <#assign counter_tid = counter_tid + 1 />
</#foreach> </#foreach>
@ -96,11 +123,23 @@ filename, caption, description, relation, useragent, contenttype
<#if TableFieldExists?exists && TableFieldExists('sx_stylesheets','is_generic')> <#if TableFieldExists?exists && TableFieldExists('sx_stylesheets','is_generic')>
,is_generic ,is_generic
</#if> </#if>
<#if TableFieldExists?exists && TableFieldExists('sx_stylesheets','toolbar_icon_filepath')>
,toolbar_icon_filepath ,
usage_resultset_data ,
stylesheet_type ,
jr_datasource
</#if>
) )
SELECT tid, filename, caption, description, relation, useragent, contenttype SELECT tid, filename, caption, description, relation, useragent, contenttype
<#if TableFieldExists?exists && TableFieldExists('sx_stylesheets','is_generic')> <#if TableFieldExists?exists && TableFieldExists('sx_stylesheets','is_generic')>
,is_generic ,is_generic
</#if> </#if>
<#if TableFieldExists?exists && TableFieldExists('sx_stylesheets','toolbar_icon_filepath')>
,toolbar_icon_filepath ,
usage_resultset_data ,
stylesheet_type ,
jr_datasource
</#if>
FROM tmp_stylesheets; FROM tmp_stylesheets;
drop table tmp_stylesheets; drop table tmp_stylesheets;

6
superx/xml/tabelle_jrxml_a4_quer.xsl

@ -4,7 +4,7 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns="http://jasperreports.sourceforge.net/jasperreports"
> >
<xsl:import href="xsl_functions.xsl" /> <xsl:import href="xsl_functions.xsl" />
<xsl:import href="jr_templates.xsl" /> <xsl:import href="rpta_templates.xsl" />
<xsl:param name="OUTFILE" select="'tmp'" /> <xsl:param name="OUTFILE" select="'tmp'" />
<xsl:param name="seitenbreite" select="842" /> <xsl:param name="seitenbreite" select="842" />
@ -18,6 +18,8 @@ xmlns="http://jasperreports.sourceforge.net/jasperreports"
<!-- Wenn keine Spaltenbreite definiert ist, wird 12 (Einheit Applet-Breite) verwendet. --> <!-- Wenn keine Spaltenbreite definiert ist, wird 12 (Einheit Applet-Breite) verwendet. -->
<xsl:param name="std_spaltenbreite" select="'12'" /> <xsl:param name="std_spaltenbreite" select="'12'" />
<xsl:param name="std_zeilenhoehe_header" select="30" /> <xsl:param name="std_zeilenhoehe_header" select="30" />
<xsl:param name="std_zeilenhoehe_tablerow" select="30" />
<xsl:output method="text" name="text"/> <xsl:output method="text" name="text"/>
<!--<xml:output method="xml" name="text" />--> <!--<xml:output method="xml" name="text" />-->
<xsl:output indent="yes"/> <xsl:output indent="yes"/>
@ -53,6 +55,8 @@ Generiere <xsl:value-of select="$filename"/><xsl:text>
<xsl:with-param name="isMacroReport" select="'false'" /> <xsl:with-param name="isMacroReport" select="'false'" />
<xsl:with-param name="ergebniselementOrdnr" select="0" /> <xsl:with-param name="ergebniselementOrdnr" select="0" />
<xsl:with-param name="druckbreite" select="$druckbreite" /> <xsl:with-param name="druckbreite" select="$druckbreite" />
<xsl:with-param name="std_zeilenhoehe_tablerow" select="$std_zeilenhoehe_tablerow" />
</xsl:call-template> </xsl:call-template>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>

Loading…
Cancel
Save