<?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 | Alteração Pedido B2B</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../dist/css/adminlte.min.css?versao=3.258.7.1">
  <link rel="stylesheet" href="../plugins/fontawesome-free/css/all.min.css?versao=3.258.7.1">
  <link href='https://fonts.googleapis.com/css?family=Roboto:400,300,500,600,700,400italic' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" type="text/css" href="../dist/css/dataTables.bootstrap4.min.css?versao=3.258.7.1" />
  <link href='../dist/css/bootstrap.min.css?versao=3.258.7.1'>
  <link rel="stylesheet" href="../dist/css/custom.css?versao=3.258.7.1">
  <link rel="stylesheet" href="../dist/css/sisplan.css?versao=3.258.7.1">
  <link rel="stylesheet" type="text/css" href="../plugins/datatables-keytable/css/keyTable.bootstrap4.min.css?versao=3.258.7.1">
  <link rel="stylesheet" type="text/css" href="../dist/css/responsive.bootstrap.min.css?versao=3.258.7.1">
  <link rel="shortcut icon" href="../favicon.ico">
  <link rel="stylesheet" href="../dist/css/cadastro.css?versao=3.258.7.1">
  <link rel="stylesheet" href="../plugins/toastr/toastr.min.css?versao=3.258.7.1">
  <link rel="stylesheet" type="text/css" href="../dist/css/driver.min.css?versao=3.258.7.1" />
  <link rel="stylesheet" href="../dist/css/jquery-ui.css?versao=3.258.7.1">
  <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
  <style>
    .bordaRadio,
    .bordaCheckbox {
      border: 2px solid #e0e4e6;
      border-radius: 4px;
      padding: 10px 15px 0 10px;
    }

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

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

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

    .fa-angle-right,
    .fa-angle-down {
      color: #343a40;
    }

    .header-content-page .title-page,
    .title-content-page .title,
    .title-page {
      font-size: 20px;
      line-height: normal;
      font-weight: 500;
      color: var(--font-color);
      margin: 0;
      font-family: Roboto, Arial, sans-serif;
    }

    .form-control:disabled,
    .form-control[readonly] {
      background-color: #f7f7f7;
      opacity: 1;
    }

    .card {
      box-shadow: none !important;
      border-radius: 0 !important;
      margin-bottom: 0 !important;
    }

    .card-header {
      box-shadow: 0px 1px rgb(0 0 0 / 20%) !important;
    }

    .card.card-header {
      border-bottom: 1px dashed #ddd;
      box-shadow: none !important;
    }

    .card-body {
      padding-left: 1.25rem !important;
      padding-top: 0px;
      padding-bottom: 0px;
      padding-right: 1.25rem !important;
    }
  </style>
