<?xml version="1.0" encoding="utf-8" standalone="no"?>
<TfrxReport Version="6.7.9" DotMatrixReport="False" EngineOptions.SilentMode="True" EngineOptions.NewSilentMode="simSilent" EngineOptions.UseFileCache="True" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="167935" PreviewOptions.Zoom="1" PrintOptions.Printer="Padrão" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="43487,3236286458" ReportOptions.Description.Text="" ReportOptions.LastChange="45104,3300586806" ScriptLanguage="PascalScript" ScriptText.Text="procedure PageHeader1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  if &#60;Page&#62; = 1 then&#13;&#10;  PageHeader1.visible := true&#13;&#10;  else&#13;&#10;  PageHeader1.visible := false;&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." ShowProgress="False" StoreInDFM="False">
  <Datasets>
    <item DataSet="tbRelatorio" DataSetName="tbRelatorio"/>
    <item DataSet="QryEmpresa" DataSetName="QryEmpresa"/>
  </Datasets>
  <Variables>
    <item Name=" Sisplan"/>
    <item Name="Empresa" Value="'_001'"/>
    <item Name="Layout" Value="'RelEstatisticas.fr3'"/>
    <item Name="PastaFotos" Value="'P:\Sisplan\projeto\Foto'"/>
    <item Name="Usuario" Value="'SISPLAN'"/>
    <item Name="emp_id" Value="'1'"/>
    <item Name="DATAFIM" Value="''"/>
    <item Name="EMP_IDS" Value="''"/>
    <item Name="CLIENTE" Value="'00472'"/>
    <item Name="TELA_ORDENACAO" Value="''"/>
    <item Name="TIPO_VENDA" Value="''"/>
    <item Name="DATAINI" Value="''"/>
  </Variables>
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000">
    <TfrxFDDatabase Name="Conexao" DriverName="FB" DatabaseName="d:/dados/bases/11554F.FDB" Params.Text="Protocol=TCPIP&#13;&#10;Database=d:/dados/bases/11554F.FDB&#13;&#10;Server=172.20.10.204&#13;&#10;Port=3051&#13;&#10;user_name=SYSDBA&#13;&#10;password=masterkey&#13;&#10;MonitorBy=Remote&#13;&#10;DriverID=FB&#13;&#10;CharacterSet=UTF8" LoginPrompt="False" Connected="false" PropData="05704C65667402280470546F700214"/>
    <TfrxFDQuery Name="QryEmpresa" UserName="QryEmpresa" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" IgnoreDupParams="False" SQL.Text="SELECT * FROM EMPRESA WHERE EMP_ID = :EMP_ID  " MacroCreate="True" MacroExpand="True" ReadOnly="False" Database="Conexao" Left="120" Top="156">
      <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="272,12616" Width="718,1107" ColumnWidth="0" ColumnGap="0" DataSet="tbRelatorio" DataSetName="tbRelatorio" RowCount="0">
      <TfrxMemoView Name="Memo29" AllowVectorExport="True" Left="0" Top="3,77953" Width="718,1107" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Style="fsDot" Frame.Typ="8" Frame.Width="0,5" HAlign="haRight" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text=""/>
      <TfrxMemoView Name="Memo7" AllowVectorExport="True" Left="0" Top="0,77953" Width="79,37013" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Arial" Highlight.Font.Style="0" Highlight.Condition="&#60;tbRelatorio.&#34;STATUS&#34;&#62; = 'CANCELADA'" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[tbRelatorio.&#34;CODVEN&#34;]"/>
      <TfrxMemoView Name="Memo8" AllowVectorExport="True" Left="81,16543" Top="0,77953" Width="105,82684" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Arial" Highlight.Font.Style="0" Highlight.Condition="&#60;tbRelatorio.&#34;STATUS&#34;&#62; = 'CANCELADA'" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[tbRelatorio.&#34;DESC_TIPO&#34;]"/>
      <TfrxMemoView Name="Memo9" AllowVectorExport="True" Left="188,78757" Top="0,77953" Width="136,06308" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Arial" Highlight.Font.Style="0" Highlight.Condition="&#60;tbRelatorio.&#34;STATUS&#34;&#62; = 'CANCELADA'" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[tbRelatorio.&#34;STATUS&#34;]"/>
      <TfrxMemoView Name="Memo10" AllowVectorExport="True" Left="333,29159" Top="0,77953" Width="79,37013" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haCenter" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Arial" Highlight.Font.Style="0" Highlight.Condition="&#60;tbRelatorio.&#34;STATUS&#34;&#62; = 'CANCELADA'" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[tbRelatorio.&#34;DATA&#34;]"/>
      <TfrxMemoView Name="Memo11" AllowVectorExport="True" Left="415,3389" Top="0,77953" Width="64,25201" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Arial" Highlight.Font.Style="0" Highlight.Condition="&#60;tbRelatorio.&#34;STATUS&#34;&#62; = 'CANCELADA'" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[tbRelatorio.&#34;QTDE&#34;]"/>
      <TfrxMemoView Name="Memo12" AllowVectorExport="True" Left="480,60668" Top="0,77953" Width="79,37013" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Arial" Highlight.Font.Style="0" Highlight.Condition="&#60;tbRelatorio.&#34;STATUS&#34;&#62; = 'CANCELADA'" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[StrToFloat(&#60;tbRelatorio.&#34;VAL_DEVOL&#34;&#62;)]"/>
      <TfrxMemoView Name="Memo22" AllowVectorExport="True" Left="565,11843" Top="0,77953" Width="64,25201" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Arial" Highlight.Font.Style="0" Highlight.Condition="&#60;tbRelatorio.&#34;STATUS&#34;&#62; = 'CANCELADA'" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[StrToFloat(&#60;tbRelatorio.&#34;VAL_CANC&#34;&#62;)]"/>
      <TfrxMemoView Name="Memo24" AllowVectorExport="True" Left="632,04762" Top="0,77953" Width="83,14966" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" Highlight.ApplyFill="False" Highlight.Font.Charset="1" Highlight.Font.Color="255" Highlight.Font.Height="-11" Highlight.Font.Name="Arial" Highlight.Font.Style="0" Highlight.Condition="&#60;tbRelatorio.&#34;STATUS&#34;&#62; = 'CANCELADA'" Highlight.FillType="ftBrush" Highlight.Frame.Typ="0" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[StrToFloat(&#60;tbRelatorio.&#34;VALOR&#34;&#62;)]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="15,11812" Left="0" Top="506,45702" Width="718,1107">
      <TfrxMemoView Name="Memo1" AllowVectorExport="True" Left="0" Top="3,77953" 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>
    <TfrxPageHeader Name="PageHeader1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="129,16543" Left="0" Top="18,89765" Width="718,1107" OnBeforePrint="PageHeader1OnBeforePrint">
      <TfrxMemoView Name="Memo4" AllowVectorExport="True" Left="0" Top="43,23624" Width="718,1107" Height="26,45671" DataSetName="tbEmpresa" Font.Charset="1" Font.Color="-16777208" Font.Height="-16" Font.Name="Arial" Font.Style="5" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="RELATÓRIO DE ESTATÍSTICAS - CLIENTES"/>
      <TfrxMemoView Name="tbEmpresaEMP_NOME" AllowVectorExport="True" Left="115,94496" Top="17,55906" Width="498,89796" Height="26,45671" 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="[QryEmpresa.&#34;EMP_NOME&#34;]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxPictureView Name="Picture1" AllowVectorExport="True" Left="2,44094" Top="0" Width="147,40167" Height="94,48825" Center="True" DataField="EMP_LOGO" DataSet="QryEmpresa" DataSetName="QryEmpresa" Frame.Typ="0" HightQuality="True" Transparent="False" TransparentColor="16777215"/>
      <TfrxMemoView Name="Memo28" AllowVectorExport="True" Left="0" Top="109,60637" Width="551,81138" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-15" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="Cliente: [tbRelatorio.&#34;CODCLI&#34;] - [tbRelatorio.&#34;NOME&#34;]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
    </TfrxPageHeader>
    <TfrxGroupHeader Name="GroupHeader1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="41,57483" Left="0" Top="207,87415" Width="718,1107" Condition="tbRelatorio.&#34;LOJA&#34;" ReprintOnNewPage="True">
      <TfrxMemoView Name="Memo27" AllowVectorExport="True" Left="0" Top="0,77953" Width="551,81138" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-15" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="Loja: [ZeroE(3,&#60;tbRelatorio.&#34;EMP_ID&#34;&#62;)] - [tbRelatorio.&#34;LOJA&#34;]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxShapeView Name="Shape1" AllowVectorExport="True" Left="0" Top="25,67718" Width="718,1107" Height="15,11812" Fill.BackColor="-16777201" Frame.Typ="0" Shape="skRoundRectangle"/>
      <TfrxMemoView Name="Memo16" AllowVectorExport="True" Left="0" Top="25,67718" Width="79,37013" Height="15,11812" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="Venda"/>
      <TfrxMemoView Name="Memo17" AllowVectorExport="True" Left="81,16543" Top="25,67718" Width="105,82684" Height="15,11812" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="Tipo"/>
      <TfrxMemoView Name="Memo18" AllowVectorExport="True" Left="188,78757" Top="25,67718" Width="136,06308" Height="15,11812" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="Status"/>
      <TfrxMemoView Name="Memo19" AllowVectorExport="True" Left="333,29159" Top="25,67718" Width="79,37013" Height="15,11812" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Data"/>
      <TfrxMemoView Name="Memo20" AllowVectorExport="True" Left="415,3389" Top="25,67718" Width="64,25201" Height="15,11812" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="Qtde"/>
      <TfrxMemoView Name="Memo21" AllowVectorExport="True" Left="480,60668" Top="25,67718" Width="79,37013" Height="15,11812" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="Val. Dev."/>
      <TfrxMemoView Name="Memo23" AllowVectorExport="True" Left="565,11843" Top="25,67718" Width="64,25201" Height="15,11812" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="Val. Canc."/>
      <TfrxMemoView Name="Memo26" AllowVectorExport="True" Left="632,04762" Top="25,67718" Width="83,14966" Height="15,11812" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="Valor"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="128,50402" Left="0" Top="317,48052" Width="718,1107">
      <TfrxMemoView Name="Memo30" AllowVectorExport="True" Left="510,9295" Top="0,66141" Width="79,37013" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="Total Qtde:"/>
      <TfrxMemoView Name="Memo31" AllowVectorExport="True" Left="589,60668" Top="0,66141" Width="71,81107" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[StrToFloat(SUM(&#60;tbRelatorio.&#34;QTDE&#34;&#62;,MasterData1))]"/>
      <TfrxMemoView Name="Memo32" AllowVectorExport="True" Left="590,62245" Top="23,33859" Width="124,72449" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[StrToFloat(SUM(&#60;tbRelatorio.&#34;VAL_DEVOL&#34;&#62;,MasterData1))]"/>
      <TfrxMemoView Name="Memo33" AllowVectorExport="True" Left="590,62245" Top="46,01577" Width="124,72449" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[StrToFloat(SUM(&#60;tbRelatorio.&#34;VAL_CANC&#34;&#62;,MasterData1))]"/>
      <TfrxMemoView Name="Memo34" AllowVectorExport="True" Left="590,62245" Top="68,69295" Width="124,72449" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" DisplayFormat.FormatStr="%2.2n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[StrToFloat(SUM(&#60;tbRelatorio.&#34;VALOR&#34;&#62;,MasterData1))]"/>
      <TfrxMemoView Name="Memo35" AllowVectorExport="True" Left="488,25232" Top="23,33859" Width="102,04731" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="Total Val Dev:"/>
      <TfrxMemoView Name="Memo36" AllowVectorExport="True" Left="480,69326" Top="46,01577" Width="109,60637" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="Total Val Canc:"/>
      <TfrxMemoView Name="Memo37" AllowVectorExport="True" Left="476,91373" Top="68,69295" Width="113,3859" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="Total Valor:"/>
    </TfrxGroupFooter>
  </TfrxReportPage>
</TfrxReport>
