<?xml version="1.0" encoding="utf-8" standalone="no"?>
<TfrxReport Version="4.15.10" DotMatrixReport="False" EngineOptions.DoublePass="True" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.Zoom="1" PrintOptions.Printer="Padrão" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="43371,4473939005" ReportOptions.Description.Text="" ReportOptions.LastChange="43705,3527545255" ScriptLanguage="PascalScript" ScriptText.Text="&#13;&#10;begin&#13;&#10;&#13;&#10;end." OnReportPrint="frxReportOnReportPrint" PropData=" ">
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000">
    <TnfrxDBXDatabase Name="ConexaoQuestor" ConnectionName="a99" DriverName="FB" GetDriverFunc="getSQLDriverINTERBASE" LibraryName="dbxfb.dll" LoginPrompt="False" Params.Text="Database=D:\dados\DB\DB.FDB&#13;&#10;User_Name=SYSDBA&#13;&#10;Password=masterkey&#13;&#10;Server=localhost&#13;&#10;Protocol=TCPIP&#13;&#10;DriverID=FB&#13;&#10;Port=3050&#13;&#10;MonitorBy=Custom" VendorLib="fbclient.dll" Connected="True" PropData="05704C656674023C0470546F70021E"/>
    <TnfrxDBXPowerQuery Name="nfrxDBXPowerQuery" PowerQueryDFM="object TnpqPowerQuery&#13;&#10;  ShowErrorEmptyQuery = True&#13;&#10;  object TnpqQuery&#13;&#10;    QueryName = 'Step_1'&#13;&#10;    QueryType = npqSelect&#13;&#10;    Unions.Strings = (&#13;&#10;      'Step_1')&#13;&#10;    object TnpqPowerOrderBy&#13;&#10;      object TnpqParamItem&#13;&#10;        Alias = 'oStep_1'&#13;&#10;        Value = '-1'&#13;&#10;        ParType = npqptOrderBy&#13;&#10;        Caption = 'Ordenar'&#13;&#10;        CtrlType = ntcComboBox&#13;&#10;        CtrlNameValues = 'Nenhum=-1;Personalizar=-2'&#13;&#10;        Position = 8&#13;&#10;        Visible = False&#13;&#10;        Hint = 'Configure a ordena'#231#227'o do relat'#243'rio.'&#13;&#10;      end&#13;&#10;    end&#13;&#10;  end&#13;&#10;  object TnpqPowerParam&#13;&#10;    SeparadoresUsar = False&#13;&#10;    object TnpqParamItem&#13;&#10;      Alias = 'pDataInicial'&#13;&#10;      ParType = npqptUser&#13;&#10;      Caption = 'Data Inicial'&#13;&#10;      CtrlType = ntcActData&#13;&#10;      Position = 0&#13;&#10;      Requerid = True&#13;&#10;      Dicionario = 'DATAINICIAL'&#13;&#10;    end&#13;&#10;    object TnpqParamItem&#13;&#10;      Alias = 'pDataFinal'&#13;&#10;      ParType = npqptUser&#13;&#10;      Caption = 'Data Final'&#13;&#10;      CtrlType = ntcActData&#13;&#10;      Position = 1&#13;&#10;      Requerid = True&#13;&#10;      Dicionario = 'DATAFINAL'&#13;&#10;    end&#13;&#10;    object TnpqParamItem&#13;&#10;      Alias = 'pCodigoEmpresa'&#13;&#10;      ParType = npqptUser&#13;&#10;      Caption = 'Empresa'&#13;&#10;      CtrlType = ntcLinkEdit&#13;&#10;      Position = 2&#13;&#10;      ConsultMultSelect = True&#13;&#10;      Dicionario = 'CODIGOEMPRESA'&#13;&#10;    end&#13;&#10;    object TnpqParamItem&#13;&#10;      Alias = 'pCodigoEstab'&#13;&#10;      ParType = npqptUser&#13;&#10;      Caption = 'Filial'&#13;&#10;      CtrlType = ntcLinkEdit&#13;&#10;      Position = 3&#13;&#10;      ConsultMultSelect = True&#13;&#10;      Dicionario = 'CODIGOESTAB'&#13;&#10;    end&#13;&#10;    object TnpqParamItem&#13;&#10;      Alias = 'pProcedimento'&#13;&#10;      ParType = npqptUser&#13;&#10;      Caption = 'Procedimentos'&#13;&#10;      CtrlType = ntcLinkEdit&#13;&#10;      Position = 4&#13;&#10;      ConsultMultSelect = True&#13;&#10;      Dicionario = 'CODLPROCEDIMENTO'&#13;&#10;    end&#13;&#10;    object TnpqParamItem&#13;&#10;      Alias = 'pFluxo'&#13;&#10;      ParType = npqptUser&#13;&#10;      Caption = 'Fluxos'&#13;&#10;      CtrlType = ntcLinkEdit&#13;&#10;      Position = 5&#13;&#10;      ConsultMultSelect = True&#13;&#10;      Dicionario = 'CODLFLUXO'&#13;&#10;    end&#13;&#10;    object TnpqParamItem&#13;&#10;      Alias = 'pAtividade'&#13;&#10;      ParType = npqptUser&#13;&#10;      Caption = 'Atividades'&#13;&#10;      CtrlType = ntcLinkEdit&#13;&#10;      Position = 6&#13;&#10;      ConsultMultSelect = True&#13;&#10;      Dicionario = 'CODLATIVIDADE'&#13;&#10;    end&#13;&#10;    object TnpqParamItem&#13;&#10;      Alias = 'pCodigoOcorrencia'&#13;&#10;      ParType = npqptUser&#13;&#10;      Caption = 'C'#243'digo Ocorr'#234'ncia'&#13;&#10;      Position = 7&#13;&#10;    end&#13;&#10;    object TnpqParamItem&#13;&#10;      Alias = 'pPesquisar'&#13;&#10;      ParType = npqptUser&#13;&#10;      Position = 9&#13;&#10;      Visible = False&#13;&#10;    end&#13;&#10;    object TnpqParamItem&#13;&#10;      Alias = 'pStatus'&#13;&#10;      ParType = npqptUser&#13;&#10;      Position = 10&#13;&#10;      Visible = False&#13;&#10;    end&#13;&#10;    object TnpqParamItem&#13;&#10;      Alias = 'pChamado'&#13;&#10;      ParType = npqptUser&#13;&#10;      Position = 11&#13;&#10;      Visible = False&#13;&#10;    end&#13;&#10;    object TnpqParamItem&#13;&#10;      Alias = 'pResponsavel'&#13;&#10;      ParType = npqptUser&#13;&#10;      Position = 12&#13;&#10;      Visible = False&#13;&#10;    end&#13;&#10;    object TnpqParamItem&#13;&#10;      Alias = 'pQHelp'&#13;&#10;      Value = '0'&#13;&#10;      ParType = npqptUser&#13;&#10;      Position = 13&#13;&#10;      Visible = False&#13;&#10;    end&#13;&#10;  end&#13;&#10;end&#13;&#10;" PropData="05704C656674023C0470546F70039400"/>
    <TnfrxDBXQuery Name="Step_1" UserName="Step_1" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" IgnoreDupParams="False" SQL.Text="SELECT s0_Empresa.CODIGOEMPRESA&#13;&#10;    FROM EMPRESA s0_Empresa" IndexFieldNames="ID" Database="ConexaoQuestor" PropData="05704C65667403B8000470546F70021E0A506172616D65746572730100"/>
    <TnfrxDBXQuery Name="ResponsaveisOcorrencia" UserName="ResponsaveisOcorrencia" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" Master="cdsAtividadeOcorrencias" IgnoreDupParams="False" SQL.Text="SELECT s1_Leanocorrenciaresp.OCORRENCIAID,&#13;&#10;         s1_Leanocorrenciaresp.CODIGOUSUARIO,&#13;&#10;         s1_Usuario.NOMEUSUARIO&#13;&#10;    FROM USUARIO s1_Usuario&#13;&#10;         INNER JOIN LEANOCORRENCIARESP s1_Leanocorrenciaresp&#13;&#10;        ON s1_Usuario.CODIGOUSUARIO = s1_Leanocorrenciaresp.CODIGOUSUARIO&#13;&#10;         INNER JOIN LEANATIVIDADEOCORRENCIAS s1_Leanatividadeocorrencias&#13;&#10;        ON s1_Leanatividadeocorrencias.ID = s1_Leanocorrenciaresp.OCORRENCIAID&#13;&#10;   WHERE (((s1_Leanocorrenciaresp.OCORRENCIAID = 81910)&#13;&#10;     AND (s1_Leanatividadeocorrencias.DATAVENCIMENTOLEGAL BETWEEN '2018-01-01 00 00 00' AND '2018-12-31 00 00 00')))" IndexFieldNames="OCORRENCIAID" MasterFields="OCORRENCIAID=ID" Database="ConexaoQuestor" PropData="05704C65667403BC000470546F70025A0A506172616D65746572730100"/>
    <TnfrxDBXExternaData Name="cdsItemHistorico" UserName="cdsItemHistorico" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" Master="cdsOcorrenciaHistoricos" IgnoreDupParams="False" SQL.Text="" IndexFieldNames="IDMASTER" MasterFields="IDMASTER=ID" Database="ConexaoQuestor" ProcessoInterno="TnLeaDPRelatMovimentacoesOcorrencias" DataSetInterno="cdsItemHistorico" PropData="05704C65667403B8000470546F7003F4000A506172616D65746572730100"/>
    <TnfrxDBXExternaData Name="cdsAtividadeOcorrencias" UserName="cdsAtividadeOcorrencias" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" IgnoreDupParams="False" SQL.Text="" IndexFieldNames="ID" Database="ConexaoQuestor" ProcessoInterno="TnLeaDPRelatMovimentacoesOcorrencias" DataSetInterno="cdsAtividadeOcorrencias" PropData="05704C65667403C0010470546F7002600A506172616D65746572730100"/>
    <TnfrxDBXExternaData Name="cdsOcorrenciaHistoricos" UserName="cdsOcorrenciaHistoricos" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" Master="cdsAtividadeOcorrencias" IgnoreDupParams="False" SQL.Text="" IndexFieldNames="ATIVIDADEOCORRENCIAID" MasterFields="ATIVIDADEOCORRENCIAID=ID" Database="ConexaoQuestor" ProcessoInterno="TnLeaDPRelatMovimentacoesOcorrencias" DataSetInterno="cdsOcorrenciaHistoricos" PropData="05704C65667403C0010470546F700398000A506172616D65746572730100"/>
  </TfrxDataPage>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxReportTitle Name="ReportTitle1" Height="22,67718" Left="0" Top="18,89765" Width="718,1107">
      <TfrxMemoView Name="Memo2" Left="0" Top="2" Width="725,66976" Height="18,89765" ShowHint="False" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="Histórico de movimentações de ocorrências"/>
    </TfrxReportTitle>
    <TfrxMasterData Name="MasterAtividadesOcorrencias" Height="83,14966" Left="0" Top="102,04731" Width="718,1107" ColumnWidth="0" ColumnGap="0" DataSet="cdsAtividadeOcorrencias" DataSetName="cdsAtividadeOcorrencias" PrintIfDetailEmpty="True" RowCount="0" Stretched="True">
      <TfrxMemoView Name="Step_1NOME" Left="83,70872" Top="2,77953" Width="393,07112" Height="18,89765" ShowHint="False" DataSet="Step_1" DataSetName="Step_1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="# [cdsAtividadeOcorrencias.&#34;ID&#34;] - [cdsAtividadeOcorrencias.&#34;TITULO&#34;] [cdsAtividadeOcorrencias.&#34;NOME_ATIVIDADE&#34;]"/>
      <TfrxMemoView Name="Memo3" Left="3,77953" Top="2,77953" Width="79,37013" Height="18,89765" ShowHint="False" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Ocorrência:"/>
      <TfrxMemoView Name="Step_1DATAVENCIMENTOLEGAL" Left="600,94527" Top="2,77953" Width="117,16543" Height="18,89765" ShowHint="False" DataSet="Step_1" DataSetName="Step_1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[cdsAtividadeOcorrencias.&#34;DATAVENCIMENTOLEGAL&#34;]"/>
      <TfrxMemoView Name="Step_1DATAVENCIMENTOINTERNO" Left="600,94527" Top="21,45671" Width="117,16543" Height="18,89765" ShowHint="False" DataSet="Step_1" DataSetName="Step_1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[cdsAtividadeOcorrencias.&#34;DATAVENCIMENTOINTERNO&#34;]"/>
      <TfrxMemoView Name="Memo4" Left="476,22078" Top="2,77953" Width="120,94496" Height="18,89765" ShowHint="False" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Vencimento legal:"/>
      <TfrxMemoView Name="Memo5" Left="461,10266" Top="21,67718" Width="136,06308" Height="18,89765" ShowHint="False" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Vencimento Interno:"/>
      <TfrxMemoView Name="Memo6" Left="461,88219" Top="40,35436" Width="49,13389" Height="18,89765" ShowHint="False" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Status:"/>
      <TfrxLineView Name="Line1" Left="1,77953" Top="1,5906" Width="714,33117" Height="0" ShowHint="False" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo8" Left="3,77953" Top="39,57483" Width="64,25201" Height="18,89765" ShowHint="False" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Empresa:"/>
      <TfrxMemoView Name="Step_1NOMEEMPRESA" Left="67,81107" Top="39,57483" Width="393,07112" Height="18,89765" ShowHint="False" DataSet="Step_1" DataSetName="Step_1" Text="[cdsAtividadeOcorrencias.&#34;NOMEEMPRESA&#34;]"/>
      <TfrxMemoView Name="Memo11" Left="3,77953" Top="20,67718" Width="45,35436" Height="18,89765" ShowHint="False" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Fluxo:"/>
      <TfrxMemoView Name="Step_1INFORMACOES" Left="166,63791" Top="59,03154" Width="544,25232" Height="18,89765" ShowHint="False" StretchMode="smMaxHeight" DataSet="Step_1" DataSetName="Step_1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" HAlign="haBlock" ParentFont="False" Text="[cdsAtividadeOcorrencias.&#34;INFORMACOES&#34;]"/>
      <TfrxMemoView Name="Memo12" Left="3,77953" Top="59,03154" Width="158,74026" Height="18,89765" ShowHint="False" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Informações Adicionais:"/>
      <TfrxMemoView Name="Step_1NOME_FLUXO" Left="49,91342" Top="20,67718" Width="411,96877" Height="18,89765" ShowHint="False" DataSet="Step_1" DataSetName="Step_1" Text="[cdsAtividadeOcorrencias.&#34;NOME_FLUXO&#34;]"/>
      <TfrxMemoView Name="cdsAtividadeOcorrenciasDESCRSTATUS" Left="513,00031" Top="39,57483" Width="200,31509" Height="18,89765" ShowHint="False" DataField="DESCRSTATUS" DataSet="cdsAtividadeOcorrencias" DataSetName="cdsAtividadeOcorrencias" Text="[cdsAtividadeOcorrencias.&#34;DESCRSTATUS&#34;]"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" Height="22,67718" Left="0" Top="574,48856" Width="718,1107">
      <TfrxMemoView Name="Memo1" Left="642,5201" Top="0" Width="75,5906" Height="18,89765" ShowHint="False" HAlign="haRight" Text="[Page#]"/>
    </TfrxPageFooter>
    <TfrxDetailData Name="DetailOcorrenciasHistoricos" Height="34,01577" Left="0" Top="253,22851" Width="718,1107" ColumnWidth="0" ColumnGap="0" DataSet="cdsOcorrenciaHistoricos" DataSetName="cdsOcorrenciaHistoricos" PrintIfDetailEmpty="True" RowCount="0">
      <TfrxMemoView Name="Memo7" Left="3,77953" Top="0,77953" Width="102,04731" Height="18,89765" ShowHint="False" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Atualizado por:"/>
      <TfrxMemoView Name="Memo10" Left="3,77953" Top="17,13389" Width="37,7953" Height="15,11812" ShowHint="False" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Nota:"/>
      <TfrxMemoView Name="OcorrenciaHistoricosUSUARIOID" Left="105,3859" Top="0,77953" Width="608,50433" Height="18,89765" ShowHint="False" DataSetName="OcorrenciaHistoricos" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[cdsOcorrenciaHistoricos.&#34;USUARIOID&#34;] - [cdsOcorrenciaHistoricos.&#34;NOMEUSUARIO&#34;] em [cdsOcorrenciaHistoricos.&#34;DATAATUALIZACAO&#34;]"/>
      <TfrxMemoView Name="OcorrenciaHistoricosNOTA" Left="43,47248" Top="17,13389" Width="672,75634" Height="15,11812" ShowHint="False" DataSetName="OcorrenciaHistoricos" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[cdsOcorrenciaHistoricos.&#34;NOTA&#34;]"/>
    </TfrxDetailData>
    <TfrxDetailData Name="DetailResponsaveis" Height="18,89765" Left="0" Top="468,66172" Width="718,1107" ColumnWidth="0" ColumnGap="0" DataSet="ResponsaveisOcorrencia" DataSetName="ResponsaveisOcorrencia" PrintIfDetailEmpty="True" RowCount="0">
      <TfrxMemoView Name="ResponsaveisOcorrenciaNOMEUSUARIO" Left="1,48825" Top="0,77953" Width="714,33117" Height="15,11812" ShowHint="False" DataSet="ResponsaveisOcorrencia" DataSetName="ResponsaveisOcorrencia" Text="[ResponsaveisOcorrencia.&#34;CODIGOUSUARIO&#34;] - [ResponsaveisOcorrencia.&#34;NOMEUSUARIO&#34;]"/>
    </TfrxDetailData>
    <TfrxHeader Name="Header1" Height="22,67718" Left="0" Top="423,30736" Width="718,1107">
      <TfrxMemoView Name="Memo13" Left="0,82684" Top="2" Width="718,1107" Height="18,89765" ShowHint="False" Color="-16777216" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Responsáveis:"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer1" Height="3,77953" Left="0" Top="510,23655" Width="718,1107"/>
    <TfrxHeader Name="Header2" Height="22,67718" Left="0" Top="207,87415" Width="718,1107">
      <TfrxMemoView Name="Memo14" Left="0" Top="2" Width="718,1107" Height="18,89765" ShowHint="False" Color="-16777216" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Histórico de Atividades:"/>
    </TfrxHeader>
    <TfrxFooter Name="Footer2" Height="7,55906" Left="0" Top="393,07112" Width="718,1107">
      <TfrxLineView Name="Line2" Left="2,33859" Top="2,62987" Width="714,33117" Height="0" ShowHint="False" Frame.Typ="4"/>
    </TfrxFooter>
    <TfrxSubdetailData Name="SubdetailData1" Height="18,89765" Left="0" Top="351,49629" Width="718,1107" ColumnWidth="0" ColumnGap="0" DataSet="cdsItemHistorico" DataSetName="cdsItemHistorico" RowCount="0">
      <TfrxMemoView Name="cdsItemHistoricoItem" Left="3,77952756" Top="1,77953" Width="298,58287" Height="15,11812" ShowHint="False" DataSet="cdsItemHistorico" DataSetName="cdsItemHistorico" Text="[cdsItemHistorico.&#34;Item&#34;]"/>
      <TfrxMemoView Name="cdsItemHistoricoACAO" Left="306,14193" Top="1,77953" Width="408,18924" Height="15,11812" ShowHint="False" DataField="ACAO" DataSet="cdsItemHistorico" DataSetName="cdsItemHistorico" Text="[cdsItemHistorico.&#34;ACAO&#34;]"/>
    </TfrxSubdetailData>
    <TfrxHeader Name="Header3" Height="18,89765" Left="0" Top="309,92146" Width="718,1107">
      <TfrxMemoView Name="Memo15" Left="3,77953" Top="1,77953" Width="298,58287" Height="15,11812" ShowHint="False" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Item"/>
      <TfrxMemoView Name="Memo16" Left="306,14193" Top="2" Width="408,18924" Height="15,11812" ShowHint="False" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Ação"/>
    </TfrxHeader>
  </TfrxReportPage>
</TfrxReport>
