Compare commits

...

4 Commits

  1. 2
      src-modules/module/rpta/conf/rpta.xml
  2. 2
      src-modules/module/rpta/hilfstabellen/rpta_exam_unit_fuellen.sql
  3. 2
      src-modules/module/rpta/masken/48280_sachgeb_maske_bez.unl
  4. 2
      src-modules/module/rpta/masken/48430_felderinfo.unl
  5. 69
      src-modules/module/rpta/schluesseltabellen/bewerbungen_datenblatt_virtuell.sql
  6. 36
      superx/WEB-INF/reports/simple_table.jrtx
  7. 1
      superx/xml/rpta_groupLayout.xml
  8. 8
      superx/xml/rpta_templates.xsl

2
src-modules/module/rpta/conf/rpta.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="rpta" version="0.4b" sachgebiet_id="330" <module name="rpta" version="0.4" sachgebiet_id="330"
sachgebiet="Berichtsassistent" systeminfo_id="330" sachgebiet="Berichtsassistent" systeminfo_id="330"
system="Berichtsassistent" thema="Berichtsassistent" thema_parent="Abfragen"> system="Berichtsassistent" thema="Berichtsassistent" thema_parent="Abfragen">
<database name="superx" system="superx"> <database name="superx" system="superx">

2
src-modules/module/rpta/hilfstabellen/rpta_exam_unit_fuellen.sql

@ -58,7 +58,7 @@ SELECT
elementnr, elementnr,
summe, summe,
<#if TableFieldExists?exists && TableFieldExists('lm_exam_unit','shortcomment')> <#if TableFieldExists?exists && TableFieldExists('lm_exam_unit','shortcomment')>
shortcomment, substring(shortcomment from 1 for 255) as shortcomment,
<#else> <#else>
null::varchar(255) as shortcomment, null::varchar(255) as shortcomment,
</#if> </#if>

2
src-modules/module/rpta/masken/48280_sachgeb_maske_bez.unl

@ -1 +1 @@
200^48280^ 360^48280^

2
src-modules/module/rpta/masken/48430_felderinfo.unl

@ -14,7 +14,7 @@ and R.systeminfo_id=130);^
(select case when tid % 10 = 1 then tid+1 else tid+9 end from semester where today() between sem_beginn and sem_ende)) \ (select case when tid % 10 = 1 then tid+1 else tid+9 end from semester where today() between sem_beginn and sem_ende)) \
from semester \ from semester \
where today() between sem_beginn and sem_ende;^ where today() between sem_beginn and sem_ende;^
48432^Fächer^30^0^0^130^200^6^integer^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ 48432^Fächer^30^0^0^130^200^6^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^
48433^Abschluss^40^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^ 48433^Abschluss^40^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^
48434^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^999^^ ^ ^ 48434^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^999^^ ^ ^
48435^Semestertyp^22^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^ ^ ^ 48435^Semestertyp^22^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^ ^ ^

69
src-modules/module/rpta/schluesseltabellen/bewerbungen_datenblatt_virtuell.sql

