
<div id="formcaptura" class="col-md-12" style="display: none;">
    <div class="row" >
        <div class="col-sm">
            <h4>Crear orden de compra</h4>
        </div>
    </div>
    <br>
    <div class="card card-body">
        <form id="capturanueva">

                <div class="row">
                    <input type="hidden" id="idUsuario" name="idUsuario" value="<?php echo $_SESSION['idUsuario'] ?>">
                    <input type="hidden" id="userrol" name="userrol" value="<?php echo $_SESSION['userrol'] ?>">
                    <div class="form-group col-lg-2 col-md-6 col-md-12">
                        <label class="mb-2 tag">#Mov</label>
                        <input type="text" id="noc" name="noc" class="form-control" size="5px" value="<?php echo $numoc?>" disabled>
                    </div>
                    <div class="form-group col-lg-2 col-md-6 col-md-12">
                        <label class="mb-2 tag">#OC</label>
                        <input type="text" id="numnoc" name="numnoc" tabindex="0" class="form-control" size="10px" value="" autofocus>
                    </div>
                    <div class="form-group col-lg-2 col-md-6 col-md-12">
                        <label class="mb-2 tag">Depto</label>
                        
                        <select required class="form-control" tabindex="2" name="depto" id="depto">
                                <option value="" disabled selected>Selecciona una opción</option>
                                    <?php foreach ($objJasondeptos as $deptos) { ?>
                                        <option value="<?php echo $deptos->id ?>" ><?php echo htmlentities($deptos->depto) ?></option>
                                    <?php } ?>
                            </select>
                    </div>
                    <div class="form-group col-lg-3 col-md-6 col-md-12">
                        <label class="mb-2 tag">RFC</label>
                            <select required class="form-control" tabindex="3" name="rfc_pro" id="rfc_pro" Onblur="traeproveedor()">
                                <option value="" disabled selected>Selecciona una opción</option>
                                    <?php foreach ($objJasonproveedores as $prorfc) { ?>
                                        <option value="<?php echo $prorfc->username ?>" prove="<?php echo htmlentities($prorfc->nombre) ?>" idpro="<?php echo $prorfc->id ?>" ><?php echo htmlentities($prorfc->username) ?></option>
                                    <?php } ?>
                            </select>
                    </div>
                    <div class="form-group col-lg-3 col-md-6 col-md-12">
                        <label class="mb-2 tag">Proveedores</label>
                        <input type="text" id="id_prov" name="id_prov"  tabindex="4" class="form-control" value="" size="10px"  disabled>
                                                
                    </div>
                    <p>
                    <div class="form-group col-lg-2 col-md-6 col-md-12">
                        <label class="mb-2 tag">Folio obra</label>
                        <input type="text" id="fobra" name="fobra" tabindex="5" class="form-control" >
                                                
                    </div>
                                         
                    <div class="form-group col-lg-4 col-md-6 col-md-12">
                        <label class="mb-2 tag">Obra</label>
                        <select required class="form-control" name="obra" id="obra">
                               <option value="" disabled selected>Selecciona una opción</option>
                                    <?php foreach ($objJasonobras as $obras) { ?>
                                        <option value="<?php echo $obras->id ?>" ><?php echo htmlentities($obras->obra) ?></option>
                                    <?php } ?>
                        </select> 
                    </div>
                    <div class="form-group col-lg-2 col-md-6 col-md-12">
                        <label class="mb-2 tag">Importe</label>
                        <input type="text" id="importe" onKeypress="if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;" name="importe" class="form-control" >
                    </div>
                    <div class="form-group col-lg-4 col-md-6 col-md-12">
                        <label class="mb-2 tag">O.C</label>
                        <input id="archioc" name="archioc" multiple type="file" accept=".pdf"/>
                    </div>
                      </p>                       
                                            
                </div>
        </form>
                    <div class="row">
                        <div class="form-group col-lg-6 col-md-6 col-md-12">
                            <button id="sign_in" class="btn btn-success" onclick="guardar_movimiento()">Guardar </button>
                                        
                            <button  class="btn btn-danger" onclick="cerrar_cap('traeprovee','<?php echo $_SESSION['idUsuario'] ?>','<?php echo $_SESSION['userrol'] ?>')">Cancelar </button>
                        </div>
                    </div>
                                
    </div>

</div>

