object TnrwReport
  DllName = 'nOrg\nOrgORDoctoEstabSolicPendente.Dll'
  DllNameSource = 'nOrg\nOrgORDoctoEstabSolicPendente.dpr'
  ChaveQuebraPagina = '[Step_1.CodigoEmpresa]'
  object TnpqQuery
    QueryName = 'Step_1'
    QueryType = npqSelect
    SelectType = npqsSelectDistinct
    Unions.Strings = (
      'Step_1')
    object TnpqQueryTable
      TableAlias = 'Tipodocto'
      TableName = 'Tipodocto'
      Left = 22
      Top = 68
      Width = 132
    end
    object TnpqQueryTable
      TableAlias = 'Doctosolic'
      TableName = 'Doctosolic'
      Left = 209
      Top = 15
      Width = 166
    end
    object TnpqQueryTable
      TableAlias = 'Doctoemit'
      TableName = 'Doctoemit'
      Left = 587
      Top = 7
      Width = 174
    end
    object TnpqQueryTable
      TableAlias = 'Empresa'
      TableName = 'Empresa'
      Left = 415
      Top = 188
      Width = 132
    end
    object TnpqQueryTable
      TableAlias = 'ESTAB'
      TableName = 'ESTAB'
      Left = 682
      Top = 190
      Width = 132
    end
    object TnpqJoin
      LeftTableAlias = 'Tipodocto'
      RightTableAlias = 'Doctosolic'
      RightTableDetail = False
      object TnpqJoinField
        LeftFieldAlias = 'CODIGOTIPODOCTO'
        RightFieldAlias = 'CODIGOTIPODOCTO'
      end
    end
    object TnpqJoin
      LeftTableAlias = 'Doctosolic'
      RightTableAlias = 'Doctoemit'
      JoinType = npqJoinLeft
      object TnpqJoinField
        LeftFieldAlias = 'CODIGOEMPRESA'
        RightFieldAlias = 'CODIGOEMPRESA'
      end
      object TnpqJoinField
        LeftFieldAlias = 'CODIGOESTAB'
        RightFieldAlias = 'CODIGOESTAB'
      end
      object TnpqJoinField
        LeftFieldAlias = 'CODIGOTIPODOCTO'
        RightFieldAlias = 'CODIGOTIPODOCTO'
      end
      object TnpqJoinField
        LeftFieldAlias = 'DATASOLICDOCTO'
        RightFieldAlias = 'DATASOLICDOCTO'
      end
    end
    object TnpqJoin
      LeftTableAlias = 'Empresa'
      RightTableAlias = 'Doctosolic'
      object TnpqJoinField
        LeftFieldAlias = 'CODIGOEMPRESA'
        RightFieldAlias = 'CODIGOEMPRESA'
      end
    end
    object TnpqJoin
      LeftTableAlias = 'ESTAB'
      RightTableAlias = 'Doctosolic'
      object TnpqJoinField
        LeftFieldAlias = 'CODIGOEMPRESA'
        RightFieldAlias = 'CODIGOEMPRESA'
      end
      object TnpqJoinField
        LeftFieldAlias = 'CODIGOESTAB'
        RightFieldAlias = 'CODIGOESTAB'
      end
    end
    object TnpqQueryValue
      ValueAlias = 'Codigotipodocto'
      TableAlias = 'Tipodocto'
      Expression = 'CODIGOTIPODOCTO'
      DataType = ftSmallint
      Width = 10
      Alignment = taRightJustify
      Position = 0
      Caption = 'Tipo Documento'
    end
    object TnpqQueryValue
      ValueAlias = 'Descrtipodocto'
      TableAlias = 'Tipodocto'
      Expression = 'DESCRTIPODOCTO'
      DataType = ftString
      Width = 50
      Position = 5
      Caption = 'Descri'#231#227'o'
    end
    object TnpqQueryValue
      ValueAlias = 'Codigoempresa'
      TableAlias = 'Doctosolic'
      Expression = 'CODIGOEMPRESA'
      Sort = npqSortAscending
      DataType = ftSmallint
      Width = 4
      Alignment = taRightJustify
      Position = 1
      Caption = 'Empresa'
    end
    object TnpqQueryValue
      ValueAlias = 'Codigoestab'
      TableAlias = 'Doctosolic'
      Expression = 'CODIGOESTAB'
      Sort = npqSortAscending
      DataType = ftSmallint
      Width = 4
      Alignment = taRightJustify
      Position = 2
      Caption = 'Filial'
    end
    object TnpqQueryValue
      ValueAlias = 'Datasolicdocto_1'
      TableAlias = 'Doctosolic'
      Expression = 'DATASOLICDOCTO'
      DataType = ftDate
      Width = 0
      Position = 3
      Caption = 'Data Solicita'#231#227'o'
    end
    object TnpqQueryValue
      ValueAlias = 'Datasolicdocto_2'
      TableAlias = 'Doctosolic'
      Expression = 'DATASOLICDOCTO'
      Show = npqHide
      DataType = ftDate
      Width = 0
      Position = 4
      Caption = 'Data Solicita'#231#227'o'
    end
    object TnpqQueryValue
      ValueAlias = 'Datasolicdocto'
      TableAlias = 'Doctoemit'
      Expression = 'DATASOLICDOCTO'
      DataType = ftDate
      Width = 0
      Position = 6
      Caption = 'Data Solicita'#231#227'o'
    end
    object TnpqQueryValue
      ValueAlias = 'Nomeempresa'
      TableAlias = 'Empresa'
      Expression = 'NOMEEMPRESA'
      DataType = ftString
      Width = 50
      Position = 7
      Caption = 'Raz'#227'o Social'
    end
    object TnpqQueryValue
      ValueAlias = 'Datasolicdocto_3'
      TableAlias = 'Doctosolic'
      Expression = 'DATASOLICDOCTO'
      DataType = ftDate
      Width = 0
      Position = 4
      Caption = 'Data Solicita'#231#227'o'
    end
    object TnpqQueryValue
      ValueAlias = 'Solicitado'
      TableAlias = 'Doctosolic'
      Expression = 'SOLICITADO'
      DataType = ftString
      Width = 1
      Position = 8
      Caption = 'Solicitado'
      CtrlNames = 'Sim'#13#10'N'#227'o'
      CtrlValues = '1'#13#10'0'
    end
    object TnpqQueryValue
      ValueAlias = 'Observsolic'
      TableAlias = 'Doctosolic'
      Expression = 'OBSERVSOLIC'
      DataType = ftString
      Width = 50
      Position = 9
      Caption = 'Observa'#231#227'o'
    end
    object TnpqQueryValue
      ValueAlias = 'Tipoinscr'
      TableAlias = 'ESTAB'
      Expression = 'TIPOINSCR'
      DataType = ftSmallint
      Width = 1
      Alignment = taRightJustify
      Position = 10
      Caption = 'Tipo Inscri'#231#227'o'
      CtrlNames = 'CPF;CNPJ;CEI'
      CtrlValues = '1;2;3'
    end
    object TnpqQueryValue
      ValueAlias = 'Inscrfederal'
      TableAlias = 'ESTAB'
      Expression = 'INSCRFEDERAL'
      DataType = ftString
      Width = 18
      Position = 11
      Caption = 'CNPJ/CPF/CNO'
    end
    object TnpqQueryValue
      ValueAlias = 'Apelidoestab'
      TableAlias = 'ESTAB'
      Expression = 'APELIDOESTAB'
      DataType = ftString
      Width = 10
      Position = 12
      Caption = 'Identifica'#231#227'o'
    end
    object TnpqPowerFilter
      object TnpqFilterValue
        VFieldAlias = 'Codigotipodocto'
        Header = 'Codigotipodocto'
        Position = 0
        object TnpqFilterItem
          Operator = npqFilterInclusion
          Filter = '[pCodigoTipoDocto]|'
        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 TnpqFilterValue
        VFieldAlias = 'Datasolicdocto_1'
        Header = 'Datasolicdocto_1'
        Position = 3
        object TnpqFilterItem
          Operator = npqFilterGE
          Filter = '[pDataIni]|'
        end
      end
      object TnpqFilterValue
        VFieldAlias = 'Datasolicdocto_3'
        Header = 'Datasolicdocto_3'
        Position = 4
        object TnpqFilterItem
          Operator = npqFilterGE
          Filter = '[pDataIni]|'
        end
      end
      object TnpqFilterValue
        VFieldAlias = 'Datasolicdocto_2'
        Header = 'Datasolicdocto_2'
        Position = 4
        object TnpqFilterItem
          Operator = npqFilterLE
          Filter = '[pDataFim]|'
        end
      end
      object TnpqFilterValue
        VFieldAlias = 'Descrtipodocto'
        Header = 'Descrtipodocto'
        Position = 5
      end
      object TnpqFilterValue
        VFieldAlias = 'Datasolicdocto'
        Header = 'Datasolicdocto'
        Position = 6
      end
      object TnpqPowerParam
        SeparadoresUsar = False
        object TnpqParamItem
          Alias = 'pDataIni'
          Value = ' '
          Caption = 'Data Solicita'#231#227'o Inicial'
          CtrlType = ntcActData
          Position = 0
          ConsultFields = 'DATASOLICDOCTO'
          Dicionario = 'DICDATA'
          Hint = 'Informe a data inicial'
        end
        object TnpqParamItem
          Alias = 'pDataFim'
          Value = ' '
          Caption = 'Data Solicita'#231#227'o Final'
          CtrlType = ntcActData
          Position = 1
          ConsultFields = 'DATASOLICDOCTO'
          Dicionario = 'DICDATA'
          Hint = 'Informe a data final'
        end
        object TnpqParamItem
          Alias = 'pCodigoEmpresa'
          Value = ' '
          Caption = 'Empresa'
          CtrlType = ntcLink
          Position = 4
          ConsultFields = 'CODIGOEMPRESA'
          ConsultMultSelect = True
        end
        object TnpqParamItem
          Alias = 'pCodigoEstab'
          Value = ' '
          Caption = 'Filial'
          CtrlType = ntcLink
          Position = 5
          ConsultFields = 'CODIGOESTAB'
          ConsultMultSelect = True
        end
        object TnpqParamItem
          Alias = 'pCodigoTipoDocto'
          Value = ' '
          Caption = 'Tipo Documento'
          Position = 6
          ConsultFields = 'CODIGOTIPODOCTO'
          ConsultMultSelect = True
        end
      end
    end
    object TnpqPowerOrderBy
      Selected = 1
      object TnpqOrderBySeq
        Alias = 'Tipo Documento'
        object TnpqOrderByField
          Alias = 'Codigotipodocto'
        end
        object TnpqOrderByField
          Alias = 'Datasolicdocto_1'
        end
      end
      object TnpqOrderBySeq
        Alias = 'Descri'#231#227'o'
        object TnpqOrderByField
          Alias = 'Descrtipodocto'
        end
        object TnpqOrderByField
          Alias = 'Codigotipodocto'
        end
        object TnpqOrderByField
          Alias = 'Datasolicdocto_1'
        end
      end
      object TnpqParamItem
        Alias = 'oStep_1'
        Value = '1'
        ParType = npqptOrderBy
        Caption = 'Ordenar'
        CtrlType = ntcComboBox
        CtrlNameValues = 'Tipo Documento=0;Descri'#231#227'o=1;Nenhum=-1;Personalizar=-2'
        Position = 8
      end
    end
  end
  object TnpqPowerParam
    SeparadoresUsar = False
    object TnpqParamItem
      Alias = 'pDocto'
      Value = '1'
      ParType = npqptUser
      Caption = 'Visualizar'
      CtrlType = ntcComboBox
      CtrlNameValues = 'Todos=1;Documentos sem emiss'#227'o=2'
      Position = 2
    end
    object TnpqParamItem
      Alias = 'pEnviada'
      Value = '1'
      ParType = npqptUser
      Caption = 'Solicitado'
      CtrlType = ntcCheckListBox
      CtrlNameValues = 'Sim=1;N'#227'o=2'
      Position = 3
    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.Codigoestab'
  end
  object TnpqSection
    Position = 160
    SectionIndex = 8
  end
  object TnpqSection
    Position = 192
    SectionIndex = 48
    GroupField = 'Step_1.Codigoestab'
  end
  object TnpqLabel
    Name = 'Titulo'
    Top = 48
    Left = 30
    Height = 16
    Width = 756
    Alignment = npqaCenter
    Caption = 'Documentos Solicitados por Filial'
  end
  object TnpqLabel
    Name = 'Etiqueta2'
    Top = 32
    Left = 600
    Height = 16
    Width = 186
    Alignment = npqaRightJustify
    Caption = '@Date @Time P'#225'g:@var(gemVFormatZero;@pageNo;4)'
  end
  object TnpqLabel
    Name = 'Etiqueta1'
    Top = 32
    Left = 30
    Height = 16
    Width = 564
    Caption = 
      '@var(gemVFormatZero;[Step_1.Codigoempresa];4) [Step_1.Nomeempres' +
      'a]'
  end
  object TnpqLabel
    Name = 'Etiqueta3'
    Top = 112
    Left = 30
    Height = 16
    Width = 756
    Alignment = npqaCenter
    Caption = 
      '________________________________________________________________' +
      '________________________________________________________________' +
      '________________________________'
  end
  object TnpqLabel
    Name = 'Etiqueta4'
    Top = 176
    Left = 30
    Height = 16
    Width = 756
    Alignment = npqaCenter
    Caption = 
      '________________________________________________________________' +
      '________________________________________________________________' +
      '________________________________'
  end
  object TnpqLabel
    Name = 'Step_1.Codigotipodocto1'
    Top = 160
    Left = 30
    Height = 16
    Width = 330
    Caption = 'Qtde Documentos: @Count([Step_1.Codigotipodocto])'
  end
  object TnpqLabel
    Name = 'Step_1.Codigoestab'
    Top = 128
    Left = 30
    Height = 16
    Width = 756
    Caption = 
      'Filial: @var(gemVFormatZero;[Step_1.Codigoestab];4)   [Step_1.Ap' +
      'elidoestab]   -   [Step_1.Inscrfederal]'
  end
  object TnpqLabel
    Name = 'Step_1.Codigotipodocto Legenda'
    Top = 96
    Left = 30
    Height = 16
    Width = 48
    Alignment = npqaRightJustify
    Caption = 'Docto.'
  end
  object TnpqLabel
    Name = 'Step_1.Datasolicdocto'
    Top = 144
    Left = 312
    Height = 16
    Width = 60
    Alignment = npqaCenter
    Caption = '[Step_1.Datasolicdocto_1]'
  end
  object TnpqLabel
    Name = 'Step_1.Descrtipodocto'
    Top = 144
    Left = 84
    Height = 16
    Width = 228
    Caption = 'Estadual'
  end
  object TnpqLabel
    Name = 'Step_1.Descrtipodocto Legenda'
    Top = 96
    Left = 84
    Height = 16
    Width = 228
    Caption = 'Descri'#231#227'o'
  end
  object TnpqLabel
    Name = 'Step_1.Datasolicdocto Legenda'
    Top = 96
    Left = 312
    Height = 16
    Width = 60
    Alignment = npqaCenter
    Caption = 'Data Solic.'
  end
  object TnpqLabel
    Name = 'Step_1.Solicitado'
    Top = 144
    Left = 378
    Height = 16
    Width = 24
    Caption = '[Step_1.Solicitado]'
  end
  object TnpqLabel
    Name = 'Step_1.Observsolic'
    Top = 144
    Left = 402
    Height = 16
    Width = 384
    Caption = '[Step_1.Observsolic]'
    Font.Color = clBlack
    Font.Height = -9
    Font.Name = 'Times New Roman'
    Font.Style = []
  end
  object TnpqLabel
    Name = 'Step_1.Observsolic Legenda'
    Top = 96
    Left = 402
    Height = 16
    Width = 384
    Caption = 'Observa'#231#227'o'
  end
  object TnpqLabel
    Name = 'Step_1.Codigotipodocto'
    Top = 144
    Left = 30
    Height = 16
    Width = 48
    Alignment = npqaRightJustify
    Caption = '2'
  end
  object TnpqLabel
    Name = 'Step_1.Solicitado Legenda'
    Top = 96
    Left = 372
    Height = 16
    Width = 30
    Caption = 'Solic.'
  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
