Browse Source

Tabelle viz_chart angelegt #4

makro_datasrc
Daniel Quathamer 2 years ago
parent
commit
c71c25b77b
  1. 101
      src-modules/module/viz/conf/viz.xml
  2. 3
      src-modules/module/viz/schluesseltabellen/viz_type.unl

101
src-modules/module/viz/conf/viz.xml

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!--<!DOCTYPE module SYSTEM "../../../conf/superx-module.dtd"> --> <!--<!DOCTYPE module SYSTEM "../../../conf/superx-module.dtd"> -->
<module name="etl" version="0.2" sachgebiet_id="280" <module name="viz" version="0.1" sachgebiet_id="280"
sachgebiet="Visualisierungen" systeminfo_id="280" sachgebiet="Visualisierungen" systeminfo_id="280"
system="Visualisierungen" thema="Visualisierungen" thema_parent="Abfragen"> system="Visualisierungen" thema="Visualisierungen" thema_parent="Abfragen">
<database name="superx" system="superx"> <database name="superx" system="superx">
@ -34,17 +34,89 @@ rightname="CS_BIA_STANDARDREPORTS_ADMIN[VIZ]" />
</indexes> </indexes>
</table> </table>
<table name="viz_chart" thema="Visualisierungen" typ="Datentabelle"
releaseUnload="empty">
<description>Diagrammentwürfe</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="viz_type_id" type="INTEGER" size="255" default="" notnull="" description="Art des Diagramms" />
<column name="preview_svg" type="TEXT" size="255" default="" notnull="" description="Vorschau (SVG)" />
</columns>
<primaryKeys><rs>
<row>
<fld name='table_cat'>superx</fld>
<fld name='table_schem'>superx</fld>
<fld name='table_name'>viz_chart</fld>
<fld name='column_name'>tid</fld>
<fld name='key_seq'>1</fld>
<fld name='pk_name'>viz_chart_pk</fld>
</row>
</rs>
</primaryKeys>
<indexes>
</indexes>
</table>
<table name="viz_chart_property" thema="Visualisierungen" typ="Datentabelle"
releaseUnload="empty">
<description>Eigenschaften für Diagrammentwürfe</description>
<columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="viz_chart_id" type="INTEGER" size="255" default="" notnull="" description="Visualisierung" />
<column name="viz_property_id" type="INTEGER" size="255" default="" notnull="" description="Eigenschaft der Visualisierung" />
<column name="prop_value" type="VARCHAR" size="255" default="" notnull="false" description="Wert" />
</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>
<table name="viz_type_property" thema="Administration" typ="Schlüsseltabelle" <table name="viz_type_property" thema="Administration" typ="Schlüsseltabelle"
releaseUnload="empty"> releaseUnload="empty">
<description>Schlüsseltabelle für Eigenschaften von Visualisierungstypen</description> <description>Schlüsseltabelle für Eigenschaften von Visualisierungstypen</description>
<columns> <columns>
<column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/> <column name="tid" type="SERIAL" size="" default="" notnull="true" description="tid" isKey="true"/>
<column name="viz_type_id" type="INTEGER" size="" default="" notnull="true" description="Arten des Ladeschritts" /> <column name="viz_type_id" type="INTEGER" size="" default="" notnull="false" description="Art der Visualisierung" />
<column name="prop_name" type="VARCHAR" size="255" default="" notnull="" description="Bezeichnung" /> <column name="viz_property_id" type="INTEGER" size="255" default="" notnull="" description="Eigenschaft der Visualisierung" />
<column name="prop_value" type="TEXT" size="255" default="" notnull="false" description="Wert" />
</columns> </columns>
<primaryKeys><rs> <primaryKeys><rs>
@ -89,6 +161,24 @@ parent="Visualisierungen">Abfragen zur Administration von Visualisierungen </the
displayType="select" visibleFields="caption" format="%s"> displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="viz_type_id" /> <relation-column from="tid" to="viz_type_id" />
</relation> </relation>
<relation from="viz_property" to="viz_type_property" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="viz_property_id" />
</relation>
<!--viz_chart-->
<relation from="viz_type" to="viz_chart" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="viz_type_id" />
</relation>
<!--viz_chart_property-->
<relation from="viz_chart" to="viz_chart_property" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="viz_chart_id" />
</relation>
<relation from="viz_property" to="viz_chart_property" delete="FALSE"
displayType="select" visibleFields="caption" format="%s">
<relation-column from="tid" to="viz_property_id" />
</relation>
</data-integrity> </data-integrity>
</database> </database>
@ -108,6 +198,8 @@ parent="Visualisierungen">Abfragen zur Administration von Visualisierungen </the
<install> <install>
<install-step name="Füllen der Modul-Tabellen"> <install-step name="Füllen der Modul-Tabellen">
<action error="stop"> <action error="stop">
<loadtable refresh="true" delimiter="^" header="false" tabname="viz_type"><file path="$VIZ_PFAD/schluesseltabellen/viz_type.unl"/></loadtable>
<!-- <!--
<loadtable refresh="true" delimiter="^" header="false" tabname="viz_type_type"><file path="$VIZ_PFAD/schluesseltabellen/viz_type_type.unl"/></loadtable> <loadtable refresh="true" delimiter="^" header="false" tabname="viz_type_type"><file path="$VIZ_PFAD/schluesseltabellen/viz_type_type.unl"/></loadtable>
<nativeaction sql="" scriptfile="$VIZ_PFAD/schluesseltabellen/sachgebiete_fuellen.sql" database=""/> <nativeaction sql="" scriptfile="$VIZ_PFAD/schluesseltabellen/sachgebiete_fuellen.sql" database=""/>
@ -124,6 +216,7 @@ parent="Visualisierungen">Abfragen zur Administration von Visualisierungen </the
<upgrade> <upgrade>
<upgrade-step> <upgrade-step>
<action error="stop"> <action error="stop">
<loadtable refresh="true" delimiter="^" header="false" tabname="viz_type"><file path="$VIZ_PFAD/schluesseltabellen/viz_type.unl"/></loadtable>
</action> </action>
<action error="stop"> <action error="stop">

3
src-modules/module/viz/schluesseltabellen/viz_type.unl

@ -0,0 +1,3 @@
1^bar_x^Balkendiagramm (horizontal)^
2^bar_y^Balkendiagramm (vertikal)^
3^line^Liniendiagramm (vertikal)^
Loading…
Cancel
Save