You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
197 lines
10 KiB
197 lines
10 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- Created with Jaspersoft Studio version 6.6.0.final using JasperReports Library version 6.6.0 -->
|
|
<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="clubhelper_calendar" columnCount="7" printOrder="Horizontal" pageWidth="792" pageHeight="612" orientation="Landscape" whenNoDataType="AllSectionsNoDetail" columnWidth="110" leftMargin="11" rightMargin="11" topMargin="6" bottomMargin="6" uuid="32abf871-39b8-4cc7-b03c-d950a55e2bfb">
|
|
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
|
|
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="JRSrepo"/>
|
|
<property name="com.jaspersoft.studio.unit." value="pixel"/>
|
|
<style name="Style1" forecolor="#050505">
|
|
<conditionalStyle>
|
|
<conditionExpression><![CDATA[$F{id}.intValue()%7==0]]></conditionExpression>
|
|
<style forecolor="#FA0702"/>
|
|
</conditionalStyle>
|
|
</style>
|
|
<parameter name="Date" class="java.sql.Timestamp">
|
|
<defaultValueExpression><![CDATA[new Date()]]></defaultValueExpression>
|
|
</parameter>
|
|
<parameter name="DOW" class="java.lang.Integer" isForPrompting="false">
|
|
<defaultValueExpression><![CDATA[new Date($P{Date}.getYear(),$P{Date}.getMonth(),1).getDay()]]></defaultValueExpression>
|
|
</parameter>
|
|
<parameter name="DOM" class="java.lang.Integer" isForPrompting="false">
|
|
<defaultValueExpression><![CDATA[$P{Date}.getMonth()+1]]></defaultValueExpression>
|
|
</parameter>
|
|
<parameter name="DOY" class="java.lang.Integer" isForPrompting="false">
|
|
<defaultValueExpression><![CDATA[$P{Date}.getYear()+1900]]></defaultValueExpression>
|
|
</parameter>
|
|
<parameter name="Days" class="java.lang.Integer" isForPrompting="false">
|
|
<defaultValueExpression><![CDATA[java.time.YearMonth.of($P{DOY}.intValue(), $P{DOM}.intValue()).lengthOfMonth()]]></defaultValueExpression>
|
|
</parameter>
|
|
<parameter name="Cells" class="java.lang.Integer" isForPrompting="false">
|
|
<defaultValueExpression><![CDATA[$P{DOW}.intValue()-1+$P{Days}.intValue()]]></defaultValueExpression>
|
|
</parameter>
|
|
<parameter name="Limit" class="java.lang.Integer" isForPrompting="false">
|
|
<defaultValueExpression><![CDATA[$P{Cells}.intValue()>28?($P{Cells}.intValue()>35?42:35):28]]></defaultValueExpression>
|
|
</parameter>
|
|
<queryString>
|
|
<![CDATA[SELECT i as id FROM generate_series(1, $P!{Limit} ) i]]>
|
|
</queryString>
|
|
<field name="id" class="java.lang.Integer"/>
|
|
<field name="Field_Value" class="java.lang.String"/>
|
|
<variable name="Date" class="java.lang.Integer">
|
|
<variableExpression><![CDATA[$F{id}.intValue()-$P{DOW}.intValue()+1]]></variableExpression>
|
|
</variable>
|
|
<title>
|
|
<band height="60">
|
|
<textField pattern="yyyy MMMM">
|
|
<reportElement x="0" y="0" width="770" height="30" uuid="21293131-3839-43aa-b449-b19867eee2da"/>
|
|
<textElement textAlignment="Center">
|
|
<font size="16" isBold="true"/>
|
|
</textElement>
|
|
<textFieldExpression><![CDATA[$P{Date}]]></textFieldExpression>
|
|
</textField>
|
|
<textField pattern="EEEE">
|
|
<reportElement mode="Opaque" x="0" y="30" width="110" height="30" forecolor="#FFFCFC" backcolor="#403D3D" uuid="1b600f02-858c-4f32-b65e-d3796aeafcf9">
|
|
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
|
|
</reportElement>
|
|
<box>
|
|
<topPen lineWidth="0.0" lineStyle="Solid"/>
|
|
<leftPen lineWidth="0.0" lineStyle="Solid"/>
|
|
<bottomPen lineWidth="0.0" lineStyle="Solid"/>
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#FFFCFC"/>
|
|
</box>
|
|
<textElement textAlignment="Center">
|
|
<font size="14" isBold="true"/>
|
|
</textElement>
|
|
<textFieldExpression><![CDATA[new java.util.GregorianCalendar(2018, Calendar.OCTOBER, 1).getTime()]]></textFieldExpression>
|
|
</textField>
|
|
<textField pattern="EEEE">
|
|
<reportElement mode="Opaque" x="110" y="30" width="110" height="30" forecolor="#FFFCFC" backcolor="#403D3D" uuid="2dab9c59-9860-4414-afb1-d3237c6ee8c8">
|
|
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
|
|
</reportElement>
|
|
<box>
|
|
<topPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<leftPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<rightPen lineWidth="1.0" lineStyle="Solid"/>
|
|
</box>
|
|
<textElement textAlignment="Center">
|
|
<font size="14" isBold="true"/>
|
|
</textElement>
|
|
<textFieldExpression><![CDATA[new java.util.GregorianCalendar(2018, Calendar.OCTOBER, 2).getTime()]]></textFieldExpression>
|
|
</textField>
|
|
<textField pattern="EEEE">
|
|
<reportElement mode="Opaque" x="220" y="30" width="110" height="30" forecolor="#FFFCFC" backcolor="#403D3D" uuid="39d4a93c-d2d6-4c1c-b572-4bcb18ef01aa">
|
|
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
|
|
</reportElement>
|
|
<box>
|
|
<topPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<leftPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<rightPen lineWidth="1.0" lineStyle="Solid"/>
|
|
</box>
|
|
<textElement textAlignment="Center">
|
|
<font size="14" isBold="true"/>
|
|
</textElement>
|
|
<textFieldExpression><![CDATA[new java.util.GregorianCalendar(2018, Calendar.OCTOBER, 3).getTime()]]></textFieldExpression>
|
|
</textField>
|
|
<textField pattern="EEEE">
|
|
<reportElement mode="Opaque" x="330" y="30" width="110" height="30" forecolor="#FFFCFC" backcolor="#403D3D" uuid="cec2cdaa-3eee-4cd0-9691-d69410726991">
|
|
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
|
|
</reportElement>
|
|
<box>
|
|
<topPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<leftPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<rightPen lineWidth="1.0" lineStyle="Solid"/>
|
|
</box>
|
|
<textElement textAlignment="Center">
|
|
<font size="14" isBold="true"/>
|
|
</textElement>
|
|
<textFieldExpression><![CDATA[new java.util.GregorianCalendar(2018, Calendar.OCTOBER, 4).getTime()]]></textFieldExpression>
|
|
</textField>
|
|
<textField pattern="EEEE">
|
|
<reportElement mode="Opaque" x="440" y="30" width="110" height="30" forecolor="#FFFCFC" backcolor="#403D3D" uuid="3ecffb41-397a-4243-b12e-e8f5738341b1">
|
|
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
|
|
</reportElement>
|
|
<box>
|
|
<topPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<leftPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<rightPen lineWidth="1.0" lineStyle="Solid"/>
|
|
</box>
|
|
<textElement textAlignment="Center">
|
|
<font size="14" isBold="true"/>
|
|
</textElement>
|
|
<textFieldExpression><![CDATA[new java.util.GregorianCalendar(2018, Calendar.OCTOBER, 5).getTime()]]></textFieldExpression>
|
|
</textField>
|
|
<textField pattern="EEEE">
|
|
<reportElement mode="Opaque" x="550" y="30" width="110" height="30" forecolor="#FFFCFC" backcolor="#C20802" uuid="f2f2c473-7afb-4177-81a0-280f32264894">
|
|
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
|
|
</reportElement>
|
|
<box>
|
|
<topPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<leftPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<rightPen lineWidth="1.0" lineStyle="Solid"/>
|
|
</box>
|
|
<textElement textAlignment="Center">
|
|
<font size="14" isBold="true"/>
|
|
</textElement>
|
|
<textFieldExpression><![CDATA[new java.util.GregorianCalendar(2018, Calendar.OCTOBER, 6).getTime()]]></textFieldExpression>
|
|
</textField>
|
|
<textField pattern="EEEE">
|
|
<reportElement mode="Opaque" x="660" y="30" width="110" height="30" forecolor="#FFFCFC" backcolor="#FC0703" uuid="00bc94f5-abd4-40ef-845a-0d9a5fa6fba0">
|
|
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
|
|
</reportElement>
|
|
<box>
|
|
<topPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<leftPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<rightPen lineWidth="1.0" lineStyle="Solid"/>
|
|
</box>
|
|
<textElement textAlignment="Center">
|
|
<font size="14" isBold="true"/>
|
|
</textElement>
|
|
<textFieldExpression><![CDATA[new java.util.GregorianCalendar(2018, Calendar.OCTOBER, 7).getTime()]]></textFieldExpression>
|
|
</textField>
|
|
</band>
|
|
</title>
|
|
<detail>
|
|
<band height="90" splitType="Stretch">
|
|
<frame>
|
|
<reportElement mode="Transparent" x="0" y="0" width="110" height="90" backcolor="#F7C86F" uuid="75440275-c439-4c3e-bb77-f9f4d8f48415">
|
|
<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
|
|
<property name="com.jaspersoft.studio.unit.y" value="pixel"/>
|
|
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
|
|
</reportElement>
|
|
<box>
|
|
<topPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<leftPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<bottomPen lineWidth="1.0" lineStyle="Solid"/>
|
|
<rightPen lineWidth="1.0" lineStyle="Solid"/>
|
|
</box>
|
|
<textField>
|
|
<reportElement style="Style1" mode="Transparent" x="80" y="0" width="30" height="21" isRemoveLineWhenBlank="true" backcolor="#C6EDBB" uuid="733ff549-0109-4f55-b9de-476f0ad9fbeb">
|
|
<printWhenExpression><![CDATA[$V{Date}.intValue()>0&&$V{Date}.intValue()<=$P{Days}.intValue()]]></printWhenExpression>
|
|
</reportElement>
|
|
<box>
|
|
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
|
|
</box>
|
|
<textElement textAlignment="Right">
|
|
<font size="16" isBold="true"/>
|
|
<paragraph rightIndent="5"/>
|
|
</textElement>
|
|
<textFieldExpression><![CDATA[$V{Date}]]></textFieldExpression>
|
|
</textField>
|
|
<textField>
|
|
<reportElement x="0" y="21" width="110" height="69" isRemoveLineWhenBlank="true" uuid="52fccbc5-19e8-40be-b02c-3d23afa55a7d">
|
|
<printWhenExpression><![CDATA[$V{Date}.intValue()>0&&$V{Date}.intValue()<=$P{Days}.intValue()]]></printWhenExpression>
|
|
</reportElement>
|
|
<textFieldExpression><![CDATA[$F{Field_Value}]]></textFieldExpression>
|
|
</textField>
|
|
</frame>
|
|
</band>
|
|
</detail>
|
|
</jasperReport>
|
|
|