inherited frmCadRota: TfrmCadRota
  Left = 191
  Top = 151
  Caption = 'Cadastro de rotas'
  ClientHeight = 363
  ClientWidth = 660
  OldCreateOrder = True
  ExplicitWidth = 666
  ExplicitHeight = 392
  PixelsPerInch = 96
  TextHeight = 16
  inherited Paginas: TPageControl
    Width = 660
    Height = 325
    ExplicitWidth = 660
    ExplicitHeight = 325
    inherited Acesso: TTabSheet
      ExplicitLeft = 4
      ExplicitTop = 6
      ExplicitWidth = 652
      ExplicitHeight = 315
      inherited Panel2: TPanel
        Left = 561
        Height = 278
        ExplicitLeft = 561
        ExplicitHeight = 278
      end
      inherited Panel3: TPanel
        Top = 278
        Width = 652
        ExplicitTop = 278
        ExplicitWidth = 652
      end
      inherited pnGrade: TPanel
        Width = 561
        Height = 278
        ExplicitWidth = 561
        ExplicitHeight = 278
        inherited grdPesquisa: TIB_Grid
          Width = 561
          Height = 262
          ExplicitWidth = 561
          ExplicitHeight = 262
        end
        inherited pnlOpcoesPesquisa: TPanel
          Width = 561
          ExplicitWidth = 561
        end
      end
    end
    inherited Manutencao: TTabSheet
      ExplicitLeft = 4
      ExplicitTop = 6
      ExplicitWidth = 652
      ExplicitHeight = 315
      inherited Panel6: TPanel
        Top = 279
        Width = 652
        TabOrder = 6
        ExplicitTop = 279
        ExplicitWidth = 652
        inherited Linhabotao: TShape
          Width = 650
        end
        inherited Panel7: TPanel
          Left = 331
          TabOrder = 0
          ExplicitLeft = 331
          inherited BtProximo: TBitBtn
            TabOrder = 2
          end
          inherited BtAnterior: TBitBtn
            TabOrder = 0
          end
          inherited BtGravar: TBitBtn
            TabOrder = 1
          end
          inherited BtCancelar: TBitBtn
            TabOrder = 3
          end
        end
        inherited btnVoltar: TBitBtn
          TabOrder = 1
        end
        inherited btnEditar2: TBitBtn
          TabOrder = 3
        end
      end
      object edtDescricao: TIB_Edit
        Left = 15
        Top = 71
        Width = 610
        Height = 24
        Hint = 'Descri'#231#227'o da Rota'
        AutoLabel.Caption = 'Descri'#231#227'o'
        AutoLabel.Kind = albTop
        AutoLabel.Margin = 0
        DataField = 'DESCRICAO'
        DataSource = DsPrincipal
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Verdana'
        Font.Style = []
        ParentFont = False
        ParentBackground = False
        TabOrder = 1
      end
      object edtDestino: TIB_LookupCombo
        Tag = 1
        Left = 319
        Top = 119
        Width = 257
        Height = 24
        AutoLabel.Caption = 'Destino'
        AutoLabel.Kind = albTop
        AutoLabel.Margin = 0
        DataSource = dsrDestino
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Verdana'
        Font.Style = []
        ParentFont = False
        PopupMenu = popDestino
        ParentBackground = False
        TabOrder = 3
        OnExit = edtDestinoExit
        OnKeyDown = edtOrigemKeyDown
        DisplayField = 'APELIDO'
        DropDownWidth = 500
        IndicateTitles = True
        ShowButton = True
      end
      object edtOrigem: TIB_LookupCombo
        Tag = 1
        Left = 15
        Top = 119
        Width = 249
        Height = 24
        AutoLabel.Caption = 'Origem'
        AutoLabel.Kind = albTop
        AutoLabel.Margin = 0
        DataSource = dsrOrigem
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Verdana'
        Font.Style = []
        ParentFont = False
        PopupMenu = popDestino
        ParentBackground = False
        TabOrder = 2
        OnExit = edtOrigemExit
        OnKeyDown = edtOrigemKeyDown
        DisplayField = 'APELIDO'
        DropDownWidth = 500
        IndicateTitles = True
        ShowButton = True
      end
      object GroupBox2: TGroupBox
        Left = 15
        Top = 3
        Width = 98
        Height = 46
        Caption = 'C'#211'DIGO'
        TabOrder = 0
        object edtCodigo: TIB_Edit
          Left = 3
          Top = 17
          Width = 86
          Height = 24
          Hint = 'C'#243'digo'
          AutoLabel.Margin = 0
          DataField = 'COD_ROTA'
          DataSource = DsPrincipal
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Verdana'
          Font.Style = []
          ParentFont = False
          BorderStyle = bsNone
          ParentBackground = False
          TabOrder = 0
        end
      end
      object edtFilialOrigem: TIB_LookupCombo
        Tag = 1
        Left = 16
        Top = 175
        Width = 289
        Height = 24
        AutoLabel.Caption = 'Filial de origem'
        AutoLabel.Kind = albTop
        AutoLabel.Margin = 0
        DataSource = dsrFilialOrigem
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Verdana'
        Font.Style = []
        ParentFont = False
        ParentBackground = False
        TabOrder = 4
        DisplayField = 'FILIAL.APELIDO'
        DropDownWidth = 500
        IndicateTitles = True
        ShowButton = True
      end
      object edtFilialDestino: TIB_LookupCombo
        Tag = 1
        Left = 319
        Top = 175
        Width = 298
        Height = 24
        AutoLabel.Caption = 'Filial de Destino'
        AutoLabel.Kind = albTop
        AutoLabel.Margin = 0
        DataSource = dsrFilialDestino
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Verdana'
        Font.Style = []
        ParentFont = False
        ParentBackground = False
        TabOrder = 5
        DisplayField = 'FILIAL.APELIDO'
        DropDownWidth = 500
        IndicateTitles = True
        ShowButton = True
      end
      object btnNovaOrigem: TBitBtn
        Tag = 2
        Left = 283
        Top = 118
        Width = 25
        Height = 25
        Hint = 'Cadastrar Nova Origem'
        Glyph.Data = {
          36050000424D3605000000000000360400002800000010000000100000000100
          08000000000000010000130B0000130B000000010000000100002184290039B5
          520063A563006BAD840094DE8C00FF00FF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00050505050505
          0505050505050505050505050505050503000003050505050505050505050505
          0204010005050505050505050505050502040100050505050505050505050505
          0204010005050505050505050505050502040100050505050505050300000000
          0004010000000000030505020101010101010101010101010005050204040404
          0404010404040404000505030202020202040100000000000305050505050505
          0204010005050505050505050505050502040100050505050505050505050505
          0204010005050505050505050505050502040100050505050505050505050505
          0302020305050505050505050505050505050505050505050505}
        ParentShowHint = False
        ShowHint = True
        TabOrder = 7
        TabStop = False
        OnClick = btnNovaOrigemClick
      end
      object btnPesquisaOrigem: TBitBtn
        Tag = 2
        Left = 261
        Top = 118
        Width = 23
        Height = 25
        Hint = 'Pesquisar Origem'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Verdana'
        Font.Style = []
        Glyph.Data = {
          36050000424D3605000000000000360400002800000010000000100000000100
          08000000000000010000320B0000320B000000010000000100005A6B7300AD7B
          73004A637B00EFBD8400B58C8C00A5948C00C6948C00B59C8C00BD9C8C00F7BD
          8C00BD949400C6949400CE949400C69C9400CEAD9400F7CE9400C6A59C00CEA5
          9C00D6A59C00C6AD9C00CEAD9C00D6AD9C00F7CE9C00F7D69C004A7BA500CEAD
          A500D6B5A500DEBDA500F7D6A500DEBDAD00DEC6AD00E7C6AD00FFDEAD00FFE7
          AD00CEB5B500F7DEB500F7E7B500FFE7B500FFEFB500D6BDBD00DED6BD00E7DE
          BD00FFE7BD006B9CC600EFDEC600FFEFC600FFF7C600F7E7CE00FFF7CE00F7EF
          D600F7F7D600FFF7D600FFFFD6002184DE00F7F7DE00FFFFDE001884E700188C
          E700FFFFE700188CEF00218CEF00B5D6EF00F7F7EF00FFF7EF00FFFFEF00FFFF
          F700FF00FF004AB5FF0052B5FF0052BDFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0042020A424242
          424242424242424242422B39180B42424242424242424242424243443C180B42
          4242424242424242424242444438180B42424242424242424242424244433918
          0A424242424242424242424242444335004201101A114242424242424242453D
          05072F343434291942424242424242221A2D34343437403E0442424242424206
          231C303437404146284242424242421B210F30373A414140310D42424242421F
          20032434373A3A37321342424242421D25030F2D37373737311042424242420D
          2D2D1C162430333429424242424242421E463F0F0316252E0842424242424242
          4227312D21252314424242424242424242420E141B1B42424242}
        ParentFont = False
        ParentShowHint = False
        ShowHint = True
        TabOrder = 8
        TabStop = False
        OnClick = btnPesquisaOrigemClick
      end
      object btnPesquisaDestino: TBitBtn
        Tag = 2
        Left = 573
        Top = 118
        Width = 23
        Height = 25
        Hint = 'Pesquisar Destino'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Verdana'
        Font.Style = []
        Glyph.Data = {
          36050000424D3605000000000000360400002800000010000000100000000100
          08000000000000010000320B0000320B000000010000000100005A6B7300AD7B
          73004A637B00EFBD8400B58C8C00A5948C00C6948C00B59C8C00BD9C8C00F7BD
          8C00BD949400C6949400CE949400C69C9400CEAD9400F7CE9400C6A59C00CEA5
          9C00D6A59C00C6AD9C00CEAD9C00D6AD9C00F7CE9C00F7D69C004A7BA500CEAD
          A500D6B5A500DEBDA500F7D6A500DEBDAD00DEC6AD00E7C6AD00FFDEAD00FFE7
          AD00CEB5B500F7DEB500F7E7B500FFE7B500FFEFB500D6BDBD00DED6BD00E7DE
          BD00FFE7BD006B9CC600EFDEC600FFEFC600FFF7C600F7E7CE00FFF7CE00F7EF
          D600F7F7D600FFF7D600FFFFD6002184DE00F7F7DE00FFFFDE001884E700188C
          E700FFFFE700188CEF00218CEF00B5D6EF00F7F7EF00FFF7EF00FFFFEF00FFFF
          F700FF00FF004AB5FF0052B5FF0052BDFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0042020A424242
          424242424242424242422B39180B42424242424242424242424243443C180B42
          4242424242424242424242444438180B42424242424242424242424244433918
          0A424242424242424242424242444335004201101A114242424242424242453D
          05072F343434291942424242424242221A2D34343437403E0442424242424206
          231C303437404146284242424242421B210F30373A414140310D42424242421F
          20032434373A3A37321342424242421D25030F2D37373737311042424242420D
          2D2D1C162430333429424242424242421E463F0F0316252E0842424242424242
          4227312D21252314424242424242424242420E141B1B42424242}
        ParentFont = False
        ParentShowHint = False
        ShowHint = True
        TabOrder = 9
        TabStop = False
        OnClick = btnPesquisaDestinoClick
      end
      object btnNovoDestino: TBitBtn
        Tag = 2
        Left = 595
        Top = 118
        Width = 25
        Height = 25
        Hint = 'Cadastrar Novo Destino'
        Glyph.Data = {
          36050000424D3605000000000000360400002800000010000000100000000100
          08000000000000010000130B0000130B000000010000000100002184290039B5
          520063A563006BAD840094DE8C00FF00FF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
          FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00050505050505
          0505050505050505050505050505050503000003050505050505050505050505
          0204010005050505050505050505050502040100050505050505050505050505
          0204010005050505050505050505050502040100050505050505050300000000
          0004010000000000030505020101010101010101010101010005050204040404
          0404010404040404000505030202020202040100000000000305050505050505
          0204010005050505050505050505050502040100050505050505050505050505
          0204010005050505050505050505050502040100050505050505050505050505
          0302020305050505050505050505050505050505050505050505}
        ParentShowHint = False
        ShowHint = True
        TabOrder = 10
        TabStop = False
        OnClick = btnNovoDestinoClick
      end
    end
  end
  inherited Panel1: TPanel
    Width = 660
    ExplicitWidth = 660
    inherited Label2: TLabel
      Width = 168
      Caption = 'Cadastro de rotas'
      ExplicitWidth = 168
    end
    inherited Shape1: TShape
      Width = 660
      ExplicitWidth = 660
    end
    inherited imgAcao: TImage
      Left = 300
      ExplicitLeft = 300
    end
  end
  inherited TbPrincipal: TIB_Query
    FieldsCharCase.Strings = (
      'DESCRICAO=UPPER'
      'DESTINO=UPPER'
      'ORIGEM=UPPER'
      'COD_DESTINO=UPPER'
      'COD_ROTA=UPPER'
      'COD_ORIGEM=UPPER')
    FieldsDisplayLabel.Strings = (
      'COD_ROTA=C'#243'digo'
      'DESCRICAO=Descri'#231#227'o'
      'ORIGEM=Origem'
      'DESTINO=Destino')
    FieldsDisplayWidth.Strings = (
      'COD_ROTA=60'
      'DESCRICAO=249'
      'ORIGEM=85'
      'DESTINO=78')
    FieldsIndex.Strings = (
      'COD_FILIAL'
      'EXPORTADO'
      'COD_ROTA'
      'COD_DESTINO'
      'COD_ORIGEM'
      'DESCRICAO'
      'ORIGEM'
      'DESTINO')
    FieldsVisible.Strings = (
      'COD_ROTA=TRUE'
      'COD_DESTINO=FALSE'
      'DESCRICAO=TRUE'
      'COD_ORIGEM=FALSE'
      'DESTINO=TRUE'
      'ORIGEM=TRUE'
      'EXPORTADO=FALSE'
      'COD_FILIAL=FALSE'
      'COD_FILIAL_DESTINO=FALSE'
      'COD_FILIAL_ORIGEM=FALSE')
    SQL.Strings = (
      'SELECT'
      '    ROTA.*'
      '   ,(SELECT DESTINO.APELIDO'
      '    FROM DESTINO'
      '    WHERE DESTINO.COD_DESTINO = ROTA.COD_DESTINO'
      '    ) AS DESTINO'
      ''
      '   ,(SELECT DESTINO.APELIDO'
      '    FROM DESTINO'
      '    WHERE DESTINO.COD_DESTINO = ROTA.COD_ORIGEM'
      '    ) AS ORIGEM'
      ''
      ''
      'FROM ROTA')
    DeleteSQL.Strings = (
      'DELETE FROM ROTA'
      'WHERE'
      '   COD_ROTA = :OLD_COD_ROTA')
    EditSQL.Strings = (
      'UPDATE ROTA SET'
      '   COD_ROTA = :COD_ROTA, /*PK*/'
      '   COD_FILIAL = :COD_FILIAL,'
      '   COD_DESTINO = :COD_DESTINO,'
      '   COD_ORIGEM = :COD_ORIGEM,'
      '   DESCRICAO = :DESCRICAO,'
      '   COD_FILIAL_ORIGEM = :COD_FILIAL_ORIGEM,'
      '   COD_FILIAL_DESTINO = :COD_FILIAL_DESTINO'
      'WHERE'
      '   COD_ROTA = :OLD_COD_ROTA')
    InsertSQL.Strings = (
      'INSERT INTO ROTA('
      '   COD_ROTA, /*PK*/'
      '   COD_FILIAL,'
      '   COD_DESTINO,'
      '   COD_ORIGEM,'
      '   DESCRICAO,'
      '   COD_FILIAL_ORIGEM,'
      '   COD_FILIAL_DESTINO)'
      'VALUES ('
      '   :COD_ROTA,'
      '   :COD_FILIAL,'
      '   :COD_DESTINO,'
      '   :COD_ORIGEM,'
      '   :DESCRICAO,'
      '   :COD_FILIAL_ORIGEM,'
      '   :COD_FILIAL_DESTINO)')
    KeyLinks.Strings = (
      'ROTA.COD_ROTA')
    OrderingItemNo = 2
    OrderingItems.Strings = (
      'COD_ROTA=COD_ROTA;COD_ROTA DESC'
      'DESCRICAO=DESCRICAO;DESCRICAO DESC')
    OrderingLinks.Strings = (
      'COD_ROTA=1'
      'DESCRICAO=2')
    SearchingLinks.Strings = (
      'COD_ROTA=COD_ROTA'
      'DESCRICAO=DESCRICAO')
  end
  inherited ImagensPadrao: TImageList
    Bitmap = {
      [encoded data, 8768 characters]
      000000000000}
  end
  inherited uc_Controle_Acesso: TUCControls
    GroupName = 'Cadastro de Rotas'
  end
  object qrOrigem: TIB_Query
    FieldsCharCase.Strings = (
      'COD_DESTINO=UPPER'
      'APELIDO=UPPER'
      'CIDADE=UPPER'
      'UF=UPPER')
    FieldsDisplayLabel.Strings = (
      'APELIDO=Apelido'
      'CIDADE=Cidade'
      'UF=UF'
      'DESCRICAO=UF')
    FieldsDisplayWidth.Strings = (
      'UF=26'
      'APELIDO=218'
      'CIDADE=173')
    FieldsVisible.Strings = (
      'DB_KEY=FALSE'
      'UF=TRUE'
      'CIDADE=TRUE'
      'APELIDO=TRUE'
      'COD_DESTINO=FALSE'
      'DESCRICAO=TRUE'
      'COD_FILIAL=FALSE')
    IB_Connection = Dados.IB_Conexao
    SQL.Strings = (
      'SELECT DESTINO.COD_DESTINO'
      '     , DESTINO.APELIDO'
      '     , DESTINO.CIDADE'
      '     , DESTINO.COD_FILIAL'
      '     , UF.DESCRICAO'
      'FROM DESTINO'
      '   LEFT JOIN UF ON UF.COD_UF = DESTINO.COD_UF')
    KeyLinks.Strings = (
      'DESTINO.cod_destino')
    OrderingItemNo = 1
    OrderingItems.Strings = (
      'APELIDO=APELIDO;APELIDO DESC'
      'CIDADE=CIDADE;CIDADE DESC'
      'UF=UF;UF DESC')
    OrderingLinks.Strings = (
      'APELIDO=1'
      'CIDADE=2'
      'UF=3')
    SearchingLinks.Strings = (
      'APELIDO=APELIDO'
      'CIDADE=CIDADE'
      'UF=UF')
    Left = 284
  end
  object qrDestino: TIB_Query
    FieldsCharCase.Strings = (
      'COD_DESTINO=UPPER'
      'APELIDO=UPPER'
      'CIDADE=UPPER'
      'UF=UPPER'
      'DESCRICAO=UPPER')
    FieldsDisplayLabel.Strings = (
      'APELIDO=Apelido'
      'CIDADE=Cidade'
      'UF=UF'
      'DESCRICAO=UF')
    FieldsDisplayWidth.Strings = (
      'UF=23'
      'APELIDO=270'
      'CIDADE=157')
    FieldsVisible.Strings = (
      'DB_KEY=FALSE'
      'UF=TRUE'
      'CIDADE=TRUE'
      'APELIDO=TRUE'
      'COD_DESTINO=FALSE')
    IB_Connection = Dados.IB_Conexao
    SQL.Strings = (
      'SELECT DESTINO.COD_DESTINO'
      '     , DESTINO.APELIDO'
      '     , DESTINO.CIDADE'
      '     , UF.DESCRICAO'
      'FROM DESTINO'
      '   LEFT JOIN UF ON UF.COD_UF = DESTINO.COD_UF')
    KeyLinks.Strings = (
      'DESTINO.cod_destino')
    OrderingItemNo = 1
    OrderingItems.Strings = (
      'APELIDO=APELIDO;APELIDO DESC'
      'CIDADE=CIDADE;CIDADE DESC'
      'UF=UF;UF DESC')
    OrderingLinks.Strings = (
      'APELIDO=1'
      'CIDADE=2'
      'UF=3')
    SearchingLinks.Strings = (
      'APELIDO=APELIDO'
      'CIDADE=CIDADE'
      'UF=UF')
    Left = 312
  end
  object dsrDestino: TIB_DataSource
    Dataset = qrDestino
    OnStateChanged = DsPrincipalStateChanged
    Left = 312
    Top = 28
  end
  object dsrOrigem: TIB_DataSource
    Dataset = qrOrigem
    OnStateChanged = DsPrincipalStateChanged
    Left = 284
    Top = 28
  end
  object popDestino: TPopupMenu
    Images = ImagensPadrao
    Left = 420
    Top = 2
    object CadastrarOrigens1: TMenuItem
      Caption = 'Cadastrar Destinos'
      ImageIndex = 1
      OnClick = CadastrarOrigens1Click
    end
    object PesquisarDestinos1: TMenuItem
      Caption = 'Pesquisar'
      ImageIndex = 0
      OnClick = PesquisarDestinos1Click
    end
  end
  object dsrFilialOrigem: TIB_DataSource
    Dataset = qrFilialOrigem
    OnStateChanged = DsPrincipalStateChanged
    Left = 360
    Top = 28
  end
  object qrFilialOrigem: TIB_Query
    FieldsDisplayLabel.Strings = (
      'COD_FILIAL=C'#243'digo'
      'APELIDO=Apelido'
      'DESCRICAO=UF')
    FieldsVisible.Strings = (
      'RAZAO_SOCIAL=FALSE'
      'RESPONSAVEL=FALSE'
      'TELEFONE1=FALSE'
      'TELEFONE2=FALSE'
      'TELEFONE3=FALSE'
      'EMAIL=FALSE'
      'ENDERECO_TIPO=FALSE'
      'NUMERO=FALSE'
      'BAIRRO=FALSE'
      'CEP=FALSE'
      'CIDADE=FALSE'
      'LOGRADOURO=FALSE'
      'COMPLEMENTO=FALSE'
      'CNPJ=FALSE'
      'INSCRICAO=FALSE'
      'COD_UF=FALSE'
      'DESCRICAO=TRUE')
    IB_Connection = Dados.IB_Conexao
    SQL.Strings = (
      'SELECT FILIAL.*'
      '     , UF.DESCRICAO'
      'FROM FILIAL'
      '  LEFT JOIN UF ON UF.COD_UF = FILIAL.COD_UF')
    OrderingItemNo = 2
    OrderingItems.Strings = (
      'COD_FILIAL=FILIAL.COD_FILIAL;FILIAL.COD_FILIAL DESC'
      'APELIDO=FILIAL.APELIDO;FILIAL.APELIDO DESC'
      'DESCRICAO=UF.DESCRICAO;UF.DESCRICAO DESC')
    OrderingLinks.Strings = (
      'COD_FILIAL=1'
      'APELIDO=2'
      'DESCRICAO=3')
    SearchingLinks.Strings = (
      'COD_FILIAL=COD_FILIAL'
      'APELIDO=APELIDO'
      'DESCRICAO=DESCRICAO')
    Left = 360
  end
  object qrFilialDestino: TIB_Query
    FieldsDisplayLabel.Strings = (
      'COD_FILIAL=C'#243'digo'
      'APELIDO=Apelido'
      'DESCRICAO=UF')
    FieldsVisible.Strings = (
      'COD_FILIAL=TRUE'
      'APELIDO=TRUE'
      'RAZAO_SOCIAL=FALSE'
      'RESPONSAVEL=FALSE'
      'TELEFONE1=FALSE'
      'TELEFONE2=FALSE'
      'TELEFONE3=FALSE'
      'EMAIL=FALSE'
      'ENDERECO_TIPO=FALSE'
      'NUMERO=FALSE'
      'BAIRRO=FALSE'
      'CEP=FALSE'
      'CIDADE=FALSE'
      'LOGRADOURO=FALSE'
      'COMPLEMENTO=FALSE'
      'CNPJ=FALSE'
      'INSCRICAO=FALSE'
      'COD_UF=FALSE'
      'DESCRICAO=TRUE')
    IB_Connection = Dados.IB_Conexao
    SQL.Strings = (
      'SELECT FILIAL.*'
      '     , UF.DESCRICAO'
      'FROM FILIAL'
      '  LEFT JOIN UF ON UF.COD_UF = FILIAL.COD_UF')
    OrderingItemNo = 2
    OrderingItems.Strings = (
      'COD_FILIAL=FILIAL.COD_FILIAL;FILIAL.COD_FILIAL DESC'
      'APELIDO=FILIAL.APELIDO;FILIAL.APELIDO DESC'
      'DESCRICAO=UF.DESCRICAO;UF.DESCRICAO DESC')
    OrderingLinks.Strings = (
      'COD_FILIAL=1'
      'APELIDO=2'
      'DESCRICAO=3')
    SearchingLinks.Strings = (
      'COD_FILIAL=COD_FILIAL'
      'APELIDO=APELIDO'
      'DESCRICAO=DESCRICAO')
    Left = 392
  end
  object dsrFilialDestino: TIB_DataSource
    Dataset = qrFilialDestino
    OnStateChanged = DsPrincipalStateChanged
    Left = 392
    Top = 28
  end
end
