<?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="table2" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="2c4ef850-1b5d-47dc-9b01-0785e26fb1bb">
	<property name="net.sf.jasperreports.awt.ignore.missing.font" value="true"/>
	<style name="Table_TH" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
			<topPen lineWidth="0.5" lineColor="#000000"/>
			<leftPen lineWidth="0.5" lineColor="#000000"/>
			<bottomPen lineWidth="0.5" lineColor="#000000"/>
			<rightPen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="Table_CH" mode="Opaque" backcolor="#BFE1FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
			<topPen lineWidth="0.5" lineColor="#000000"/>
			<leftPen lineWidth="0.5" lineColor="#000000"/>
			<bottomPen lineWidth="0.5" lineColor="#000000"/>
			<rightPen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="Table_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
			<topPen lineWidth="0.5" lineColor="#000000"/>
			<leftPen lineWidth="0.5" lineColor="#000000"/>
			<bottomPen lineWidth="0.5" lineColor="#000000"/>
			<rightPen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="Table 1_TH" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
			<topPen lineWidth="0.5" lineColor="#000000"/>
			<leftPen lineWidth="0.5" lineColor="#000000"/>
			<bottomPen lineWidth="0.5" lineColor="#000000"/>
			<rightPen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="Table 1_CH" mode="Opaque" backcolor="#BFE1FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
			<topPen lineWidth="0.5" lineColor="#000000"/>
			<leftPen lineWidth="0.5" lineColor="#000000"/>
			<bottomPen lineWidth="0.5" lineColor="#000000"/>
			<rightPen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="Table 1_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
			<topPen lineWidth="0.5" lineColor="#000000"/>
			<leftPen lineWidth="0.5" lineColor="#000000"/>
			<bottomPen lineWidth="0.5" lineColor="#000000"/>
			<rightPen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="Title" fontName="Arial" fontSize="26" isBold="true"/>
	<style name="SubTitle" forecolor="#666666" fontName="Arial" fontSize="18"/>
	<style name="Table 2_TH" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
			<topPen lineWidth="0.5" lineColor="#000000"/>
			<leftPen lineWidth="0.5" lineColor="#000000"/>
			<bottomPen lineWidth="0.5" lineColor="#000000"/>
			<rightPen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="Table 2_CH" mode="Opaque" backcolor="#BFE1FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
			<topPen lineWidth="0.5" lineColor="#000000"/>
			<leftPen lineWidth="0.5" lineColor="#000000"/>
			<bottomPen lineWidth="0.5" lineColor="#000000"/>
			<rightPen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="Table 2_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
			<topPen lineWidth="0.5" lineColor="#000000"/>
			<leftPen lineWidth="0.5" lineColor="#000000"/>
			<bottomPen lineWidth="0.5" lineColor="#000000"/>
			<rightPen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<subDataset name="masterDataset" uuid="18e8b1a1-3ec9-45cd-9439-d306bedfe8e2">
		<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
		<queryString language="json">
			<![CDATA[data]]>
		</queryString>
		<field name="at_boSamo__code" class="java.lang.String"/>
		<field name="at_defBoDefect__c_priority.ca_priority__description" class="java.lang.String"/>
	</subDataset>
	<subDataset name="ItemsDataset" uuid="b25cd61a-6544-4a51-ad11-0b9f67e5da55">
		<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
		<queryString>
			<![CDATA[]]>
		</queryString>
		<field name="at_defDefectActivity__c_activity_type.ca_defActivityType__description" class="java.lang.String"/>
		<field name="at_defDefectActivity__note" class="java.lang.String"/>
	</subDataset>
	<subDataset name="DbDataset" uuid="922454a6-8f4b-41a2-a0e9-a269ec146327">
		<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
		<queryString>
			<![CDATA[select code, description from cl_yes_no]]>
		</queryString>
		<field name="code" class="java.lang.String"/>
		<field name="description" class="java.lang.String"/>
	</subDataset>
	<parameter name="REPORT_NAME" class="java.lang.String"/>
	<parameter name="ITEMS_COUNT" class="java.lang.Integer"/>
	<queryString language="json">
		<![CDATA[]]>
	</queryString>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="152" splitType="Stretch">
			<staticText>
				<reportElement style="SubTitle" x="100" y="46" width="174" height="22" uuid="ff13c7b1-f278-462b-8670-4e5d36a2cffa"/>
				<text><![CDATA[Table inside a table]]></text>
			</staticText>
			<staticText>
				<reportElement style="Title" x="0" y="13" width="263" height="33" uuid="cd4a3c76-ddce-4482-8988-e9d4ffb22b98"/>
				<textElement verticalAlignment="Middle"/>
				<text><![CDATA[SAMO Jasper report]]></text>
			</staticText>
			<image>
				<reportElement x="275" y="0" width="300" height="64" uuid="ca9a08f3-d5d0-41b5-880d-589c49b56bf3"/>
				<imageExpression><![CDATA["{@packageRoot(samo-defects)}/templates/documents/defects/testJasperTemplateImage.png"]]></imageExpression>
			</image>
			<rectangle>
				<reportElement mode="Transparent" x="0" y="101" width="180" height="41" uuid="a4519c86-e98a-43f1-b989-b93e3da75796"/>
				<graphicElement>
					<pen lineWidth="0.25"/>
				</graphicElement>
			</rectangle>
			<staticText>
				<reportElement x="0" y="102" width="80" height="20" uuid="b273ec15-e56a-41c5-b33d-6cf19b1d72ff"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<paragraph leftIndent="5"/>
				</textElement>
				<text><![CDATA[Report name:]]></text>
			</staticText>
			<staticText>
				<reportElement x="0" y="122" width="80" height="20" uuid="000e1c12-1fd0-4d51-8e45-5a19d6b95e45"/>
				<textElement verticalAlignment="Middle">
					<paragraph leftIndent="5"/>
				</textElement>
				<text><![CDATA[Items count:]]></text>
			</staticText>
			<textField>
				<reportElement x="80" y="102" width="100" height="20" uuid="70c088d4-f140-422c-a5fb-5254538957b2"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$P{REPORT_NAME}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="80" y="122" width="100" height="20" uuid="e2c3b870-a5f5-466d-ad09-46a61dbfad6b"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$P{ITEMS_COUNT}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<detail>
		<band height="93" splitType="Stretch">
			<componentElement>
				<reportElement x="0" y="0" width="550" height="90" uuid="0e79cf0c-d62c-4dc9-bc1f-20a9b47d171a">
					<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/>
					<property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
					<property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
					<property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
				</reportElement>
				<jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd">
					<datasetRun subDataset="masterDataset" uuid="164bad47-12f1-4dfe-9592-02cd782f3cb9">
						<datasetParameter name="REPORT_CONNECTION">
							<datasetParameterExpression><![CDATA[$P{REPORT_CONNECTION}]]></datasetParameterExpression>
						</datasetParameter>
						<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonDataSource) $P{REPORT_DATA_SOURCE}).subDataSource("defects")]]></dataSourceExpression>
					</datasetRun>
					<jr:column width="110" uuid="7791806d-e037-45eb-8240-e8f4008dfbc1">
						<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column1"/>
						<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="110" height="30" uuid="5bc33e16-9682-4994-9f12-7c089b03e171"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font size="14" isBold="true"/>
								</textElement>
								<text><![CDATA[Code]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="Table_TD" height="60">
							<textField>
								<reportElement x="0" y="0" width="110" height="60" uuid="47022bcb-1168-4f25-a2a0-82ca8d73d060"/>
								<textElement textAlignment="Left" verticalAlignment="Top">
									<paragraph leftIndent="5"/>
								</textElement>
								<textFieldExpression><![CDATA[$F{at_boSamo__code}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="120" uuid="d027ed2f-05d7-4ee5-b4f7-b1f05caa9b0c">
						<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column2"/>
						<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="120" height="30" uuid="2225f429-7892-4152-a9fd-511a75f8507f"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font size="14" isBold="true"/>
								</textElement>
								<text><![CDATA[Priority]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="Table_TD" height="60">
							<textField>
								<reportElement x="0" y="0" width="120" height="60" uuid="93dd80b9-4483-4bad-998b-28f471cd1c22"/>
								<textElement textAlignment="Left">
									<paragraph leftIndent="5"/>
								</textElement>
								<textFieldExpression><![CDATA[$F{at_defBoDefect__c_priority.ca_priority__description}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="320" uuid="090abefa-ac8c-4c59-84fc-88d70ebf62a6">
						<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column3"/>
						<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="320" height="30" uuid="3eb48335-b2bb-446b-aa0c-53248860cf07"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font size="14" isBold="true"/>
								</textElement>
								<text><![CDATA[Activity]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="Table_TD" height="60">
							<componentElement>
								<reportElement x="0" y="0" width="320" height="60" uuid="b05cdb1f-8fa5-4c19-95da-c7d223612243">
									<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/>
									<property name="com.jaspersoft.studio.table.style.table_header" value="Table 1_TH"/>
									<property name="com.jaspersoft.studio.table.style.column_header" value="Table 1_CH"/>
									<property name="com.jaspersoft.studio.table.style.detail" value="Table 1_TD"/>
								</reportElement>
								<jr:table>
									<datasetRun subDataset="ItemsDataset" uuid="276e8595-b7b5-4469-b736-25c307b7552e">
										<datasetParameter name="REPORT_CONNECTION">
											<datasetParameterExpression><![CDATA[$P{REPORT_CONNECTION}]]></datasetParameterExpression>
										</datasetParameter>
										<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonDataSource) $P{REPORT_DATA_SOURCE}).subDataSource("related")]]></dataSourceExpression>
									</datasetRun>
									<jr:column width="100" uuid="b671032a-5a37-4ee5-9f08-0ca8490f1210">
										<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column1"/>
										<jr:columnHeader style="Table 1_CH" height="30" rowSpan="1">
											<staticText>
												<reportElement x="0" y="0" width="100" height="30" uuid="e139769b-e3b0-4012-84fc-9562066dd4fd"/>
												<textElement textAlignment="Center" verticalAlignment="Middle">
													<font size="12" isBold="true"/>
												</textElement>
												<text><![CDATA[Type]]></text>
											</staticText>
										</jr:columnHeader>
										<jr:detailCell style="Table 1_TD" height="30">
											<textField>
												<reportElement x="0" y="0" width="100" height="30" uuid="7a427261-4fad-4388-998b-12457afaba6c"/>
												<textElement>
													<paragraph lineSpacingSize="1.0" leftIndent="5"/>
												</textElement>
												<textFieldExpression><![CDATA[$F{at_defDefectActivity__c_activity_type.ca_defActivityType__description}]]></textFieldExpression>
											</textField>
										</jr:detailCell>
									</jr:column>
									<jr:column width="100" uuid="dca19c68-11d5-4db4-a522-53feeddb52b3">
										<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column2"/>
										<jr:columnHeader style="Table 1_CH" height="30" rowSpan="1">
											<staticText>
												<reportElement x="0" y="0" width="100" height="30" uuid="5c2adf1e-fe1c-419a-940c-feea6652ddbf"/>
												<textElement textAlignment="Center" verticalAlignment="Middle">
													<font size="12" isBold="true"/>
												</textElement>
												<text><![CDATA[Note]]></text>
											</staticText>
										</jr:columnHeader>
										<jr:detailCell style="Table 1_TD" height="30">
											<textField isBlankWhenNull="true">
												<reportElement x="0" y="0" width="100" height="30" uuid="a8a11651-efb7-4e86-816a-1b7df68e81d2"/>
												<textElement>
													<paragraph lineSpacingSize="1.0" leftIndent="5"/>
												</textElement>
												<textFieldExpression><![CDATA[$F{at_defDefectActivity__note}]]></textFieldExpression>
											</textField>
										</jr:detailCell>
									</jr:column>
									<jr:column width="120" uuid="273d1a77-9e41-4cb0-ac25-23d5b01e2572">
										<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column3"/>
										<jr:columnHeader style="Table 1_CH" height="30" rowSpan="1">
											<staticText>
												<reportElement x="0" y="0" width="120" height="30" uuid="d6168ef5-f449-484d-a1f4-7a7698b07d2b"/>
												<textElement textAlignment="Center" verticalAlignment="Middle">
													<font size="12" isBold="true"/>
												</textElement>
												<text><![CDATA[From DB]]></text>
											</staticText>
										</jr:columnHeader>
										<jr:detailCell style="Table 1_TD" height="30">
											<componentElement>
												<reportElement x="0" y="0" width="120" height="30" uuid="7b3a04f4-496f-457f-b722-72a6db39a82c">
													<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/>
													<property name="com.jaspersoft.studio.table.style.table_header" value="Table 2_TH"/>
													<property name="com.jaspersoft.studio.table.style.column_header" value="Table 2_CH"/>
													<property name="com.jaspersoft.studio.table.style.detail" value="Table 2_TD"/>
													<property name="net.sf.jasperreports.export.headertoolbar.table.name" value=""/>
												</reportElement>
												<jr:table>
													<datasetRun subDataset="DbDataset" uuid="b094edbe-39ea-4d6a-b9fa-bc8443d4fb39">
														<datasetParameter name="REPORT_CONNECTION">
															<datasetParameterExpression><![CDATA[$P{REPORT_CONNECTION}]]></datasetParameterExpression>
														</datasetParameter>
														<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
													</datasetRun>
													<jr:column width="60" uuid="3a80d1bd-aaaf-439c-a199-c09e0906fe37">
														<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column1"/>
														<jr:detailCell style="Table 2_TD" height="30">
															<textField>
																<reportElement x="0" y="0" width="60" height="30" uuid="f26ddcb7-ac3a-4f09-a1e7-4ed2885a5a66"/>
																<textElement>
																	<paragraph leftIndent="5"/>
																</textElement>
																<textFieldExpression><![CDATA[$F{code}]]></textFieldExpression>
															</textField>
														</jr:detailCell>
													</jr:column>
													<jr:column width="60" uuid="11e4ebe4-c6c1-496a-9270-e499eda13381">
														<property name="com.jaspersoft.studio.components.table.model.column.name" value="Column2"/>
														<jr:detailCell style="Table 2_TD" height="30">
															<textField>
																<reportElement x="0" y="0" width="60" height="30" uuid="306d2d27-7666-4830-9533-30694f77f53b"/>
																<textElement>
																	<paragraph leftIndent="5"/>
																</textElement>
																<textFieldExpression><![CDATA[$F{description}]]></textFieldExpression>
															</textField>
														</jr:detailCell>
													</jr:column>
												</jr:table>
											</componentElement>
										</jr:detailCell>
									</jr:column>
								</jr:table>
							</componentElement>
						</jr:detailCell>
					</jr:column>
				</jr:table>
			</componentElement>
		</band>
	</detail>
	<pageFooter>
		<band height="23">
			<textField>
				<reportElement x="430" y="0" width="80" height="20" uuid="8abb948e-d886-4bcc-a700-d5dbb44da05d"/>
				<textElement textAlignment="Right">
					<font size="10" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement x="510" y="0" width="40" height="20" uuid="b79f12c1-8dac-466b-8347-69df7b9bd453"/>
				<textElement>
					<font size="10" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField pattern="EEEEE dd MMMMM yyyy">
				<reportElement x="0" y="0" width="197" height="20" uuid="33c1c641-a393-4c68-b9fe-362e59edf349"/>
				<textElement>
					<font size="10" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
</jasperReport>
