(Serial port or com port? - Serial ports are often refered as COM ports. It is the same to be short. You can read abut it in the Wiki article )
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$onAcao = new TDataGridAction(array('PedidoList', 'onRelatorio')); | |
$onAcao->setUseButton(false); | |
$onAcao->setButtonClass('btn btn-default btn-sm'); | |
$onAcao->setLabel(""); | |
$onAcao->setImage('fas:print #000000'); | |
$onAcao->setField(self::$primaryKey); | |
$onAcao->setDisplayCondition('PedidoList::onCondicaoExibicao'); | |
$this->datagrid->addAction($onAcao); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function onReload($param = NULL) | |
{ | |
try | |
{ | |
TTransaction::open(self::$database); | |
$criteria->add(new TFilter('data_cadastro', 'is', NULL)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function onSearch($param = null) | |
{ | |
$data = $this->form->getData(); | |
$filters = []; | |
$filtro_data = $data->filtro_data; # TCombo com as opções: ["1"=>"COM DATA", "2"=>"NULOS"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*ALTERA COR DE FUNDO DOS CAMPOS DESABILITADOS DO FORMULÁRIO*/ | |
.tselect_disabled, .tfield_disabled, .note-editor.note-frame .note-editing-area .note-editable[contenteditable=false], .note-editor.note-airframe .note-editing-area .note-editable[contenteditable=false], .tfield_disabled+.pickr>button, .tfield_disabled[widget="tpassword"]+button, .tfield_disabled+.input-group-addon, .select2-disable+ .selection .select2-selection, .tcombo_disabled, .form-control:disabled, .form-control[readonly] { | |
background-color: #f8f9fa !important; | |
opacity: 1; | |
color: #000000 !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($param['tipo_pessoa'] == 'FÍSICA') | |
{ | |
TScript::create("$('label').filter(function() {return $(this).text().trim() === 'CPF';}).html('CNPJ');"); | |
} elseif ($param['tipo_pessoa'] == 'JURÍDICA') { | |
TScript::create("$('label').filter(function() {return $(this).text().trim() === 'CNPJ';}).html('CPF');"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# 1 - IMPORTAR O jquery.mask.js VIA CDN | |
# <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.16/jquery.mask.js"></script> | |
# OU IMPORTAR O ARQUIVO NO jquery.mask.js DIRETO NO SEU PROJETO, DOWNLOAD: | |
# https://gist.github.com/fabricio-dev-code/eedb80b18e460ae8c811863120d0692b | |
# 2 - NO __construct DEFINA O ID NO CAMPO QUE VOCÊ DESEJA APLICAR A MÁSCARA DE % | |
$porcentual->id = 'porcentual'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function __construct( $param ) | |
{ | |
parent::__construct(); | |
$this->form = new BootstrapFormBuilder(self::$formName); | |
$this->form->setFormTitle("<i class=\"fas fa-chart-pie\"></i> FLUXO DE CAIXA); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Z-INDEX JANELA SWEET ALERT*/ | |
.swal2-container { | |
z-index: 9999 !important; | |
} |
NewerOlder