<?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="44450,0364803704" ReportOptions.Description.Text="" ReportOptions.LastChange="44510,7130521875" ScriptLanguage="PascalScript" ScriptText.Text="var&#13;&#10;totQtde : integer;&#13;&#10;valor : real;&#13;&#10;&#13;&#10;procedure MasterData1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;// ttQtde := totQtde + StrToInt(&#60;tbRelatorio.&#34;QUANTIDADE&#34;&#62;,'''','0'));&#13;&#10; //valor := &#60;tbRelatorio.&#34;VAL_ITEM&#34;&#62;;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure GroupFooter1OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;   //Memo11.text := FormatFloat('#,##0.00',valor);&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;//valor := StrToFloat(&#60;tbRelatorio.&#34;VAL_ITEM&#34;&#62;);&#13;&#10;end.">
  <Datasets>
    <item DataSet="tbRelatorio" DataSetName="tbRelatorio"/>
    <item DataSet="FDQuery1" DataSetName="FDQuery1"/>
  </Datasets>
  <Variables>
    <item Name="Empresa" Value="'_003'"/>
    <item Name="Layout" Value="'relvenda.fr3'"/>
    <item Name="PastaFotos" Value="'C:\Sisplan\Foto'"/>
    <item Name="Usuario" Value="'SISPLAN'"/>
    <item Name="emp_id" Value="'3'"/>
  </Variables>
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000">
    <TfrxFDDatabase Name="Conexao" DriverName="FB" DatabaseName="C:\Sisplan\Base\14626F.FDB" Params.Text="Protocol=TCPIP&#13;&#10;Database=C:\Sisplan\Base\14626F.FDB&#13;&#10;Server=192.168.0.200&#13;&#10;Port=3051&#13;&#10;user_name=SYSDBA&#13;&#10;password=masterkey&#13;&#10;MonitorBy=Remote&#13;&#10;DriverID=FB" LoginPrompt="False" Connected="false" PropData="05704C65667402300470546F700240"/>
    <TfrxFDQuery Name="FDQuery1" UserName="FDQuery1" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" Master="tbRelatorio" IgnoreDupParams="False" SQL.Text="SELECT &#13;&#10;  EMP_NOME, &#13;&#10;  EMP_ENDERECO, &#13;&#10;  EMP_ESTADO,&#13;&#10;  EMP_CIDADE      &#13;&#10;FROM EMPRESA WHERE EMP_ID = :EMP_ID" MacroCreate="True" MacroExpand="True" ReadOnly="False" Database="Conexao" Left="124" Top="64">
      <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="230,55133" Width="718,1107" OnBeforePrint="MasterData1OnBeforePrint" ColumnWidth="0" ColumnGap="0" DataSet="tbRelatorio" DataSetName="tbRelatorio" Filter="&#60;tbRelatorio.&#34;CODIGO&#34;&#62; &#60;&#62; ''" RowCount="0">
      <TfrxMemoView Name="tbRelatorioCODIGO" IndexTag="1" AllowVectorExport="True" Left="16,7953" Top="1,77953" Width="83,14966" Height="18,89765" DataField="CODIGO" DataSet="tbRelatorio" DataSetName="tbRelatorio" Frame.Typ="0" Text="[tbRelatorio.&#34;CODIGO&#34;]"/>
      <TfrxMemoView Name="tbRelatorioDESCRICAO" IndexTag="1" AllowVectorExport="True" Left="103,16543" Top="1,77953" Width="430,86642" Height="18,89765" DataField="DESCRICAO" DataSet="tbRelatorio" DataSetName="tbRelatorio" Frame.Typ="0" Text="[tbRelatorio.&#34;DESCRICAO&#34;]"/>
      <TfrxMemoView Name="tbRelatorioTAM" IndexTag="1" AllowVectorExport="True" Left="539,20501" Top="1,77953" Width="45,35436" Height="18,89765" DataField="TAM" DataSet="tbRelatorio" DataSetName="tbRelatorio" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="[tbRelatorio.&#34;TAM&#34;]"/>
      <TfrxMemoView Name="tbRelatorioVAL_ITEM" IndexTag="1" AllowVectorExport="True" Left="590,57514" Top="1,77953" Width="60,47248" Height="18,89765" DataField="VAL_ITEM" 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" Text="[tbRelatorio.&#34;VAL_ITEM&#34;]"/>
      <TfrxMemoView Name="tbRelatorioQUANTIDADE" IndexTag="1" AllowVectorExport="True" Left="654,7248" Top="1,89765" Width="52,91342" Height="18,89765" DataSetName="itVenda" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[tbRelatorio.&#34;QUANTIDADE&#34;]"/>
    </TfrxMasterData>
    <TfrxHeader Name="Header1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="98,26778" Left="0" Top="18,89765" Width="718,1107">
      <TfrxShapeView Name="Shape1" AllowVectorExport="True" Left="0" Top="0" Width="718,1107" Height="98,26778" Frame.Typ="0"/>
      <TfrxMemoView Name="FDQuery1EMP_NOME" IndexTag="1" AllowVectorExport="True" Left="0" Top="18,89765" Width="718,1107" Height="26,45671" DataField="EMP_NOME" DataSet="FDQuery1" DataSetName="FDQuery1" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="[FDQuery1.&#34;EMP_NOME&#34;]"/>
      <TfrxMemoView Name="FDQuery1EMP_ENDERECO" IndexTag="1" AllowVectorExport="True" Left="0" Top="45,35436" Width="718,1107" Height="18,89765" DataSet="FDQuery1" DataSetName="FDQuery1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="[FDQuery1.&#34;EMP_ENDERECO&#34;],  [FDQuery1.&#34;EMP_CIDADE&#34;]  -  [FDQuery1.&#34;EMP_ESTADO&#34;]"/>
      <TfrxMemoView Name="Memo8" AllowVectorExport="True" Left="0" Top="65,03154" Width="721,89023" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-15" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="RELATÓRIO DE VENDAS"/>
      <TfrxMemoView Name="Date" IndexTag="1" AllowVectorExport="True" Left="579,38621" Top="65,03154" Width="120,94496" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="Data: [Date]"/>
    </TfrxHeader>
    <TfrxGroupHeader Name="GroupHeader1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Height="66,35436" Left="0" ParentFont="False" Top="139,84261" Width="718,1107" Condition="tbRelatorio.&#34;CODVEN&#34;" KeepTogether="True">
      <TfrxMemoView Name="tbRelatorioCODVEN" IndexTag="1" AllowVectorExport="True" Left="1,55906" Top="9,55906" Width="147,40167" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" Frame.Typ="0" Text="Venda: [tbRelatorio.&#34;CODVEN&#34;]">
        <Formats>
          <item/>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="tbRelatorioREP_NOME" IndexTag="1" AllowVectorExport="True" Left="1,74799" Top="28,45671" Width="340,1577" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" Frame.Typ="0" Text="Vendedor: [tbRelatorio.&#34;CODREP&#34;] - [tbRelatorio.&#34;REP_NOME&#34;]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="Memo1" IndexTag="1" AllowVectorExport="True" Left="340,71676" Top="28,23624" Width="377,953" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" Frame.Typ="0" Text="Cliente: [tbRelatorio.&#34;CODCLI&#34;] - [tbRelatorio.&#34;CLI_NOME&#34;]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="Memo2" AllowVectorExport="True" Left="16,45671" Top="46,91342" Width="83,14966" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" Text="Código"/>
      <TfrxMemoView Name="Memo3" AllowVectorExport="True" Left="102,82684" Top="47,45671" Width="94,48825" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" Text="Descrição"/>
      <TfrxMemoView Name="Memo4" AllowVectorExport="True" Left="539,20501" Top="47,23624" Width="45,35436" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="Tam"/>
      <TfrxMemoView Name="Memo5" AllowVectorExport="True" Left="590,57514" Top="47,23624" Width="60,47248" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="Preço"/>
      <TfrxMemoView Name="Memo6" AllowVectorExport="True" Left="654,7248" Top="47,23624" Width="52,91342" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="Qtde"/>
      <TfrxMemoView Name="Memo9" IndexTag="1" AllowVectorExport="True" Left="174,21274" Top="9,55906" Width="143,62214" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" Frame.Typ="0" Text="Valor: [tbRelatorio.&#34;VALOR&#34;]"/>
      <TfrxMemoView Name="Memo10" IndexTag="1" AllowVectorExport="True" Left="340,98454" Top="9,33859" Width="298,58287" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" Frame.Typ="0" Text="Data: [(Copy((&#60;tbRelatorio.&#34;DATA&#34;&#62;),9,2))]/[(Copy((&#60;tbRelatorio.&#34;DATA&#34;&#62;),6,2))]/[(Copy((&#60;tbRelatorio.&#34;DATA&#34;&#62;),0,4))]"/>
    </TfrxGroupHeader>
    <TfrxPageFooter Name="PageFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="22,67718" Left="0" Top="548,03185" Width="718,1107">
      <TfrxMemoView Name="Memo7" AllowVectorExport="True" Left="0" Top="8,33859" Width="68,03154" Height="15,11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="teste rel"/>
      <TfrxMemoView Name="Page" IndexTag="1" AllowVectorExport="True" Left="642,5201" Top="3,77953" Width="75,5906" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="[Page#]"/>
    </TfrxPageFooter>
    <TfrxGroupFooter Name="GroupFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="30,23624" Left="0" Top="275,90569" Width="718,1107" OnBeforePrint="GroupFooter1OnBeforePrint">
      <TfrxLineView Name="Line1" AllowVectorExport="True" Left="0" Top="3,77953" Width="714,33117" Height="0" Color="0" Frame.Typ="0" Diagonal="True"/>
      <TfrxMemoView Name="Memo11" IndexTag="1" AllowVectorExport="True" Left="317,48052" Top="3,77953" Width="132,28355" 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" Text="QTDE: [SUM(&#60;tbRelatorio.&#34;QUANTIDADE&#34;&#62;,MasterData1,1)]"/>
      <TfrxMemoView Name="Memo12" IndexTag="1" AllowVectorExport="True" Left="589,60668" Top="3,77953" Width="132,28355" 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" Text="VALOR LIQ: [SUM(&#60;tbRelatorio.&#34;VAL_ITEM&#34;&#62; - &#60;tbRelatorio.&#34;DESC_ITEM&#34;&#62;,MasterData1,1)]"/>
      <TfrxMemoView Name="Memo13" IndexTag="1" AllowVectorExport="True" Left="453,5436" Top="3,77953" Width="132,28355" 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" Text="VALOR: [SUM(&#60;tbrelatorio.&#34;VAL_ITEM&#34;&#62;  ,MasterData1,1)]"/>
    </TfrxGroupFooter>
    <TfrxFooter Name="Footer1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="37,7953" Left="0" Top="328,81911" Width="718,1107"/>
    <TfrxReportSummary Name="ReportSummary1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="98,26778" Left="0" Top="427,08689" Width="718,1107">
      <TfrxMemoView Name="Memo15" IndexTag="1" AllowVectorExport="True" Left="472,28386" Top="31,66141" Width="222,99227" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" Text="VALOR LIQ: [SUM(&#60;tbRelatorio.&#34;VAL_ITEM&#34;&#62; - &#60;tbRelatorio.&#34;DESC_ITEM&#34;&#62;,MasterData1,1)]"/>
      <TfrxMemoView Name="Memo17" IndexTag="1" AllowVectorExport="True" Left="472,28386" Top="55,57483" Width="222,99227" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" Text="VALOR BRUTO:  [SUM(&#60;tbrelatorio.&#34;VAL_ITEM&#34;&#62; + &#60;tbrelatorio.&#34;DESC_ITEM&#34;&#62; ,MasterData1,1)]"/>
      <TfrxMemoView Name="Memo16" IndexTag="1" AllowVectorExport="True" Left="473,44125" Top="7,22047" Width="132,28355" 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" Text="QTDE TOTAL: [SUM(&#60;tbRelatorio.&#34;QUANTIDADE&#34;&#62;,MasterData1,1)]"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
