﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<StiSerializer version="1.02" type="Net" application="StiReport">
  <CalculationMode>Interpretation</CalculationMode>
  <Dictionary Ref="1" type="Dictionary" isKey="true">
    <BusinessObjects isList="true" count="0" />
    <Databases isList="true" count="1">
      <MS_x0020_SQL Ref="2" type="Stimulsoft.Report.Dictionary.StiSqlDatabase" isKey="true">
        <Alias>MS SQL</Alias>
        <ConnectionStringEncrypted>9DCf60ZWMYVgW6zcdwBgTtHI2QJOaNOFaxol7OAlbWPdeOECXkuT5Wtc/YBhbKAqxVrRoWcDo5nLCNGcZFykcsRscQlGXNMJwhmh8cQB9i/RcMHjVV1LrUVJ+YRp7G1/wlS7oWJXS83tE+Xcw2ykKthg9ShPWXttRkSkxGcp9Y/y1tktWlZ78cxP</ConnectionStringEncrypted>
        <Key>32058441ce354630a47c77995d5147b1</Key>
        <Name>MS SQL</Name>
      </MS_x0020_SQL>
    </Databases>
    <DataSources isList="true" count="1">
      <Customer_Info Ref="3" type="Stimulsoft.Report.Dictionary.StiSqlSource" isKey="true">
        <Alias>Customer_Info</Alias>
        <Columns isList="true" count="4">
          <value>Cust_Id,System.Int32</value>
          <value>Cust_Name,System.String</value>
          <value>Adress,System.String</value>
          <value>Finans,System.String</value>
        </Columns>
        <CommandTimeout>30</CommandTimeout>
        <Dictionary isRef="1" />
        <Key>1b2cb64424e94451b86059dca3ebc6d8</Key>
        <Name>Customer_Info</Name>
        <NameInSource>MS SQL</NameInSource>
        <Parameters isList="true" count="0" />
        <SqlCommand>-- Test request to fill customer data
--Customer_Info_(DataSource)--

-- Customer List --
DECLARE @List_Customer table(Cust_Id INT, Cust_Name varchar(100))
INSERT INTO @List_Customer (Cust_Id, Cust_Name)
SELECT 	1, 'Customer_1'	UNION				
SELECT	2, 'Customer_2' UNION 
SELECT	3, 'Customer_3'

-- Customer Settings List --
DECLARE  @List_Customer_Settings table(Settings_Id INT, Settings_Name  varchar(100), Settings_Text_Info  nvarchar(4000),  Cust_Id INT )
INSERT INTO @List_Customer_Settings (Settings_Id, Settings_Name, Settings_Text_Info,  Cust_Id)
SELECT 	1, 'Finans', 'At the expense of the funds received by the Customer from the compulsory medical insurance fund',  1	UNION
SELECT	1, 'Finans', 'Payment under the Contract is made at the expense of funds received by the customer from TFOMS for 2020', 2 UNION
SELECT	1, 'Finans', 'Funds received by the customer from the compulsory medical insurance fund, from the national budget, from funds from other income-generating activities.' , 3	UNION
SELECT 	2, 'Adress', 'C.B.D. Library, and Subscriptions Service,P.O Box 255,Plympton,South Australia 5038',  1	UNION
SELECT	2, 'Adress', 'Troyka Limited, 799 College Street, Toronto, Ontario, Canada M8G IC7', 2 UNION
SELECT	2, 'Adress', '14 Rue de Provigny, 94236 Cachan Cedex' , 3


SELECT 
	lc.Cust_Id
	,lc.Cust_Name
	,(SELECT top 1 Settings_Text_Info FROM @List_Customer_Settings lcs WHERE lcs.Cust_Id = lc.Cust_Id AND lcs.Settings_Name = 'Adress') AS Adress
,(SELECT top 1 Settings_Text_Info FROM @List_Customer_Settings lcs WHERE lcs.Cust_Id = lc.Cust_Id AND lcs.Settings_Name = 'Finans') AS Finans

	FROM  @List_Customer lc 

	ORDER BY lc.Cust_Id		
