<?php include_once('../../../config.php') ?>
<?php
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
?>
<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Sisplan Web | Saída de Estoque Manual</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css?versao=3.2511.13.1">
  <!-- Ionicons -->
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/adminlte.min.css?versao=3.2511.13.1">
  <!-- overlayScrollbars -->
  <link rel="stylesheet" href="plugins/overlayScrollbars/css/OverlayScrollbars.min.css?versao=3.2511.13.1">
  <!-- Daterange picker -->
  <link href='https://fonts.googleapis.com/css?family=Roboto:400,300,500,600,700,400italic' rel='stylesheet' type='text/css'>

  <link rel="stylesheet" href="dist/css/custom.css?versao=3.2511.13.1">
  <link rel="stylesheet" href="dist/css/sisplan.css?versao=3.2511.13.1">
  <link rel="stylesheet" type="text/css" href="plugins/datatables-keytable/css/keyTable.bootstrap4.min.css?versao=3.2511.13.1">
  <link rel="stylesheet" type="text/css" href="dist/css/dataTables.bootstrap4.min.css?versao=3.2511.13.1" />
  <!-- iCheck for checkboxes and radio inputs -->
  <link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css?versao=3.2511.13.1">
  <link rel="shortcut icon" href="favicon.ico">
  <link rel="stylesheet" href="dist/css/select.bootstrap.min.css?versao=3.2511.13.1">
  <!-- Google Font: Source Sans Pro -->
  <!-- AutoComplete -->
  <link rel="stylesheet" href="dist/css/jquery-ui.css?versao=3.2511.13.1">

  <link rel="stylesheet" type="text/css" href="dist/css/driver.min.css?versao=3.2511.13.1" />

  <style>
    .ui-autocomplete-loading {
      background: white url("dist/img/ui-anim_basic_16x16.gif") center center no-repeat;
    }


    .input-group button,
    .input-group input {
      height: 40px;
    }

    .input-group button {
      min-width: 45px;
    }

    .btn.bg-danger {
      border: 1px solid white;
    }

    .info-box-text {
      font-size: 20px;
      font-weight: bold;
      color: grey;
    }


    #progressbar {
      margin-left: 0px;
    }

    #msform {
      text-align: center;
      position: relative;
      margin-top: 20px
    }

    #msform fieldset .form-card {
      background: white;
      border: 0 none;
      padding: 20px 40px 30px 40px;
      width: 94%;
      margin: 0 3% 20px 3%;
      position: relative
    }

    #msform fieldset {
      background: white;
      border: 0 none;
      border-radius: 0.5rem;
      box-sizing: border-box;
      width: 100%;
      margin: 0;
      padding-bottom: 20px;
      position: relative
    }

    #msform fieldset:not(:first-of-type) {
      display: none
    }

    #msform fieldset .form-card {
      text-align: left;
      color: #9E9E9E
    }

    #msform .action-button {
      width: 100px;
      background: var(--primary-color);
      ;
      font-weight: bold;
      color: white;
      border: 0 none;
      border-radius: 0px;
      cursor: pointer;
      padding: 10px 5px;
      margin: 10px 5px
    }

    #msform .action-button:hover,
    #msform .action-button:focus {
      box-shadow: 0 0 0 2px white, 0 0 0 3px var(--primary-color);
    }

    #msform .action-button-previous {
      width: 100px;
      background: #616161;
      font-weight: bold;
      color: white;
      border: 0 none;
      border-radius: 0px;
      cursor: pointer;
      padding: 10px 5px;
      margin: 10px 5px
    }

    #msform .action-button-previous:hover,
    #msform .action-button-previous:focus {
      box-shadow: 0 0 0 2px white, 0 0 0 3px #616161
    }

    select.list-dt {
      border: none;
      outline: 0;
      border-bottom: 1px solid #ccc;
      padding: 2px 5px 3px 5px;
      margin: 2px
    }

    select.list-dt:focus {
      border-bottom: 2px solid var(--primary-color);
    }

    .card {
      z-index: 0;
      border: none;
      border-radius: 0.5rem;
      position: relative
    }

    .fs-title {
      font-size: 25px;
      color: #2C3E50;
      margin-bottom: 10px;
      font-weight: bold;
      text-align: left
    }

    #progressbar {
      margin-bottom: 30px;
      overflow: hidden;
      color: lightgrey
    }

    #progressbar .active {
      color: #000000
    }

    #progressbar li {
      list-style-type: none;
      font-size: 12px;
      width: 100%;
      float: left;
      position: relative
    }

    #progressbar #account:before {
      font-family: 'Font Awesome 5 Free';
      content: "\f15c"
    }

    #progressbar #personal:before {
      font-family: 'Font Awesome 5 Free';
      content: "\f155"
    }

    #progressbar #payment:before {
      font-family: 'Font Awesome 5 Free';
      content: "\f0cb"
    }

    #progressbar #confirm:before {
      font-family: 'Font Awesome 5 Free';
      content: "\f14a"
    }

    #progressbar li:before {
      width: 50px;
      height: 50px;
      line-height: 45px;
      display: block;
      font-size: 18px;
      color: #ffffff;
      background: lightgray;
      border-radius: 50%;
      margin: 0 auto 10px auto;
      padding: 2px
    }

    #progressbar li:after {
      content: '';
      width: 100%;
      height: 2px;
      background: lightgray;
      position: absolute;
      left: 0;
      top: 25px;
      z-index: -1
    }

    #progressbar li.active:before,
    #progressbar li.active:after {
      background: var(--primary-color);
    }

    .radio-group {
      position: relative;
      margin-bottom: 25px
    }

    .radio {
      display: inline-block;
      width: 204;
      height: 104;
      border-radius: 0;
      background: lightblue;
      box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.2);
      box-sizing: border-box;
      cursor: pointer;
      margin: 8px 2px
    }

    .radio:hover {
      box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.3)
    }

    .radio.selected {
      box-shadow: 1px 1px 2px 2px rgba(0, 0, 0, 0.1)
    }

    .contador.item-0 {
      margin-top: 33px;
    }

    .contador {
      text-align: center;
      margin-left: 10px;
      margin-top: 4px;
      margin-bottom: auto;
      background-color: #dc3545;
      max-width: 35px;
      width: 50px;
      max-height: 30px;
      font-size: 12px;
      padding-top: 5px;
      height: 30px;
      font-weight: bold;
      color: white;
      border-radius: 5px;
    }

    .bordaTab {
      border: solid #e0e4e6;
      border-radius: 4px;
      border-width: 2px;
    }

    .grupo_botao.item-0 {
      margin-top: 29px;
    }
  </style>
  <!-- Toastr -->
  <link rel="stylesheet" href="./plugins/toastr/toastr.min.css">

