inherited frmBuscaNFeParaManifestar: TfrmBuscaNFeParaManifestar
  Left = 232
  Top = 54
  Caption = 'frmBuscaNFeParaManifestar'
  ClientHeight = 604
  ClientWidth = 827
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 16
  object Label1: TLabel [0]
    Left = 6
    Top = 179
    Width = 97
    Height = 16
    Cursor = crHandPoint
    Caption = 'Marcar Todos'
    DragCursor = crHandPoint
    OnClick = Label1Click
  end
  object Label2: TLabel [1]
    Left = 136
    Top = 179
    Width = 126
    Height = 16
    Cursor = crHandPoint
    Caption = 'Desmarcar Todos'
    DragCursor = crHandPoint
    OnClick = Label2Click
  end
  object prgBarraprogresso: TGauge [2]
    Left = 0
    Top = 554
    Width = 827
    Height = 15
    Align = alBottom
    BorderStyle = bsNone
    ForeColor = 16770222
    Progress = 0
    ExplicitTop = 555
  end
  inherited Panel3: TPanel
    Top = 569
    Width = 827
    ExplicitTop = 570
    ExplicitWidth = 827
    inherited Panel2: TPanel
      Left = 571
      ExplicitLeft = 571
      inherited BtGravar: TBitBtn
        ModalResult = 1
      end
    end
  end
  inherited Panel1: TPanel
    Width = 827
    ExplicitWidth = 827
    inherited lblTitulo: TLabel
      Width = 252
      Caption = 'Busca NFe para Manifestar'
      ExplicitWidth = 252
    end
    inherited Shape1: TShape
      Width = 827
      ExplicitWidth = 827
    end
  end
  object GroupBox1: TGroupBox [5]
    Left = 8
    Top = 40
    Width = 577
    Height = 129
    Caption = 'Selecionar NF'#39's n'#227'o Manifestadas'
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clWindowText
    Font.Height = -13
    Font.Name = 'Verdana'
    Font.Style = [fsBold]
    ParentFont = False
    TabOrder = 2
    object rdbTodos: TRadioButton
      Left = 12
      Top = 27
      Width = 233
      Height = 17
      Caption = 'Todos '
      Checked = True
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -13
      Font.Name = 'Verdana'
      Font.Style = []
      ParentFont = False
      TabOrder = 0
      TabStop = True
      OnClick = rdbTodosClick
    end
    object rdbPeriodo: TRadioButton
      Left = 12
      Top = 93
      Width = 158
      Height = 17
      Caption = 'Emitidas no Per'#237'odo'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -13
      Font.Name = 'Verdana'
      Font.Style = []
      ParentFont = False
      TabOrder = 1
      OnClick = rdbPeriodoClick
    end
    object edtDataInicio: TIB_Date
      Left = 167
      Top = 90
      Width = 124
      Height = 24
      AutoLabel.Caption = 'Inicio'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -13
      Font.Name = 'Verdana'
      Font.Style = []
      ParentFont = False
      Visible = False
      ParentBackground = False
      TabOrder = 2
      IncCellHeight = 1
      IncCellWidth = 2
      DrawYearArrow = False
    end
    object edtDataFim: TIB_Date
      Left = 322
      Top = 90
      Width = 124
      Height = 24
      AutoLabel.Caption = 'At'#233
      AutoLabel.Kind = albLeft
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -13
      Font.Name = 'Verdana'
      Font.Style = []
      ParentFont = False
      Visible = False
      ParentBackground = False
      TabOrder = 3
      IncCellHeight = 1
      IncCellWidth = 2
      DrawYearArrow = False
    end
    object btnBuscar: TBitBtn
      Left = 468
      Top = 88
      Width = 96
      Height = 30
      Caption = 'Buscar'
      Glyph.Data = {
        76060000424D7606000000000000360400002800000018000000180000000100
        08000000000040020000C30E0000C30E00000001000000010000315A29003163
        29008C2931006B4A31007B4A31003952310031633100427B3100398431009429
        39009C313900A5313900944A39006B523900429C39004AA53900101042006329
        4200AD314200B5314200A5394200B53942008442420052B5420052BD42001010
        4A0021214A00BD394A00C6394A007B424A0084424A009C424A00AD424A00BD42
        4A00C6424A00734A4A00945A4A00B55A4A0042734A00427B4A00528C4A004A94
        4A004A9C4A006B9C4A007B9C4A0052B54A005ABD4A00181852007B295200C642
        52005A4A52009C4A5200426B5200428C520052AD520063DE520063E752007B29
        5A0031315A0039315A007B315A00D64A5A00A5525A00D6525A007B5A5A005A63
        5A004A6B5A006BE75A0029296300393163007B31630052526300EF526300F752
        6300FF526300735A63008C5A63006B636300EF6363005A73630073D6630073DE
        63006BEF630018186B0029216B008C396B008CD66B007BE76B007BF76B007BFF
        6B002121730029217300EF5A730063637300E763730063BD730084F7730084FF
        730021217B0029217B0029297B00635A7B0063637B00EF6B7B00EF737B0084AD
        7B0063C67B0094FF7B00212184002929840039398400A54284004A4A84008C4A
        84006B6B840073738400EF7384007B7B84008CC6840094F7840029218C003931
        8C00424A8C005A6B8C007B7B8C00FF7B8C00F7948C00BDC68C00A5FF8C002921
        94002929940031299400423994005A39940052739400FF849400B5FF94002929
        9C0031299C00FF8C9C00ADFF9C00B5FF9C003129A5003131A5003931A5003939
        A5004242A5004A42A5005A5AA5006B6BA500F794A500FF94A500B5FFA5003931
        AD007B42AD00BDFFAD00C6FFAD003131B5003931B5006339B5008484B5003131
        BD004239BD00C66BBD008484BD00FFC6BD004231C6005252C6008484C6007B9C
        C600FFB5C6003931CE003939CE004239CE004242CE004A42CE004A4ACE00945A
        CE006363CE004239D6004242D6004A4AD600524AD6005252D600E7FFD600524A
        DE00635ADE00524AE7005A52E7007373E70094C6E700524AEF005252EF005A5A
        EF007373EF00CEE7EF00635AF700A59CF700ADB5F700B5B5F700FF00FF006363
        FF006B63FF00736BFF007B73FF009494FF009C94FF009C9CFF00ADA5FF00ADAD
        FF00BDB5FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
        FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
        FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
        FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
        FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
        FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00C8C8C8C8C8C8
        0A0902C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C83312090211445B47C8
        C8C8C8C8C8C8C8C8C8C8C8C8C8C8C814150B0A39786D6D5B44455DC8C8C8C8C8
        C8C8C8C8C8C83312150B0B3C83828278786D44C8C8C8C8C8C8C8C8C8C8C80D15
        15140B3C83828282827854C8C8C8C8C8C8C8C8C8C8C803212112124683838282
        82785BC8C8C8C8C8C8C8C8C8C84F0467683F31558F8A8A8282825BC8C8C8C8C8
        C8C8C8C8C84F0C8BAA9787A3BAB0A2998F8A64C8C8C8C8C8C8C8C8C8C8422549
        48485CB1C4C4C4C1B9AF90C8C8C8C8C8C8C8C8C8C8347FA57E4E6FA6ACACADAD
        B4B493C8C8C8C8C8C8C8C8C8C826779B88567A9E9D9E9E9E9E84C8C8C8C8C8C8
        C8C8C8C8C8275858432A93632F2F538A6EC8C8C8C8C8C8C8C8C8C8C8C8299B8C
        602B718F632F101AC8C866453BC8C8C8C8C8C8C8C8368C9B802C85C2C5B79054
        C894B683623AC8C8C8C8C8C8C86A523718249FD0D2CAB979C8B0CCBA8A63C8C8
        C8C8C8C895C6C3BE861F9ACECCC0AE70C8A7CBD09E64C8C8C8C8C8C8A0CDCEBD
        6E3265B2B7AE91C8C8C8C0B06DC8C8C8C8C8C8C8A4D1A935060541757C7273C8
        C8C8C8C8C8C8C8C8C8C8C8C8A8C75F170E08004D401D23C8C8C8C8C8C8C8C8C8
        C8C8C8C8957B51572E0F011E5E310A4BC8C8C8C8C8C8C8C8C8C8C8C8C8698CB8
        8C5707218B74221EC8C8C8C8C8C8C8C8C8C8C8C8C876616B6B58283E7D96214C
        C8C8C8C8C8C8C8C8C8C8C8C8C8C85037372DC8C83F204CC8C8C8C8C8C8C8C8C8
        C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8}
      TabOrder = 4
      OnClick = btnBuscarClick
    end
    object rdbNumeracao: TRadioButton
      Left = 12
      Top = 58
      Width = 161
      Height = 17
      Caption = 'Numera'#231#227'o da NF'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -13
      Font.Name = 'Verdana'
      Font.Style = []
      ParentFont = False
      TabOrder = 5
      OnClick = rdbNumeracaoClick
    end
    object edtNumeracaoInicio: TLabeledEdit
      Left = 167
      Top = 57
      Width = 124
      Height = 24
      EditLabel.Width = 4
      EditLabel.Height = 16
      EditLabel.Caption = ' '
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -13
      Font.Name = 'Verdana'
      Font.Style = []
      LabelSpacing = 0
      ParentFont = False
      TabOrder = 6
      Visible = False
    end
    object edtNumeracaoFim: TLabeledEdit
      Left = 322
      Top = 57
      Width = 124
      Height = 24
      EditLabel.Width = 29
      EditLabel.Height = 16
      EditLabel.Caption = 'At'#233' '
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -13
      Font.Name = 'Verdana'
      Font.Style = []
      LabelPosition = lpLeft
      LabelSpacing = 0
      ParentFont = False
      TabOrder = 7
      Visible = False
    end
  end
  object GroupBox2: TGroupBox [6]
    Left = 592
    Top = 40
    Width = 226
    Height = 129
    TabOrder = 3
    object edtVolumes: TIB_Currency
      Left = 89
      Top = 45
      Width = 133
      Height = 24
      AutoLabel.Caption = 'Volumes'
      AutoLabel.Kind = albLeft
      AutoLabel.Margin = 0
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -13
      Font.Name = 'Verdana'
      Font.Style = []
      ParentFont = False
      ParentBackground = False
      ReadOnly = True
      TabOrder = 0
      AlwaysShowButton = True
    end
    object edtValorTotal: TIB_Currency
      Left = 89
      Top = 71
      Width = 133
      Height = 24
      AutoLabel.Caption = 'Valor Total'
      AutoLabel.Kind = albLeft
      AutoLabel.Margin = 0
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -13
      Font.Name = 'Verdana'
      Font.Style = []
      ParentFont = False
      ParentBackground = False
      ReadOnly = True
      TabOrder = 1
      AlwaysShowButton = True
    end
    object edtPeso: TIB_Currency
      Left = 89
      Top = 97
      Width = 133
      Height = 24
      AutoLabel.Caption = 'Peso'
      AutoLabel.Kind = albLeft
      AutoLabel.Margin = 0
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -13
      Font.Name = 'Verdana'
      Font.Style = []
      ParentFont = False
      ParentBackground = False
      ReadOnly = True
      TabOrder = 2
      AlwaysShowButton = True
    end
    object edtQuantidade: TIB_Currency
      Left = 89
      Top = 17
      Width = 133
      Height = 24
      AutoLabel.Caption = 'Qtd NFs'
      AutoLabel.Kind = albLeft
      AutoLabel.Margin = 0
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -13
      Font.Name = 'Verdana'
      Font.Style = []
      ParentFont = False
      ParentBackground = False
      ReadOnly = True
      TabOrder = 3
      AlwaysShowButton = True
    end
  end
  object grdPesquisa: TIB_Grid [7]
    Left = 0
    Top = 200
    Width = 824
    Height = 355
    CustomGlyphsSupplied = []
    DataSource = dsrSelecionaCtrc
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clBlack
    Font.Height = -11
    Font.Name = 'Verdana'
    Font.Style = []
    ParentFont = False
    Ctl3D = True
    ParentCtl3D = False
    ParentBackground = False
    ReadOnly = True
    TabOrder = 4
    FixedColor = 14804712
    RowSelect = True
    ColMoving = False
    IndicateSelected = False
    CurrentRowColor = clWhite
    CurrentRowFont.Charset = DEFAULT_CHARSET
    CurrentRowFont.Color = clWindowText
    CurrentRowFont.Height = -13
    CurrentRowFont.Name = 'Verdana'
    CurrentRowFont.Style = [fsBold]
    OrderingColor = 16770222
    OrderingFont.Charset = DEFAULT_CHARSET
    OrderingFont.Color = clBlue
    OrderingFont.Height = -12
    OrderingFont.Name = 'Verdana'
    OrderingFont.Style = []
    FixedFont.Charset = DEFAULT_CHARSET
    FixedFont.Color = clBlack
    FixedFont.Height = -11
    FixedFont.Name = 'Verdana'
    FixedFont.Style = [fsBold]
    OnCellClick = grdPesquisaCellClick
  end
  inherited ImagensPadrao: TImageList
    Bitmap = {
      [encoded data, 8768 characters]
      000000000000}
  end
  object qrSelecionaNF: TIB_Query
    FieldsDisplayLabel.Strings = (
      'SELECAO=Sele'#231#227'o'
      'NUMERO=N'#250'mero'
      'CLIENTEDESTINO=Cliente'
      'COD_FILIAL=Filial'
      'DATA_EMISSAO=Data Emiss'#227'o'
      'TOTAL_NF=Total NF'
      'VOLUMES=Volumes'
      'PESO=Peso'
      'VALOR_TOTAL=Total')
    FieldsIndex.Strings = (
      'SELECAO'
      'NUMERO'
      'DATA_EMISSAO'
      'VALOR_TOTAL'
      'CLIENTEDESTINO'
      'COD_FILIAL'
      'VOLUMES'
      'PESO'
      'DB_KEY'
      'DATA_EMISSAO')
    FieldsVisible.Strings = (
      'DB_KEY=FALSE'
      'COD_FILIAL=FALSE'
      'SELECAO=TRUE'
      'NUMERO=TRUE'
      'CLIENTEDESTINO=TRUE'
      'DATA_EMISSAO=TRUE'
      'TOTAL_NF=TRUE'
      'VOLUMES=TRUE'
      'PESO=TRUE'
      'VALOR_TOTAL=TRUE')
    IB_Connection = Dados.IB_Conexao
    SQL.Strings = (
      'SELECT '#39' '#39' as Selecao '
      '     , NF.numero'
      '     , NF.COD_FILIAL'
      '     , NF.DATA_EMISSAO'
      '     , NF.total_nf as VALOR_TOTAL'
      '     , NF.volumes'
      '     , NF.data_emissao'
      '     , NF.peso_bruto as PESO'
      '     ,( select CLIENTE.RAZAOSOCIAL'
      '        from cliente'
      '        where cliente.COD_CLIENTE = NF.cod_cliente'
      '       ) as ClienteDestino'
      'FROM NF'
      'WHERE NF.COD_MANIFESTO IS NULL'
      'and NF.COD_FILIAL = :codFilial'
      'and NF.cancelado <> '#39'T'#39
      ''
      'order by NF.NUMERO')
    EditSQL.Strings = (
      'UPDATE NF SET'
      '   NUMERO = :NUMERO, /*PK*/'
      '   COD_FILIAL = :COD_FILIAL, /*PK*/'
      '   DATA_EMISSAO = :DATA_EMISSAO'
      'WHERE'
      '   NUMERO = :OLD_NUMERO AND'
      '   COD_FILIAL = :OLD_COD_FILIAL')
    OrderingItemNo = -1
    OrderingItems.Strings = (
      'NUMERO=NUMERO;NUMERO DESC'
      'VALOR_TOTAL=VALOR_TOTAL;VALOR_TOTAL DESC'
      'VOLUMES=VOLUMES;VOLUMES DESC'
      'PESO=PESO;PESO DESC'
      'DATA_EMISSAO=DATA_EMISSAO;DATA_EMISSAO DESC'
      'DATA_EMISSAO1=DATA_EMISSAO;DATA_EMISSAO DESC')
    OrderingLinks.Strings = (
      'NUMERO=1'
      'VALOR_TOTAL=2'
      'VOLUMES=3'
      'PESO=4'
      'DATA_EMISSAO=5'
      'DATA_EMISSAO1=6')
    SearchingLinks.Strings = (
      'NUMERO=NUMERO'
      'VALOR_TOTAL=VALOR_TOTAL'
      'VOLUMES=VOLUMES'
      'PESO=PESO'
      'DATA_EMISSAO=DATA_EMISSAO'
      'DATA_EMISSAO1=DATA_EMISSAO1')
    Left = 288
    ParamValues = (
      'CODFILIAL=0')
  end
  object dsrSelecionaCtrc: TIB_DataSource
    Dataset = qrSelecionaNF
    Left = 320
  end
end