@ -9,6 +9,23 @@ select name
</sqlvar> </sqlvar>
<sqlvar name="added_tables" type="hashsequence"> <sqlvar name="added_tables" type="hashsequence">
select 10::smallint as sortnr,
name, trim(name) ||'_' as prefix,
caption,
'zul_antr_aggr.stg=zul_k_stg.apnr' as joinclause
from sx_tables where name in ('zul_k_stg')
union
select 20::smallint as sortnr,
name, trim(name) ||'_' as prefix,
caption,
'zul_antr_aggr.abschl=zul_k_abint.apnr' as joinclause
from sx_tables where name in ('zul_k_abint')
union
select 30::smallint as sortnr,
name, trim(name) ||'_' as prefix,
caption,
'zul_antr_aggr.stort=zul_k_stort.apnr' as joinclause
from sx_tables where name in ('zul_k_stort')
</sqlvar> </sqlvar>
<sqlvar name="fields_target" type="hashsequence"><![CDATA[ <sqlvar name="fields_target" type="hashsequence"><![CDATA[
@ -74,23 +91,37 @@ foreignkey_uniquename VARCHAR(255)
--Vorbereitung: --Vorbereitung:
-- UPDATE sx_tables UPDATE sx_tables
-- SET caption = 'Institution' SET caption = 'Abschlüsse'
-- WHERE name='man_organigramm'; WHERE name='zul_k_abint';
-- UPDATE sx_tables update sx_fields set caption='Schlüssel Abschluss'
-- SET caption = 'Studienart' where table_name='zul_k_abint'
-- WHERE name = 'sos_k_stuart'; and name='apnr';
-- UPDATE sx_tables update sx_fields set caption='Bezeichnung Abschluss'
-- SET caption = 'Studiumstyp' where table_name='zul_k_abint'
-- WHERE name = 'sos_k_stutyp'; and name='druck';
-- UPDATE sx_tables update sx_fields set caption='Amtlicher Schlüssel Abschluss'
-- SET caption = 'Studienform' where table_name='zul_k_abint'
-- WHERE name = 'sos_k_stufrm'; and name='astat';
-- UPDATE sx_tables update sx_fields set currentlyused=0
-- SET caption = 'Hörerstatus' where table_name='zul_k_abint'
-- WHERE name = 'sos_k_hrst'; and name='tid';
UPDATE sx_tables
SET caption = 'Standorte'
WHERE name='zul_k_stort';
update sx_fields set caption='Schlüssel Standort'
where table_name='zul_k_stort'
and name='apnr';
update sx_fields set caption='Bezeichnung Standort'
where table_name='zul_k_stort'
and name='druck';
update sx_fields set caption='Kurztext Abschluss'
where table_name='zul_k_stort'
and name='kurz';
update sx_fields set currentlyused=0
where table_name='zul_k_stort'
and name='tid';
--drop view if exists sos_stud_astat; --drop view if exists sos_stud_astat;
@ -99,11 +130,11 @@ foreignkey_uniquename VARCHAR(255)
update sx_fields set update sx_fields set
is_sum=0 is_sum=0
where table_name='zul_antr_aggr' where table_name='zul_antr_aggr'
and name not in ('value','value1','value2'); and name not in ('summe');
update sx_fields set update sx_fields set
is_sum=1 is_sum=1
where table_name='zul_antr_aggr' where table_name='zul_antr_aggr'
and name in ('value','value1','value2'); and name in ('summe');
insert into tmp_tables ( insert into tmp_tables (

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

@ -65,4 +65,40 @@
</box> </box>
<paragraph spacingBefore="0" spacingAfter="0"/> <paragraph spacingBefore="0" spacingAfter="0"/>
</style> </style>
<style name="TableRowStandard" style="Standard Bodytext" mode="Opaque" forecolor="#050505" backcolor="#FFFFFF" hTextAlign="Right" fontSize="8" isBold="false">
<pen lineWidth="1.0" lineStyle="Solid" lineColor="#030000"/>
<box leftPadding="3" rightPadding="3">
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#050505"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#050505"/>
</box>
</style>
<style name="TableRowLevel2header" mode="Opaque" forecolor="#FFFFFF" backcolor="#B5172B" fontSize="9" isBold="true">
<pen lineWidth="1.0" lineStyle="Solid" lineColor="#030000"/>
<box topPadding="4" leftPadding="3" rightPadding="3">
<topPen lineWidth="1.0" lineStyle="Double" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
</style>
<style name="TableRowLevel2footer" mode="Opaque" backcolor="#EBEBED" fontSize="9" isBold="false">
<pen lineWidth="1.0" lineStyle="Solid" lineColor="#030000"/>
<box leftPadding="3" rightPadding="3">
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
</style>
<style name="TableRowLevel1footer" mode="Opaque" backcolor="#EBEBED" fontSize="9" isBold="true">
<pen lineWidth="1.0" lineStyle="Solid" lineColor="#030000"/>
<box leftPadding="3" rightPadding="3">
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
</style>
</jasperTemplate> </jasperTemplate>

1
superx/xml/rpta_groupLayout.xml

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<groupLayout> <groupLayout>
<group name="tabellennr" level="1" showFooter="false" />
</groupLayout> </groupLayout>

8
superx/xml/rpta_templates.xsl

@ -694,7 +694,7 @@ weil es Rundungsfehler bei der Spaltenbreite geben kann.-->
<xsl:param name="colId" /> <xsl:param name="colId" />
<xsl:param name="x" select="'0'" /> <xsl:param name="x" select="'0'" />
<xsl:param name="width" select="'0'" /> <xsl:param name="width" select="'0'" />
<xsl:param name="height" select="'30'" /> <xsl:param name="height" select="$std_zeilenhoehe_tablerow" />
<xsl:param name="flavorTableRowStyle" select="'listAlternatingBg'" /> <xsl:param name="flavorTableRowStyle" select="'listAlternatingBg'" />
<xsl:param name="tableRowLevel" select="10" /> <xsl:param name="tableRowLevel" select="10" />
<xsl:param name="expressionType" select="'F'" /> <xsl:param name="expressionType" select="'F'" />
@ -764,7 +764,7 @@ weil es Rundungsfehler bei der Spaltenbreite geben kann.-->
<xsl:attribute name="evaluationGroup"><xsl:value-of select="$groupbyField"/></xsl:attribute> <xsl:attribute name="evaluationGroup"><xsl:value-of select="$groupbyField"/></xsl:attribute>
</xsl:if> </xsl:if>
<!--{$height}30 --> <!--{$height}30 -->
<reportElement stretchType="ContainerHeight" x="{$x}" y="0" width="{$width}" height="14" > <reportElement stretchType="ContainerHeight" x="{$x}" y="0" width="{$width}" height="{$height}" >
<xsl:attribute name="style"> <xsl:attribute name="style">
<xsl:call-template name="getTableRowStyle" > <xsl:call-template name="getTableRowStyle" >
<xsl:with-param name="flavorTableRowStyle" select="$flavorTableRowStyle"/> <xsl:with-param name="flavorTableRowStyle" select="$flavorTableRowStyle"/>
@ -1068,7 +1068,7 @@ genommen. Wenn nicht, wird mit colspan multipliziert.-->
<xsl:variable name="legendLabelHeight" select="20" /> <xsl:variable name="legendLabelHeight" select="20" />
<xsl:variable name="legendContentHeight" select="10" /> <xsl:variable name="legendContentHeight" select="10" />
<xsl:variable name="hinweisContentHeight" select="10" /> <xsl:variable name="hinweisContentHeight" select="10" />
<xsl:if test="$groupbyField != ''">
<group name="{$groupbyField}" keepTogether="true"> <group name="{$groupbyField}" keepTogether="true">
<groupExpression><xsl:value-of select="concat('$F{',$groupbyField,'}')"/></groupExpression> <groupExpression><xsl:value-of select="concat('$F{',$groupbyField,'}')"/></groupExpression>
@ -1109,7 +1109,9 @@ genommen. Wenn nicht, wird mit colspan multipliziert.-->
</band> </band>
</groupFooter> </groupFooter>
</xsl:if> </xsl:if>
</group> </group>
</xsl:if>
</xsl:template> </xsl:template>
<xsl:template name="generateGroupBandContent"> <xsl:template name="generateGroupBandContent">
<xsl:param name="ergebniselementOrdnr" select="0" /> <xsl:param name="ergebniselementOrdnr" select="0" />

Loading…
Cancel
Save