<?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="44819,5769420602" ScriptLanguage="PascalScript" ScriptText.Text="var&#13;&#10;contador : Integer;&#13;&#10;procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  if Engine.FinalPass then&#13;&#10;  begin&#13;&#10;     contador := contador + 1;&#13;&#10;  end&#13;&#10;end;&#13;&#10;&#13;&#10;&#13;&#10;procedure ReportSummary1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  mmContadores.text := Inttostr(contador);&#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="vUsuario" Value="'SISPLAN'"/>
    <item Name="vLayout" Value="''"/>
    <item Name="vNivel" Value="''"/>
    <item Name="vNivelDesc" Value="''"/>
    <item Name="vPastaFotos" Value="'C:\sisplan\..\Foto\'"/>
    <item Name="vPath" Value="'C:\sisplan'"/>
    <item Name="vTipoBanco" Value="'F'"/>
    <item Name="Empresa" Value="'_001'"/>
    <item Name="Layout" Value="'relfaturamento.fr3'"/>
    <item Name="PastaFotos" Value="'\\172.20.10.208\arquivos\Desenvolvimento\Sisplan\Foto'"/>
    <item Name="Usuario" Value="'SISPLAN'"/>
    <item Name="emp_id" Value="'1'"/>
    <item Name="IMPRESSO" Value="''"/>
    <item Name="CODREP" Value="''"/>
    <item Name="NATUREZA" Value="''"/>
    <item Name="PEDIDO" Value="''"/>
    <item Name="DUPLICATAS" Value="''"/>
    <item Name="CODCLI" Value="''"/>
    <item Name="SAIDAATE" Value="''"/>
    <item Name="SAIDADE" Value="''"/>
    <item Name="TELA_ORDENACAO" Value="'RelFaturamento'"/>
    <item Name="EMISSAODE" Value="''"/>
    <item Name="EMISSAOATE" Value="''"/>
    <item Name="ORDEM_ORDENACAO" Value="'-1'"/>
  </Variables>
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000">
    <TfrxFDDatabase Name="Conexao" DriverName="SisplanMSSqlDB" DatabaseName="14809S" Params.Text="Protocol=TCPIP&#13;&#10;Database=14809S&#13;&#10;Server=172.20.10.212&#13;&#10;user_name=sa&#13;&#10;password=Sisposm,&#13;&#10;MonitorBy=Remote&#13;&#10;DriverID=SisplanMSSqlDB&#13;&#10;ApplicationName=P:\Sisplan\projeto\apiWeb.exe&#13;&#10;Port=3051" LoginPrompt="False" Connected="false" PropData="05704C6566740390000470546F700274"/>
    <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="207" Top="117">
      <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="15,11812" Left="0" Top="219,21274" Width="718,1107" OnBeforePrint="MasterData1OnBeforePrint" ColumnWidth="0" ColumnGap="0" DataSet="tbRelatorio" DataSetName="tbRelatorio" RowCount="0">
      <TfrxMemoView Name="Memo28" AllowVectorExport="True" Left="1" Top="-1,22851" Width="716,77211" Height="16,33859" DataSet="tbRelatorio" DataSetName="tbRelatorio" 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" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text=""/>
      <TfrxMemoView Name="Memo7" AllowVectorExport="True" Left="0" Top="1,77953" Width="64,25201" Height="11,33859" DataField="FATURA" DataSet="tbRelatorio" DataSetName="tbRelatorio" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[tbRelatorio.&#34;FATURA&#34;]"/>
      <TfrxMemoView Name="Memo8" AllowVectorExport="True" Left="72,16543" Top="1,77953" Width="400,44898" Height="11,33859" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[tbRelatorio.&#34;CODCLI&#34;] - [tbRelatorio.&#34;NOME&#34;]"/>
      <TfrxMemoView Name="Memo11" AllowVectorExport="True" Left="493,49629" Top="1,77953" Width="90,70872" Height="11,33859" DataField="PECAS" 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" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[tbRelatorio.&#34;PECAS&#34;]"/>
      <TfrxMemoView Name="Memo12" AllowVectorExport="True" Left="609,66172" Top="1,77953" Width="105,82684" Height="11,33859" DataField="VALOR" DataSet="tbRelatorio" DataSetName="tbRelatorio" DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[tbRelatorio.&#34;VALOR&#34;]"/>
    </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="434,64595" 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"/>
      <TfrxMemoView Name="Memo25" AllowVectorExport="True" Left="0" Top="3,77953" Width="347,71676" Height="11,33859" Font.Charset="1" Font.Color="-16777208" Font.Height="-8" Font.Name="Arial" Font.Style="0" Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="[Page#]/[TotalPages#]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
    </TfrxPageFooter>
    <TfrxPageHeader Name="PageHeader1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="77,03154" Left="0" Top="18,89765" Width="718,1107">
      <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 FATURAMENTO"/>
      <TfrxMemoView Name="tbEmpresaEMP_NOME" AllowVectorExport="True" Left="109,60637" Top="16,77953" 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="3,22047" Top="0" Width="105,82684" Height="68,03154" Center="True" DataField="EMP_LOGO" DataSet="qryEmpresa" DataSetName="qryEmpresa" Frame.Typ="0" HightQuality="True" Transparent="False" TransparentColor="16777215"/>
    </TfrxPageHeader>
    <TfrxGroupHeader Name="GroupHeader1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="41,51175" Left="0" Top="154,96073" Width="718,1107" Condition="tbRelatorio.&#34;DT_EMISSAO&#34;" ReprintOnNewPage="True">
      <TfrxShapeView Name="Shape1" AllowVectorExport="True" Left="0" Top="22,6141" Width="718,1107" Height="15,11812" Fill.BackColor="-16777201" Frame.Typ="0" Shape="skRoundRectangle"/>
      <TfrxMemoView Name="Memo17" AllowVectorExport="True" Left="72,16543" Top="25,6141" Width="400,44898" Height="11,33859" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="CLIENTE"/>
      <TfrxMemoView Name="Memo16" AllowVectorExport="True" Left="2" Top="24,6141" Width="64,25201" Height="11,33859" 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="FATURA"/>
      <TfrxMemoView Name="Memo19" AllowVectorExport="True" Left="493,49629" Top="24,6141" Width="90,70872" Height="11,33859" 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="Memo20" AllowVectorExport="True" Left="609,66172" Top="24,6141" Width="105,82684" Height="11,33859" 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="VLR LÍQUIDO"/>
      <TfrxMemoView Name="Memo21" AllowVectorExport="True" Left="2" Top="2,88961" Width="104,48825" Height="16,33859" 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="Data de Emissão: "/>
      <TfrxMemoView Name="Memo22" AllowVectorExport="True" Left="105" Top="2,88961" Width="89,37013" Height="16,33859" DataField="DT_EMISSAO" DataSet="tbRelatorio" DataSetName="tbRelatorio" DisplayFormat.FormatStr="dd/mm/yyyy" DisplayFormat.Kind="fkDateTime" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[tbRelatorio.&#34;DT_EMISSAO&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="33,32282" Left="0" Top="257,00804" Width="718,1107">
      <TfrxMemoView Name="Memo18" AllowVectorExport="True" Left="493,49629" Top="7,97619" Width="90,70872" Height="16,33859" 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" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[SUM(&#60;tbRelatorio.&#34;PECAS&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo24" AllowVectorExport="True" Left="609,66172" Top="7,97619" Width="105,82684" Height="16,33859" DataSet="tbRelatorio" DataSetName="tbRelatorio" DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[SUM(&#60;tbRelatorio.&#34;VALOR&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo27" AllowVectorExport="True" Left="333" Top="7,97619" Width="154,70872" Height="16,33859" DataSet="tbRelatorio" DataSetName="tbRelatorio" 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="Total da Data de Emissão: "/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="59,67718" Left="0" Top="351,49629" Width="718,1107" OnBeforePrint="ReportSummary1OnBeforePrint">
      <TfrxMemoView Name="Memo29" AllowVectorExport="True" Left="353,33859" Top="7,48794" Width="134,37013" Height="16,33859" DataSet="tbRelatorio" DataSetName="tbRelatorio" 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 Geral:"/>
      <TfrxMemoView Name="Memo30" AllowVectorExport="True" Left="493,49629" Top="7,48794" Width="90,70872" Height="16,33859" 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" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[SUM(&#60;tbRelatorio.&#34;PECAS&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo31" AllowVectorExport="True" Left="609,66172" Top="7,48794" Width="105,82684" Height="16,33859" DataSet="tbRelatorio" DataSetName="tbRelatorio" DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text="[SUM(&#60;tbRelatorio.&#34;VALOR&#34;&#62;,MasterData1)]"/>
      <TfrxMemoView Name="Memo32" AllowVectorExport="True" Left="335" Top="26,48794" Width="152,70872" Height="16,33859" DataSet="tbRelatorio" DataSetName="tbRelatorio" 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 de Notas Emitidas: "/>
      <TfrxMemoView Name="mmContadores" AllowVectorExport="True" Left="492" Top="26,48794" Width="90,70872" Height="16,33859" 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" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text=""/>
      <TfrxMemoView Name="Memo33" AllowVectorExport="True" Left="1" Top="7,48794" Width="715,70872" Height="16,33859" 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.Style="fsDot" Frame.Typ="4" Frame.Width="0,5" HAlign="haRight" ParentFont="False" WordWrap="False" VAlign="vaCenter" Text=""/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
