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
// JavaScript Document | |
function atualizaJanela() { | |
// caso n haja frame ou janela thickbox, atualizo janela | |
if (($('#TB_window').size() == 0) && ("" == $('#divFrame').html())) { | |
// variaveis | |
var params = 'f_int_storeno=' + $('input[name="storeno"]').val(); | |
params = params + '&f_int_ordno=' + $('input[name="ordno"]').val(); | |
// pego a url | |
var patchLength = (window.location.href.indexOf('.php') + 4); |
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
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:clec="http://www.portalfiscal.inf.br/nfe/wsdl/CleCadastro"> | |
<soapenv:Header/> | |
<soapenv:Body> | |
<clec:cleCadastroLote> | |
<clec:cleCabecMsg>?</clec:cleCabecMsg> | |
<clec:cleDadosMsg>?</clec:cleDadosMsg> | |
</clec:cleCadastroLote> | |
</soapenv:Body> | |
</soapenv:Envelope> |
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 | |
$tabs = new MS_View_Tab(); | |
$tabs->addAbas(array( | |
array( | |
'titulo' => 'Buscar', | |
'url' => 'cle_gerenciar_blocos.php', | |
), | |
array( | |
'titulo' => 'Cadastrar', | |
'url' => '#' |
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
explain | |
SELECT `esn`.*, | |
`ete`.`descricao` AS `tp_emis_descricao`, | |
`dest`.`cnpj_cpf` AS `dest_cnpj_cpf`, | |
`sc`.`state` AS `dest_uf_sigla`, | |
`nota_fiscal`.`id` AS `id`, | |
`nota_fiscal`.`emissor_tp_emis_id` AS `emissor_tp_emis_id`, | |
`nota_fiscal`.`emissor_versao_id` AS `emissor_versao_id`, | |
`nota_fiscal`.`emissor_status_nf_id` AS `emissor_status_nf_id`, | |
`nota_fiscal`.`storeno` AS `storeno`, |
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
-- Thread Id: 34865276 | |
-- User: webpdv | |
-- Host: 192.168.111.4:49432 | |
-- DB: webpdv | |
-- Command: Query | |
-- Time: 2 | |
-- State: Sending data | |
SELECT pv.id_pre_venda, pv.id_paf, pv.serie_numeracao, pv.numero_pre_venda, | |
pv.observacao, pv.criacao, pv.tratada, pv.status AS status_pre_venda, | |
pv.coo AS coo_pre_venda, pv.sincronizado, pv.condicao_comercial, |
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 | |
function g_arr_executa_query($query, $tipo = 'buscar') { | |
switch($tipo) { | |
case 'buscar': | |
try { | |
return $executa->fetchAll($select); | |
} catch (Exception $e) { | |
if( APP_ENV == ENV_DEV ) { | |
throw new Exception($e->getMessage(), $e->getCode()); |
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
array( | |
"0" => array( | |
"ws_chave" => "130f2151b8cd04d241efd768c02f26eb", | |
"loja_cnpj" => "31743818004549", | |
"atendente_cpf" => "04447636514", | |
), | |
"1" => array( | |
"cod_tipo_pessoa" => "F", | |
"identificacao" => array( | |
"num_cpf" => "86220496558", |
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 | |
array( | |
"0" => array( | |
"ws_chave" => "cf4670a072c224ff7dda824f78059ea7", | |
"loja_cnpj" => "31743818004549", "atendente_cpf" => "04447636514", | |
), | |
"1" => array( | |
"cod_tipo_pessoa" => "F", | |
"identificacao" => array( | |
"num_cpf" => "85921821586", |
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, Objects, Patterns and Practice (Matt Zandstra) (http://www.amazon.com/Objects-Patterns-Practice-Experts-Source/dp/143022925X/) | |
* Entendendo e Dominando o PHP, versão traduzida do livro acima (http://www.linuxmall.com.br/produto/livro-entendendo-e-dominando-o-php.html) | |
* The Pragmatic Programmer (http://www.amazon.com/gp/product/020161622X/) | |
* Refactoring (http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672/) | |
* Patterns of Enterprise Application (http://www.amazon.com/Patterns-Enterprise-Application-Architecture-Martin/dp/0321127420/) | |
* Domain Drive Design (http://www.amazon.com/Domain-Driven-Design-Tackling-Complexity-Software/dp/0321125215/) | |
* Essential PHP Security (http://www.amazon.com/Essential-PHP-Security-Chris-Shiflett/dp/059600656X/) | |
* Date and Time Programming (http://www.amazon.com/architects-Guide-Date-Time-Programming/dp/0981034500/) |
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 | |
/** | |
* Validador para Cadastro de Pessoa Jurídica | |
* | |
* @author Wanderson Henrique Camargo Rosa | |
* @category Hazel | |
* @package Hazel_Validator | |
*/ | |
class MS_Validator_Cnpj extends MS_Validator_CpAbstract |