<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.9.0.final using JasperReports Library version 6.9.0-cb8f9004be492ccc537180b49c026951f4220bf3  -->
<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="user_accounts" pageWidth="810" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="810" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" whenResourceMissingType="Empty" isIgnorePagination="true" uuid="53ee4624-8ac8-49f2-a973-c9ccb4285695">
	<property name="com.jaspersoft.studio.data.defaultdataadapter" value="ervu-account-applications"/>
	<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
	<property name="com.jaspersoft.studio.unit." value="pixel"/>
	<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
	<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
	<property name="net.sf.jasperreports.export.csv.field.delimiter" value=";"/>
	<property name="com.jaspersoft.studio.data.sql.SQLQueryDesigner.sash.w1" value="250"/>
	<property name="com.jaspersoft.studio.data.sql.SQLQueryDesigner.sash.w2" value="744"/>
	<parameter name="user_account_id_array" class="java.lang.String"/>
	<queryString>
		<![CDATA[WITH RECURSIVE addinfo as
(select secondname,firstname,middlename,sex,birth_date,snils,job_position,user_login,user_application_list_id from public.user_application_list 
where user_application_list_id IN (select unnest(array[cast($P{user_account_id_array} as bigint[])])) and application_status = 'IN_PROGRESS'
and application_kind = 'CREATE_USER')
select
addinfo.user_application_list_id,
addinfo.secondname as last_name,
addinfo.firstname as first_name,
addinfo.middlename as middle_name,
addinfo.sex,
to_char(addinfo.birth_date, 'dd.mm.yyyy') as birth_date,
addinfo.snils,
addinfo.job_position as position,
addinfo.user_login as username,
array_to_string(ARRAY(select COALESCE(link_ip.ip_address,' ') from public.link_user_application_ip_address as link_ip
where link_ip.user_application_list_id=addinfo.user_application_list_id),',') as ip_address
from addinfo order by addinfo.user_application_list_id ASC]]>
	</queryString>
	<field name="user_application_list_id" class="java.lang.Long">
		<property name="com.jaspersoft.studio.field.label" value="user_application_list_id"/>
	</field>
	<field name="last_name" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="last_name"/>
		<property name="com.jaspersoft.studio.field.name" value="last_name"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="user_account"/>
	</field>
	<field name="first_name" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="first_name"/>
		<property name="com.jaspersoft.studio.field.name" value="first_name"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="user_account"/>
	</field>
	<field name="middle_name" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="middle_name"/>
		<property name="com.jaspersoft.studio.field.name" value="middle_name"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="user_account"/>
	</field>
	<field name="sex" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="sex"/>
		<property name="com.jaspersoft.studio.field.name" value="sex"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="user_account_addition_info"/>
	</field>
	<field name="birth_date" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="birth_date"/>
		<property name="com.jaspersoft.studio.field.name" value="birth_date"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="user_account_addition_info"/>
	</field>
	<field name="snils" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="snils"/>
		<property name="com.jaspersoft.studio.field.name" value="snils"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="user_account_addition_info"/>
	</field>
	<field name="position" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="position"/>
		<property name="com.jaspersoft.studio.field.name" value="position"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="user_group"/>
	</field>
	<field name="username" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="username"/>
		<property name="com.jaspersoft.studio.field.name" value="username"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="user_account"/>
	</field>
	<field name="ip_address" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="ip_address"/>
		<property name="com.jaspersoft.studio.field.name" value="ip_address"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="user_account_addition_info"/>
	</field>
	<background>
		<band splitType="Stretch"/>
	</background>
	<columnHeader>
		<band height="27" splitType="Stretch">
			<staticText>
				<reportElement x="0" y="0" width="90" height="27" uuid="6f88de52-a2f3-42f3-b787-3b77e8bdf4bb">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="36959144-1a1e-4baa-8457-9510561c1bc6"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<text><![CDATA[surname]]></text>
			</staticText>
			<staticText>
				<reportElement x="90" y="0" width="90" height="27" uuid="c54be854-01c1-407e-ae4a-b7cf32fb3a8d">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="5573bbaf-5fdf-424e-8482-cfc51956034f"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<text><![CDATA[firstname]]></text>
			</staticText>
			<staticText>
				<reportElement x="180" y="0" width="90" height="27" uuid="576f1496-63b5-4a57-8773-80a9acc802e5">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="7396eaf6-cdf6-4aab-83d6-9fefa152ab24"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<text><![CDATA[middlename]]></text>
			</staticText>
			<staticText>
				<reportElement x="270" y="0" width="90" height="27" uuid="a1de02b6-bc66-448d-9e2c-b481ebf18e2e">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="0e2b0f35-8315-47c0-a199-6c0742660ea0"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<text><![CDATA[sex]]></text>
			</staticText>
			<staticText>
				<reportElement x="360" y="0" width="90" height="27" uuid="68ccf32c-a541-415e-90ec-fbc16c30a2ed">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="03975797-6fca-474f-b1fe-f8be7a279b89"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<text><![CDATA[birthdate]]></text>
			</staticText>
			<staticText>
				<reportElement x="450" y="0" width="90" height="27" uuid="5634fc44-1bfd-4f19-9047-0bf9f942a985">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="4674f765-0913-42e5-a8f2-7883ad8a76f3"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<text><![CDATA[snils]]></text>
			</staticText>
			<staticText>
				<reportElement x="540" y="0" width="90" height="27" uuid="b6228a6b-6062-4fd9-ac59-dd3562a1741d">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="e6385651-b744-4df9-b078-616b640d7011"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<text><![CDATA[position]]></text>
			</staticText>
			<staticText>
				<reportElement x="630" y="0" width="90" height="27" uuid="39f10317-338e-4cd8-8f11-73b262946fa8">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="7d1d2327-6dc8-4913-8638-308ef3efb777"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<text><![CDATA[username]]></text>
			</staticText>
			<staticText>
				<reportElement x="720" y="0" width="90" height="27" uuid="2da81210-ffe3-4b95-b69c-3239d6d46798">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="26a466ef-208f-4434-8575-6a78f537ab83"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<text><![CDATA[ipAddress]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="30" splitType="Stretch">
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement positionType="Float" stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" x="0" y="0" width="90" height="30" uuid="d37a34b3-dd52-4a32-bd0c-21882d8704c7">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="36959144-1a1e-4baa-8457-9510561c1bc6"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{last_name}!=null?$F{last_name}:""]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="90" y="0" width="90" height="30" uuid="03e2f667-e360-4f13-b737-b324cebec401">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="5573bbaf-5fdf-424e-8482-cfc51956034f"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{first_name}!=null?$F{first_name}:""]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="180" y="0" width="90" height="30" uuid="d78a7499-3000-40e0-baa7-bfa254a6d233">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="7396eaf6-cdf6-4aab-83d6-9fefa152ab24"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{middle_name}!=null?$F{middle_name}:""]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="270" y="0" width="90" height="30" uuid="82ee42b2-7214-4277-9301-b541b4486567">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="0e2b0f35-8315-47c0-a199-6c0742660ea0"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{sex}!=null?$F{sex}:""]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="360" y="0" width="90" height="30" uuid="27dc9e76-7b4c-45f9-aaa1-e897e9aee861">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="03975797-6fca-474f-b1fe-f8be7a279b89"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{birth_date}!=null? $F{birth_date}:""]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="450" y="0" width="90" height="30" uuid="7f2307ba-fc27-48f6-88c3-84ecb7ecc6b0">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="4674f765-0913-42e5-a8f2-7883ad8a76f3"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{snils}!=null?$F{snils}:""]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="540" y="0" width="90" height="30" uuid="bdcba14a-f63f-4f8b-938e-1bf6c57dd147">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="e6385651-b744-4df9-b078-616b640d7011"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{position}!=null?$F{position}:""]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="630" y="0" width="90" height="30" uuid="bed572dc-b206-47ff-9149-a44689d24f9c">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="7d1d2327-6dc8-4913-8638-308ef3efb777"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{username}!=null?$F{username}:""]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="720" y="0" width="90" height="30" uuid="fbbef853-b346-4d7e-b081-86a2844e2092">
					<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="26a466ef-208f-4434-8575-6a78f537ab83"/>
					<property name="com.jaspersoft.studio.unit.width" value="px"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{ip_address}!=null?$F{ip_address}:""]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<noData>
		<band height="30">
			<textField>
				<reportElement x="0" y="0" width="810" height="30" uuid="059d7280-f6eb-4519-8036-02681c64ca6b"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$P{user_account_id_array}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
