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 static function onChangeProduto($param = null) | |
{ | |
try | |
{ | |
//code here | |
if(!empty($param['key'])) | |
{ | |
//code here |
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 | |
.... | |
//Adicionar um texto ao footer do form | |
$addText = new TTextDisplay(FormService::getByAndAt($object), 'gray', 10, 'i'); | |
$this->form->addFooterWidget($addText); | |
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
#!/usr/bin/env python3 | |
import os | |
import json | |
import requests | |
from multiprocessing.pool import ThreadPool | |
def build_index(): | |
page = 1 | |
urls = [] |
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 | |
# https://github.com/mike42/escpos-php | |
# composer: mike42/escpos-php | |
use Mike42EscposPrinter; | |
use Mike42EscposEscposImage; | |
use Mike42EscposImagickEscposImage; | |
use Mike42EscposPrintConnectorsFilePrintConnector; | |
use Mike42EscposPrintConnectorsWindowsPrintConnector; |
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 | |
$texto = ''; | |
$classe = ''; | |
switch ($value) | |
{ | |
case 'ABERTA': | |
$texto = 'ABERTA'; | |
$classe = 'primary'; |
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 - Adicione nas propriedades do projeto do Adianti Builder em Header Tags(script, style, meta) | |
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.7.18/dist/sweetalert2.all.min.js"></script> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11.7.18/dist/sweetalert2.min.css"> | |
# 2 - Depois crie uma classe service com o nome de Mensagem e cole esse código abaixo.. exemplo: | |
class Mensagem | |
{ |
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 - CRIE O ARQUIVO PHP "PHP File" NA PASTA RAIZ DO PROJETO E COLE ESSE CÓDIGO: | |
class OFX | |
{ | |
private $arquivo; | |
public function __construct($arquivo) | |
{ |
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
/* | |
- Cria a coluna "Saldo" no DetailForm | |
- Nas prorpiedades do DetailForm criar envento onUpdateList | |
*/ | |
public static function onUpdateList($param = null) | |
{ | |
try |
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) | |
{ | |
if (empty($param['order'])) | |
{ | |
$param['order'] = 'cidade->nome'; | |
$criteria->setProperties($param); | |
} |
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
/* | |
Crie uma app blank: RESTService | |
- no onExecute insira os códigos abaixo | |
- Crie os metodos, no meu exemplo eu criei um metodo chamado checkLicense() quere recebe a variavel $body | |
- a variavel $boby recebe o input (os dados que vai enviar em formato json) | |
*/ | |
header("Access-Control-Allow-Origin: *"); |
OlderNewer