object TnrwReport
  DllName = 'NCTB\nCtbORNotaExplicaPeriodo'
  DllNameSource = 'NCTB\nCtbORNotaExplicaPeriodo.dpr'
  ChaveQuebraPagina = '[Step_1.Codigoempresa]'
  object TnpqQuery
    QueryName = 'Step_1'
    QueryType = npqSelect
    Unions.Strings = (
      'Step_1')
    object TnpqQueryTable
      TableAlias = 'Empresa'
      TableName = 'Empresa'
      Left = 424
      Top = 7
      Height = 197
      Width = 145
    end
    object TnpqQueryTable
      TableAlias = 'Notaexplicaperiodo'
      TableName = 'Notaexplicaperiodo'
      Left = 10
      Top = 10
      Height = 180
      Width = 160
    end
    object TnpqJoin
      LeftTableAlias = 'Empresa'
      RightTableAlias = 'Notaexplicaperiodo'
      object TnpqJoinField
        LeftFieldAlias = 'CODIGOEMPRESA'
        RightFieldAlias = 'CODIGOEMPRESA'
      end
    end
    object TnpqQueryValue
      ValueAlias = 'Nomeempresa'
      TableAlias = 'Empresa'
      Expression = 'NOMEEMPRESA'
      DataType = ftString
      Width = 50
      Position = 5
      Caption = 'Raz'#227'o Social'
    end
    object TnpqQueryValue
      ValueAlias = 'Codigoempresa'
      TableAlias = 'Notaexplicaperiodo'
      Expression = 'CODIGOEMPRESA'
      Sort = npqSortAscending
      DataType = ftSmallint
      Width = 4
      Alignment = taRightJustify
      Position = 0
      Caption = 'Empresa'
    end
    object TnpqQueryValue
      ValueAlias = 'Datanotaexplica'
      TableAlias = 'Notaexplicaperiodo'
      Expression = 'DATANOTAEXPLICA'
      Mask = 'mm/yyyy'
      DataType = ftDate
      Width = 0
      Position = 1
      Caption = 'Data Fechamento'
    end
    object TnpqQueryValue
      ValueAlias = 'Seqnotaexplica'
      TableAlias = 'Notaexplicaperiodo'
      Expression = 'SEQNOTAEXPLICA'
      DataType = ftSmallint
      Width = 4
      Alignment = taRightJustify
      Position = 2
      Caption = 'Seq'#252#234'ncia'
    end
    object TnpqQueryValue
      ValueAlias = 'Detalhnotaexplica'
      TableAlias = 'Notaexplicaperiodo'
      Expression = 'DETALHNOTAEXPLICA'
      DataType = ftMemo
      Width = 1
      Position = 4
      Caption = 'Texto'
    end
    object TnpqQueryValue
      ValueAlias = 'Descrnotaexplica'
      TableAlias = 'Notaexplicaperiodo'
      Expression = 'DESCRNOTAEXPLICA'
      DataType = ftString
      Width = 50
      Position = 3
      Caption = 'Descri'#231#227'o'
    end
    object TnpqPowerFilter
      object TnpqFilterValue
        VFieldAlias = 'Codigoempresa'
        Header = 'Codigoempresa'
        Position = 0
        object TnpqFilterItem
          Operator = npqFilterInclusion
          Filter = '[pCodigoEmpresa]|'
        end
      end
      object TnpqFilterValue
        VFieldAlias = 'Datanotaexplica'
        Header = 'Datanotaexplica'
        Position = 1
        object TnpqFilterItem
          Operator = npqFilterBetween
          Filter = '[pDataNotaExplica]|[pDataNotaFim]|'
        end
      end
      object TnpqPowerParam
        SeparadoresUsar = False
        object TnpqParamItem
          Alias = 'pDataNotaExplica'
          Value = '01/01/2001'
          Caption = 'Per'#237'odo Inicial'
          Position = 1
          ConsultFields = 'DATANOTAEXPLICA'
          Dicionario = 'DICDATAMESANO'
        end
        object TnpqParamItem
          Alias = 'pDataNotaFim'
          Value = '01/12/2011'
          Caption = 'Per'#237'odo Final'
          Position = 2
          ConsultFields = 'DATANOTAEXPLICA'
          Dicionario = 'DICDATAMESANO'
        end
        object TnpqParamItem
          Alias = 'pCodigoEmpresa'
          Value = '209'
          Caption = 'Empresa'
          CtrlType = ntcLinkEdit
          Position = 3
          ConsultFields = 'CODIGOEMPRESA'
          ConsultMultSelect = True
        end
      end
    end
    object TnpqPowerOrderBy
      Selected = 0
      object TnpqOrderBySeq
        Alias = 'Per'#237'odo/Nota'
        object TnpqOrderByField
          Alias = 'Datanotaexplica'
        end
        object TnpqOrderByField
          Alias = 'Seqnotaexplica'
        end
      end
      object TnpqOrderBySeq
        Alias = 'Per'#237'odo/Descri'#231#227'o Nota'
        object TnpqOrderByField
          Alias = 'Datanotaexplica'
        end
        object TnpqOrderByField
          Alias = 'Descrnotaexplica'
        end
      end
      object TnpqParamItem
        Alias = 'oStep_1'
        Value = '0'
        ParType = npqptOrderBy
        Caption = 'Ordenar'
        CtrlType = ntcComboBox
        CtrlNameValues = 
          'Per'#237'odo/Nota=0;Per'#237'odo/Descri'#231#227'o Nota=1;Nenhum=-1;Personalizar=-' +
          '2'
        Position = 4
        Hint = 'Configure a ordena'#231#227'o do relat'#243'rio.'
      end
    end
  end
  object TnpqPowerParam
    SeparadoresUsar = False
    object TnpqParamItem
      Alias = 'pNomeEmpresa'
      Value = '0002 Com'#233'rcio de Frutas e Verduras Sacol'#227'o Ltda'
      ParType = npqptUser
      Position = 5
      Visible = False
    end
    object TnpqParamItem
      Alias = 'pInscrFederal'
      Value = 'CNPJ: 01.487.228/0001-10'
      ParType = npqptUser
      Position = 6
      Visible = False
    end
  end
  object TnpqSection
    Position = 128
    SectionIndex = 1
  end
  object TnpqSection
    Position = 128
    SectionIndex = 2
    GroupField = 'Step_1.Codigoempresa'
    StartPage = True
    StartNumber = True
  end
  object TnpqSection
    Position = 144
    SectionIndex = 3
    GroupField = 'Step_1.Seqnotaexplica'
  end
  object TnpqSection
    Position = 160
    SectionIndex = 8
  end
  object TnpqSection
    Position = 176
    SectionIndex = 48
    GroupField = 'Step_1.Seqnotaexplica'
  end
  object TnpqLabel
    Name = 'Etiqueta4'
    Top = 96
    Left = 150
    Height = 16
    Width = 630
    Caption = 'Descri'#231#227'o'
  end
  object TnpqLabel
    Name = 'Step_1.Descrnotaexplica'
    Top = 128
    Left = 150
    Height = 16
    Width = 636
    Caption = '[Step_1.Descrnotaexplica]'
  end
  object TnpqLabel
    Name = 'Step_1.Seqnotaexplica'
    Top = 128
    Left = 96
    Height = 16
    Width = 48
    Alignment = npqaRightJustify
    Caption = '[Step_1.Seqnotaexplica]'
  end
  object TnpqLabel
    Name = 'Etiqueta5'
    Top = 96
    Left = 96
    Height = 16
    Width = 48
    Alignment = npqaRightJustify
    Caption = 'Nota'
  end
  object TnpqLabel
    Name = 'Etiqueta3'
    Top = 96
    Left = 36
    Height = 16
    Width = 54
    Alignment = npqaCenter
    Caption = 'Per'#237'odo'
  end
  object TnpqLabel
    Name = 'Etiqueta6'
    Top = 128
    Left = 36
    Height = 16
    Width = 54
    Alignment = npqaCenter
    Caption = '[Step_1.Datanotaexplica]'
  end
  object TnpqLabel
    Name = 'Etiqueta1'
    Top = 64
    Left = 30
    Height = 16
    Width = 756
    Alignment = npqaCenter
    Caption = 'Notas Explicativas por Per'#237'odo'
  end
  object TnpqLabel
    Name = 'pInscrFederal'
    Top = 48
    Left = 30
    Height = 16
    Width = 756
    Caption = '[pInscrFederal]'
  end
  object TnpqLabel
    Name = 'pNomeEmpresa'
    Top = 32
    Left = 30
    Height = 16
    Width = 564
    Caption = '[pNomeEmpresa]'
  end
  object TnpqLabel
    Name = 'Etiqueta2'
    Top = 112
    Left = 30
    Height = 16
    Width = 756
    Alignment = npqaCenter
    Caption = 
      '________________________________________________________________' +
      '________________________________________________________________' +
      '___________________________________________________________'
  end
  object TnpqLabel
    Name = 'gemVTempoPag'
    Top = 32
    Left = 600
    Height = 16
    Width = 186
    Alignment = npqaRightJustify
    Caption = '@var(gemVTempoPag;@PageNo)'
  end
  object TnpqRichText
    Name = 'Memo'
    Top = 144
    Left = 36
    Height = 16
    Width = 750
    Memo.Strings = (
      '')
  end
  object TnpqParamItem
    Alias = 'ReportFor'
    Value = '1'
    ParType = npqptReportFor
    Caption = 'Modo Impress'#227'o'
    CtrlType = ntcComboBox
    CtrlNameValues = 'Gr'#225'fico=1;Texto=2'
    Position = 0
    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
