<?php include_once('../../../config.php') ?>

<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Sisplan Web | Manutencao Inventario</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css?versao=3.264.22.1">
  <link rel="stylesheet" href="dist/css/adminlte.min.css?versao=3.264.22.1">
  <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.264.22.1">
  <link rel="stylesheet" href="dist/css/sisplan.css?versao=3.264.22.1">
  <link rel="stylesheet" type="text/css" href="dist/css/dataTables.bootstrap4.min.css?versao=3.264.22.1" />
  <link rel="shortcut icon" href="favicon.ico">
  <link rel="stylesheet" href="plugins/toastr/toastr.min.css?versao=3.264.22.1">
  <link rel="stylesheet" type="text/css" href="dist/css/driver.min.css?versao=3.264.22.1" />
  <link rel="stylesheet" href="dist/css/jquery-ui.css?versao=3.264.22.1">
  <link rel="stylesheet" href="dist/css/PesquisaVariosSelect2.css?versao=3.264.22.1">
  <link rel="stylesheet" href="plugins/select2/css/select2.min.css?versao=3.264.22.1">
  <link rel="stylesheet" href="plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css?versao=3.264.22.1">
  <style>
    #tabelaInventario td div button {
      padding: .0rem .5rem;
      margin-top: .1rem;
      margin-bottom: .2rem;
    }
  </style>