</head>

<body class="hold-transition sidebar-mini layout-fixed">
  <div class="wrapper">


    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
      <!-- Content Header (Page header) -->
      <!-- /.content-header -->
      <section class="content">
        <div class="content-header">
          <div class="container-fluid">
            <div class="row mb-2">
              <div class="col-sm-6 flex">
              </div>
              <div class="col-sm-6">
                <!-- <ol class="breadcrumb float-sm-right">
                  
                  <li class="breadcrumb-item active">Movimentação de Saída</li>
                </ol> -->
              </div><!-- /.col -->
            </div><!-- /.row -->
          </div>
          <div class="row justify-content-center mt-0">
            <div class="col-10 text-center p-0 mt-3 mb-2">
              <div class="card px-0 pt-4 pb-0 mt-3 mb-3">
                <div class="card-header text-center flex" style="border-bottom: 2px solid var(--primary-color);">
                  <h2>Movimentação de Saída (Material)
                    <button type="button" class="btn btn-info btn-sm ml-2" title="Tutorial" style="color: white;" id="tutorial">
                      <i class="fas fa-question-circle"></i>
                    </button>
                  </h2>
                </div>
                <div class="row">
                  <div class="col-md-12 mx-0">
                    <form id="msform">
                      <div class="form-card">
                        <div class="card-10" id="campostour">
                          <div class="card-body">

                            <div class="row">
                              <div class="form-group col-xl-2 col-lg-3 col-sm-5 col-6">
                                <label data-error="wrong" data-success="right" for="txtDocumento">Documento *</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control validate" required id="txtDocumento" name="txtDocumento" placeholder="Documento">
                                </div>
                              </div>
                              <div class="d-none">
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control validate" required id="txtLancamento" name="txtLancamento" placeholder="Lançamento">
                                </div>
                              </div>
                            </div>

                            <div class="row">
                              <div class="form-group col-lg-3  col-sm-3 col-12 ">
                                <label>Data Movimento *</label>
                                <input type="date" max="2500-12-31" class="input-default focus form-control" required id="txtDataMovimentoSaida">
                              </div>
                              <div class="form-group col-md col-sm col-12">
                                <label data-error="wrong" data-success="right" for="txtFuncionarioSaidaMat">Funcionário
                                  *</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control validate" required id="txtFuncionarioSaidaMat" name="txtFuncionarioSaidaMat" placeholder="Funcionário">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnFuncionarioSaidaMat" name="btnFuncionarioSaidaMat" data-button="absolute" type="button">
                                      <i class="m-0 p-0 fas fa-search"></i>
                                    </button>
                                    <button class="btn bg-danger" id="btnLimpaFuncionarioSaidaMat" type="button">
                                      <i class="m-0 p-0 fas fa-trash"></i>
                                    </button>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-lg-4 col-12 d-none" id="localContainer">
                                <label data-error="wrong" data-success="right" for="txtLocal">Local *</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control" id="txtLocal" name="txtLocal" placeholder="Local">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnLocal" name="btnLocal" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaLocal" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                            </div>

                            <div class="row">
                              <div class="form-group col-lg-4 col-12">
                                <label data-error="wrong" data-success="right" for="txtTipoBaixa">Tipo Baixa
                                  *</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control validate" required id="txtTipoBaixa" name="txtTipoBaixa" placeholder="Tipo Baixa">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnTipoBaixa" name="btnTipoBaixa" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaTipoBaixa" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>

                              <div class="form-group col-lg-4  col-12">
                                <label data-error="wrong" data-success="right" for="txtDeposito">Depósito
                                  *</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control campoDeposito" required id="txtDeposito" name="txtDeposito" placeholder="Depósito">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger campoDeposito" id="btnDeposito" name="btnDeposito" data-button="absolute" type="button">
                                      <i class="m-0 p-0 fas fa-search"></i>
                                    </button>
                                    <button class="btn bg-danger campoDeposito" id="btnLimpaDeposito" type="button">
                                      <i class="m-0 p-0 fas fa-trash"></i>
                                    </button>
                                  </div>
                                </div>
                              </div>

                              <div class="form-group col-lg-4 col-12">
                                <label data-error="wrong" data-success="right" for="txtMaterialSaida">Material
                                  *</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control campoMaterial" disabled required id="txtMaterialSaida" name="txtMaterialSaida" placeholder="Material">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger campoMaterial" id="btnMaterialSaida" disabled name="btnMaterialSaida" data-button="absolute" type="button">
                                      <i class="m-0 p-0 fas fa-search"></i>
                                    </button>
                                    <button class="btn bg-danger campoMaterial" id="btnLimpaMaterial" disabled type="button">
                                      <i class="m-0 p-0 fas fa-trash"></i>
                                    </button>
                                  </div>
                                </div>
                              </div>
                            </div>

                            <div class="row">
                              <div class="form-group col-lg-4  col-12">
                                <label data-error="wrong" data-success="right" for="txtCor">Cor *</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control campoCor" disabled required id="txtCor" name="txtCor" placeholder="Cor">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger campoCor" disabled id="btnCor" name="btnCor" data-button="absolute" type="button">
                                      <i class="m-0 p-0 fas fa-search"></i>
                                    </button>
                                    <button class="btn bg-danger campoCor" disabled id="btnLimpaCor" type="button">
                                      <i class="m-0 p-0 fas fa-trash"></i>
                                    </button>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-lg-4 col-12">
                                <label data-error="wrong" data-success="right" for="txtQualidade">Qualidade
                                  *</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control validate campoQualidade" disabled required id="txtQualidade" name="txtQualidade" placeholder="Qualidade">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger campoQualidade" disabled id="btnQualidade" name="btnQualidade" data-button="absolute" type="button">
                                      <i class="m-0 p-0 fas fa-search"></i>
                                    </button>
                                    <button class="btn bg-danger campoQualidade" disabled id="btnLimpaQualidade" type="button">
                                      <i class="m-0 p-0 fas fa-trash"></i>
                                    </button>
                                  </div>
                                </div>
                              </div>

                              <div class="form-group col-lg-4 col-12">
                                <label data-error="wrong" data-success="right" for="txtLote">Lote
                                  *</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control campoLote" disabled required id="txtLote" name="txtLote" placeholder="Lote">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger campoLote" disabled id="btnLote" name="btnLote" data-button="absolute" type="button">
                                      <i class="m-0 p-0 fas fa-search"></i>
                                    </button>
                                    <button class="btn bg-danger campoLote" disabled id="btnLimpaLote" type="button">
                                      <i class="m-0 p-0 fas fa-trash"></i>
                                    </button>
                                  </div>
                                </div>
                              </div>
                            </div>

                            <div class="row">
                              <div class="form-group col-sm-4  col-12">
                                <label data-error="wrong" data-success="right" for="txtQuantidade">Quantidade *</label>
                                <div class="input-group">
                                  <input type="number" min="0" class="input-default focus form-control" required id="txtQuantidade" name="txtQuantidade" placeholder="0">
                                  <input type="text" id="UnidadeMedidaMat" class="form-group col-lg-3 col-12 input-default focus form-control" disabled>
                                </div>
                              </div>
                              <div class="form-group col-sm-4  col-12">
                                <label data-error="wrong" data-success="right" for="txtPreco">Preço *</label>
                                <div class="input-group">
                                  <input type="number" min="0" class="input-default focus form-control" max="7" required id="txtPreco" name="txtPreco" placeholder="0" disabled>
                                </div>
                              </div>
                              <div class="form-group col-sm-4  col-12">
                                <label data-error="wrong" data-success="right" for="txtEstoque">Estoque </label>
                                <div class="input-group">
                                  <input type="number" min="0" class="input-default focus form-control" required id="txtEstoque" name="txtEstoque" placeholder="0" disabled>
                                </div>
                              </div>
                            </div>
                            <div class="row">
                              <div class="col-sm-12 col-12">
                                <div class="form-group">
                                  <label>Observação</label>
                                  <textarea style="resize: none" id="txtObs" placeholder="Observação" class="input-default focus form-control" rows="3" maxlength="72"></textarea>
                                </div>
                              </div>
                            </div>
                            <div class="row">
                              <div class="col-sm-12 table-responsive">
                                <table width="100%" style="width: 100%" id="tabela-movimentados" class="table table-sm table-hover table-select table-condensed">
                                  <thead>
                                    <tr>
                                      <th>Codigo</th>
                                      <th>Descrição</th>
                                      <th>Cor</th>
                                      <th>Desc. Cor</th>
                                      <th>Qtde</th>
                                      <th>UN</th>
                                      <th>Lote</th>
                                      <th>Local</th>
                                    </tr>
                                  </thead>
                                  <tbody>
                                  </tbody>
                                </table>
                              </div>
                            </div>
                            <input type="button" id="confirmar_mov" name="confirmar_mov" class="action-button" value="Gravar" />
                            <input type="button" id="limpar_mov" name="limpar_mov" class="action-button-previous" value="Limpar" />
                            <input type="button" id="Imprimir" name="Imprimir" class="action-button-previous" value="Imprimir" style="background:#2C3E50;" />
                          </div>

                        </div>
                      </div>
                    </form>
                  </div>
                </div>

              </div>
            </div>
          </div>
        </div>
      </section>
    </div>
    <div id="modal-filtros" class="modal" tabindex="-1" role="dialog">
      <div class="modal-dialog modal-xl" role="document">
        <div class="modal-content" id="modalBody">
          <div class="modal-header">
            <h4 class="modal-title">Filtros</h4>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="modal-body">
            <div class="row">
              <div class="col-lg-6 col-12">
                <div class="row">
                  <div class="col-12">
                    <div class="group-default form-group">
                      <label for="dtIni">Data De:</label>
                      <div class="relative">
                        <input type="date" max="2500-12-31" value="" class="input-default focus form-control validate" id="txtDataDe" name="txtDataDe">
                      </div>
                    </div>
                  </div>
                  <div class="col-12">
                    <div class="group-default form-group">
                      <label for="dtFim">Data Até:</label>
                      <div class="relative">
                        <input type="date" max="2500-12-31" value="" class="input-default focus form-control validate" id="txtDataAte" name="txtDataAte">
                      </div>
                    </div>
                  </div>
                  <div class="col-12">
                    <label style="margin-bottom: .1rem!important;" data-error="wrong" data-success="right" for="txtCliente">Cliente</label>
                    <div class="input-group">
                      <input type="text" class="input-default focus form-control" id="txtCliente" name="txtCliente" class="form-control" placeholder="Cliente">
                      <div class="input-group-append">
                        <button class="btn bg-danger" id="btn-cliente" name="btn-cliente" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                        <button class="btn bg-danger" id="btn-limpa-cliente" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                      </div>
                    </div>
                  </div>
                  <div class="col-12">
                    <label style="margin-bottom: .1rem!important;" data-error="wrong" data-success="right" for="txtNota">Fatura</label>
                    <div class="input-group">
                      <input type="text" class="input-default focus form-control" id="txtNota" name="txtNota" class="form-control" placeholder="Fatura">
                      <div class="input-group-append">
                        <button class="btn bg-danger" id="btn-nota" name="btn-cliente" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                        <button class="btn bg-danger" id="btn-limpa-nota" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-lg-3 col-12">
                <div class="form-group clearfix">
                  <h6>Status: </h6>
                  <div class="icheck-primary">
                    <input type="radio" id="radioPrimary1" value="0" name="rg_status" checked>
                    <label for="radioPrimary1">Todas
                    </label>
                  </div>
                  <div class="icheck-primary">
                    <input type="radio" id="radioPrimary2" value="1" name="rg_status">
                    <label for="radioPrimary2">Impressa
                    </label>
                  </div>
                  <div class="icheck-primary">
                    <input type="radio" id="radioPrimary3" value="2" name="rg_status">
                    <label for="radioPrimary3">Não Impressa</label>
                  </div>
                  <div class="icheck-primary">
                    <input type="radio" id="radioPrimary4" value="3" name="rg_status">
                    <label for="radioPrimary4">Canceladas
                    </label>
                  </div>
                  <div class="icheck-primary">
                    <input type="radio" id="radioPrimary5" value="4" name="rg_status">
                    <label for="radioPrimary5">Denegadas
                    </label>
                  </div>
                </div>
              </div>
              <div class="col-lg-3 col-12">
                <div class="form-group clearfix">
                  <h6>Protocolo: </h6>
                  <div class="icheck-primary">
                    <input type="radio" id="radioProtocolo1" value="0" name="rg_protocolo" checked>
                    <label for="radioProtocolo1">Todas
                    </label>
                  </div>
                  <div class="icheck-primary">
                    <input type="radio" id="radioProtocolo2" value="1" name="rg_protocolo">
                    <label for="radioProtocolo2">Com Protocolo
                    </label>
                  </div>
                  <div class="icheck-primary">
                    <input type="radio" id="radioProtocolo3" value="2" name="rg_protocolo">
                    <label for="radioProtocolo3">Sem Protocolo</label>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="modal-footer">
            <div class="row">
              <button id="btn-consultar" class="btn btn-primary btn-sisp" type="button">
                <span class="fas fa-search"></span> Consultar
              </button>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">
      <!-- Control sidebar content goes here -->
    </aside>
    <!-- /.content-wrapper -->
    <?php
    include_once('../../../modais.php');
    ?>
  </div>
  <!-- ./wrapper -->

  <script src="plugins/jquery/jquery.min.js?versao=3.2511.13.1"></script>

  <script type="text/javascript" src="dist/js/jquery.dataTables.js?versao=3.2511.13.1"></script>
  <script type="text/javascript" src="dist/js/dataTables.bootstrap4.min.js?versao=3.2511.13.1"></script>
  <script type="text/javascript" src="dist/js/loadingoverlay.min.js?versao=3.2511.13.1"></script>

  <!-- jQuery UI 1.11.4 -->
  <script src="plugins/jquery-ui/jquery-ui.min.js?versao=3.2511.13.1"></script>
  <!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
  <script>
    $.widget.bridge('uibutton', $.ui.button)
  </script>
  <!-- Bootstrap 4 -->
  <script src="plugins/bootstrap/js/bootstrap.bundle.min.js?versao=3.2511.13.1"></script>
  <!-- AdminLTE App -->
  <script src="dist/js/adminlte.min.js?versao=3.2511.13.1"></script>

  <script src="dist/js/sisplan.js?versao=3.2511.13.1"></script>
  <script type="text/javascript" src="utils/funcoes.js?versao=3.2511.13.1"></script>
  <!-- SweetAlert2 -->
  <script src="plugins/sweetalert2/sweetalert2.min.js?versao=3.2511.13.1"></script>
  <script src="plugins/toastr/toastr.min.js?versao=3.2511.13.1"></script>
  <script src="dist/js/requisicoes.js?versao=3.2511.13.1"></script>
  <script type="text/javascript" src="dist/js/sum().js?versao=3.2511.13.1"></script>
  <script src="utils/cookies.js?versao=3.2511.13.1"></script>
  <script src="dist/js/jquery.maskMoney.min.js?versao=3.2511.13.1"></script>
  <script src="dist/js/dataTables.keyTable.js?versao=3.2511.13.1"></script>
  <script src="dist/js/driver.min.js?versao=3.2511.13.1"></script>
  <script src="plugins/jquery-validation/jquery.validate.min.js?versao=3.2511.13.1"></script>
  <script src="plugins/jquery-validation/additional-methods.min.js?versao=3.2511.13.1"></script>
  <script type="text/javascript" src="config.js?versao=3.2511.13.1"></script>
  <script>
    $(document).ready(async function() {
      if (getCookie('usuario') == "") {
        window.location.href = `${BASE_URI}/login`;
        return;
      }

      let usuario = getCookie('usuario');
      let empresa = getCookie('empresa');

      ipInterno = IP_INTERNO;
      ipExterno = IP_EXTERNO;
      basicAuth = BASIC_AUTH;

      const temAcesso = await temAcessoTela('MAT_SAIDA_MANUAL');
      if (!temAcesso.resultado) {
        toastrAcesso(temAcesso, BASE_URI);
        return;
      }

      sArquivo = `${BASE_URI}/pages/material/mat_saida_manual/mat_saida_manual.js?versao=3.2511.13.1`;
      insereJavaScriptPagina(sArquivo);
    });
  </script>
</body>

</html>