object TnrwReport
  DllName = 'nPro\nProORRotaEntrega'
  DllNameSource = 'nPro\nProORRotaEntrega.dpr'
  object TnpqQuery
    QueryName = 'Step_1'
    QueryType = npqSelect
    Unions.Strings = (
      'Step_1')
    object TnpqQueryTable
      TableAlias = 'Protocolorota'
      TableName = 'Protocolorota'
      Left = 10
      Top = 10
    end
    object TnpqQueryTable
      TableAlias = 'ESTAB'
      TableName = 'ESTAB'
      Left = 715
      Top = 24
    end
    object TnpqQueryTable
      TableAlias = 'Protocolorotaentrega'
      TableName = 'Protocolorotaentrega'
      Left = 233
      Top = 11
      Height = 167
      Width = 182
    end
    object TnpqQueryTable
      TableAlias = 'Empresa'
      TableName = 'Empresa'
      Left = 96
      Top = 231
    end
    object TnpqJoin
      LeftTableAlias = 'Protocolorota'
      RightTableAlias = 'Protocolorotaentrega'
      RightTableDetail = False
      object TnpqJoinField
        LeftFieldAlias = 'CODIGOROTA'
        RightFieldAlias = 'CODIGOROTA'
      end
    end
    object TnpqJoin
      LeftTableAlias = 'ESTAB'
      RightTableAlias = 'Protocolorotaentrega'
      RightTableDetail = False
      object TnpqJoinField
        LeftFieldAlias = 'CODIGOEMPRESA'
        RightFieldAlias = 'CODIGOEMPRESA'
      end
      object TnpqJoinField
        LeftFieldAlias = 'CODIGOESTAB'
        RightFieldAlias = 'CODIGOESTAB'
      end
    end
    object TnpqJoin
      LeftTableAlias = 'Empresa'
      RightTableAlias = 'ESTAB'
      object TnpqJoinField
        LeftFieldAlias = 'CODIGOEMPRESA'
        RightFieldAlias = 'CODIGOEMPRESA'
      end
    end
    object TnpqJoin
      LeftTableAlias = 'Empresa'
      RightTableAlias = 'Protocolorotaentrega'
      object TnpqJoinField
        LeftFieldAlias = 'CODIGOEMPRESA'
        RightFieldAlias = 'CODIGOEMPRESA'
      end
    end
    object TnpqQueryValue
      ValueAlias = 'Codigorota'
      TableAlias = 'Protocolorota'
      Expression = 'CODIGOROTA'
      Sort = npqSortAscending
      Mask = '000'
      DataType = ftSmallint
      Width = 5
      Alignment = taRightJustify
      Position = 0
      Caption = 'Rota Entrega'
    end
    object TnpqQueryValue
      ValueAlias = 'Descrrota'
      TableAlias = 'Protocolorota'
      Expression = 'DESCRROTA'
      DataType = ftString
      Width = 50
      Position = 3
      Caption = 'Descri'#231#227'o'
    end
    object TnpqQueryValue
      ValueAlias = 'Codigoempresa'
      TableAlias = 'ESTAB'
      Expression = 'CODIGOEMPRESA'
      Sort = npqSortAscending
      Mask = '000'
      DataType = ftSmallint
      Width = 4
      Alignment = taRightJustify
      Position = 1
      Caption = 'Empresa'
    end
    object TnpqQueryValue
      ValueAlias = 'Codigoestab'
      TableAlias = 'ESTAB'
      Expression = 'CODIGOESTAB'
      Sort = npqSortAscending
      Mask = '000'
      DataType = ftSmallint
      Width = 4
      Alignment = taRightJustify
      Position = 2
      Caption = 'Filial'
    end
    object TnpqQueryValue
      ValueAlias = 'Apelidoestab'
      TableAlias = 'ESTAB'
      Expression = 'APELIDOESTAB'
      DataType = ftString
      Width = 10
      Position = 4
      Caption = 'Identifica'#231#227'o'
    end
    object TnpqQueryValue
      ValueAlias = 'Nomeempresa'
      TableAlias = 'Empresa'
      Expression = 'NOMEEMPRESA'
      DataType = ftString
      Width = 100
      Position = 5
      Caption = 'Raz'#227'o Social'
    end
    object TnpqQueryValue
      ValueAlias = 'Seqrota'
      TableAlias = 'Protocolorotaentrega'
      Expression = 'SEQROTA'
      Mask = '0000'
      DataType = ftSmallint
      Width = 5
      Alignment = taRightJustify
      Position = 6
      Caption = 'Seq'#252#234'ncia'
    end
    object TnpqQueryValue
      ValueAlias = 'Observacao'
      Expression = 'CAST(Protocolorotaentrega.OBSERVACAO AS VARCHAR(1000))'
      DataType = ftMemo
      Width = 1
      Position = 7
      Caption = 'Observa'#231#227'o'
    end
    object TnpqPowerFilter
      object TnpqFilterValue
        VFieldAlias = 'Codigorota'
        Header = 'Codigorota'
        Position = 0
        object TnpqFilterItem
          Operator = npqFilterInclusion
          Filter = '[pCodigoRota]|'
        end
      end
      object TnpqFilterValue
        VFieldAlias = 'Codigoempresa'
        Header = 'Codigoempresa'
        Position = 1
        object TnpqFilterItem
          Operator = npqFilterInclusion
          Filter = '[pCodigoEmpresa]|'
        end
      end
      object TnpqFilterValue
        VFieldAlias = 'Codigoestab'
        Header = 'Codigoestab'
        Position = 2
        object TnpqFilterItem
          Operator = npqFilterInclusion
          Filter = '[pCodigoEstab]|'
        end
      end
      object TnpqPowerParam
        object TnpqParamItem
          Alias = 'pCodigoRota'
          Value = ' '
          Caption = 'Rota Entrega'
          Position = 3
          ConsultFields = 'CODIGOROTA'
          ConsultMultSelect = True
        end
        object TnpqParamItem
          Alias = 'pCodigoEmpresa'
          Value = ' '
          Caption = 'Empresa'
          CtrlType = ntcLinkEdit
          Position = 4
          ConsultFields = 'CODIGOEMPRESA'
          ConsultMultSelect = True
        end
        object TnpqParamItem
          Alias = 'pCodigoEstab'
          Value = ' '
          Caption = 'Filial'
          Position = 5
          ConsultFields = 'CODIGOESTAB'
          ConsultMultSelect = True
        end
      end
    end
    object TnpqPowerOrderBy
      object TnpqParamItem
        Alias = 'oStep_1'
        Value = '-1'
        ParType = npqptOrderBy
        Caption = 'Ordenar'
        CtrlType = ntcComboBox
        CtrlNameValues = 'Nenhum=-1;Personalizar=-2'
        Position = 6
        Visible = False
        Hint = 'Configure a ordena'#231#227'o do relat'#243'rio.'
      end
    end
  end
  object TnpqPowerParam
    object TnpqParamItem
      Alias = 'pTipoRel'
      Value = '1'
      ParType = npqptUser
      Caption = 'Tipo do Relat'#243'rio'
      CtrlType = ntcComboBox
      CtrlNameValues = 'Sint'#233'tico=2;Anal'#237'tico=1'
      Position = 1
      Requerid = True
    end
    object TnpqParamItem
      Alias = 'pMostrarEnd'
      Value = '0'
      ParType = npqptUser
      Caption = 'Mostrar Endere'#231'o'
      Position = 2
      Dicionario = 'DICSIMNAO'
      Hint = 'Informe se deseja lista o endere'#231'o do cliente'
    end
    object TnpqParamItem
      Alias = 'RTexto'
      ParType = npqptUser
      Position = 7
      Visible = False
    end
    object TnpqParamItem
      Alias = 'REndereco'
      Value = 'Endere'#231'o: Rua Marechal Deodoro, 400  Lages / SC'
      ParType = npqptUser
      Position = 8
      Visible = False
    end
  end
  object TnpqSection
    Position = 96
    SectionIndex = 1
  end
  object TnpqSection
    Position = 112
    SectionIndex = 8
  end
  object TnpqSection
    Position = 128
    SectionIndex = 9
  end
  object TnpqSection
    Position = 144
    SectionIndex = 10
  end
  object TnpqSection
    Position = 160
    SectionIndex = 11
  end
  object TnpqSection
    Position = 176
    SectionIndex = 12
  end
  object TnpqSection
    Position = 192
    SectionIndex = 13
  end
  object TnpqSection
    Position = 208
    SectionIndex = 14
  end
  object TnpqLabel
    Name = 'Etiqueta1'
    Top = 32
    Left = 30
    Height = 16
    Width = 486
    Caption = 'Controle de Protocolo'
  end
  object TnpqLabel
    Name = 'Etiqueta3'
    Top = 48
    Left = 30
    Height = 16
    Width = 756
    Alignment = npqaCenter
    Caption = 'Rota de Entrega'
  end
  object TnpqLabel
    Name = 'Etiqueta2'
    Top = 32
    Left = 522
    Height = 16
    Width = 264
    Alignment = npqaRightJustify
    Caption = '@var(gemVTempoPag;@PageNo)'
  end
  object TnpqLabel
    Name = 'Etiqueta7'
    Top = 112
    Left = 30
    Height = 16
    Width = 756
    Caption = 
      '________________________________________________________________' +
      '________________________________________________________________' +
      '________________________________________________________________' +
      '________________________________________________'
  end
  object TnpqLabel
    Name = 'Step_1.Codigorota Legenda'
    Top = 80
    Left = 30
    Height = 16
    Width = 30
    Caption = 'Rota'
  end
  object TnpqLabel
    Name = 'Step_1.Codigorota'
    Top = 128
    Left = 30
    Height = 16
    Width = 30
    Caption = '[Step_1.Codigorota]'
  end
  object TnpqLabel
    Name = 'Etiqueta6'
    Top = 96
    Left = 48
    Height = 16
    Width = 30
    Caption = 'Seq.'
  end
  object TnpqLabel
    Name = 'Step_1.Descrrota Legenda'
    Top = 80
    Left = 66
    Height = 16
    Width = 720
    Caption = 'Descri'#231#227'o'
  end
  object TnpqLabel
    Name = 'Step_1.Descrrota'
    Top = 128
    Left = 66
    Height = 16
    Width = 720
    Caption = '[Step_1.Descrrota]'
  end
  object TnpqLabel
    Name = 'Etiqueta4'
    Top = 96
    Left = 84
    Height = 16
    Width = 396
    Caption = 'Empresa'
  end
  object TnpqLabel
    Name = 'Etiqueta5'
    Top = 96
    Left = 486
    Height = 16
    Width = 300
    Caption = 'Filial'
  end
  object TnpqLabel
    Name = 'Etiqueta9'
    Top = 144
    Left = 486
    Height = 16
    Width = 300
    Caption = '[Step_1.CodigoEstab] - [Step_1.ApelidoEstab]'
  end
  object TnpqLabel
    Name = 'Step_1.Seqrota'
    Top = 144
    Left = 54
    Height = 16
    Width = 30
    Caption = '[Step_1.Seqrota]'
  end
  object TnpqLabel
    Name = 'Etiqueta8'
    Top = 144
    Left = 90
    Height = 16
    Width = 390
    Caption = '[Step_1.CodigoEmpresa] - [Step_1.NomeEmpresa]'
  end
  object TnpqLabel
    Name = 'Etiqueta10'
    Top = 192
    Left = 30
    Height = 16
    Width = 756
    Caption = '[RTexto]'
  end
  object TnpqLabel
    Name = 'Etiqueta11'
    Top = 160
    Left = 78
    Height = 16
    Width = 708
    Caption = '[REndereco]'
  end
  object TnpqLabel
    Name = 'Step_1.Observacao'
    Top = 176
    Left = 78
    Height = 16
    Width = 708
    Alignment = npqaJustification
    Caption = '[Step_1.Observacao]'
  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
    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
