<?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="44512,4515984954" ScriptLanguage="PascalScript" ScriptText.Text="var&#13;&#10;totQtde : integer;&#13;&#10;valor : real;&#13;&#10;&#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"/>
    <item DataSet="QryMovto" DataSetName="QryMovto"/>
  </Datasets>
  <Variables>
    <item Name="Empresa" Value="'_001'"/>
    <item Name="Layout" Value="'movimentacao_produto.fr3'"/>
    <item Name="PastaFotos" Value="'C:\Sisplan\Foto'"/>
    <item Name="Usuario" Value="'SISPLAN'"/>
    <item Name="emp_id" Value="'1'"/>
  </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;  emp_pat                  &#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>
    <TfrxFDQuery Name="QryMovto" UserName="QryMovto" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" Master="tbRelatorio" IgnoreDupParams="False" SQL.Text="SELECT PRODUTO.CODIGO, PRODUTO.DESCRICAO, MOV.*&#13;&#10;FROM  PA_MOV_001 MOV        &#13;&#10;INNER JOIN PRODUTO_001 PRODUTO ON PRODUTO.CODIGO = MOV.CODIGO                                                                                                                                                                    &#13;&#10;WHERE  MOV.NUM_DOCTO = :NUM_DOCTO&#13;&#10;       AND MOV.OPERACAO = :OPERACAO&#13;&#10;ORDER BY PRODUTO.DESCRICAO                                                                                        " MacroCreate="True" MacroExpand="True" ReadOnly="False" Database="Conexao" MasterFields="NUM_DOCTO=NUM_DOCTO;OPERACAO=OPERACAO" Left="212" Top="196">
      <Parameters>
        <item Name="NUM_DOCTO" DataType="ftString"/>
        <item Name="OPERACAO" DataType="ftString"/>
      </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="170,07885" Width="718,1107" OnBeforePrint="MasterData1OnBeforePrint" ColumnWidth="0" ColumnGap="0" DataSet="QryMovto" DataSetName="QryMovto" Filter="&#60;tbRelatorio.&#34;CODIGO&#34;&#62; &#60;&#62; ''" RowCount="0">
      <TfrxMemoView Name="tbRelatorioCODIGO" IndexTag="1" AllowVectorExport="True" Left="2,7953" Top="1,77953" Width="162,51979" Height="18,89765" DataField="CODIGO" DataSet="QryMovto" DataSetName="QryMovto" Frame.Typ="0" Text="[QryMovto.&#34;CODIGO&#34;]"/>
      <TfrxMemoView Name="tbRelatorioDESCRICAO" IndexTag="1" AllowVectorExport="True" Left="168,16543" Top="1,77953" Width="245,66945" Height="18,89765" DataSet="tbRelatorio" DataSetName="tbRelatorio" Frame.Typ="0" Text="[QryMovto.&#34;DESCRICAO&#34;]"/>
      <TfrxMemoView Name="tbRelatorioTAM" IndexTag="1" AllowVectorExport="True" Left="435,20501" Top="1,77953" Width="45,35436" 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" HAlign="haCenter" ParentFont="False" Text="[QryMovto.&#34;TAMANHO&#34;]"/>
      <TfrxMemoView Name="tbRelatorioVAL_ITEM" IndexTag="1" AllowVectorExport="True" Left="489,57514" Top="1,77953" Width="60,47248" Height="18,89765" DataField="COR" DataSet="QryMovto" DataSetName="QryMovto" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="[QryMovto.&#34;COR&#34;]"/>
      <TfrxMemoView Name="tbRelatorioQUANTIDADE" IndexTag="1" AllowVectorExport="True" Left="553,7248" Top="1,89765" Width="52,91342" Height="18,89765" DataField="QTDE" DataSet="QryMovto" DataSetName="QryMovto" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="[QryMovto.&#34;QTDE&#34;]"/>
      <TfrxMemoView Name="Memo10" AllowVectorExport="True" Left="612,28386" Top="2" Width="64,25201" Height="18,89765" DataField="DEPOSITO" DataSet="QryMovto" DataSetName="QryMovto" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="[QryMovto.&#34;DEPOSITO&#34;]"/>
    </TfrxMasterData>
    <TfrxHeader Name="Header1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="49,13389" Left="0" Top="18,89765" Width="718,1107">
      <TfrxShapeView Name="Shape1" AllowVectorExport="True" Left="0" Top="0" Width="718,1107" Height="45,35436" Frame.Typ="0"/>
      <TfrxMemoView Name="Memo8" AllowVectorExport="True" Left="0" Top="3,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 ENTRADAS/SAÍDAS"/>
      <TfrxMemoView Name="Date" IndexTag="1" AllowVectorExport="True" Left="579,38621" Top="8,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]"/>
      <TfrxMemoView Name="Memo15" AllowVectorExport="True" Left="0" Top="26,91342" Width="721,89023" Height="18,89765" DataSet="FDQuery1" DataSetName="FDQuery1" Font.Charset="1" Font.Color="0" Font.Height="-15" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="EMPRESA: [FDQuery1.&#34;EMP_PAT&#34;]"/>
    </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="55,01577" Left="0" ParentFont="False" Top="90,70872" Width="718,1107" Condition="tbRelatorio.&#34;NUM_DOCTO&#34;" KeepTogether="True">
      <TfrxMemoView Name="Memo14" AllowVectorExport="True" Left="-2,07854" Top="35,01577" Width="721,89023" Height="18,89765" Font.Charset="1" Font.Color="536870911" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" Fill.BackColor="12632256" ParentFont="False" Text=""/>
      <TfrxMemoView Name="Memo2" AllowVectorExport="True" Left="2,45671" Top="33,91342" Width="98,26778" 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="172,82684" Top="33,91342" 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="434,20501" Top="33,91342" 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="487,57514" Top="33,91342" 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="haCenter" ParentFont="False" Text="Cor"/>
      <TfrxMemoView Name="Memo6" AllowVectorExport="True" Left="553,7248" Top="33,91342" 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="haCenter" ParentFont="False" Text="Qtde"/>
      <TfrxMemoView Name="Memo9" AllowVectorExport="True" Left="612,28386" Top="34" Width="64,25201" 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="Depósito"/>
      <TfrxMemoView Name="Memo13" AllowVectorExport="True" Left="3,77953" Top="5,55906" Width="291,02381" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" Text="DOCUMENTO: [tbRelatorio.&#34;NUM_DOCTO&#34;] "/>
    </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="298,58287" 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="RelVenda.fr3"/>
      <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>
    <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="253,22851" Width="718,1107">
      <TfrxMemoView Name="Memo12" AllowVectorExport="True" Left="528,37044" Top="0" Width="94,48825" 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 Total"/>
      <TfrxMemoView Name="Memo11" IndexTag="1" AllowVectorExport="True" Left="627,62245" Top="0" Width="60,47248" Height="18,89765" DataSetName="itVenda" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;tbRelatorio.&#34;QTDE&#34;&#62;,MasterData1,1)]"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