</head>

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

    <div class="content-wrapper">
      <div class="content-header">
        <div class="container-fluid">
          <div class="row mb-2">
            <div class="col-sm-6 flex">
              <h1 class="m-0 text-dark">Manutenção Inventário</h1>
              <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>

              <div class="d-flex mt-2 ml-3">
                <div class="radio-group form-radio icheck-primary"><input type="radio" checked id="radioProduto" name="tipoFat"><label for="radioProduto" class="container escondeRadio">Produto </label></div>
                <div class="radio-group form-radio icheck-primary"><input type="radio" id="radioMaterial" name="tipoFat"><label for="radioMaterial" class="container escondeRadio">Material</label></div>
              </div>
            </div>
            <div class="col-sm-6">
              <!-- <ol class="breadcrumb float-sm-right">
                
                <li class="breadcrumb-item active">Manutenção Inventário</li>
              </ol> -->
            </div>
          </div>
        </div>
        <div class="container-fluid" id="tabelaInventarioForne">
          <div class="row card">
            <div class="col-sm-12 mt-3">
              <button class="btn btn-success btn-sisp" id="btn-filtros"><span class="fas fa-search"></span> Filtros</button>
              <button class="btn btn-danger btn-sisp" id="btnIncluirManutencao"><span class="fa fa-plus"></span> Incluir</button>
              <button class="btn btn-success btn-sisp" id="btnImprimir" title="Imprimir os dados selecionados"><i class="fas fa-print"></i> Imprimir</button>
              <button class="btn btn-success btn-sisp" id="btnExcluirManutencao" title="Excluir os dados selecionados"><i class="fas fa-trash"></i> Excluir</button>
            </div>
            <div class="col-sm-12 table-responsive card-body">

              <h5>Lista de Inventários</h5>
              <table id="tabelaInventario" class="table table-sm table-select table-hover" width="100%">
                <thead>
                </thead>
                <tbody>
                </tbody>
              </table>
            </div>
          </div>
        </div>
        <div class="modal" id="modal-filtros">
          <div class="modal-dialog modal-lg">
            <div class="modal-content">
              <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" id="modal-conteudo">
                <form id="msform2" name="msform2">
                  <div class="form-row">
                    <div class="col-xl-2 col-6 form-group">
                      <label data-error="wrong" data-success="right" for="dtCadastroDe">Cadastro de: </label>
                      <div class="relative">
                        <div class="input-group">
                          <input type="date" max="2500-12-31" class="input-default focus form-control" value="1200-01-01" id="dtCadastroDe" name="dtCadastroDe" class="form-control">
                        </div>
                      </div>
                    </div>
                    <div class="col-xl-2 col-6 form-group">
                      <label data-error="wrong" data-success="right" for="dtCadastroAte">Até: </label>
                      <div class="relative">
                        <div class="input-group">
                          <input type="date" max="2500-12-31" class="input-default focus form-control" value="2500-12-31" id="dtCadastroAte" name="dtCadastroAte" class="form-control">
                        </div>
                      </div>
                    </div>
                    <div class="col-xl-8 col-12 form-group">
                      <label data-error="wrong" data-success="right" for="txtLancamento">Lançamento:</label>
                      <div class="input-group">
                        <input type="text" class="input-default col-lg-3 col-12 focus form-control" id="txtLancamento" name="txtLancamento" class="form-control" placeholder="Lançamento">
                        <input type="text" id="txtListaLancamento" class="form-group col-lg-9 col-12 input-default focus form-control" placeholder="Lista de Lançamentos" disabled>
                        <button class="btn bg-danger" id="btnLimpaLancamento" name="btnLimpaLancamento" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                      </div>
                    </div>
                    <div class="col-xl-6 col-12 form-group">
                      <label data-error="wrong" class="labelGeral" data-success="right" for="txtDeposito">Depósito:</label>
                      <div class="input-group">
                        <select class="js-example-programmatic js-states form-control" id="txtDeposito" name="txtDeposito" multiple="multiple">
                        </select>
                        <div class="input-group-append">
                          <button class="btn bg-danger" 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" id="btnLimpaDeposito" name="btnLimpaDeposito" type="button">
                            <i class="m-0 p-0 fas fa-trash"></i>
                          </button>
                        </div>
                      </div>
                    </div>
                    <div class="col-xl-6 col-12 form-group">
                      <label data-error="wrong" class="labelGeral" data-success="right" for="txtSetor">Setor:</label>
                      <div class="input-group">
                        <select class="js-example-programmatic js-states form-control" id="txtSetor" name="txtSetor" multiple="multiple">
                        </select>
                        <div class="input-group-append">
                          <button class="btn bg-danger" id="btnSetor" name="btnSetor" data-button="absolute" type="button">
                            <i class="m-0 p-0 fas fa-search"></i>
                          </button>
                          <button class="btn bg-danger" id="btnLimpaSetor" name="btnLimpaSetor" type="button">
                            <i class="m-0 p-0 fas fa-trash"></i>
                          </button>
                        </div>
                      </div>
                    </div>
                    <div class="col-xl-6 col-12 form-group">
                      <label data-error="wrong" class="labelGeral" data-success="right" for="txtGrupoMA">Grupo:</label>
                      <div class="input-group">
                        <select class="js-example-programmatic js-states form-control" id="txtGrupoMA" name="txtGrupoMA" multiple="multiple">
                        </select>
                        <div class="input-group-append">
                          <button class="btn bg-danger" id="btnGrupoMA" name="btnGrupoMA" data-button="absolute" type="button">
                            <i class="m-0 p-0 fas fa-search"></i>
                          </button>
                          <button class="btn bg-danger" id="btnLimpaGrupoMA" name="btnLimpaGrupoMA" type="button">
                            <i class="m-0 p-0 fas fa-trash"></i>
                          </button>
                        </div>
                      </div>
                    </div>
                    <div class="col-xl-6 col-12 form-group">
                      <label data-error="wrong" class="labelGeral" data-success="right" for="txtSubGrupo">Subgrupo:</label>
                      <div class="input-group">
                        <select class="js-example-programmatic js-states form-control" id="txtSubGrupo" name="txtSubGrupo" multiple="multiple">
                        </select>
                        <div class="input-group-append">
                          <button class="btn bg-danger" id="btnSubGrupo" name="btnSubGrupo" data-button="absolute" type="button">
                            <i class="m-0 p-0 fas fa-search"></i>
                          </button>
                          <button class="btn bg-danger" id="btnLimpaSubGrupo" name="btnLimpaSubGrupo" type="button">
                            <i class="m-0 p-0 fas fa-trash"></i>
                          </button>
                        </div>
                      </div>
                    </div>
                    <div class="col-xl-6 col-12 form-group">
                      <label data-error="wrong" class="labelGeral" data-success="right" for="txtLinha">Linha:</label>
                      <div class="input-group">
                        <select class="js-example-programmatic js-states form-control" id="txtLinha" name="txtLinha" multiple="multiple">
                        </select>
                        <div class="input-group-append">
                          <button class="btn bg-danger" id="btnLinha" name="btnLinha" data-button="absolute" type="button">
                            <i class="m-0 p-0 fas fa-search"></i>
                          </button>
                          <button class="btn bg-danger" id="btnLimpaLinha" name="btnLimpaLinha" type="button">
                            <i class="m-0 p-0 fas fa-trash"></i>
                          </button>
                        </div>
                      </div>
                    </div>
                    <div class="col-xl-6 col-12 form-group">
                      <label id="lblProduto" data-error="wrong" class="labelGeral" data-success="right" for="txtProduto">Produto:</label>
                      <div class="input-group">
                        <select class="js-example-programmatic js-states form-control" id="txtProduto" name="txtProduto" multiple="multiple">
                        </select>
                        <div class="input-group-append">
                          <button class="btn bg-danger" id="btnProduto" name="btnProduto" data-button="absolute" type="button">
                            <i class="m-0 p-0 fas fa-search"></i>
                          </button>
                          <button class="btn bg-danger" id="btnLimpaProduto" name="btnLimpaProduto" type="button">
                            <i class="m-0 p-0 fas fa-trash"></i>
                          </button>
                        </div>
                      </div>
                    </div>
                    <div class="col-xl-6 col-12 form-group">
                      <label data-error="wrong" class="labelGeral" data-success="right" for="txtCor">Cor:</label>
                      <div class="input-group">
                        <select class="js-example-programmatic js-states form-control" id="txtCor" name="txtCor" multiple="multiple">
                        </select>
                        <div class="input-group-append">
                          <button class="btn bg-danger" 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" id="btnLimpaCor" name="btnLimpaCor" type="button">
                            <i class="m-0 p-0 fas fa-trash"></i>
                          </button>
                        </div>
                      </div>
                    </div>
                    <div class="col-xl-6 col-12 form-group">
                      <label data-error="wrong" class="labelGeral" data-success="right" for="txtQualidade">Qualidade:</label>
                      <div class="input-group">
                        <select class="js-example-programmatic js-states form-control" id="txtQualidade" name="txtQualidade" multiple="multiple">
                        </select>
                        <div class="input-group-append">
                          <button class="btn bg-danger" 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" id="btnLimpaQualidade" name="btnLimpaQualidade" type="button">
                            <i class="m-0 p-0 fas fa-trash"></i>
                          </button>
                        </div>
                      </div>
                    </div>
                    <div class="col-xl-6 col-12 form-group">
                      <label data-error="wrong" class="labelGeral" data-success="right" for="txtLote">Lote:</label>
                      <div class="input-group">
                        <select class="js-example-programmatic js-states form-control" id="txtLote" name="txtLote" multiple="multiple">
                        </select>
                        <div class="input-group-append">
                          <button class="btn bg-danger" 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" id="btnLimpaLote" name="btnLimpaLote" type="button">
                            <i class="m-0 p-0 fas fa-trash"></i>
                          </button>
                        </div>
                      </div>
                    </div>
                  </div>
                </form>
              </div>
              <div class="modal-footer">
                <div class="row">
                  <button class="btn btn-primary btn-sisp" id="btnLimparFiltros" style="background-color: #B22222; border-color: #B22222"><span class="fas fa-trash"></span> Limpar Filtros</button>     
                  <button class="btn btn-primary btn-sisp" id="btnConsultar"><span class="fas fa-search"></span> Consultar</button>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <section class="content">
    <div class="modal fade" id="modal-manutencao">
      <div class="modal-dialog modal-xl">
        <div class="modal-content">
          <div class="modal-header">
            <h4 id="modal-itens-title" class="modal-title">Manutenção</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-9">
                <label data-error="wrong" data-success="right" for="txtLancamentoEditar">Lançamento</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control" id="txtLancamentoEditar" name="txtLancamentoEditar" class="form-control" placeholder="Gerado Automaticamente" disabled="">
                  <div class="input-group-append">
                  </div>
                </div>
              </div>
              <div class="col-3">
                <label data-error="wrong" data-success="right" for="txtChaveEditar">Chave</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control" id="txtChaveEditar" name="txtChaveEditar" class="form-control" placeholder="Gerado Automaticamente" disabled="">
                  <div class="input-group-append">
                  </div>
                </div>
              </div>
              <div class="col-2" id="divDataEditar">
                <label data-error="wrong" data-success="right" for="txtDataEditar">Data *</label>
                <div class="input-group">
                  <input type="date" max="2500-12-31" class="input-default focus form-control" id="txtDataEditar" name="txtDataEditar" class="form-control" placeholder="Data">
                  <div class="input-group-append">
                  </div>
                </div>
              </div>
              <div class="col-5">
                <label data-error="wrong" data-success="right" for="txtSetorEditar">Setor *</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control" id="txtSetorEditar" name="txtSetorEditar" class="form-control" placeholder="Setor">
                  <div class="input-group-append">
                    <button class="btn bg-danger" id="btnSetorEditar" name="btnSetorEditar" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                    <button class="btn bg-danger" id="btnLimpaSetorEditar" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                  </div>
                </div>
              </div>
              <div class="col-5">
                <label data-error="wrong" data-success="right" for="txtDepositoEditar">Depósito *</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control" id="txtDepositoEditar" name="txtDepositoEditar" class="form-control" placeholder="Deposito">
                  <div class="input-group-append">
                    <button class="btn bg-danger" id="btnDepositoEditar" name="btnDepositoEditar" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                    <button class="btn bg-danger" id="btnLimpaDepositoEditar" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                  </div>
                </div>
              </div>
              <div class="col-6">
                <label data-error="wrong" data-success="right" for="txtCnpjEditar">CNPJ. *</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control controleBlur" id="txtCnpjEditar" name="txtCnpjEditar" class="form-control" placeholder="CNPJ" disabled>
                  <div class="input-group-append">
                    <button class="btn bg-danger controleBlur" id="btnCnpjEditar" name="btnCnpjEditar" data-button="absolute" type="button" disabled><i class="m-0 p-0 fas fa-search"></i></button>
                    <button class="btn bg-danger controleBlur" id="btnLimpaCnpjEditar" type="button" disabled><i class="m-0 p-0 fas fa-trash"></i></button>
                  </div>
                </div>
              </div>
              <div class="col-6">
                <label>Posse *</label>
                <select id="txtPosseEditar" class="input-default focus custom-select controleBlur" disabled>
                  <option value="" selected disabled>Selecione uma opção</option>
                  <option value="0">Não informado
                  </option>
                  <option value="1">Mercadoria de propriedade do informante e em seu poder</option>
                  <option value="2">Mercadoria de propriedade do informante e em poder de terceiros</option>
                  <option value="3">Mercadoria de propriedade de terceiros em poder do informante</option>
                </select>
              </div>
              <div class="col-6">
                <label data-error="wrong" data-success="right" id="lblCodigoEditar" for="txtCodigoEditar">Código *</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control controleBlur" id="txtCodigoEditar" name="txtCodigoEditar" class="form-control" placeholder="Código" disabled>
                  <div class="input-group-append">
                    <button class="btn bg-danger controleBlur" id="btnCodigoEditar" name="btnCodigoEditar" disabled data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                    <button class="btn bg-danger controleBlur" id="btnLimpaCodigoEditar" type="button" disabled><i class="m-0 p-0 fas fa-trash"></i></button>
                  </div>
                </div>
              </div>
              <div class="col-6">
                <label data-error="wrong" data-success="right" for="txtCorEditar">Cor *</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control controleBlur" id="txtCorEditar" name="txtCorEditar" class="form-control" placeholder="Cor" disabled>
                  <div class="input-group-append">
                    <button class="btn bg-danger controleBlur" id="btnCorEditar" name="btnCorEditar" data-button="absolute" type="button" disabled=""><i class="m-0 p-0 fas fa-search"></i></button>
                    <button class="btn bg-danger controleBlur" id="btnLimpaCorEditar" type="button" disabled=""><i class="m-0 p-0 fas fa-trash"></i></button>
                  </div>
                </div>
              </div>
              <div class="col-6">
                <label data-error="wrong" data-success="right" for="txtQualidadeEditar">Qualidade *</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control controleBlur" id="txtQualidadeEditar" name="txtQualidadeEditar" class="form-control" placeholder="Qualidade" disabled>
                  <div class="input-group-append">
                    <button class="btn bg-danger controleBlur" id="btnQualidadeEditar" name="btnQualidadeEditar" data-button="absolute" type="button" disabled><i class="m-0 p-0 fas fa-search"></i></button>
                    <button class="btn bg-danger controleBlur" id="btnLimpaQualidadeEditar" type="button" disabled><i class="m-0 p-0 fas fa-trash"></i></button>
                  </div>
                </div>
              </div>

              <div class="col-6">
                <label data-error="wrong" data-success="right" for="txtLoteEditar">Lote *</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control controleBlur" disabled id="txtLoteEditar" name="txtLoteEditar" class="form-control" placeholder="Lote">
                  <div class="input-group-append">
                    <button class="btn bg-danger controleBlur" disabled id="btnLoteEditar" name="btnLoteEditar" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                    <button class="btn bg-danger controleBlur" disabled id="btnLimpaLoteEditar" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                  </div>
                </div>
              </div>
              <div class="col-12" id="divTamEditar">
                <label data-error="wrong" data-success="right" for="txtTamaEditar">Tamanho</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control controleBlur" disabled id="txtTamEditar" name="txtTamEditar" class="form-control" placeholder="Tamanho">
                  <div class="input-group-append">
                    <button class="btn bg-danger controleBlur" id="btnTamEditar" disabled name="btnTamEditar" data-button="absolute" type="button" disabled=""><i class="m-0 p-0 fas fa-search"></i></button>
                    <button class="btn bg-danger controleBlur" id="btnTamEditar" disabled type="button" disabled=""><i class="m-0 p-0 fas fa-trash"></i></button>
                  </div>
                </div>
              </div>

              <div class="col-3 divDtFab">
                <label data-error="wrong" data-success="right" for="dtFabricacaoEditar">Data Fabricação</label>
                <div class="input-group">
                  <input type="date" max="2500-12-31" class="input-default focus form-control controleBlur2" disabled id="dtFabricacaoEditar" name="dtFabricacaoEditar" class="form-control" placeholder="Data Fabricação">
                  <div class="input-group-append">
                  </div>
                </div>
              </div>
              <div class="col-3 divDtFab">
                <label data-error="wrong" data-success="right" for="txtTonalidadeEditar">Tonalidade</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control controleBlur2" disabled id="txtTonalidadeEditar" name="txtTonalidadeEditar" class="form-control" placeholder="Tonalidade">
                  <div class="input-group-append">
                    <button class="btn bg-danger controleBlur2" id="btnTonalidadeEditar" disabled name="btnTonalidadeEditar" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                    <button class="btn bg-danger controleBlur2" id="btnLimpaTonalidadeEditar" disabled type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                  </div>
                </div>
              </div>

              <div class="col-3 divDtFab">
                <label data-error="wrong" data-success="right" for="txtLoteInternoEditar">Lote Interno</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control controleBlur2" disabled id="txtLoteInternoEditar" name="txtLoteInternoEditar" class="form-control" placeholder="Lote Interno">
                  <div class="input-group-append">
                  </div>
                </div>
              </div>

              <div class="col-3 divDtFab">
                <label data-error="wrong" data-success="right" for="txtBarraEditar">Barra</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control controleBlur2" disabled id="txtBarraEditar" name="txtBarraEditar" class="form-control" placeholder="Barra">
                  <div class="input-group-append">
                  </div>
                </div>
              </div>

              <div class="col-6" id="divQtdeAuxEditar">
                <label data-error="wrong" data-success="right" for="txtQtdeAux">Quantidade Aux.</label>
                <div class="input-group">
                  <input type="text" class="input-default form-control focus controleBlur3" disabled id="txtQtdeAuxEditar" name="txtQtdeAuxEditar" value="0" title="Quantidade Auxiliar" class="form-control" placeholder="Qtde. Aux.">
                  <input type="text" class="input-default form-control focus" disabled id="txtUnidadeAuxEditar" name="txtUnidadeAuxEditar" title="Unidade Auxiliar" class="form-control" placeholder="Unid. Aux.">
                  <input type="text" class="input-default form-control focus" disabled id="txtRendimentoEditar" name="txtRendimentoEditar" value="1" title="Rendimento" class="form-control" placeholder="Rendimento">
                </div>
              </div>
              <div class="col-6" id="qtdePrincipal">
                <label data-error="wrong" data-success="right" for="txtQtde">Quantidade *</label>
                <div class="input-group">
                  <input type="text" class="input-default form-control focus" value="0" id="txtQtdeEditar" name="txtQtde" class="form-control" placeholder="Qtde">
                  <input type="text" class="input-default form-control focus" disabled id="txtUnEditar" name="txtUnEditar" title="Unidade" class="form-control" placeholder="Unid.">
                </div>
              </div>
              <div class="col-4">
                <label data-error="wrong" data-success="right" for="txtPrecoEditar">Preço *</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control controleBlur4 controleBlur" disabled id="txtPrecoEditar" name="txtPrecoEditar" class="form-control" placeholder="Preço">
                </div>
              </div>
              <div class="col-4">
                <label data-error="wrong" data-success="right" for="txtPrecoCorEditar">Preço Cor</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control controleBlur4 controleBlur" disabled id="txtPrecoCorEditar" name="txtPrecoCorEditar" class="form-control" placeholder="Preco Cor">
                </div>
              </div>
              <div class="col-4">
                <label data-error="wrong" data-success="right" for="txtPrecoDivEditar">Preço Div.</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control controleBlur4 controleBlur" disabled id="txtPrecoDivEditar" name="txtPrecoDivEditar" class="form-control" placeholder="Preco Div">
                </div>
              </div>
            </div>
          </div>
          <div class="modal-footer justify-content-between">
            <button type="button" class="btn bg-gradient-danger btn-sisp" data-dismiss="modal">Fechar</button>
            <button id="confirmar-dados" type="button" class="btn bg-gradient-success btn-sisp">Confirmar</button>
            <button id="confirmar-dadosincluir" type="button" class="btn bg-gradient-success btn-sisp d-none">Confirmar</button>
          </div>
        </div>
      </div>
    </div>
    <input type="text" class="d-none" id="txtLinhaEditada">

  </section>

  <?php
  include_once('../../../modais.php');
  ?>
  <aside class="control-sidebar control-sidebar-dark">
  </aside>
  </div>
  <script src="plugins/jquery/jquery.min.js?versao=3.264.22.1"></script>
  <script type="text/javascript" src="dist/js/jquery.dataTables.js?versao=3.264.22.1"></script>
  <script type="text/javascript" src="dist/js/dataTables.bootstrap4.min.js?versao=3.264.22.1"></script>
  <script src="plugins/jquery-ui/jquery-ui.min.js?versao=3.264.22.1"></script>
  <script>
    $.widget.bridge('uibutton', $.ui.button);
  </script>
  <script src="plugins/bootstrap/js/bootstrap.bundle.min.js?versao=3.264.22.1"></script>
  <script src="dist/js/adminlte.min.js?versao=3.264.22.1"></script>
  <script src="dist/js/sisplan.js?versao=3.264.22.1"></script>
  <script src="utils/funcoes.js?versao=3.264.22.1"></script>
  <script src="utils/cookies.js?versao=3.264.22.1"></script>
  <script src="dist/js/requisicoes.js?versao=3.264.22.1"></script>
  <script src="dist/js/loadingoverlay.min.js?versao=3.264.22.1"></script>
  <script src="dist/js/jquery.maskMoney.min.js?versao=3.264.22.1"></script>
  <script src="dist/js/driver.min.js?versao=3.264.22.1"></script>
  <script src="plugins/toastr/toastr.min.js?versao=3.264.22.1"></script>
  <script type="text/javascript" src="dist/js/sum().js?versao=3.264.22.1"></script>
  <script type="text/javascript" src="config.js?versao=3.264.22.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('MANUTENCAOINVENTARIO');
      if (!temAcesso.resultado) {
        toastrAcesso(temAcesso, BASE_URI);
        return;
      }

      sArquivo = `${BASE_URI}/pages/inventario/manutencaoinventario/manutencaoinventario.js?versao=3.264.22.1`;
      insereJavaScriptPagina(sArquivo);

    });
  </script>
</body>

</html>