<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Sisplan Web | Relatório de Ordem de Compra</title>
  <!-- Tell the browser to be responsive to screen width -->
  <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 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="plugins/datatables-keytable/css/keyTable.bootstrap4.min.css?versao=3.264.22.1">
  <link rel="stylesheet" href="plugins/toastr/toastr.min.css?versao=3.264.22.1">
  <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css?versao=3.264.22.1">
  <link rel="shortcut icon" href="favicon.ico">
  <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" type="text/css" href="dist/css/driver.min.css?versao=3.264.22.1" />
  <link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.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="plugins/datatables-colreorder/css/colReorder.bootstrap4.min.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">
  <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">

  <style>
    .table.dataTable tbody td,
    th {
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    .bordaCampos {
      border: solid #e0e4e6;
      border-radius: 4px;
      border-width: 2px;
      padding-top: 2%;
      padding-bottom: 0%;
    }

    .bordaCampos:first-child {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: flex-end;
      align-items: center;
    }

    .border-Field .textoBorda {
      font-size: 1.0em !important;
      text-align: left !important;
      width: auto;
      padding: 0 10px;
      border-bottom: none;
    }

    .border-Field {
      border: 1.0px solid var(--font-color) !important;
      padding: 0 1.0em 1.0em 1.0em !important;
      margin: 0 0 0 0 !important;
      -webkit-box-shadow: 0px 0px 0px 0px #000;
      box-shadow: 0px 0px 0px 0px #000;
      padding-bottom: 0px !important;
    }

    .dataTables_length {
      margin-top: 0.90rem !important;
    }
    
    .dataTables_filter>label {
      margin-top: 0.275rem !important;
      margin-bottom: 0rem !important;
    }
  </style>
</head>

<body class="hold-transition sidebar-mini layout-fixed">
  <main 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">Relatório de Ordem de Compra</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>
            <div class="col-sm-6">
            </div>
          </div>
        </div>
        <div class="container-fluid">
          <div class="row card">
            <div class="col-sm-12 mt-2">
              <button class="btn btn-success btn-sisp" id="btnFiltros"><span class="fas fa-search"></span> Filtros</button>
              <button id="btnImprimir" class="btn-sisp btn btn-danger"><i class="fas fa-print"></i> Imprimir</button>
            </div>
            <div class="row">
              <div class="col-sm-6 d-flex justify-content-center align-items-center" style="height: 100%;">
                <div id="graficosRelOrdemCompra" class="mt-5" style="width: 100%;"></div>
              </div>
              <div class="col-sm-6 d-flex justify-content-center align-items-center" style="height: 100%;">
                <div id="graficosRelOrdemCompra1" class="mt-5" style="width: 100%;"></div>
              </div>
            </div>
            <div class="col-sm-12 table-responsive card-body">
              <h5>Ordem de Compra</h5>
              <table id="tabelaOrdemCompra" class="table table-sm-sisp table-select table-hover" width="100%">
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
    </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 d-flex">
            <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-md-3 col-12">
                <label data-error="wrong" data-success="right" for="dtEmissaoDe">Emissão De/ Até: </label>
                <div class="relative">
                  <div class="input-group">
                    <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtEmissaoDe" name="dtEmissaoDe" class="form-control">
                    <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtEmissaoAte" name="dtEmissaoAte" class="form-control">
                  </div>
                </div>
              </div>
              <div class="col-md-3 col-12">
                <label data-error="wrong" data-success="right" for="dtEntradaDe">Entrega De/ Até: </label>
                <div class="relative">
                  <div class="input-group">
                    <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtEntregaDe" name="dtEntregaDe" class="form-control">
                    <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtEntregaAte" name="dtEntregaAte" class="form-control">
                  </div>
                </div>
              </div>
              <div class="col-md-3 col-12">
                <label data-error="wrong" data-success="right" for="dtEntregaItensDe">Entrega dos Itens De/ Até: </label>
                <div class="relative">
                  <div class="input-group">
                    <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtEntregaItensDe" name="dtEntregaItensDe" class="form-control">
                    <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtEntregaItensAte" name="dtEntregaItensAte" class="form-control">
                  </div>
                </div>
              </div>
              <div class="col-md-3 col-12">
                <label data-error="wrong" data-success="right" for="dtEntradaItensOrigDe">Entrega dos Itens Original De/ Até: </label>
                <div class="relative">
                  <div class="input-group">
                    <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtEntregaItensOrigDe" name="dtEntregaItensOrigDe" class="form-control">
                    <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtEntregaItensOrigAte" name="dtEntregaItensOrigAte" class="form-control">
                  </div>
                </div>
              </div>

            </div>
            <div class="row">

              <div class="col-md-5 col-12 pl-2 mt-2 form-group">
                <div class="">
                  <fieldset class="form border-Field p-0">
                    <legend class="textoBorda pb-0 mb-0">Tipo da Compra</legend>
                    <div class="form-row justify-content-around" style="float: left;">
                      <div class="d-flex">
                        <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdTipoTodos" checked name="tipo"><label for="rdTipoTodos" class="container escondeRadio">Todas</label></div>
                        <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdTipoProduto" name="tipo"><label for="rdTipoProduto" class="container escondeRadio">Produto</label></div>
                        <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdTipoMaterial" name="tipo"><label for="rdTipoMaterial" class="container escondeRadio">Materiais</label></div>
                        <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdTipoServico" name="tipo"><label for="rdTipoServico" class="container escondeRadio">Serviços</label></div>
                      </div>
                    </div>
                </div>
              </div>
              <div class="col-md-4 col-12 pl-2 mt-2 form-group">
                </fieldset>
                <fieldset class="form border-Field p-0">
                  <legend class="textoBorda pb-0 mb-0">Buscar</legend>
                  <div class="form-row justify-content-around" style="float: left;">
                    <div class="d-flex">
                      <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdBuscarTodos" checked name="buscar"><label for="rdBuscarTodos" class="container escondeRadio">Todas</label></div>
                      <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdBuscarPendentes" name="buscar"><label for="rdBuscarPendentes" class="container escondeRadio">Pendentes</label></div>
                      <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdBuscarFinalizados" name="buscar"><label for="rdBuscarFinalizados" class="container escondeRadio">Finalizados</label></div>
                    </div>
                  </div>
                </fieldset>
              </div>
              <div class="col-md-3 col-12 pl-2 mt-2 form-group">
                <fieldset class="form border-Field p-0">
                  <legend class="textoBorda pb-0 mb-0">Outros</legend>
                  <div class="form-row justify-content-around" style="float: left;">
                    <div class="form-row d-flex">
                      <div class="icheck-primary form-group ml-1 mr-1">
                        <input type="checkbox" class="form-check-input" id="cbPorGrade">
                        <label class="form-check-label" for="cbPorGrade">Por Grade</label>
                      </div>
                    </div>
                  </div>
                </fieldset>
              </div>

              <div class="col-md-12 col-lg-4 col-12">
                <div class="relative">
                  <div class="input-group">
                    <div class="input-group-append" style="width: 100%; margin-top:4px;">
                      <button class="btn btn-danger btn-sisp mt-4 mb-0" style="width: 100%;" type='button' id="btnSelecionarEmpresas">Selecionar Empresas</button>
                    </div>
                  </div>
                </div>
              </div>

              <div class="col-md-6 col-lg-4 col-12" id="inputServico">
                <label data-error="wrong" data-success="right" for="txtServico">Serviço: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtServico" name="txtServico" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnServico" name="btnServico" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaServico" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>

              <div class="col-md-6 col-lg-4 col-12" id="inputProduto">
                <label data-error="wrong" data-success="right" for="txtProduto">Produto: </label>
                <div class="relative">
                  <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" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>


              <div class="col-md-6 col-lg-4 col-12" style="margin-top: 4px;" id="inputMaterial">
                <label data-error="wrong" data-success="right" for="txtMaterial">Material: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtMaterial" name="txtMaterial" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnMaterial" name="btnMaterial" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaMaterial" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>

              <div class="col-md-6 col-lg-4 col-12 mt-1" id="inputFornecedor">
                <label data-error="wrong" data-success="right" for="txtFornecedor">Fornecedor: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtFornecedor" name="txtFornecedor" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnFornecedor" name="btnFornecedor" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaFornecedor" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>

              <div class="col-md-6 col-lg-4 col-12 mt-1" id="inputCor">
                <label data-error="wrong" data-success="right" for="txtCor">Cor: </label>
                <div class="relative">
                  <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" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtEntrega">Entrega: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtEntrega" name="txtEntrega" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnEntrega" name="btnEntrega" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaEntrega" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtTransporte">Transporte: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtTransporte" name="txtTransporte" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnTransporte" name="btnTransporte" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaTransporte" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>

              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtOrdemCompra">Ordem Compra: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtOrdemCompra" name="txtOrdemCompra" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnOrdemCompra" name="btnOrdemCompra" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaOrdemCompra" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>

              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtPedido">Pedido: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtPedido" name="txtPedido" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnPedido" name="btnPedido" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaPedido" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>

              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtDeposito">Depósito: </label>
                <div class="relative">
                  <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" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>

              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtNumOf">Numero OF: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtNumOf" name="txtNumOf" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnNumOf" name="btnNumOf" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaNumOf" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1" id="inputGrupoProduto">
                <label data-error="wrong" data-success="right" for="txtGrupoProd">Grupo Produto: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtGrupoProd" name="txtGrupoProd" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnGrupoProd" name="btnGrupoProd" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaGrupoProd" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1" id="inputGrupoMaterial">
                <label data-error="wrong" data-success="right" for="txtGrupoMat">Grupo Material: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtGrupoMat" name="txtGrupoMat" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnGrupoMat" name="btnGrupoMat" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaGrupoMat" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtColecao">Coleção: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtColecao" name="txtColecao" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnColecao" name="btnColecao" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaColecao" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1" id="inputLinhaMaterial">
                <label data-error="wrong" data-success="right" for="txtMatLinha">Linha Material: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtMatLinha" name="txtMatLinha" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnMatLinha" name="btnMatLinha" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaMatLinha" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1" id="inputLinhaProduto">
                <label data-error="wrong" data-success="right" for="txtLinha">Linha Produto: </label>
                <div class="relative">
                  <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" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtClasse">Classe: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtClasse" name="txtClasse" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnClasse" name="btnClasse" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaClasse" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtColecaoOC">Coleção OC: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtColecaoOC" name="txtColecaoOC" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnColecaoOC" name="btnColecaoOC" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaColecaoOC" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtEtiqueta">Etiqueta: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtEtiqueta" name="txtEtiqueta" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnEtiqueta" name="btnEtiqueta" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaEtiqueta" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtSubGrupo">SubGrupo: </label>
                <div class="relative">
                  <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" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1" id="inputStatusMaterial">
                <label data-error="wrong" data-success="right" for="txtStatus">Status Material: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtStatus" name="txtStatus" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnStatus" name="btnStatus" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaStatus" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1" id="inputStatusProduto">
                <label data-error="wrong" data-success="right" for="txtStatusProd">Status Produto: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtStatusProd" name="txtStatusProd" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnStatusProd" name="btnStatusProd" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaStatusProd" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtStatusOC">Status OC: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtStatusOC" name="txtStatusOC" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnStatusOC" name="btnStatusOC" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaStatusOC" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtUsuario">Usuario: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtUsuario" name="txtUsuario" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnUsuario" name="btnUsuario" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaUsuario" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtComprador">Comprador: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtComprador" name="txtComprador" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnComprador" name="btnComprador" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaComprador" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtColecaoItem">Coleção Item: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtColecaoItem" name="txtColecaoItem" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnColecaoItem" name="btnColecaoItem" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaColecaoItem" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtContainer">Container: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtContainer" name="txtContainer" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnContainer" name="btnContainer" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaContainer" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-md-6 col-lg-4 col-12 mt-1">
                <label data-error="wrong" data-success="right" for="txtCategoria">Categoria: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtCategoria" name="txtCategoria" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnCategoria" name="btnCategoria" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaCategoria" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>

            </div>

          </div>
          <div class="modal-footer justify-content-start pl-0">
            <div class="row col-12">
              <div class="col-md-4 col-sm-4 col-12">
                <label for="txtOrdem">Opção de Relatório:</label>
                <div class="relative d-flex align-items-center">
                  <select id="txtOrdem" class="input-default focus custom-select">
                  </select>
                  <button class="btn btn-sm btn-success ml-2 btnEdicaoRelatorio" title="Edição de ordenações">
                    <i class="fas fa-check"></i>
                  </button>
                </div>
              </div>
              <div class="col-6 col-lg-8 d-flex justify-content-end align-items-end pr-0">
                <div class="d-flex">
                  <button class="btn btn-primary btn-sisp mr-2" id="btnLimparFiltros" style="background-color: #B22222; border-color: #B22222">
                    <span class="fas fa-trash"></span> Limpar Filtros
                  </button>
                  <button id="btnConsultar" class="btn btn-primary btn-sisp" type="button">
                    <span class="fas fa-search"></span> Consultar
                  </button>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

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

  <script src="plugins/jquery/jquery.min.js?versao=3.264.22.1"></script>
  <script src="dist/js/jquery.maskMoney.min.js?versao=3.264.22.1"></script>
  <script src="plugins/jquery-ui/jquery-ui.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/sweetalert2/sweetalert2.min.js?versao=3.264.22.1"></script>
  <script src="plugins/toastr/toastr.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/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/valida_cpf_cnpj.js?versao=3.264.22.1"></script>
  <script src="plugins/jquery-validation/jquery.validate.min.js?versao=3.264.22.1"></script>
  <script src="dist/js/dataTables.keyTable.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/driver.min.js?versao=3.264.22.1"></script>
  <script src="config.js?versao=3.264.22.1"></script>
  <script type="text/javascript" src="plugins/jszip/jszip.min.js?versao=3.264.22.1"></script>
  <script type="text/javascript" src="plugins/pdfmake/pdfmake.min.js?versao=3.264.22.1"></script>
  <script type="text/javascript" src="plugins/pdfmake/vfs_fonts.js?versao=3.264.22.1"></script>
  <script type="text/javascript" src="plugins/datatables-buttons/js/dataTables.buttons.min.js?versao=3.264.22.1"></script>
  <script type="text/javascript" src="plugins/datatables-buttons/js/buttons.html5.min.js?versao=3.264.22.1"></script>
  <script src="graficos/graficos.js?versao=3.264.22.1"></script>
  <script src="plugins/high-charts/highcharts.js"></script>
  <script src="plugins/high-charts/highcharts-3d.js"></script>
  <script src="plugins/datatables-colreorder/js/dataTables.colReorder.min.js?versao=3.264.22.1"></script>
  <script src="plugins/select2/js/select2.full.min.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('RELORDEMCOMPRA');
      if (!temAcesso.resultado) {
        toastrAcesso(temAcesso, BASE_URI);
        return;
      }

      sArquivo = `${BASE_URI}/pages/relordemcompra/relordemcompra.js?versao=3.264.22.1`;
      const nomeTela = ('<?php echo basename(__FILE__) ?>').replace('.php', '');
      // nomeTela

      await insereJavaScriptPagina(sArquivo);

      habilitaCamposObrigatoriosTela(nomeTela);
    });
  </script>

</body>

</html>