<?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="Rozpustenie režijných nákladov" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="511" leftMargin="42" rightMargin="42" topMargin="42" bottomMargin="42" uuid="d8fdd55f-1863-435d-acd3-c2e4aed7fb04">
	<property name="ireport.zoom" value="1.5"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<style name="Title" fontName="Arial" fontSize="18" isBold="true" pdfFontName="Times-Bold"/>
	<style name="SubTitle" forecolor="#000000" fontName="Arial" fontSize="10" isBold="true"/>
	<style name="Column header" forecolor="#FFFFFF" hAlign="Left" fontName="Arial" fontSize="8" isBold="true"/>
	<style name="Detail" fontName="Arial" fontSize="8"/>
	<style name="Row" mode="Opaque" forecolor="#FFFFFF" backcolor="#FFFFFF">
		<conditionalStyle>
			<conditionExpression><![CDATA[$V{UcetSynt_COUNT}%2 == 0]]></conditionExpression>
			<style backcolor="#CCFFCC"/>
		</conditionalStyle>
	</style>
	<parameter name="PROGRAM" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="OBDOBIE" class="java.lang.String"/>
	<parameter name="NOTE" class="java.lang.String"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="UcetKod" class="java.lang.String"/>
	<field name="UcetNazov" class="java.lang.String"/>
	<field name="UcetPredRozpustenim" class="java.math.BigDecimal"/>
	<field name="UcetRozpustenie" class="java.math.BigDecimal"/>
	<field name="StrKod" class="java.lang.String"/>
	<field name="StrNazov" class="java.lang.String"/>
	<field name="UcetMena" class="java.lang.String"/>
	<field name="UcetSyntKod" class="java.lang.String"/>
	<field name="UcetSyntNazov" class="java.lang.String"/>
	<field name="UcetTriedaKod" class="java.lang.String"/>
	<variable name="SumPredRozpustenimUcetSynt" class="java.math.BigDecimal" resetType="Group" resetGroup="UcetSynt" calculation="Sum">
		<variableExpression><![CDATA[$F{UcetPredRozpustenim}]]></variableExpression>
		<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
	</variable>
	<variable name="SumRozpustenieUcetSynt" class="java.math.BigDecimal" resetType="Group" resetGroup="UcetSynt" calculation="Sum">
		<variableExpression><![CDATA[$F{UcetRozpustenie}]]></variableExpression>
		<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
	</variable>
	<variable name="SumPoRozpusteniUcetSynt" class="java.math.BigDecimal" resetType="Group" resetGroup="UcetSynt" calculation="Sum">
		<variableExpression><![CDATA[$F{UcetPredRozpustenim}.add($F{UcetRozpustenie})]]></variableExpression>
		<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
	</variable>
	<variable name="SumPredRozpustenimStr" class="java.math.BigDecimal" resetType="Group" resetGroup="Str" calculation="Sum">
		<variableExpression><![CDATA[$F{UcetPredRozpustenim}]]></variableExpression>
		<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
	</variable>
	<variable name="SumRozpustenieStr" class="java.math.BigDecimal" resetType="Group" resetGroup="Str" calculation="Sum">
		<variableExpression><![CDATA[$F{UcetRozpustenie}]]></variableExpression>
		<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
	</variable>
	<variable name="SumPoRozpusteniStr" class="java.math.BigDecimal" resetType="Group" resetGroup="Str" calculation="Sum">
		<variableExpression><![CDATA[$F{UcetPredRozpustenim}.add($F{UcetRozpustenie})]]></variableExpression>
		<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
	</variable>
	<variable name="SumPredRozpustenimUcetTrieda" class="java.math.BigDecimal" resetType="Group" resetGroup="UcetTrieda" calculation="Sum">
		<variableExpression><![CDATA[$F{UcetPredRozpustenim}]]></variableExpression>
		<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
	</variable>
	<variable name="SumRozpustenieUcetTrieda" class="java.math.BigDecimal" resetType="Group" resetGroup="UcetTrieda" calculation="Sum">
		<variableExpression><![CDATA[$F{UcetRozpustenie}]]></variableExpression>
		<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
	</variable>
	<variable name="SumPoRozpusteniUcetTrieda" class="java.math.BigDecimal" resetType="Group" resetGroup="UcetTrieda" calculation="Sum">
		<variableExpression><![CDATA[$F{UcetPredRozpustenim}.add($F{UcetRozpustenie})]]></variableExpression>
		<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
	</variable>
	<group name="Str" isReprintHeaderOnEachPage="true" minHeightToStartNewPage="100">
		<groupExpression><![CDATA[$F{StrKod}]]></groupExpression>
		<groupHeader>
			<band height="34">
				<frame>
					<reportElement uuid="5bbb7a61-cc07-457a-a454-a29eaaebccbd" mode="Opaque" x="0" y="0" width="511" height="34" backcolor="#00CC99"/>
					<textField pattern="" isBlankWhenNull="true">
						<reportElement uuid="1f9f5cc4-6b38-49ae-b997-4cefa84ce1b8" style="Detail" stretchType="RelativeToBandHeight" x="2" y="0" width="509" height="22" forecolor="#FFFFFF"/>
						<textElement verticalAlignment="Middle">
							<font size="14" isBold="true" pdfEncoding="Cp1250"/>
						</textElement>
						<textFieldExpression><![CDATA["Stredisko "+$F{StrKod}+"-"+$F{StrNazov}]]></textFieldExpression>
					</textField>
					<staticText>
						<reportElement uuid="efd74e80-ccb4-4350-a84f-079120b1d729" style="Column header" x="476" y="22" width="35" height="10"/>
						<textElement textAlignment="Center" verticalAlignment="Middle">
							<font pdfEncoding="Cp1250"/>
						</textElement>
						<text><![CDATA[Mena]]></text>
					</staticText>
					<staticText>
						<reportElement uuid="57559f8f-c01e-4043-b236-53867b81a898" style="Column header" x="334" y="22" width="70" height="10"/>
						<textElement textAlignment="Right" verticalAlignment="Middle">
							<font pdfEncoding="Cp1250"/>
						</textElement>
						<text><![CDATA[Rozpustenie]]></text>
					</staticText>
					<staticText>
						<reportElement uuid="59c520d5-4596-4e16-a0a7-eb9de8bfa1ea" style="Column header" x="264" y="22" width="70" height="10"/>
						<textElement textAlignment="Right" verticalAlignment="Middle">
							<font pdfEncoding="Cp1250"/>
						</textElement>
						<text><![CDATA[Pred rozpustením]]></text>
					</staticText>
					<staticText>
						<reportElement uuid="b42b8ab0-6b6f-482b-9a96-8c2cc32b5e7b" style="Column header" x="404" y="22" width="70" height="10"/>
						<textElement textAlignment="Right" verticalAlignment="Middle">
							<font pdfEncoding="Cp1250"/>
						</textElement>
						<text><![CDATA[Po rozpustení]]></text>
					</staticText>
					<staticText>
						<reportElement uuid="ce0fc984-0f57-4407-b6a1-55fb6bd84728" style="Column header" x="5" y="22" width="53" height="10"/>
						<box leftPadding="2"/>
						<textElement verticalAlignment="Middle">
							<font pdfEncoding="Cp1250"/>
						</textElement>
						<text><![CDATA[Kód účtu]]></text>
					</staticText>
					<staticText>
						<reportElement uuid="efe07454-acca-4e45-aa34-5db606254725" style="Column header" x="58" y="22" width="206" height="10"/>
						<textElement verticalAlignment="Middle">
							<font pdfEncoding="Cp1250"/>
						</textElement>
						<text><![CDATA[Názov účtu]]></text>
					</staticText>
				</frame>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="25">
				<printWhenExpression><![CDATA[$F{StrKod}!=null]]></printWhenExpression>
				<frame>
					<reportElement uuid="d1acd984-be41-481e-8b62-2ff5ecfca545" mode="Opaque" x="0" y="0" width="511" height="11" backcolor="#00CC99"/>
					<textField pattern="#,##0.00" isBlankWhenNull="true">
						<reportElement uuid="abaa9edb-7859-4c56-9d7c-1c4fce4b6465" style="Column header" x="262" y="0" width="72" height="10"/>
						<textElement textAlignment="Right" verticalAlignment="Middle">
							<font isBold="true"/>
						</textElement>
						<textFieldExpression><![CDATA[$V{SumPredRozpustenimStr}]]></textFieldExpression>
					</textField>
					<textField>
						<reportElement uuid="f697ec82-2546-4dfb-a544-4133405ef08f" style="Column header" x="5" y="0" width="259" height="10"/>
						<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
							<font pdfEncoding="Cp1250"/>
						</textElement>
						<textFieldExpression><![CDATA["Spolu za stredisko "+$F{StrKod}+"-"+$F{StrNazov}]]></textFieldExpression>
					</textField>
					<textField pattern="#,##0.00" isBlankWhenNull="true">
						<reportElement uuid="9944d186-ad8b-4994-bd41-d9690a812c3d" style="Column header" x="334" y="0" width="70" height="10"/>
						<textElement textAlignment="Right" verticalAlignment="Middle">
							<font isBold="true"/>
						</textElement>
						<textFieldExpression><![CDATA[$V{SumRozpustenieStr}]]></textFieldExpression>
					</textField>
					<textField pattern="#,##0.00" isBlankWhenNull="true">
						<reportElement uuid="e0099657-e70f-47fc-8124-52e31605624d" style="Column header" x="404" y="0" width="70" height="10"/>
						<textElement textAlignment="Right" verticalAlignment="Middle">
							<font isBold="true"/>
						</textElement>
						<textFieldExpression><![CDATA[$V{SumPoRozpusteniStr}]]></textFieldExpression>
					</textField>
				</frame>
			</band>
		</groupFooter>
	</group>
	<group name="UcetTrieda">
		<groupExpression><![CDATA[$F{UcetTriedaKod}]]></groupExpression>
		<groupFooter>
			<band height="11">
				<frame>
					<reportElement uuid="2f7476a7-0538-46ac-b7ac-d3533b6ea75f" mode="Opaque" x="0" y="0" width="511" height="11" backcolor="#00CC99"/>
					<textField pattern="#,##0.00" isBlankWhenNull="true">
						<reportElement uuid="7177ae77-cc10-4fd4-b2cc-0cd36d8d9644" style="Column header" x="264" y="0" width="70" height="10"/>
						<textElement textAlignment="Right" verticalAlignment="Middle">
							<font isBold="true"/>
						</textElement>
						<textFieldExpression><![CDATA[$V{SumPredRozpustenimUcetTrieda}]]></textFieldExpression>
					</textField>
					<textField>
						<reportElement uuid="b9a1680a-0a4e-4d62-a0f9-85df6493295e" style="Column header" x="5" y="0" width="259" height="10"/>
						<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
							<font pdfEncoding="Cp1250"/>
						</textElement>
						<textFieldExpression><![CDATA["Spolu za triedu "+$F{UcetTriedaKod}]]></textFieldExpression>
					</textField>
					<textField pattern="#,##0.00" isBlankWhenNull="true">
						<reportElement uuid="a9fb1762-8aa5-4123-91bd-533ba981e143" style="Column header" x="324" y="0" width="80" height="10"/>
						<textElement textAlignment="Right" verticalAlignment="Middle">
							<font isBold="true"/>
						</textElement>
						<textFieldExpression><![CDATA[$V{SumRozpustenieUcetTrieda}]]></textFieldExpression>
					</textField>
					<textField pattern="#,##0.00" isBlankWhenNull="true">
						<reportElement uuid="5f2010d0-08f1-48b3-9290-fc1aa315efb6" style="Column header" x="404" y="0" width="70" height="10"/>
						<textElement textAlignment="Right" verticalAlignment="Middle">
							<font isBold="true"/>
						</textElement>
						<textFieldExpression><![CDATA[$V{SumPoRozpusteniUcetTrieda}]]></textFieldExpression>
					</textField>
				</frame>
			</band>
		</groupFooter>
	</group>
	<group name="UcetSynt">
		<groupExpression><![CDATA[$F{UcetSyntKod}]]></groupExpression>
		<groupFooter>
			<band height="11">
				<frame>
					<reportElement uuid="11d4ee1f-4d4e-4c7c-a108-ec1ce9d88268" mode="Opaque" x="0" y="0" width="511" height="11" backcolor="#00CC99"/>
					<textField pattern="#,##0.00" isBlankWhenNull="true">
						<reportElement uuid="5b7c86d7-8808-4d31-85c9-88afc2f7221b" style="Column header" x="264" y="0" width="70" height="10"/>
						<textElement textAlignment="Right" verticalAlignment="Middle">
							<font isBold="true"/>
						</textElement>
						<textFieldExpression><![CDATA[$V{SumPredRozpustenimUcetSynt}]]></textFieldExpression>
					</textField>
					<textField>
						<reportElement uuid="b7affb2f-551b-4b9c-bfc7-ebb20f105947" style="Column header" x="5" y="0" width="259" height="10"/>
						<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
							<font pdfEncoding="Cp1250"/>
						</textElement>
						<textFieldExpression><![CDATA["Spolu za účet "+$F{UcetSyntKod}+"-"+$F{UcetSyntNazov}]]></textFieldExpression>
					</textField>
					<textField pattern="#,##0.00" isBlankWhenNull="true">
						<reportElement uuid="c0fe91fd-3c5e-42c6-b787-8c4b2d63ee52" style="Column header" x="324" y="0" width="80" height="10"/>
						<textElement textAlignment="Right" verticalAlignment="Middle">
							<font isBold="true"/>
						</textElement>
						<textFieldExpression><![CDATA[$V{SumRozpustenieUcetSynt}]]></textFieldExpression>
					</textField>
					<textField pattern="#,##0.00" isBlankWhenNull="true">
						<reportElement uuid="ad0665f2-841b-43a5-8fc1-c2b44725adf2" style="Column header" x="404" y="0" width="70" height="10"/>
						<textElement textAlignment="Right" verticalAlignment="Middle">
							<font isBold="true"/>
						</textElement>
						<textFieldExpression><![CDATA[$V{SumPoRozpusteniUcetSynt}]]></textFieldExpression>
					</textField>
				</frame>
			</band>
		</groupFooter>
	</group>
	<pageHeader>
		<band height="52" splitType="Stretch">
			<textField>
				<reportElement uuid="875b3430-f511-4913-9f0d-ab217e438720" style="Title" x="0" y="20" width="511" height="21" isPrintWhenDetailOverflows="true" forecolor="#00B085"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None" markup="none">
					<font pdfEncoding="Cp1250"/>
				</textElement>
				<textFieldExpression><![CDATA["Rozpustenie režijných nákladov za "+$P{OBDOBIE}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="79c12bef-df4c-4fa0-b374-a98555ca425b" style="Detail" x="68" y="0" width="112" height="10"/>
				<textElement textAlignment="Left" verticalAlignment="Top">
					<font size="7" isBold="false" pdfEncoding="Cp1250"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{PROGRAM}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="9e92ea48-4884-4792-9a33-742ac9ce723d" style="Detail" x="342" y="0" width="147" height="10"/>
				<textElement textAlignment="Right" verticalAlignment="Top">
					<font size="7" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA["Strana "+$V{PAGE_NUMBER}+" z"]]></textFieldExpression>
			</textField>
			<textField pattern="dd.MM.yyyy HH:mm:ss">
				<reportElement uuid="63cbb7ad-c310-4dee-b5e9-a20b55e050b6" style="Detail" x="0" y="0" width="68" height="10"/>
				<textElement textAlignment="Left" verticalAlignment="Top">
					<font size="7" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement uuid="f5359b5e-3cda-4c0b-a99b-82417c1e1ffb" x="489" y="0" width="22" height="10"/>
				<textElement>
					<font fontName="Arial" size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[" "+$V{PAGE_NUMBER}+" "]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<detail>
		<band height="11">
			<frame>
				<reportElement uuid="fa4bd00d-9e4e-4b13-be18-fe038aef348d" style="Row" mode="Opaque" x="0" y="0" width="511" height="11"/>
				<textField pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement uuid="05a21447-3d62-41c5-8dcd-ac64c5a63f0a" style="Detail" stretchType="RelativeToBandHeight" x="264" y="0" width="70" height="10"/>
					<textElement textAlignment="Right" verticalAlignment="Middle"/>
					<textFieldExpression><![CDATA[$F{UcetPredRozpustenim}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement uuid="ebcaad2e-750f-43e2-829b-e1f9d10abb88" style="Detail" stretchType="RelativeToBandHeight" x="5" y="0" width="53" height="10"/>
					<box leftPadding="2"/>
					<textElement verticalAlignment="Middle">
						<font pdfEncoding="Cp1250"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{UcetKod}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement uuid="96305028-4044-443a-960f-5bc699abac01" style="Detail" stretchType="RelativeToBandHeight" x="334" y="0" width="70" height="10"/>
					<textElement textAlignment="Right" verticalAlignment="Middle"/>
					<textFieldExpression><![CDATA[$F{UcetRozpustenie}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
					<reportElement uuid="f7f36110-dc5d-4ee6-a221-7f0d1ec11c0c" style="Detail" stretchType="RelativeToBandHeight" x="58" y="0" width="206" height="10"/>
					<textElement verticalAlignment="Middle">
						<font pdfEncoding="Cp1250"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{UcetNazov}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement uuid="cd0f63c6-45b6-44a8-a708-3f9f6336a120" style="Detail" stretchType="RelativeToBandHeight" x="476" y="0" width="35" height="10"/>
					<box leftPadding="2"/>
					<textElement textAlignment="Center" verticalAlignment="Middle"/>
					<textFieldExpression><![CDATA[$F{UcetMena}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement uuid="6481ec3e-08a0-40b8-8647-5f7430b9fd0f" style="Detail" stretchType="RelativeToBandHeight" x="404" y="0" width="72" height="10"/>
					<textElement textAlignment="Right" verticalAlignment="Middle"/>
					<textFieldExpression><![CDATA[$F{UcetPredRozpustenim}.add($F{UcetRozpustenie})]]></textFieldExpression>
				</textField>
			</frame>
		</band>
	</detail>
</jasperReport>
