This file contains hidden or 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
Verificação do PWMS de: | |
17 de junho/2013 - 00:20 | |
a | |
20 de junho/2013 - 16:00 | |
DBA Geovani Mazioli da Silva | |
Móveis Simonetti | |
01 - Alto consumo de CPU para fazer Parse de Queries. A meta seria de 100% e está com 22,36%; | |
02 - Maior tempo consumido é em CPU / execução de queries e Parse (traduzir a query para que o banco execute. Sendo recomendado o uso de variáveis bind; |
This file contains hidden or 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
[Fri Jun 21 11:21:42 2013] [error] [client 192.168.100.211] PHP Fatal error: Call to a member function setStatus() on a non-object in /var/www/wms/library/Wms/Domain/Entity/Expedicao/EtiquetaSeparacaoRepository.php on line 148, referer: http://wms.moveissimonetti.com.br/expedicao?submit=Buscar&idExpedicao=&dataInicial1=21%2F06%2F2013&dataInicial2=21%2F06%2F2013&dataFinal1=&dataFinal2=&status= | |
[Fri Jun 21 11:21:42 2013] [error] [client 192.168.100.211] PHP Stack trace:, referer: http://wms.moveissimonetti.com.br/expedicao?submit=Buscar&idExpedicao=&dataInicial1=21%2F06%2F2013&dataInicial2=21%2F06%2F2013&dataFinal1=&dataFinal2=&status= | |
[Fri Jun 21 11:21:42 2013] [error] [client 192.168.100.211] PHP 1. {main}() /var/www/wms/public/index.php:0, referer: http://wms.moveissimonetti.com.br/expedicao?submit=Buscar&idExpedicao=&dataInicial1=21%2F06%2F2013&dataInicial2=21%2F06%2F2013&dataFinal1=&dataFinal2=&status= | |
[Fri Jun 21 11:21:42 2013] [error] [client 192.168.100.211] PHP 2. Zend_Application->run() /var/www/ |
This file contains hidden or 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
function g_str_grava_salva_codiga_barra($code) { | |
// Nome arquivo | |
$l_str_nome_arquivo = $code.".png"; | |
$code = @g_str_preenche_zeros_esquerda($code, 11); | |
$lw = 3; $hi = 40; | |
$Lencode = array('0001101','0011001','0010011','0111101','0100011', | |
'0110001','0101111','0111011','0110111','0001011'); | |
$Rencode = array('1110010','1100110','1101100','1000010','1011100', | |
'1001110','1010000','1000100','1001000','1110100'); |
This file contains hidden or 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
[ | |
[ | |
{ | |
"idCarga": "276591", | |
"tipoCarga": "T", | |
"centralEntrega": "104", | |
"placa": "MPT 2985", | |
"placaExpedicao": "MPT 2985", | |
"pedidos": [ | |
{ |
This file contains hidden or 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
protected function layoutEtiqueta($etiqueta) | |
{ | |
$this->AddPage(); | |
$text = <<<CONTEUDO | |
EXPEDICAO: 1 - PLACA: ODG1222 | |
CARGA: 12312 - ENTREGA: 12312 - ITINERARIO | |
123123 - FULANO DE TAL | |
043133 - CAMA CASAL MARFIM - VERDE | |
Fornecedor: PHILCO | |
VOLUME 1/2 - 00.00.00.00 |
This file contains hidden or 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
SELECT tbl.*, | |
IF( tbl.administrador = 1, 'Administrador', IF( tbl.aluno 1, 'Aluno', 'Professor' ) ) AS tipo_usuario | |
FROM( | |
SELECT u.*, | |
EXISTS( | |
SELECT 'X' | |
FROM aluno | |
) as aluno | |
) as tbl |
This file contains hidden or 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
UPDATE `webpdv`.`remessa_critica` SET `critica`='rmp.base_pis > ( (IF(0=rmp.qtty_fiscal,rmp.qtty_gerencial, rmp.qtty_fiscal)/1000*rmp.valor_unitario) + rmp.frete + rmp.seguro + rmp.outros - rmp.desconto + rmp.valor_ipi)' WHERE `id`='4'; | |
UPDATE `webpdv`.`remessa_critica` SET `critica`='rmp.base_cofins > ( (IF(0=rmp.qtty_fiscal,rmp.qtty_gerencial, rmp.qtty_fiscal)/1000*rmp.valor_unitario) + rmp.frete + rmp.seguro + rmp.outros - rmp.desconto + rmp.valor_ipi)' WHERE `id`='5'; | |
UPDATE `webpdv`.`remessa_critica` SET `critica`='rmp.base_ipi > ( (IF(0=rmp.qtty_fiscal,rmp.qtty_gerencial, rmp.qtty_fiscal)/1000*rmp.valor_unitario) + rmp.frete + rmp.seguro + rmp.outros - rmp.desconto )' WHERE `id`='3'; | |
UPDATE `webpdv`.`remessa_critica` SET `critica`='rmp.base_icms > ( (IF(0=rmp.qtty_fiscal,rmp.qtty_gerencial, rmp.qtty_fiscal)/1000*rmp.valor_unitario) + rmp.frete + rmp.seguro + rmp.outros - rmp.desconto )' WHERE `id`='2'; | |
UPDATE `webpdv`.`remessa_critica` SET `critica`='!((rmp.qtty_fiscal) + rmp.qtty_gerencial > 0)', `msg |
This file contains hidden or 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
SELECT nfd.cnpj_cpf, nfd.xNome, nfd.xFant, nfd.IE | |
FROM webpdv.nota_fiscal nf | |
LEFT JOIN webpdv.nota_fiscal_dest nfd ON | |
(nfd.nota_fiscal_id = nf.id) | |
WHERE nf.dEmi BETWEEN '2012-01-01' AND '2013-05-28' | |
AND nfd.IE != 'ISENTO' | |
AND EXISTS( | |
SELECT 'X' | |
FROM webpdv.nota_fiscal_prod nfp | |
LEFT JOIN webpdv.produto_caracteristica p ON |
This file contains hidden or 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
git clone https://github.com/git/git.git | |
cd git | |
git checkout v.1.8.0 | |
./configure --prefix=/usr/local | |
make |
This file contains hidden or 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 | |
use GestaoEstoque_Expedicao as Expedicao; | |
use GestaoEstoque_Expedicao_Pedido as ExpPedido; | |
interface GestaoEstoque_Expedicao_Integracao_Integracao { | |
/** | |
* Envia os dados de uma expedicao | |
* @param GestaoEstoque_Expedicao $expedicao |