</SqlCommand>
      </Customer_Info>
    </DataSources>
    <Relations isList="true" count="0" />
    <Report isRef="0" />
    <Resources isList="true" count="0" />
    <Variables isList="true" count="0" />
  </Dictionary>
  <EngineVersion>EngineV2</EngineVersion>
  <GlobalizationStrings isList="true" count="0" />
  <Key>0c7d98842bf24c7e8474bbf915a3f3a2</Key>
  <MetaTags isList="true" count="0" />
  <Pages isList="true" count="1">
    <Page1 Ref="4" type="Page" isKey="true">
      <Border>None;Black;2;Solid;False;4;Black</Border>
      <Brush>Transparent</Brush>
      <Components isList="true" count="1">
        <DataBand2 Ref="5" type="DataBand" isKey="true">
          <Brush>Transparent</Brush>
          <ClientRectangle>0,4,277,24</ClientRectangle>
          <Components isList="true" count="2">
            <CrossHeaderBand1 Ref="6" type="Stimulsoft.Report.Components.StiCrossHeaderBand" isKey="true">
              <Brush>Red</Brush>
              <ClientRectangle>0,0,50,24</ClientRectangle>
              <Components isList="true" count="3">
                <Finans_Label Ref="7" type="Text" isKey="true">
                  <Border>All;Black;1;Solid;False;4;Black</Border>
                  <Brush>[247:150:70]</Brush>
                  <CanGrow>True</CanGrow>
                  <ClientRectangle>0,4,50,4</ClientRectangle>
                  <Conditions isList="true" count="0" />
                  <Expressions isList="true" count="0" />
                  <Font>Arial,9,Bold</Font>
                  <GrowToHeight>True</GrowToHeight>
                  <Margins>0,0,0,0</Margins>
                  <Name>Finans_Label</Name>
                  <Page isRef="4" />
                  <Parent isRef="6" />
                  <Text>Finans</Text>
                  <TextBrush>Black</TextBrush>
                  <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
                  <Type>Expression</Type>
                </Finans_Label>
                <Adress_Label Ref="8" type="Text" isKey="true">
                  <Border>All;Black;1;Solid;False;4;Black</Border>
                  <Brush>[146:205:220]</Brush>
                  <CanGrow>True</CanGrow>
                  <ClientRectangle>0,8,50,4</ClientRectangle>
                  <Conditions isList="true" count="0" />
                  <Expressions isList="true" count="0" />
                  <Font>Arial,9,Bold</Font>
                  <GrowToHeight>True</GrowToHeight>
                  <Margins>0,0,0,0</Margins>
                  <Name>Adress_Label</Name>
                  <Page isRef="4" />
                  <Parent isRef="6" />
                  <Text>Adress</Text>
                  <TextBrush>Black</TextBrush>
                  <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
                  <Type>Expression</Type>
                </Adress_Label>
                <Customer_Name_Label Ref="9" type="Text" isKey="true">
                  <Border>All;Black;1;Solid;False;4;Black</Border>
                  <Brush>[204:193:217]</Brush>
                  <CanShrink>True</CanShrink>
                  <ClientRectangle>0,0,50,4</ClientRectangle>
                  <Conditions isList="true" count="0" />
                  <Expressions isList="true" count="0" />
                  <Font>Arial,9,Bold</Font>
                  <GrowToHeight>True</GrowToHeight>
                  <Margins>0,0,0,0</Margins>
                  <Name>Customer_Name_Label</Name>
                  <Page isRef="4" />
                  <Parent isRef="6" />
                  <Text>Customer_Name</Text>
                  <TextBrush>Black</TextBrush>
                  <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
                  <Type>Expression</Type>
                </Customer_Name_Label>
              </Components>
              <Conditions isList="true" count="0" />
              <Expressions isList="true" count="0" />
              <Name>CrossHeaderBand1</Name>
              <Page isRef="4" />
              <Parent isRef="5" />
            </CrossHeaderBand1>
            <CrossDataBand2 Ref="10" type="CrossDataBand" isKey="true">
              <Brush>[146:208:80]</Brush>
              <BusinessObjectGuid isNull="true" />
              <ClientRectangle>50,0,56,24</ClientRectangle>
              <Components isList="true" count="3">
                <Finans_Text Ref="11" type="Text" isKey="true">
                  <Border>All;Black;1;Solid;False;4;Black</Border>
                  <Brush>[247:150:70]</Brush>
                  <CanGrow>True</CanGrow>
                  <ClientRectangle>0,4,56,4</ClientRectangle>
                  <Conditions isList="true" count="0" />
                  <Expressions isList="true" count="0" />
                  <Font>Arial,9,Bold</Font>
                  <GrowToHeight>True</GrowToHeight>
                  <Margins>0,0,0,0</Margins>
                  <Name>Finans_Text</Name>
                  <Page isRef="4" />
                  <Parent isRef="10" />
                  <Text>{Line} - {Customer_Info.Finans}</Text>
                  <TextBrush>Black</TextBrush>
                  <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
                  <Type>Expression</Type>
                </Finans_Text>
                <Adress_Text Ref="12" type="Text" isKey="true">
                  <Border>All;Black;1;Solid;False;4;Black</Border>
                  <Brush>[146:205:220]</Brush>
                  <CanGrow>True</CanGrow>
                  <ClientRectangle>0,8,56,4</ClientRectangle>
                  <Conditions isList="true" count="0" />
                  <Expressions isList="true" count="0" />
                  <Font>Arial,9,Bold</Font>
                  <GrowToHeight>True</GrowToHeight>
                  <Margins>0,0,0,0</Margins>
                  <Name>Adress_Text</Name>
                  <Page isRef="4" />
                  <Parent isRef="10" />
                  <Text>{Line} - {Customer_Info.Adress}</Text>
                  <TextBrush>Black</TextBrush>
                  <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
                  <Type>Expression</Type>
                </Adress_Text>
                <Customer_Name_Text Ref="13" type="Text" isKey="true">
                  <Border>All;Black;1;Solid;False;4;Black</Border>
                  <Brush>[204:193:217]</Brush>
                  <CanGrow>True</CanGrow>
                  <ClientRectangle>0,0,56,4</ClientRectangle>
                  <Conditions isList="true" count="0" />
                  <Expressions isList="true" count="0" />
                  <Font>Arial,9,Bold</Font>
                  <GrowToHeight>True</GrowToHeight>
                  <Margins>0,0,0,0</Margins>
                  <Name>Customer_Name_Text</Name>
                  <Page isRef="4" />
                  <Parent isRef="10" />
                  <Text>{Line} - {Customer_Info.Cust_Name}</Text>
                  <TextBrush>Black</TextBrush>
                  <TextOptions>,,,,WordWrap=True,A=0</TextOptions>
                  <Type>Expression</Type>
                </Customer_Name_Text>
              </Components>
              <Conditions isList="true" count="0" />
              <DataRelationName isNull="true" />
              <DataSourceName>Customer_Info</DataSourceName>
              <Expressions isList="true" count="0" />
              <Filters isList="true" count="0" />
              <Name>CrossDataBand2</Name>
              <Page isRef="4" />
              <Parent isRef="5" />
              <Sort isList="true" count="0" />
            </CrossDataBand2>
          </Components>
          <Conditions isList="true" count="0" />
          <DataRelationName isNull="true" />
          <Expressions isList="true" count="0" />
          <Filters isList="true" count="0" />
          <Name>DataBand2</Name>
          <Page isRef="4" />
          <Parent isRef="4" />
          <PrintOnAllPages>True</PrintOnAllPages>
          <Sort isList="true" count="0" />
        </DataBand2>
      </Components>
      <Conditions isList="true" count="0" />
      <Expressions isList="true" count="0" />
      <Guid>d95ca1de5a4c41a0a5501cd0894d5556</Guid>
      <Margins>10,10,10,10</Margins>
      <Name>Page1</Name>
      <Orientation>Landscape</Orientation>
      <PageHeight>210</PageHeight>
      <PageWidth>297</PageWidth>
      <PaperSize>A4</PaperSize>
      <Report isRef="0" />
    </Page1>
  </Pages>
  <ReferencedAssemblies isList="true" count="8">
    <value>System.Dll</value>
    <value>System.Drawing.Dll</value>
    <value>System.Windows.Forms.Dll</value>
    <value>System.Data.Dll</value>
    <value>System.Xml.Dll</value>
    <value>Stimulsoft.Controls.Dll</value>
    <value>Stimulsoft.Base.Dll</value>
    <value>Stimulsoft.Report.Dll</value>
  </ReferencedAssemblies>
  <ReportAlias>Cross_Data_test_v1</ReportAlias>
  <ReportAuthor>rvv</ReportAuthor>
  <ReportChanged>10/11/2021 3:53:08 PM</ReportChanged>
  <ReportCreated>9/23/2019 4:00:43 PM</ReportCreated>
  <ReportDescription>Cross_Data_test_v1</ReportDescription>
  <ReportFile>D:\Tools\Requests_to_Support_StimulSoft\Cross_Data_test_v1.mrt</ReportFile>
  <ReportGuid>3d61ca90a0344ded896d1ea4b084d0bf</ReportGuid>
  <ReportName>Cross_Data_test_v1</ReportName>
  <ReportUnit>Millimeters</ReportUnit>
  <ReportVersion>2020.5.2.0</ReportVersion>
  <Script>using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;

namespace Reports
{
    public class Cross_Data_test_v1 : Stimulsoft.Report.StiReport
    {
        public Cross_Data_test_v1()        {
            this.InitializeComponent();
	
			
        }

        #region StiReport Designer generated code - do not modify
		#endregion StiReport Designer generated code - do not modify
    }
}
</Script>
  <ScriptLanguage>CSharp</ScriptLanguage>
  <Styles isList="true" count="0" />
</StiSerializer>