﻿<?xml version="1.0" encoding="utf-8" ?>
<Root>
  <Styles>
	 <Style ID="Default" FontName="Arial" FontSize="12" FontColor="000000" IsBold="False" IsItalic="False" IsStrike="False" IsUnderline="False" Language="pl-PL" SpacingBefore="0" SpacingAfter="0" Justification="Left" IndentationLeft="0" />
	 <Style ID="PageTitle" FontName="Arial" FontSize="18" FontColor="FFFFFF" IsBold="True" IsItalic="False" IsStrike="False" IsUnderline="False" Language="pl-PL" SpacingBefore="100" SpacingAfter="20" Justification="Center" IndentationLeft="0"/>
	 <Style ID="TableTitle" FontName="Arial" FontSize="16" FontColor="000000" IsBold="True" IsItalic="False" IsStrike="False" IsUnderline="False" Language="pl-PL" SpacingBefore="100" SpacingAfter="20" Justification="Center" IndentationLeft="0"/>
	 <Style ID="TableHeader" FontName="Arial" FontSize="12" FontColor="000000" IsBold="True" IsItalic="False" IsStrike="False" IsUnderline="False" Language="pl-PL" SpacingBefore="5" SpacingAfter="5" Justification="Left" IndentationLeft="0"/>
	 <StyleCell ID="CellDefault" BackgroundColor="FFFFFF" BorderSize="0" BorderColor="000000"/>
	 <StyleCell ID="CellPageTitle" BackgroundColor="428BCA" BorderSize="0" BorderColor="000000"/>
	 <StyleCell ID="CellHeader" BackgroundColor="428BCA" BorderSize="0" BorderColor="428BCA"/>
  </Styles>
  <Template DefaultStyle="Default" DefaultStyleCell="CellDefault">
	 <Table Columns="100">
		<Row>
		  <Column StyleCell="CellPageTitle">
			 <Paragraph Style="PageTitle" Text="Data record [[ListTitle]] [[Id]], [[AreaTitle]]"/>
		  </Column>
		</Row>
	 </Table>

	 <Paragraph Text="created [[Created]] by [[CreatedByText]]"/>
	 <Paragraph Text="edited [[Modified]] by [[ModifiedByText]]"/>
	 <NewLine/>

	 <Table Columns="100">
		<Row>
		  <Column StyleCell="CellPageTitle">
			 <Paragraph Style="PageTitle" Text="Podprocesy"/>
		  </Column>
		</Row>
	 </Table>

	 <Table Columns="10, 15, 25, 25, 25">
		<ForEach Element="Subrequest">
		  <Row>
			 <Column>
				<Paragraph Text="[[IdWithMasterIdsString]]"/>
			 </Column>
			 <Column>
				<Paragraph Text="[[SentDate]]"/>
			 </Column>
			 <Column>
				<Paragraph Text="[[SentByText]]"/>
			 </Column>
			 <Column>
				<Paragraph Text="[[CurrentStateType]]"/>
			 </Column>
			 <Column>
				<Paragraph Text="[[WaitingFor]]"/>
			 </Column>
		  </Row>
		</ForEach>
	 </Table>

	 <NewLine/>

	 <Table Columns="30,70">
		<ForEach Element="Category">
		  <Row>
			 <Column StyleCell="CellHeader">
				<Paragraph Style="TableHeader" Text="Category: [[CategoryTitle]]"/>
			 </Column>
			 <Column StyleCell="CellHeader">
				<Paragraph Style="TableHeader" Text=""/>
			 </Column>
		  </Row>
		  <ForEach Element="Field">
			 <Row>
				<Column>
				  <Paragraph Text="[[Title]]"/>
				</Column>
				<Column>
				  <Paragraph Text="[[Value]]"/>
				</Column>
			 </Row>
		  </ForEach>
		</ForEach>
	 </Table>

	 <Paragraph Style="TableTitle" Text="Changes log"/>

	 <Table Columns="10,15,10,35,30">
		<Row>
		  <Column StyleCell="CellHeader">
			 <Paragraph Style="TableHeader" Text="When"/>
		  </Column>
		  <Column StyleCell="CellHeader">
			 <Paragraph Style="TableHeader" Text="Who"/>
		  </Column>
		  <Column StyleCell="CellHeader">
			 <Paragraph Style="TableHeader" Text="Operation"/>
		  </Column>
		  <Column StyleCell="CellHeader">
			 <Paragraph Style="TableHeader" Text="Details"/>
		  </Column>
		  <Column StyleCell="CellHeader">
			 <Paragraph Style="TableHeader" Text="Comment"/>
		  </Column>
		</Row>
		<ForEach Element="Log">
		  <Row>
			 <Column>
				<Paragraph Text="[[Created]]"/>
			 </Column>
			 <Column>
				<Paragraph Text="[[CreatedByText]]"/>
			 </Column>
			 <Column>
				<Paragraph Text="[[Operation]]"/>
			 </Column>
			 <Column>
				<Paragraph Text="[[Changes]]"/>
			 </Column>
			 <Column>
				<Paragraph Text="[[Comment]]"/>
			 </Column>
		  </Row>
		</ForEach>
	 </Table>
  </Template>
</Root>