object TnrwReport
  DllName = 'nFpa\nfpaoRRelacaoPagamentoTerc.Dll'
  DllNameSource = 'nFpa\nfpaoRRelacaoPagamentoTerc.dpr'
  ShowErrorEmptyQuery = True
  ReloadOnExecute = False
  ChaveQuebraPagina = '[pControleCustoEmpresa]'
  object TnpqQuery
    QueryName = 'Step_1'
    QueryType = npqSelect
    Unions.Strings = (
      'Step_1')
    object TnpqQueryTable
      TableAlias = 'TerceiroPgto'
      TableName = 'TerceiroPgto'
      Left = 17
      Top = 31
      Width = 136
      Caption = 'TerceiroPgto'
    end
    object TnpqQueryTable
      TableAlias = 'ESTAB'
      TableName = 'ESTAB'
      Left = 392
      Top = 1
      Width = 136
      Caption = 'ESTAB'
    end
    object TnpqQueryTable
      TableAlias = 'Organograma'
      TableName = 'Organograma'
      Left = 396
      Top = 168
      Width = 136
      Caption = 'Organograma'
    end
    object TnpqQueryTable
      TableAlias = 'Terceiro'
      TableName = 'Terceiro'
      Left = 694
      Top = 20
      Width = 136
      Caption = 'Terceiro'
    end
    object TnpqQueryTable
      TableAlias = 'Empresa'
      TableName = 'Empresa'
      Left = 696
      Top = 190
      Height = 90
      Width = 136
      Caption = 'Empresa'
    end
    object TnpqQueryTable
      TableAlias = 'Terceiropgtoservico'
      TableName = 'Terceiropgtoservico'
      Left = 241
      Top = 257
      Width = 136
      Caption = 'Terceiropgtoservico'
    end
    object TnpqJoin
      LeftTableAlias = 'TerceiroPgto'
      RightTableAlias = 'ESTAB'
      VirtualJoin = False
      object TnpqJoinField
        LeftFieldAlias = 'CodigoEmpresa'
        RightFieldAlias = 'CodigoEmpresa'
      end
      object TnpqJoinField
        LeftFieldAlias = 'CodigoEstab'
        RightFieldAlias = 'CodigoEstab'
      end
    end
    object TnpqJoin
      LeftTableAlias = 'TerceiroPgto'
      RightTableAlias = 'Organograma'
      VirtualJoin = False
      object TnpqJoinField
        LeftFieldAlias = 'CodigoEmpresa'
        RightFieldAlias = 'CodigoEmpresa'
      end
      object TnpqJoinField
        LeftFieldAlias = 'CodigoEstab'
        RightFieldAlias = 'CodigoEstab'
      end
      object TnpqJoinField
        LeftFieldAlias = 'ClassifOrgan'
        RightFieldAlias = 'ClassifOrgan'
      end
    end
    object TnpqJoin
      LeftTableAlias = 'TerceiroPgto'
      RightTableAlias = 'Terceiro'
      VirtualJoin = False
      object TnpqJoinField
        LeftFieldAlias = 'CodigoTerc'
        RightFieldAlias = 'CodigoTerc'
      end
    end
    object TnpqJoin
      LeftTableAlias = 'TerceiroPgto'
      RightTableAlias = 'Empresa'
      VirtualJoin = False
      object TnpqJoinField
        LeftFieldAlias = 'CodigoEmpresa'
        RightFieldAlias = 'CodigoEmpresa'
      end
    end
    object TnpqJoin
      LeftTableAlias = 'TerceiroPgto'
      RightTableAlias = 'Terceiropgtoservico'
      JoinType = npqJoinLeft
      VirtualJoin = False
      object TnpqJoinField
        LeftFieldAlias = 'CODIGOEMPRESA'
        RightFieldAlias = 'CODIGOEMPRESA'
      end
      object TnpqJoinField
        LeftFieldAlias = 'CODIGOTERC'
        RightFieldAlias = 'CODIGOTERC'
      end
      object TnpqJoinField
        LeftFieldAlias = 'COMPET'
        RightFieldAlias = 'COMPET'
      end
      object TnpqJoinField
        LeftFieldAlias = 'SEQ'
        RightFieldAlias = 'SEQ'
      end
    end
    object TnpqQueryValue
      ValueAlias = 'CodigoEmpresa'
      TableAlias = 'TerceiroPgto'
      Expression = 'CodigoEmpresa'
      Show = npqShowGroup
      Sort = npqSortAscending
      Mask = '###0'
      DataType = ftSmallint
      Width = 6
      Alignment = taRightJustify
      Position = 0
      Caption = 'Empresa'
    end
    object TnpqQueryValue
      ValueAlias = 'CodigoTerc'
      TableAlias = 'TerceiroPgto'
      Expression = 'CodigoTerc'
      Show = npqShowGroup
      Mask = '###0'
      DataType = ftSmallint
      Width = 6
      Alignment = taRightJustify
      Position = 2
      Caption = 'Terceiro'
    end
    object TnpqQueryValue
      ValueAlias = 'Compet'
      TableAlias = 'TerceiroPgto'
      Expression = 'Compet'
      Show = npqShowGroup
      Mask = 'MM/YYYY'
      DataType = ftDate
      Width = 12
      Position = 4
      Caption = 'Compet'#234'ncia'
    end
    object TnpqQueryValue
      ValueAlias = 'CodigoEstab'
      TableAlias = 'ESTAB'
      Expression = 'CodigoEstab'
      Show = npqShowGroup
      Sort = npqSortAscending
      Mask = '###0'
      DataType = ftSmallint
      Width = 6
      Alignment = taRightJustify
      Position = 1
      Caption = 'Filial'
    end
    object TnpqQueryValue
      ValueAlias = 'NomeTerc'
      TableAlias = 'Terceiro'
      Expression = 'NomeTerc'
      Show = npqShowGroup
      DataType = ftString
      Width = 52
      Position = 5
      Caption = 'Nome'
    end
    object TnpqQueryValue
      ValueAlias = 'NomeEstab'
      TableAlias = 'ESTAB'
      Expression = 'NomeEstab'
      Show = npqShowGroup
      DataType = ftString
      Width = 52
      Position = 6
      Caption = 'Identifica'#231#227'o'
    end
    object TnpqQueryValue
      ValueAlias = 'NomeEmpresa'
      TableAlias = 'Empresa'
      Expression = 'NomeEmpresa'
      Show = npqShowGroup
      DataType = ftString
      Width = 52
      Position = 7
      Caption = 'Raz'#227'o Social'
    end
    object TnpqQueryValue
      ValueAlias = 'Ano'
      Expression = 'EXTRACT(YEAR FROM TerceiroPgto.COMPET)'#13#10
      Show = npqHide
      DataType = ftInteger
      Width = 25
      Position = 3
      Caption = 'Ano'
    end
    object TnpqQueryValue
      ValueAlias = 'ValorBruto'
      TableAlias = 'Terceiropgtoservico'
      Expression = 'VALOR'
      Show = npqShowSum
      DataType = ftFMTBcd
      Width = 14
      Alignment = taRightJustify
      Position = 8
      Caption = 'Valor R$'
    end
    object TnpqQueryValue
      ValueAlias = 'CodigoservicoValorBruto'
      TableAlias = 'Terceiropgtoservico'
      Expression = 'CODIGOSERVICO'
      Show = npqHide
      DataType = ftInteger
      Width = 9
      Alignment = taRightJustify
      Position = 9
      Caption = 'Servi'#231'o'
    end
    object TnpqPowerFilter
      object TnpqFilterValue
        VFieldAlias = 'CodigoEmpresa'
        Header = 'CodigoEmpresa'
        Position = 0
        object TnpqFilterItem
          Operator = npqFilterInclusion
          Filter = '[pCodigoEmpresa]|'
        end
      end
      object TnpqFilterValue
        VFieldAlias = 'CodigoEstab'
        Header = 'CodigoEstab'
        Position = 1
        object TnpqFilterItem
          Operator = npqFilterInclusion
          Filter = '[pCodigoEstab]|'
        end
      end
      object TnpqFilterValue
        VFieldAlias = 'CodigoTerc'
        Header = 'CodigoTerc'
        Position = 2
        object TnpqFilterItem
          Operator = npqFilterInclusion
          Filter = '[pCodigoTerc]|'
        end
      end
      object TnpqFilterValue
        VFieldAlias = 'Ano'
        Header = 'Ano'
        Position = 3
        object TnpqFilterItem
          Filter = '[pAno]|'
          InWhere = False
        end
      end
      object TnpqFilterValue
        VFieldAlias = 'Compet'
        Header = 'Compet'
        Position = 4
      end
      object TnpqFilterValue
        VFieldAlias = 'CodigoservicoValorBruto'
        Header = 'CodigoservicoValorBruto'
        Position = 9
        object TnpqFilterItem
          Operator = npqFilterBetween
          Filter = '9000|9013|'
          InWhere = False
        end
      end
      object TnpqPowerParam
        SeparadoresUsar = False
        object TnpqParamItem
          Alias = 'pAno'
          Value = '2009'
          Caption = 'Ano'
          Position = 0
          ConsultFields = '{fn YEAR(TerceiroPgto.Compet )}'
          Requerid = True
          Dicionario = 'DICINTEIRO4'
        end
        object TnpqParamItem
          Alias = 'pCodigoEmpresa'
          Value = '1..50'
          Caption = 'Empresa'
          Position = 3
          Consult = 'ngemDCEmpresa'
          ConsultFields = 'CodigoEmpresa'
          ConsultMultSelect = True
        end
        object TnpqParamItem
          Alias = 'pCodigoEstab'
          Value = ' '
          Caption = 'Filial'
          Position = 4
          Consult = 'ngemDCEstab'
          ConsultFields = 'CodigoEstab'
          ConsultMultSelect = True
        end
        object TnpqParamItem
          Alias = 'pCodigoTerc'
          Value = ' '
          Caption = 'Terceiro'
          Position = 5
          Consult = 'nfpaDCTerceiro'
          ConsultFields = 'CodigoTerc'
          ConsultMultSelect = True
        end
      end
    end
    object TnpqPowerOrderBy
      Selected = 1
      object TnpqOrderBySeq
        Alias = 'Terceiro'
        object TnpqOrderByField
          Alias = 'CodigoTerc'
        end
        object TnpqOrderByField
          Alias = 'Compet'
        end
      end
      object TnpqOrderBySeq
        Alias = 'Nome'
        object TnpqOrderByField
          Alias = 'NomeTerc'
        end
        object TnpqOrderByField
          Alias = 'CodigoTerc'
        end
        object TnpqOrderByField
          Alias = 'Compet'
        end
      end
      object TnpqParamItem
        Alias = 'oStep_1'
        Value = '1'
        ParType = npqptOrderBy
        Caption = 'Ordenar'
        CtrlType = ntcComboBox
        CtrlNameValues = 'Terceiro=0;Nome=1;Nenhum=-1;Personalizar=-2'
        Position = 6
      end
    end
  end
  object TnpqPowerParam
    SeparadoresUsar = False
    object TnpqParamItem
      Alias = 'pQuebraEstab'
      ParType = npqptUser
      Caption = 'Quebra P'#225'gina Filial'
      CtrlType = ntcComboBox
      CtrlNameValues = 'Sim=1;N'#227'o=2'
      Position = 2
    end
    object TnpqParamItem
      Alias = 'R0'
      Value = '   Filial: 1 - TUCANO OBRAS E SERVICOS LTDA'
      ParType = npqptUser
      Position = 7
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pValor1'
      Value = '300,00'
      ParType = npqptUser
      Position = 8
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pValor2'
      Value = '300,00'
      ParType = npqptUser
      Position = 9
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pValor3'
      Value = '300,00'
      ParType = npqptUser
      Position = 10
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pValor4'
      Value = '150,00'
      ParType = npqptUser
      Position = 11
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pValor5'
      Value = '166,50'
      ParType = npqptUser
      Position = 12
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pValor6'
      Value = ' '
      ParType = npqptUser
      Position = 13
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pValor7'
      Value = ' '
      ParType = npqptUser
      Position = 14
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pValor8'
      Value = ' '
      ParType = npqptUser
      Position = 15
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pValor9'
      Value = ' '
      ParType = npqptUser
      Position = 16
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pValor10'
      Value = ' '
      ParType = npqptUser
      Position = 17
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pValor11'
      Value = ' '
      ParType = npqptUser
      Position = 18
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pValor12'
      Value = ' '
      ParType = npqptUser
      Position = 19
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pTotal'
      Value = '1.216,50'
      ParType = npqptUser
      Position = 20
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pNomeTerc'
      Value = 'TELMO ZERMIANI'
      ParType = npqptUser
      Position = 21
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pCodigoEmp'
      Value = '0043'
      ParType = npqptUser
      Position = 22
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pNomeEmpresa'
      Value = 
        'SINDICATO DOS TRABALHADORES DA IND'#218'STRIA DO VEST'#193'RIO E RIO DO SU' +
        'L E DO ALTO VALE DO ITAJA'#205
      ParType = npqptUser
      Position = 23
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pCodigoEst'
      Value = '0001'
      ParType = npqptUser
      Position = 24
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pNomeEstab'
      Value = 
        'SINDICATO DOS TRABALHADORES DA IND'#218'STRIA DO VEST'#193'RIO E RIO DO SU' +
        'L E DO ALTO VALE DO ITAJA'#205
      ParType = npqptUser
      Position = 25
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pControleCustoEmpresa'
      ParType = npqptUser
      Position = 26
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pCodigoIdioma'
      ParType = npqptUser
      Position = 27
      Dicionario = 'CODIGOIDIOMA'
    end
  end
  object TnpqSection
    Position = 64
    SectionIndex = 1
  end
  object TnpqSection
    Position = 112
    SectionIndex = 8
  end
  object TnpqSection
    Position = 144
    SectionIndex = 9
  end
  object TnpqSection
    Position = 256
    SectionIndex = 10
  end
  object TnpqLabel
    Name = 'Etiqueta15'
    Top = 64
    Left = 582
    Height = 16
    Width = 60
    Alignment = npqaRightJustify
    Caption = '[pValor5]'
  end
  object TnpqLabel
    Name = 'Etiqueta9'
    Top = 64
    Left = 378
    Height = 16
    Width = 66
    Alignment = npqaRightJustify
    Caption = '[pValor2]'
  end
  object TnpqLabel
    Name = 'Etiqueta11'
    Top = 64
    Left = 450
    Height = 16
    Width = 60
    Alignment = npqaRightJustify
    Caption = '[pValor3]'
  end
  object TnpqLabel
    Name = 'Etiqueta13'
    Top = 64
    Left = 516
    Height = 16
    Width = 60
    Alignment = npqaRightJustify
    Caption = '[pValor4]'
  end
  object TnpqLabel
    Name = 'Etiqueta18'
    Top = 176
    Left = 30
    Height = 16
    Width = 54
    Alignment = npqaRightJustify
    Caption = 'Terceiro'
  end
  object TnpqLabel
    Name = 'Etiqueta4'
    Top = 32
    Left = 732
    Height = 16
    Width = 52
    Alignment = npqaRightJustify
    Caption = 'P'#225'g:@VAR(gemVFormatZero;@PageNo;4)'
  end
  object TnpqLabel
    Name = 'Etiqueta10'
    Top = 80
    Left = 378
    Height = 16
    Width = 66
    Alignment = npqaRightJustify
    Caption = '[pValor8]'
  end
  object TnpqLabel
    Name = 'Etiqueta14'
    Top = 80
    Left = 516
    Height = 16
    Width = 60
    Alignment = npqaRightJustify
    Caption = '[pValor10]'
  end
  object TnpqLabel
    Name = 'Etiqueta5'
    Top = 80
    Left = 582
    Height = 16
    Width = 60
    Alignment = npqaRightJustify
    Caption = '[pValor11]'
  end
  object TnpqLabel
    Name = 'Etiqueta8'
    Top = 80
    Left = 648
    Height = 16
    Width = 60
    Alignment = npqaRightJustify
    Caption = '[pValor12]'
  end
  object TnpqLabel
    Name = 'Etiqueta12'
    Top = 80
    Left = 450
    Height = 16
    Width = 60
    Alignment = npqaRightJustify
    Caption = '[pValor9]'
  end
  object TnpqLabel
    Name = 'Etiqueta17'
    Top = 64
    Left = 648
    Height = 16
    Width = 60
    Alignment = npqaRightJustify
    Caption = '[pValor6]'
  end
  object TnpqLabel
    Name = 'Etiqueta34'
    Top = 128
    Left = 30
    Height = 16
    Width = 756
    Alignment = npqaCenter
    Caption = 
      '________________________________________________________________' +
      '________________________________________________________________' +
      '________________________________________________________________' +
      '________________________________________________'
  end
  object TnpqLabel
    Name = 'Etiqueta6'
    Top = 112
    Left = 42
    Height = 16
    Width = 510
    Caption = '[pCodigoEst]-[pNomeEstab]'
  end
  object TnpqLabel
    Name = 'Etiqueta7'
    Top = 64
    Left = 306
    Height = 16
    Width = 66
    Alignment = npqaRightJustify
    Caption = '[pValor1]'
  end
  object TnpqLabel
    Name = 'Etiqueta16'
    Top = 80
    Left = 306
    Height = 16
    Width = 66
    Alignment = npqaRightJustify
    Caption = '[pValor7]'
  end
  object TnpqLabel
    Name = 'Etiqueta20'
    Top = 80
    Left = 714
    Height = 16
    Width = 72
    Alignment = npqaRightJustify
    Caption = '[pTotal]'
  end
  object TnpqLabel
    Name = 'Etiqueta19'
    Top = 176
    Left = 306
    Height = 16
    Width = 66
    Alignment = npqaRightJustify
    Caption = 'Jan'
  end
  object TnpqLabel
    Name = 'Etiqueta22'
    Top = 176
    Left = 450
    Height = 16
    Width = 60
    Alignment = npqaRightJustify
    Caption = 'Mar'
  end
  object TnpqLabel
    Name = 'Etiqueta21'
    Top = 176
    Left = 378
    Height = 16
    Width = 66
    Alignment = npqaRightJustify
    Caption = 'Fev'
  end
  object TnpqLabel
    Name = 'Etiqueta23'
    Top = 176
    Left = 516
    Height = 16
    Width = 60
    Alignment = npqaRightJustify
    Caption = 'Abr'
  end
  object TnpqLabel
    Name = 'Etiqueta24'
    Top = 176
    Left = 582
    Height = 16
    Width = 60
    Alignment = npqaRightJustify
    Caption = 'Mai'
  end
  object TnpqLabel
    Name = 'Etiqueta25'
    Top = 176
    Left = 648
    Height = 16
    Width = 60
    Alignment = npqaRightJustify
    Caption = 'Jun'
  end
  object TnpqLabel
    Name = 'Etiqueta27'
    Top = 192
    Left = 378
    Height = 16
    Width = 66
    Alignment = npqaRightJustify
    Caption = 'Ago'
  end
  object TnpqLabel
    Name = 'Etiqueta32'
    Top = 192
    Left = 450
    Height = 16
    Width = 60
    Alignment = npqaRightJustify
    Caption = 'Set'
  end
  object TnpqLabel
    Name = 'Etiqueta28'
    Top = 192
    Left = 516
    Height = 16
    Width = 60
    Alignment = npqaRightJustify
    Caption = 'Out'
  end
  object TnpqLabel
    Name = 'Etiqueta29'
    Top = 192
    Left = 582
    Height = 16
    Width = 60
    Alignment = npqaRightJustify
    Caption = 'Nov'
  end
  object TnpqLabel
    Name = 'Etiqueta31'
    Top = 192
    Left = 648
    Height = 16
    Width = 60
    Alignment = npqaRightJustify
    Caption = 'Dez'
  end
  object TnpqLabel
    Name = 'Etiqueta33'
    Top = 192
    Left = 720
    Height = 16
    Width = 66
    Alignment = npqaRightJustify
    Caption = 'Total'
  end
  object TnpqLabel
    Name = 'Etiqueta30'
    Top = 192
    Left = 306
    Height = 16
    Width = 66
    Alignment = npqaRightJustify
    Caption = 'Jul'
  end
  object TnpqLabel
    Name = 'Etiqueta2'
    Top = 144
    Left = 30
    Height = 16
    Width = 510
    Caption = '[pCodigoEmp]-[pNomeEmpresa]'
  end
  object TnpqLabel
    Name = 'Etiqueta26'
    Top = 240
    Left = 30
    Height = 16
    Width = 756
    Alignment = npqaCenter
    Caption = 
      '________________________________________________________________' +
      '________________________________________________________________' +
      '________________________________________________________________' +
      '________________________________________________'
  end
  object TnpqLabel
    Name = 'Etiqueta3'
    Top = 32
    Left = 576
    Height = 16
    Width = 150
    Alignment = npqaRightJustify
    Caption = '@Date @Time'
  end
  object TnpqLabel
    Name = 'Etiqueta1'
    Top = 224
    Left = 30
    Height = 16
    Width = 756
    Alignment = npqaCenter
    Caption = 'Pagamentos Anuais de Terceiros'
  end
  object TnpqLabel
    Name = 'Step_1.CodigoTerc'
    Top = 64
    Left = 30
    Height = 16
    Width = 71
    Alignment = npqaRightJustify
    Caption = '[pCodigoTerc]'
  end
  object TnpqLabel
    Name = 'Step_1.NomeTerc'
    Top = 64
    Left = 102
    Height = 16
    Width = 203
    Caption = '[pNomeTerc]'
  end
  object TnpqParamItem
    Alias = 'ReportFor'
    Value = '1'
    ParType = npqptReportFor
    Caption = 'Modo Impress'#227'o'
    CtrlType = ntcComboBox
    CtrlNameValues = 'Gr'#225'fico=1;Texto=2'
    Position = 1
    Visible = False
    Hint = 
      'Para impress'#227'o do relat'#243'rio em "laser" ou "jato de tinta" use "G' +
      'r'#225'fico", ou para "matricial" use "Texto"'
  end
end