</head>

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


    <div id="myModal" class="modal" tabindex="-1" role="dialog">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 id="myModalLabel" class="modal-title"></h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span>
            </button>
          </div>
          <div class="modal-body">
            <p id="myModalText"></p>
          </div>
          <div class="modal-footer">
            <button id="btnYes" type="button" class="btn btn-primary">Sim</button>
            <button id="btnNo" type="button" class="btn btn-secondary" data-dismiss="modal">Não</button>
          </div>
        </div>
      </div>
    </div>
    <div class="wrapper">
      <div id="myModal" class="modal" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <h5 id="myModalLabel" class="modal-title"></h5>
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <div class="modal-body">
              <p id="myModalText"></p>
            </div>
            <div class="modal-footer">
              <button id="btnYes" type="button" class="btn btn-primary">Sim</button>
              <button id="btnNo" type="button" class="btn btn-secondary" data-dismiss="modal">Não</button>
            </div>
          </div>
        </div>
      </div>
      <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"></h1>
              </div>
              <div class="col-sm-6">
                <!-- <ol class="breadcrumb float-sm-right">

                  <li class="breadcrumb-item active"><a href="../aplicacao_pcp">Acesso Aplicação do PCP</a></li>
                  <li class="breadcrumb-item active">Aplicação do PCP</li>
                </ol> -->
              </div>
            </div>
          </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: none!important;box-shadow:none!important;">
                  <h2> Alteração Pedido B2B
                    <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 mb-3">
                    <form id="msform">
                      <ul id="progressbar">
                        <li class="active" id="account"><strong>Geral</strong></li>
                      </ul>
                      <p>Preencha os dados e clique em gravar para realizar a alteração do Pedido B2B.</p>
                      <fieldset class="row justify-content-center mt-5">
                        <div class="col-10 text-left">

                          <div class=" row">

                            <div class="col-12 col-md-3 form-group">
                              <label data-error="wrong" data-success="right" for="dtEntregaNova">Data de Entrega: *</label>
                              <div class="relative">
                                <div class="input-group">
                                  <input type="date" max="2500-12-31" value="1200-01-01" class="input-default focus form-control" id="dtEntregaNova" name="dtEntregaNova" class="form-control">
                                </div>
                              </div>
                            </div>
                            <div class="col-12 col-md-3 form-group">
                              <label data-error="wrong" data-success="right" for="dtFatura">Prev. Fatura:</label>
                              <div class="relative">
                                <div class="input-group">
                                  <input type="date" max="2500-12-31" value="1200-01-01" class="input-default focus form-control" id="dtFatura" name="dtFatura" class="form-control" disabled>
                                </div>
                              </div>
                            </div>
                            <div class="col">
                            </div>
                            <div class="col-12 col-md-auto text-center form-group">
                              <label> </label>
                              <div class="relative">
                                <div class="input-group">
                                  <button class="btn btn-primary btn-sisp" id="btnItens"><span class="fas fa-search mr-1"></span> Itens do Pedido</button>
                                </div>
                              </div>
                            </div>
                          </div>

                          <div class=" row">
                            <div class="col-12 col-md-6 form-group">
                              <label data-error="wrong" data-success="right" for="txtMoeda">Moeda: *</label>
                              <div class="input-group">
                                <input type="text" class="input-default focus form-control" id="txtMoeda" name="txtMoeda" class="form-control" placeholder="Moeda">
                                <div class="input-group-append">
                                  <button class="btn bg-danger" id="btnMoeda" name="btnMoeda" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                  <button class="btn bg-danger" id="btnLimpaMoeda" name="btnLimpaMoeda" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                </div>
                              </div>
                            </div>
                            <div class="col-12 col-md-6 form-group">
                              <label data-error="wrong" data-success="right" for="txtCondPagto">Condição de Pagamento: *</label>
                              <div class="input-group">
                                <input type="text" class="input-default focus form-control" id="txtCondPagto" name="txtCondPagto" class="form-control" placeholder="CondPagto">
                                <div class="input-group-append">
                                  <button class="btn bg-danger" id="btnCondPagto" name="btnCondPagto" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                  <button class="btn bg-danger" id="btnLimpaCondPagto" name="btnLimpaCondPagto" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                </div>
                              </div>
                            </div>
                            <div class="col-12 col-md-6 form-group">
                              <label data-error="wrong" data-success="right" for="txtTransportadora">Transportadora: </label>
                              <div class="input-group">
                                <input type="text" class="input-default focus form-control" id="txtTransportadora" name="txtTransportadora" class="form-control" placeholder="Transportadora">
                                <div class="input-group-append">
                                  <button class="btn bg-danger" id="btnTransportadora" name="btnTransportadora" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                  <button class="btn bg-danger" id="btnLimpaTransportadora" name="btnLimpaTransportadora" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                </div>
                              </div>
                            </div>
                            <!-- <div class="col-12 col-md-6 form-group">
                              <label data-error="wrong" data-success="right" for="txtEndereco">Endereço de Entrega: </label>
                              <div class="input-group">
                                <input type="text" class="input-default focus form-control" id="txtEndereco" name="txtEndereco" class="form-control" placeholder="Endereço">
                              </div>
                            </div> -->
                            <div class="col-12 col-md-12 h-30 form-group">
                              <label data-error="wrong" data-success="right" for="txtObservacao">Observação: </label>
                              <div class="input-group">
                                <textarea type="text" class="input-default focus form-control" id="txtObservacao" name="txtObservacao" class="form-control" placeholder="Observação" style="height: 75px !important; padding-top: 10px"> </textarea>
                              </div>
                            </div>
                            <fieldset id="fieldset_finalizaPedido">
                              <div class="collapse show" id="collapsePedido">
                                <div class="card card-header collapseHeader mt-2" role="tab" id="enderecoEntregaPedido">
                                  <a style="width:100%;" class="collapseEnderecoEntregas" data-toggle="collapse" data-parent="#collapseEnderecoEntrega" href="#collapseEnderecoEntrega" aria-expanded="true" aria-controls="collapseOne1">
                                    <div class="row">
                                      <div class="iconCollapse" style="max-width:20px;margin-top:auto; margin-bottom: auto" class="col-1">
                                        <i class="fas fa-angle-right"></i>
                                      </div>
                                      <div class="col-11">
                                        <h4 class="title-page">
                                          Endereço Entrega Cliente
                                        </h4>
                                      </div>
                                    </div>
                                  </a>
                                </div>
                                <div class="collapse" id="collapseEnderecoEntrega">
                                  <div class="card card-body">
                                    <div class="card card-header d-flex collapseHeader mt-2" style="flex-direction: row; align-items: center; grid-gap: 10px" role="tab" id="enderecoEntregaEntidade">
                                      <a class="collapseEnderecoEntidades" data-toggle="collapse" data-parent="#collapseEnderecoEntidade" href="#collapseEnderecoEntidade" aria-expanded="true" aria-controls="collapseOne1">
                                        <div class="iconCollapse" style="max-width:20px;margin-top:auto; margin-bottom: auto" class="col-1">
                                          <i class="fas fa-angle-right"></i>
                                        </div>
                                      </a>
                                      <input type="radio" id="radioEndEntidade" class="pointer" name="radioEndereco">
                                      <a class="collapseEnderecoEntidades" data-toggle="collapse" data-parent="#collapseEnderecoEntidade" href="#collapseEnderecoEntidade" aria-expanded="true" aria-controls="collapseOne1">
                                        <h4 class="title-page">
                                          <label class="container ml-2 mr-0 pl-0 pointer" for="radioEndEntidade">Endereço da Entidade</label>
                                        </h4>
                                      </a>
                                    </div>

                                    <div class="collapse" id="collapseEnderecoEntidade">
                                      <div class="card card-body">
                                        <div class=" tab-pane fade show active" role="tabpanel" aria-labelledby="geral-tab">
                                          <div class="row ml-4">
                                            <div class="col-lg-12  col-12 form-group">
                                              <label for="txtEnderecoEntidade">Endereço</label>
                                              <div class="input-group">
                                                <input type="text" class="input-default focus form-control" id="txtEnderecoEntidade" name="txtEnderecoEntidade" disabled>
                                                <input type="text" class="input-default focus form-control" id="txtNumeroEntidade" name="txtNumeroEntidade" hidden>
                                                <input type="text" class="input-default focus form-control" id="txtComplementoEntidade" name="txtComplementoEntidade" hidden>
                                              </div>
                                            </div>
                                            <div class="col-lg-12  col-12 form-group">
                                              <label for="txtBairroEntidade">Bairro</label>
                                              <div class="input-group">
                                                <input type="text" class="input-default focus form-control" id="txtBairroEntidade" name="txtBairroEntidade" disabled>
                                              </div>
                                            </div>
                                            <div class="col-lg-6  col-12 form-group">
                                              <label for="txtCepEntidade">Cep</label>
                                              <div class="input-group">
                                                <input type="text" class="input-default focus form-control" id="txtCepEntidade" name="txtCepEntidade" disabled>
                                              </div>
                                            </div>
                                            <div class="col-lg-6  col-12 form-group">
                                              <label for="txtCidadeEstadoEntidade">Cidade/Estado</label>
                                              <div class="input-group">
                                                <input type="text" class="input-default focus form-control" id="txtCidadeEstadoEntidade" name="txtCidadeEstadoEntidade" disabled>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                    <div>
                                      <div class="card card-header d-flex collapseHeader mt-2" style="flex-direction: row; align-items: center; grid-gap: 10px" role="tab" id="enderecoEntregaEntidade">
                                        <a class="collapseEnderecoEntregaEntidades" data-toggle="collapse" data-parent="#collapseEnderecoEntregaEntidade" href="#collapseEnderecoEntregaEntidade" aria-expanded="true" aria-controls="collapseOne1">
                                          <div class="iconCollapse" style="max-width:20px;margin-top:auto; margin-bottom: auto" class="col-1">
                                            <i class="fas fa-angle-right"></i>
                                          </div>
                                        </a>
                                        <input type="radio" id="radioEntregaEntidade" class="pointer" name="radioEndereco">
                                        <a class="collapseEnderecoEntregaEntidades" data-toggle="collapse" data-parent="#collapseEnderecoEntregaEntidade" href="#collapseEnderecoEntregaEntidade" aria-expanded="true" aria-controls="collapseOne1">
                                          <h4 class="title-page">
                                            <label class="container ml-2 mr-0 pl-0 pointer" for="radioEntregaEntidade">Endereço de Entrega</label>
                                          </h4>
                                        </a>
                                      </div>

                                      <div class="collapse" id="collapseEnderecoEntregaEntidade">
                                        <div class="row ml-4">
                                          <div class="col-lg-12  col-12 form-group">
                                            <label for="txtEnderecoEntrega">Endereço</label>
                                            <div class="input-group">
                                              <input type="text" class="input-default focus form-control" id="txtEnderecoEntrega" name="txtEnderecoEntrega" disabled>
                                              <input type="text" class="input-default focus form-control" id="txtNumeroEntrega" name="txtNumeroEntrega" hidden>
                                              <input type="text" class="input-default focus form-control" id="txtComplementoEntrega" name="txtComplementoEntrega" hidden>
                                            </div>
                                          </div>
                                          <div class="col-lg-12  col-12 form-group">
                                            <label for="txtBairroEntrega">Bairro</label>
                                            <div class="input-group">
                                              <input type="text" class="input-default focus form-control" id="txtBairroEntrega" name="txtBairroEntrega" disabled>
                                            </div>
                                          </div>
                                          <div class="col-lg-6  col-12 form-group">
                                            <label for="txtCepEntrega">Cep</label>
                                            <div class="input-group">
                                              <input type="text" class="input-default focus form-control" id="txtCepEntrega" name="txtCepEntrega" disabled>
                                            </div>
                                          </div>
                                          <div class="col-lg-6  col-12 form-group">
                                            <label for="txtCidadeEstadoEntrega">Cidade/Estado</label>
                                            <div class="input-group">
                                              <input type="text" class="input-default focus form-control" id="txtCidadeEstadoEntrega" name="txtCidadeEstadoEntrega" disabled>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                    <div>
                                      <div class="card card-header d-flex collapseHeader mt-2" style="flex-direction: row; align-items: center; grid-gap: 10px" role="tab" id="enderecoEntregaCobranca">
                                        <a class="collapseEnderecoEntregaCobrancas" data-toggle="collapse" data-parent="#collapseEnderecoEntregaCobranca" href="#collapseEnderecoEntregaCobranca" aria-expanded="true" aria-controls="collapseOne1">
                                          <div class="iconCollapse" style="max-width:20px;margin-top:auto; margin-bottom: auto" class="col-1">
                                            <i class="fas fa-angle-right"></i>
                                          </div>
                                        </a>
                                        <input type="radio" id="radioCobrancaEntidade" class="pointer" name="radioEndereco">
                                        <a class="collapseEnderecoEntregaCobrancas" data-toggle="collapse" data-parent="#collapseEnderecoEntregaCobranca" href="#collapseEnderecoEntregaCobranca" aria-expanded="true" aria-controls="collapseOne1">
                                          <h4 class="title-page">
                                            <label class="container ml-2 mr-0 pl-0 pointer" for="radioCobrancaEntidade">Endereço de Cobrança</label>
                                          </h4>
                                        </a>
                                      </div>

                                      <div class="collapse" id="collapseEnderecoEntregaCobranca">
                                        <div class="row ml-4">
                                          <div class="col-lg-12  col-12 form-group">
                                            <label for="txtEnderecoCobranca">Endereço</label>
                                            <div class="input-group">
                                              <input type="text" class="input-default focus form-control" id="txtEnderecoCobranca" name="txtEnderecoCobranca" disabled>
                                              <input type="text" class="input-default focus form-control" id="txtNumeroCobranca" name="txtNumeroCobranca" hidden>
                                              <input type="text" class="input-default focus form-control" id="txtComplementoCobranca" name="txtComplementoCobranca" hidden>
                                            </div>
                                          </div>
                                          <div class="col-lg-12  col-12 form-group">
                                            <label for="txtBairroCobranca">Bairro</label>
                                            <div class="input-group">
                                              <input type="text" class="input-default focus form-control" id="txtBairroCobranca" name="txtBairroCobranca" disabled>
                                            </div>
                                          </div>
                                          <div class="col-lg-6  col-12 form-group">
                                            <label for="txtCepCobranca">Cep</label>
                                            <div class="input-group">
                                              <input type="text" class="input-default focus form-control" id="txtCepCobranca" name="txtCepCobranca" disabled>
                                            </div>
                                          </div>
                                          <div class="col-lg-6  col-12 form-group">
                                            <label for="txtCidadeEstadoCobranca">Cidade/Estado</label>
                                            <div class="input-group">
                                              <input type="text" class="input-default focus form-control" id="txtCidadeEstadoCobranca" name="txtCidadeEstadoCobranca" disabled>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                      <div>
                                        <div class="card card-header d-flex collapseHeader mt-2" style="flex-direction: row; align-items: center; grid-gap: 10px" role="tab" id="enderecoEntregaPersonalizado">
                                          <a class="collapseEnderecoEntregaPersonalizados" data-toggle="collapse" data-parent="#collapseEnderecoEntregaPersonalizado" href="#collapseEnderecoEntregaPersonalizado" aria-expanded="true" aria-controls="collapseOne1">
                                            <div class="iconCollapse" style="max-width:20px;margin-top:auto; margin-bottom: auto" class="col-1">
                                              <i class="fas fa-angle-right"></i>
                                            </div>
                                          </a>
                                          <input type="radio" id="radioPersonalizadoEntidade" checked class="pointer" name="radioEndereco">
                                          <a class="collapseEnderecoEntregaPersonalizados" data-toggle="collapse" data-parent="#collapseEnderecoEntregaPersonalizado" href="#collapseEnderecoEntregaPersonalizado" aria-expanded="true" aria-controls="collapseOne1">
                                            <h4 class="title-page">
                                              <label class="container ml-2 mr-0 pl-0 pointer" for="radioPersonalizadoEntidade">Endereço Personalizado</label>
                                            </h4>
                                          </a>
                                        </div>

                                        <div class="collapse" id="collapseEnderecoEntregaPersonalizado">
                                          <div class="row ml-4">
                                            <div class="col-lg-6  col-6 form-group">
                                              <label data-error="wrong" data-success="right" for="txtCEPPersonalizado">Cep: </label>
                                              <div class="input-group">
                                                <input type="text" class="input-default focus form-control" id="txtCEPPersonalizado" name="txtCEPPersonalizado" placeholder="CEP">
                                                <div class="input-group-append">
                                                  <button class="btn bg-danger" id="btn-CEPPersonalizado" name="btn-CEPPersonalizado" data-button="absolute" type="button">
                                                    <i class="m-0 p-0 fas fa-search"></i>
                                                  </button>
                                                  <button class="btn bg-danger" id="btn-limpa-CEPPersonalizado" type="button">
                                                    <i class="m-0 p-0 fas fa-trash"></i>
                                                  </button>
                                                </div>
                                              </div>
                                            </div>
                                            <div class="col-lg-6  col-12 form-group">
                                              <label for="txtCidadeEstadoPersonalizado">Cidade/Estado: </label>
                                              <div class="input-group">
                                                <input type="text" class="input-default focus form-control" id="txtCidadeEstadoPersonalizado" name="txtCidadeEstadoPersonalizado" disabled>
                                              </div>
                                            </div>
                                            <div class="col-lg-10 col-12 form-group">
                                              <label for="txtEnderecoPersonalizado">Endereço: *</label>
                                              <div class="input-group">
                                                <input type="text" class="input-default focus form-control" id="txtEnderecoPersonalizado" name="txtEnderecoPersonalizado">
                                              </div>
                                            </div>
                                            <div class="col-lg-2 col-12 form-group">
                                              <label for="txtNumeroPersonalizado">Número: *</label>
                                              <div class="input-group">
                                                <input type="text" class="input-default focus form-control" id="txtNumeroPersonalizado" name="txtNumeroPersonalizado">
                                              </div>
                                            </div>
                                            <div class="col-lg-4 col-12 form-group">
                                              <label for="txtBairroPersonalizado">Bairro: *</label>
                                              <div class="input-group">
                                                <input type="text" class="input-default focus form-control" id="txtBairroPersonalizado" name="txtBairroPersonalizado">
                                              </div>
                                            </div>
                                            <div class="col-lg-8 col-12 form-group">
                                              <label for="txtComplementoPersonalizado">Complemento: </label>
                                              <div class="input-group">
                                                <input type="text" class="input-default focus form-control" id="txtComplementoPersonalizado" name="txtComplementoPersonalizado">
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                    <hr>
                                    <div>
                                      <div class="row ml-4">
                                        <div class="col-lg-1  col-1 form-group">
                                          <label for="txtDDD">DDD</label>
                                          <div class="input-group">
                                            <input type="text" class="input-default focus form-control" id="txtDDD" name="txtDDD">
                                          </div>
                                        </div>
                                        <div class="col-lg-5  col-5 form-group">
                                          <label for="txtTelefone">Telefone</label>
                                          <div class="input-group">
                                            <input type="text" class="input-default focus form-control" id="txtTelefone" name="txtTelefone">
                                          </div>
                                        </div>
                                        <div class="col-lg-6  col-6 form-group">
                                          <label for="txtInscricao">Inscrição/RG</label>
                                          <div class="input-group">
                                            <input type="text" class="input-default focus form-control" id="txtInscricao" name="txtInscricao" disabled>
                                          </div>
                                        </div>
                                        <div class="col-lg-12  col-12 form-group">
                                          <label for="txtRecebedor">Recebedor</label>
                                          <div class="input-group">
                                            <input type="text" class="input-default focus form-control" id="txtRecebedor" name="txtRecebedor">
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </fieldset>

                          </div>
                        </div>
                      </fieldset>
                      <input type="button" name="btnGravar" id="btnGravar" class="btn-sisp action-button" value="Gravar" />
                      <button type="button" id="btnVoltar" style="font-size:15px;" class="btn-sisp action-button-previous" data-dismiss="modal">Voltar</button>
                    </form>
                  </div>
                  </form>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div id="modal-itens" 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">Itens do Pedido B2B</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="col-sm-12 table-responsive card-body">
              <table id="tabelaItensPedido" class="table table-sm table-select table-hover" width="100%"></table>
              <thead>
                <tr></tr>
              </thead>
              <tbody>
                <tr></tr>
              </tbody>
            </div>
          </div>

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


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

      sArquivo = `${BASE_URI}/pages/altpedidoB2B/cadastro_altpedidoB2B/altpedidoB2B.js?versao=3.258.7.1`;
      insereJavaScriptPagina(sArquivo);

      const nomeTela = ('<?php echo basename(__FILE__) ?>').replace('.php', '');
      habilitaCamposObrigatoriosTela(nomeTela);
    });
  </script>
</body>

</html>