<?xml version="1.0" encoding="utf-8" standalone="no"?>
<TfrxReport Version="6.7.9" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="167935" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="44593,5331555787" ReportOptions.Description.Text="" ReportOptions.LastChange="44593,8999477431" ScriptLanguage="PascalScript" ScriptText.Text="begin&#13;&#10;&#13;&#10;end.">
  <Datasets>
    <item DataSet="tbRelatorio" DataSetName="tbRelatorio"/>
    <item DataSet="TbEmpresa" DataSetName="TbEmpresa"/>
  </Datasets>
  <Variables>
    <item Name="Empresa" Value="'_002'"/>
    <item Name="Layout" Value="'RelRankClienteQtde'"/>
    <item Name="PastaFotos" Value="''"/>
    <item Name="Usuario" Value="'SISPLAN'"/>
    <item Name="emp_id" Value="'2'"/>
  </Variables>
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000">
    <TfrxFDDatabase Name="Conexao" DriverName="FB" DatabaseName="C:\Sisplan\Base\14511F.FDB" Params.Text="Protocol=TCPIP&#13;&#10;Database=C:\Sisplan\Base\14511F.FDB&#13;&#10;Server=172.16.32.2&#13;&#10;Port=3050&#13;&#10;user_name=SYSDBA&#13;&#10;password=masterkey&#13;&#10;MonitorBy=Remote&#13;&#10;DriverID=FB" LoginPrompt="False" Connected="True" PropData="05704C65667402400470546F700234"/>
    <TfrxFDQuery Name="TbEmpresa" UserName="TbEmpresa" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" IgnoreDupParams="False" SQL.Text="SELECT &#13;&#10;     EMP_FANTASIA, EMP_NOME, EMP_PAT, EMP_LOGO, EMP_CNPJ, EMP_ENDERECO, &#13;&#10;     EMP_NUMERO, EMP_BAIRRO, EMP_CIDADE, EMP_ESTADO, EMP_CEP      &#13;&#10;FROM EMPRESA &#13;&#10;     WHERE EMP_ID = :EMP_ID" MacroCreate="True" MacroExpand="True" ReadOnly="False" Database="Conexao" Left="128" Top="52">
      <Parameters>
        <item Name="EMP_ID" DataType="ftInteger" Expression="&#60;EMP_ID&#62;"/>
      </Parameters>
    </TfrxFDQuery>
  </TfrxDataPage>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" Frame.Typ="0" MirrorMode="0" HGuides.Text="" VGuides.Text="">
    <TfrxMasterData Name="MasterData1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="22,67718" Left="0" Top="226,7718" Width="718,1107" ColumnWidth="0" ColumnGap="0" DataSet="tbRelatorio" DataSetName="tbRelatorio" RowCount="0">
      <TfrxMemoView Name="tbRelatorioCODREP" IndexTag="1" AllowVectorExport="True" Left="2" Top="0" Width="438,42548" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="[&#60;tbRelatorio.&#34;CODCLI&#34;&#62;] - [&#60;tbRelatorio.&#34;NOME&#34;&#62;]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="tbRelatorioQUANTIDADE" IndexTag="1" AllowVectorExport="True" Left="446,98454" Top="0" Width="102,04731" Height="18,89765" DataField="QUANTIDADE" DataSet="tbRelatorio" DataSetName="tbRelatorio" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="[tbRelatorio.&#34;QUANTIDADE&#34;]"/>
      <TfrxMemoView Name="tbRelatorioVALOR" IndexTag="1" AllowVectorExport="True" Left="560,37044" Top="0" Width="151,1812" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="[tbRelatorio.&#34;VALOR&#34;]"/>
    </TfrxMasterData>
    <TfrxReportTitle Name="ReportTitle1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="102,04731" Left="0" Top="18,89765" Width="718,1107">
      <TfrxMemoView Name="Memo23" AllowVectorExport="True" Left="617,85869" Top="24,33859" Width="98,26778" Height="15,11812" Font.Charset="1" Font.Color="-16777208" Font.Height="-8" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="Pag.: [&#60;Page#&#62;] / [&#60;TotalPages#&#62;]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="Memo18" AllowVectorExport="True" Left="618,07916" Top="35,77953" Width="98,26778" Height="15,11812" Font.Charset="1" Font.Color="-16777208" Font.Height="-8" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="[Usuario]"/>
      <TfrxMemoView Name="Memo19" AllowVectorExport="True" Left="1" Top="74,7953" Width="714,33117" Height="26,45671" DataSetName="tbEmpresa" Font.Charset="1" Font.Color="-16777208" Font.Height="-15" Font.Name="Arial" Font.Style="5" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="RANKING POR CLIENTE (QTDE)"/>
      <TfrxMemoView Name="tbEmpresaEMP_NOME" AllowVectorExport="True" Left="122,77953" Top="2,66141" Width="483,77984" Height="41,57483" DataSetName="tbEmpresa" Font.Charset="1" Font.Color="-16777208" Font.Height="-15" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="[TbEmpresa.&#34;EMP_NOME&#34;]-[TbEmpresa.&#34;EMP_CNPJ&#34;]"/>
      <TfrxMemoView Name="Memo20" AllowVectorExport="True" Left="618,07916" Top="14,10235" Width="98,26778" Height="15,11812" Font.Charset="1" Font.Color="-16777208" Font.Height="-8" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[Date] - [Time]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="Memo28" AllowVectorExport="True" Left="122,77953" Top="40,89765" Width="483,77984" Height="15,11812" DataSetName="tbEmpresa" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="[TbEmpresa.&#34;EMP_ENDERECO&#34;], [TbEmpresa.&#34;EMP_NUMERO&#34;], [TbEmpresa.&#34;EMP_BAIRRO&#34;], [TbEmpresa.&#34;EMP_CIDADE&#34;]([TbEmpresa.&#34;EMP_ESTADO&#34;]) - [TbEmpresa.&#34;EMP_CEP&#34;]">
        <Formats>
          <item/>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxPictureView Name="Picture2" AllowVectorExport="True" Left="7,22047" Top="1" Width="105,82684" Height="68,03154" Center="True" DataField="EMP_LOGO" DataSetName="tbEmpresa" Frame.Typ="0" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
      <TfrxMemoView Name="Memo29" AllowVectorExport="True" Left="618,07916" Top="48,45671" Width="98,26778" Height="15,11812" Font.Charset="1" Font.Color="-16777208" Font.Height="-8" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="[Layout]"/>
    </TfrxReportTitle>
    <TfrxHeader Name="Header1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="22,67718" Left="0" Top="181,41744" Width="718,1107">
      <TfrxMemoView Name="Memo1" IndexTag="1" AllowVectorExport="True" Left="2" Top="1" Width="438,42548" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="PRODUTO"/>
      <TfrxMemoView Name="Memo2" IndexTag="1" AllowVectorExport="True" Left="446,98454" Top="1" Width="102,04731" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="QUANTIDADE"/>
      <TfrxMemoView Name="Memo3" IndexTag="1" AllowVectorExport="True" Left="560,37044" Top="1" Width="151,1812" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="VALOR"/>
    </TfrxHeader>
    <TfrxPageFooter Name="PageFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="18,89765" Left="0" Top="355,27582" Width="718,1107">
      <TfrxMemoView Name="Memo36" AllowVectorExport="True" Left="0" Top="0" Width="718,1107" Height="11,33859" Font.Charset="1" Font.Color="-16777208" Font.Height="-8" Font.Name="Arial" Font.Style="0" Frame.Typ="4" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="Sisplan Sistemas e Planejamento LTDA - (47) 3380-6100  - www.sisplansistemas.com.br"/>
    </TfrxPageFooter>
    <TfrxReportSummary Name="ReportSummary1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="22,67718" Left="0" Top="309,92146" Width="718,1107">
      <TfrxMemoView Name="Memo4" IndexTag="1" AllowVectorExport="True" Left="390,29159" Top="0" Width="158,74026" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="Totais:     [SUM(&#60;tbRelatorio.&#34;QUANTIDADE&#34;&#62;,MasterData1,1)]"/>
      <TfrxMemoView Name="Memo5" IndexTag="1" AllowVectorExport="True" Left="560,37044" Top="0" Width="151,1812" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="R$ [SUM(&#60;tbRelatorio.&#34;VALOR&#34;&#62;,MasterData1,1)]"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
