<?xml version="1.0" encoding="utf-8" standalone="no"?>
<TfrxReport Version="5.4.6" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="40602,6690597801" ReportOptions.Description.Text="" ReportOptions.LastChange="43742,6581934607" ScriptLanguage="PascalScript" ScriptText.Text="{&#13;&#10;========================================================================&#13;&#10;Relatório Padrão Simples&#13;&#10;&#13;&#10;  Não exclua os Objetos das Bands: &#34;TituloRelatorio&#34; (Filtros = opcional),&#13;&#10;  &#34;Rodape Pagina&#34; e nem os bjs &#34;QPrincipal&#34; e &#34;QEmpresa&#34;.&#13;&#10;  Use a QPrincipal para o SQL principal, pois a checagem abaixo é para&#13;&#10;  verificar se há registros na mesma.&#13;&#10;  O cabeçalho já esta pronto, não esqueça de alterar o objeto &#34;Título&#34;&#13;&#10;  e/ou &#34;Referencia&#34; (opcional) e de alimentar a variavel  &#34;CodEmpresa&#34;&#13;&#10;  (pelo programa) para que o nome da empresa seja mostrado e tbm a&#13;&#10;  variável &#34;Filtros&#34; (opcional, mas lembre-se de passar por aspas os&#13;&#10;  valores do filtro)&#13;&#10;  Procure passar todos os valores para o filtros do SQL (cláusula WHERE)&#13;&#10;  por variavéis (componente TfrxVariables) pelo programa.&#13;&#10;  Mantenha os objetos alinhados sem deixar espeços entre eles (sujestão.:&#13;&#10;  use propriedade Align)&#13;&#10;&#13;&#10;&#13;&#10;  por Jaime P.Jr em 15/04/2013&#13;&#10;========================================================================}&#13;&#10;  var aux:string;&#13;&#10;&#13;&#10;begin&#13;&#10;  //Teste - Descomente as linhas  abaixo para teste e acrescente suas variáveis&#13;&#10;  //Não esqueça de comentar ao término do relatório&#13;&#10;{&#13;&#10;  Set('CodEmpresa','1');&#13;&#10;  Set('RelReferencia','''????''');&#13;&#10;  Set('Filtros','''????''');&#13;&#10;}&#13;&#10;&#13;&#10;{Checagem de dados - Não remova as linhas abaixo}&#13;&#10;  QPrincipal.Open;&#13;&#10;  if QPrincipal.IsEmpty then&#13;&#10;  begin&#13;&#10;    CreateError('Não exitem registros para os filtros selecionados.');&#13;&#10;  end;&#13;&#10;{fim}&#13;&#10;&#13;&#10;   aux:='Período de '+DateToStr(&#60;DtIni&#62;)+' à '+DateToStr(&#60;DtFin&#62;)+'; ';&#13;&#10;   aux:=aux+iif(&#60;Cod_Or&#62; &#62;0,'Orçamento: '+PegaValorCampoTabela('fatdor','FDO_NUMDOC','FDO_NUMDOC='+IntToStr(&#60;Cod_Or&#62;))+'; ','');&#13;&#10;   aux:=aux+iif(&#60;CodEmp&#62; &#62;0,'Empresa: '+PegaValorCampoTabela('cademp','EMP_NOMEMP','EMP_CODIGO='+IntToStr(&#60;CodEmp&#62;))+'; ','');&#13;&#10;   aux:=aux+iif(&#60;CodCli&#62; &#62;0,'Cliente: '+PegaValorCampoTabela('cadcli','CLI_NOMCLI','CLI_CODIGO='+IntToStr(&#60;CodCli&#62;))+'; ','');&#13;&#10;&#13;&#10;   Set('Filtros',''''+aux+'''');&#13;&#10;&#13;&#10;&#13;&#10;end.">
  <Datasets>
    <item DataSet="QEmpresa" DataSetName="QEmpresa"/>
    <item DataSet="QPrincipal" DataSetName="QPrincipal"/>
    <item DataSet="QTotalGeral" DataSetName="QTotalGeral"/>
    <item DataSet="QTotalDoc" DataSetName="QTotalDoc"/>
  </Datasets>
  <Variables>
    <item Name="CodEmpresa" Value="1"/>
    <item Name="Filtros" Value="''"/>
    <item Name="RelReferencia" Value="'21A0'"/>
    <item Name="DtIni" Value="41699"/>
    <item Name="DtFin" Value="41730"/>
    <item Name="CodCli" Value="0"/>
    <item Name="CodEmp" Value="0"/>
    <item Name="Cod_Or" Value="0"/>
  </Variables>
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000">
    <TfrxADOQuery Name="QPrincipal" UserName="QPrincipal" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" IgnoreDupParams="False" SQL.Text="declare @DtIni date = :DtIni,&#13;&#10;        @DtFin date = :DtFin,&#13;&#10;        @Cod_Or int = :Cod_Or,&#13;&#10;        @CodEmp int = :CodEmp,&#13;&#10;        @CodCli int = :CodCli&#13;&#10;        &#13;&#10;select FDO_NUMDOC, FDO_ESPDOC, CLI_CODIGO, CLI_NOMCLI, FDO_CODBAR, &#13;&#10;       ITE_DESCRI, FDO_QTDITE, ITE_CUSREA, MPR_PREFIN, FDO_TOTITE,&#13;&#10;       sum(coalesce(FDO_QTDITE,0) * coalesce(FDO_PRECUS,0)) AS TOTAL_CUSTO,        &#13;&#10;       dbo.fn_CALCULA_PRECO_MARGEM(FDO_CODEMP,FDO_TOTITE,SUM(FDO_QTDITE * FDO_PRECUS),0) AS MARGEM&#13;&#10;from fatdor&#13;&#10;left join cadite on ITE_CODIGO = FDO_CODITE&#13;&#10;left outer join fatgor on FDO_CODEMP = FGO_CODEMP and&#13;&#10;                          FDO_NUMDOC = FGO_NUMDOC and&#13;&#10;                          FDO_ESPDOC = FGO_ESPDOC &#13;&#10;left outer join cadcli on FGO_CODCLI = CLI_CODIGO&#13;&#10;left outer join movpre on MPR_CODITE = FDO_CODITE and &#13;&#10;                          MPR_CODPRE = FGO_CODPRE&#13;&#10;where FDO_ESPDOC = 'OR' and (FGO_COD_NF = '' or FGO_COD_NF is null) and                                                                 &#13;&#10;      ((@CodEmp = 0) or (FDO_CODEMP = @CodEmp)) and&#13;&#10;      ((@CodCli = 0) or (FGO_CODCLI = @CodCli)) and&#13;&#10;      ((@Cod_Or = 0) or (FDO_NUMDOC = @Cod_Or)) and&#13;&#10;      cast(FDO_DTAENT as DATE) between @DtIni AND @DtFin                &#13;&#10;group by FDO_NUMDOC, FDO_ESPDOC, CLI_CODIGO, CLI_NOMCLI,&#13;&#10;         FDO_CODBAR, ITE_DESCRI, FDO_QTDITE, ITE_CUSREA, &#13;&#10;         MPR_PREFIn, FDO_CODEMP, FDO_TOTITE      " CommandTimeout="1800" LockType="ltReadOnly" PropData="05704C65667402140470546F7002480A506172616D65746572730101063C204E616D653D224474496E69222044617461547970653D22667444617465222045787072657373696F6E3D22262336303B4474496E69262336323B220001063C204E616D653D22447446696E222044617461547970653D22667444617465222045787072657373696F6E3D22262336303B447446696E262336323B2200010641204E616D653D22436F645F4F72222044617461547970653D226674496E7465676572222045787072657373696F6E3D22262336303B436F645F4F72262336323B2200010641204E616D653D22436F64456D70222044617461547970653D226674496E7465676572222045787072657373696F6E3D22262336303B436F64456D70262336323B2200010641204E616D653D22436F64436C69222044617461547970653D226674496E7465676572222045787072657373696F6E3D22262336303B436F64436C69262336323B220000"/>
    <TfrxADOQuery Name="QEmpresa" UserName="QEmpresa" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" IgnoreDupParams="False" SQL.Text="select emp_nomemp &#13;&#10;from cademp &#13;&#10;where EMP_CODIGO=:CodEmpresa" CommandTimeout="1800" LockType="ltReadOnly" PropData="05704C65667402480470546F7002080A506172616D657465727301010649204E616D653D22436F64456D7072657361222044617461547970653D226674496E7465676572222045787072657373696F6E3D22262336303B436F64456D7072657361262336323B220000"/>
    <TfrxADOQuery Name="QTotalGeral" UserName="QTotalGeral" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" IgnoreDupParams="False" SQL.Text="declare @DtIni date = :DtIni,&#13;&#10;        @DtFin date = :DtFin,&#13;&#10;        @Cod_Or int = :Cod_Or,&#13;&#10;        @CodEmp int = :CodEmp,&#13;&#10;        @CodCli int = :CodCli&#13;&#10;        &#13;&#10;select SUM(FDO_TOTITE) AS FDO_TOTITE, &#13;&#10;       sum(coalesce(FDO_QTDITE,0) * coalesce(FDO_PRECUS,0)) AS FDO_TOTCUS,&#13;&#10;       dbo.fn_CALCULA_PRECO_MARGEM(FDO_CODEMP,SUM(FDO_TOTITE),SUM(FDO_QTDITE * FDO_PRECUS),0) AS MARGEM&#13;&#10;from fatdor&#13;&#10;left outer join fatgor on FDO_CODEMP = FGO_CODEMP and&#13;&#10;                          FDO_NUMDOC = FGO_NUMDOC and&#13;&#10;                          FDO_ESPDOC = FGO_ESPDOC &#13;&#10;where FDO_ESPDOC = 'OR' and&#13;&#10;      ((@CodEmp = 0) or (FDO_CODEMP = @CodEmp)) and&#13;&#10;      ((@CodCli = 0) or (FGO_CODCLI = @CodCli)) and&#13;&#10;      ((@Cod_Or = 0) or (FDO_NUMDOC = @Cod_Or)) and&#13;&#10;      cast(FDO_DTAENT as DATE) between @DtIni AND @DtFin                &#13;&#10;group by FDO_CODEMP                                                                                                                                                                                                                                                              " CommandTimeout="30" LockType="ltReadOnly" PropData="05704C65667402480470546F70038C000A506172616D65746572730101063C204E616D653D224474496E69222044617461547970653D22667444617465222045787072657373696F6E3D22262336303B4474496E69262336323B220001063C204E616D653D22447446696E222044617461547970653D22667444617465222045787072657373696F6E3D22262336303B447446696E262336323B2200010641204E616D653D22436F645F4F72222044617461547970653D226674496E7465676572222045787072657373696F6E3D22262336303B436F645F4F72262336323B2200010641204E616D653D22436F64456D70222044617461547970653D226674496E7465676572222045787072657373696F6E3D22262336303B436F64456D70262336323B2200010641204E616D653D22436F64436C69222044617461547970653D226674496E7465676572222045787072657373696F6E3D22262336303B436F64436C69262336323B220000"/>
    <TfrxADOQuery Name="QTotalDoc" UserName="QTotalDoc" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" Master="QPrincipal" IgnoreDupParams="False" SQL.Text="declare @Cod_Or int = :FDO_NUMDOC                              &#13;&#10;        &#13;&#10;select SUM(FDO_TOTITE) AS FDO_TOTITE,&#13;&#10;       sum(coalesce(FDO_QTDITE,0) * coalesce(FDO_PRECUS,0)) AS FDO_TOTCUS,&#13;&#10;       dbo.fn_CALCULA_PRECO_MARGEM(FDO_CODEMP,SUM(FDO_TOTITE),SUM(FDO_QTDITE * FDO_PRECUS),0) AS MARGEM&#13;&#10;from fatdor &#13;&#10;where FDO_ESPDOC = 'OR' and       &#13;&#10;      (FDO_NUMDOC = @Cod_Or)                  &#13;&#10;group by FDO_NUMDOC, FDO_CODEMP  " CommandTimeout="30" LockType="ltReadOnly" PropData="05704C65667402730470546F7002480A506172616D657465727301010627204E616D653D2246444F5F4E554D444F43222044617461547970653D226674496E7465676572220000"/>
    <TfrxLineView Name="Line5" Left="47" Top="92" Width="68" Height="0" Color="0" ArrowEnd="True" Diagonal="True"/>
  </TfrxDataPage>
  <TfrxReportPage Name="Relatorio1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxReportTitle Name="TituloRelatorio" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="68,91342" Left="0" Top="16" Width="1046,92981" Stretched="True">
      <TfrxMemoView Name="Titulo" Align="baWidth" Left="0" Top="18,8976378" Width="846,61472" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-15" Font.Name="Courier New" Font.Style="1" ParentFont="False" VAlign="vaCenter" Text="Relação de Orçamento com Custo"/>
      <TfrxMemoView Name="RelReferencia" Align="baRight" Left="846,61472" Top="19" Width="200,31509" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="[IIF(&#60;RelReferencia&#62;='','','(Ref.:'+&#60;RelReferencia&#62;+')')]"/>
      <TfrxMemoView Name="Filtros" Align="baWidth" Left="56,69295" Top="38,67718" Width="990,23686" Height="30,23624" StretchMode="smMaxHeight" Font.Charset="0" Font.Color="0" Font.Height="-11" Font.Name="Courier New" Font.Style="0" ParentFont="False" Text="[&#60;Filtros&#62;]"/>
      <TfrxMemoView Name="LblFiltros" Align="baLeft" Left="0" Top="38,67718" Width="56,69295" Height="30,23624" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Courier New" Font.Style="0" ParentFont="False" Text="Filtros:"/>
      <TfrxMemoView Name="NomeEmpresa" Align="baWidth" Left="0" Top="0" Width="846,61472" Height="18,89765" DataField="EMP_NOMEMP" DataSet="QEmpresa" DataSetName="QEmpresa" Font.Charset="0" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="0" ParentFont="False" Text="[QEmpresa.&#34;EMP_NOMEMP&#34;]"/>
      <TfrxMemoView Name="Emissao" Align="baRight" Left="846,61472" Top="0" Width="200,31509" Height="15,11812" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="Emissão: [DATE] [Time]"/>
    </TfrxReportTitle>
    <TfrxPageHeader Name="CabecalhoPagina" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="34,0157578" Left="0" Top="104" Width="1046,92981">
      <TfrxMemoView Name="Mem_Codigo" Left="0" Top="7" Width="124,72440945" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="1" ParentFont="False" Text="Código"/>
      <TfrxMemoView Name="Mem_Descricao" Left="125,47246536" Top="7" Width="340,15748031" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="1" ParentFont="False" Text="Descrição"/>
      <TfrxMemoView Name="Mem_Quantidade" Align="baRight" Left="464,8824585" Top="7,77953" Width="68,03154" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Qtde."/>
      <TfrxMemoView Name="Mem_PrecoCusto" Align="baRight" Left="532,9139985" Top="7" Width="98,26778" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Preço Custo"/>
      <TfrxMemoView Name="Mem_PrecoVenda" Align="baRight" Left="631,1817785" Top="7" Width="98,26771654" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Preço Venda"/>
      <TfrxMemoView Name="Mem_Lucro" Align="baRight" Left="729,44949504" Top="7" Width="98,26771654" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Lucro %"/>
      <TfrxMemoView Name="Mem_TotalCusto" Align="baRight" Left="827,71721158" Top="7" Width="109,60629921" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Total Custo"/>
      <TfrxMemoView Name="Mem_TotalVenda" Align="baRight" Left="937,32351079" Top="7" Width="109,60629921" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Total Venda"/>
      <TfrxLineView Name="Line1" Left="-2" Top="3,77953" Width="1050,70934" Height="0" Color="0" Frame.Typ="4"/>
      <TfrxLineView Name="Line2" Left="-1,77953" Top="30,23624" Width="1050,70934" Height="0" Color="0" Frame.Typ="4"/>
    </TfrxPageHeader>
    <TfrxPageFooter Name="RodapePagina" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" Height="15,11812" Left="0" ParentFont="False" Top="392" Width="1046,92981">
      <TfrxSysMemoView Name="TotalPaginas" Align="baRight" Left="941,10297" Top="0,13385827" Width="105,82684" Height="15,11812" Font.Charset="0" Font.Color="0" Font.Height="-12" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[PAGE#]/[TOTALPAGES#]"/>
    </TfrxPageFooter>
    <TfrxMasterData Name="MDPrincipal" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="22,6771678" Left="0" Top="240" Width="1046,92981" ColumnWidth="0" ColumnGap="0" DataSet="QPrincipal" DataSetName="QPrincipal" RowCount="0" Stretched="True">
      <TfrxMemoView Name="QPrincipalFDO_CODBAR" Left="0" Top="2,13389" Width="124,72443386" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="0" ParentFont="False" Text="[QPrincipal.&#34;FDO_CODBAR&#34;]"/>
      <TfrxMemoView Name="QPrincipalITE_DESCRI" Left="125,47248" Top="2,13389" Width="340,15746567" Height="18,89765" StretchMode="smMaxHeight" DataField="ITE_DESCRI" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="0" ParentFont="False" Text="[QPrincipal.&#34;ITE_DESCRI&#34;]"/>
      <TfrxMemoView Name="QPrincipalFDO_QTDITE" Left="464,8825122" Top="2,13389" Width="68,0314863" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" DisplayFormat.FormatStr="%2.3n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[QPrincipal.&#34;FDO_QTDITE&#34;]"/>
      <TfrxMemoView Name="QPrincipalITE_CUSREA" Left="532,9139985" Top="2,13389" Width="98,26771654" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[QPrincipal.&#34;ITE_CUSREA&#34;]"/>
      <TfrxMemoView Name="QPrincipalMPR_PREFIN" Left="631,18151" Top="2,13389" Width="98,26771654" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[QPrincipal.&#34;MPR_PREFIN&#34;]"/>
      <TfrxMemoView Name="QPrincipalMARGEM" Left="729,44949504" Top="2,13389" Width="98,26771654" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[QPrincipal.&#34;MARGEM&#34;]%"/>
      <TfrxMemoView Name="QPrincipalFDO_TOTITE" Align="baRight" Left="937,32351079" Top="2,13389" Width="109,60629921" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[QPrincipal.&#34;FDO_TOTITE&#34;]"/>
      <TfrxMemoView Name="QPrincipalTOTAL_CUSTO" Align="baRight" Left="827,71721158" Top="2,13389" Width="109,60629921" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[QPrincipal.&#34;TOTAL_CUSTO&#34;]"/>
    </TfrxMasterData>
    <TfrxGroupHeader Name="GroupHeader1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="60,47248" Left="0" Top="160" Width="1046,92981" Condition="QPrincipal.&#34;FDO_NUMDOC&#34;" Stretched="True">
      <TfrxMemoView Name="Mem_Documento" Left="0,11812" Top="5,77953" Width="124,72449" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="1" ParentFont="False" Text="Documento.....:"/>
      <TfrxMemoView Name="Mem_Cliente" Left="0,11812" Top="24,67718" Width="124,72449" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="1" ParentFont="False" Text="Cliente.......:"/>
      <TfrxMemoView Name="QPrincipalCLI_CODIGO" Left="125,47246536" Top="24,67718" Width="918,42579" Height="18,89765" StretchMode="smMaxHeight" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Courier New" Font.Style="1" ParentFont="False" Text="[QPrincipal.&#34;CLI_CODIGO&#34;]-[QPrincipal.&#34;CLI_NOMCLI&#34;]"/>
      <TfrxMemoView Name="QPrincipalNumDoc" Left="124,72449" Top="5,77953" Width="219,21274" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Courier New" Font.Style="1" ParentFont="False" Text="[QPrincipal.&#34;FDO_NUMDOC&#34;]-[QPrincipal.&#34;FDO_ESPDOC&#34;]"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="36,01577" Left="0" Top="284" Width="1046,92981">
      <TfrxMemoView Name="Mem_TotalDocumento" Left="310,66928646" Top="12,45671" Width="154,96065921" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="1" ParentFont="False" Text="Total do Documento:"/>
      <TfrxLineView Name="Line4" Left="-2,55906" Top="33,13389" Width="1050,70934" Height="0" Color="0" Frame.Typ="4"/>
      <TfrxLineView Name="Line3" Left="294,24428" Top="9" Width="755,906" Height="0" Color="0" Frame.Color="8421504" Frame.Typ="4"/>
      <TfrxMemoView Name="QTotalDocMARGEM" Left="729,44949504" Top="12,01577" Width="98,26771654" Height="18,89765" DataSet="QTotalDoc" DataSetName="QTotalDoc" DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[QTotalDoc.&#34;MARGEM&#34;]%"/>
      <TfrxMemoView Name="QTotalDocFDO_TOTCUS" Left="827,71707" Top="12,23624" Width="109,60629921" Height="18,89765" DataSet="QTotalDoc" DataSetName="QTotalDoc" DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[QTotalDoc.&#34;FDO_TOTCUS&#34;]"/>
      <TfrxMemoView Name="QTotalDocFDO_TOTITE" Left="937,32344" Top="12,23624" Width="109,60629921" Height="18,89765" DataSet="QTotalDoc" DataSetName="QTotalDoc" DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[QTotalDoc.&#34;FDO_TOTITE&#34;]"/>
      <TfrxMemoView Name="Memo1" Left="464,8825122" Top="12,77953" Width="68,0314863" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" DisplayFormat.FormatStr="%2.3n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;QPrincipal.&#34;FDO_QTDITE&#34;&#62;,MDPrincipal)]"/>
    </TfrxGroupFooter>
    <TfrxReportSummary Name="ReportSummary1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Height="30,23624" Left="0" Top="340" Width="1046,92981">
      <TfrxMemoView Name="Mem_TotalGeral" Left="310,66931575" Top="6,01577" Width="154,96062992" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="1" ParentFont="False" Text="Total Geral.......:"/>
      <TfrxMemoView Name="QTotalGeralMARGEM" Left="729,44949504" Top="6,01577" Width="98,26771654" Height="18,89765" DataSet="QTotalGeral" DataSetName="QTotalGeral" DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[QTotalGeral.&#34;MARGEM&#34;]%"/>
      <TfrxMemoView Name="QTotalGeralFDO_TOTCUS" Left="827,71721158" Top="6,01577" Width="109,60629921" Height="18,89765" DataSet="QTotalGeral" DataSetName="QTotalGeral" DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[QTotalGeral.&#34;FDO_TOTCUS&#34;]"/>
      <TfrxMemoView Name="QTotalGeralFDO_TOTITE" Left="937,32351079" Top="6,01577" Width="109,60629921" Height="18,89765" DataSet="QTotalGeral" DataSetName="QTotalGeral" DisplayFormat.FormatStr="%2.2f" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Courier New" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[QTotalGeral.&#34;FDO_TOTITE&#34;]"/>
      <TfrxMemoView Name="Memo2" Left="464,8825122" Top="6,01577" Width="68,0314863" Height="18,89765" DataSet="QPrincipal" DataSetName="QPrincipal" DisplayFormat.FormatStr="%2.3n" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Courier New" Font.Style="0" HAlign="haCenter" ParentFont="False" Text="[SUM(&#60;QPrincipal.&#34;FDO_QTDITE&#34;&#62;,MDPrincipal)]"/>
    </TfrxReportSummary>
  </TfrxReportPage>
</TfrxReport>
