Atualizando abas documentos
This commit is contained in:
parent
ad1d96d585
commit
3c17a0a94e
1 changed files with 28 additions and 1 deletions
29
vendor/view/documents/documents_datagrid.php
vendored
29
vendor/view/documents/documents_datagrid.php
vendored
|
|
@ -63,7 +63,7 @@ if($Main->verifyToken()){
|
|||
|
||||
</button>
|
||||
|
||||
<button type="button" class="btn btn-success btn-sm" onclick="formSearchDocs(<?php echo $documentsCategorysId;?>, '')" data-toggle="tooltip" data-placement="left" title="Consultar por documento(s)" id="btn-search">
|
||||
<button type="button" class="btn btn-success btn-sm" onclick="formSearchDocs(documents_categorys_id, description)" data-toggle="tooltip" data-placement="left" title="Consultar por documento(s)" id="btn-search">
|
||||
|
||||
<i class="fas fa-search-plus mr-1"></i>Pesquisar
|
||||
|
||||
|
|
@ -178,6 +178,33 @@ if($Main->verifyToken()){
|
|||
|
||||
// Adiciona o evento ao select
|
||||
document.getElementById("type").addEventListener("change", verificarSelecao);
|
||||
|
||||
/** Aplicar recursos na tabela */
|
||||
$(document).ready(function(e) {
|
||||
|
||||
const documents_categorys_id = [];
|
||||
const description = [];
|
||||
|
||||
<?php
|
||||
|
||||
/** Consulta as categorias de documentos cadastradas*/
|
||||
$DocumentsCategorysResult = $DocumentsCategorys->All(0, 0);
|
||||
foreach($DocumentsCategorysResult as $DocumentsCategorysKey => $Result){
|
||||
|
||||
?>
|
||||
|
||||
documents_categorys_id.push("<?php echo $Result->documents_categorys_id;?>");
|
||||
description.push("<?php echo $Result->description;?>");
|
||||
|
||||
<?php } ?>
|
||||
|
||||
/** Modal de consulta */
|
||||
$('#btn-search').click(function(){
|
||||
|
||||
formSearchDocs(documents_categorys_id, description);
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue