Holidays marked with head.

master
Markus Kreth 7 years ago
parent 2f6cdf1398
commit 17820770e7
  1. 14
      src/main/resources/jasper/calendar_month.jrxml

@ -4,7 +4,7 @@
<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="CalendarSource"/>
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<style name="Style1" forecolor="#050505" backcolor="#FFFFFF">
<style name="Style_Calendar_Day_Number" forecolor="#050505" backcolor="#FFFFFF">
<conditionalStyle>
<conditionExpression><![CDATA[$F{id}.intValue()%7==0]]></conditionExpression>
<style forecolor="#FA0702"/>
@ -14,6 +14,12 @@
<style backcolor="#FFFFCC"/>
</conditionalStyle>
</style>
<style name="Style_Calendar_Holiday" backcolor="#FFFFFF">
<conditionalStyle>
<conditionExpression><![CDATA[$F{IsHoliday}]]></conditionExpression>
<style backcolor="#FFFFCC"/>
</conditionalStyle>
</style>
<parameter name="Date" class="java.sql.Timestamp">
<defaultValueExpression><![CDATA[new Date()]]></defaultValueExpression>
</parameter>
@ -171,7 +177,7 @@
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
</reportElement>
<textField>
<reportElement style="Style1" mode="Opaque" x="80" y="0" width="30" height="21" isRemoveLineWhenBlank="true" uuid="733ff549-0109-4f55-b9de-476f0ad9fbeb">
<reportElement style="Style_Calendar_Day_Number" mode="Opaque" x="80" y="0" width="30" height="21" isRemoveLineWhenBlank="true" uuid="733ff549-0109-4f55-b9de-476f0ad9fbeb">
<printWhenExpression><![CDATA[$V{Date}.intValue()>0&&$V{Date}.intValue()<=$P{Days}.intValue()]]></printWhenExpression>
</reportElement>
<box>
@ -198,6 +204,10 @@
</box>
<textFieldExpression><![CDATA[$F{Field_Value}]]></textFieldExpression>
</textField>
<staticText>
<reportElement style="Style_Calendar_Holiday" mode="Opaque" x="0" y="0" width="80" height="21" uuid="76aa5538-d07a-45f0-b315-31cda42756b1"/>
<text><![CDATA[]]></text>
</staticText>
</frame>
</band>
</detail>

Loading…
Cancel
Save