Ejemplo n.º 1
0
<?php

require 'colaborador_grid_paging.php';
$paging = new Paging();
$searchfor = isset($_GET['searchfor']) ? $_GET['searchfor'] : '';
$paging->table('tb_colaborador COLABORADOR');
$paging->where('COLABORADOR.CO_COLABORADOR = "' . $searchfor . '" OR PESSOA_FISICA.CPF_PESSOA_FISICA LIKE "%' . $searchfor . '%" OR PESSOA.NO_PESSOA LIKE "%' . $searchfor . '%"');
$paging->labels('Código,Data Cadastro,CPF,Nome');
$paging->fields('COLABORADOR.CO_COLABORADOR,DT_CADAS,CPF_PESSOA_FISICA,PESSOA.NO_PESSOA');
$paging->cols_width('60,120,120');
$paging->rowsperpage(30);
$paging->page(isset($_GET['p']) ? $_GET['p'] : 1);
if ($_GET['load'] == 'controls') {
    $paging->show_controls();
} else {
    $paging->show_table();
}
Ejemplo n.º 2
0
<?php

require 'ordem_producao_grid_paging.php';
$paging = new Paging();
$searchfor = isset($_GET['searchfor']) ? $_GET['searchfor'] : '';
$paging->table('tb_pcp_op OP');
$paging->where('OP.CO_NUM LIKE "%' . $searchfor . '%" OR OP.CO_ITEM ="' . $searchfor . '" OR OP.DT_EMISSAO LIKE "%' . $searchfor . '%" AND OP.FL_DELET IS NULL');
$paging->labels('Numero OP,C&oacute;d. Int., C&oacute;d. Produto,Desc. Produto, Qtd. Prod., Qtd. Produzida, Dt. Emiss&atilde;o, Lote');
$paging->fields('NUM_OP, PRODUTO.CO_INT_PRODUTO, OP.CO_PRODUTO,PRODUTO.DS_PRODUTO,OP.QTD_PRODUTO, OP.QTD_PRODUZIDA, OP.DT_EMISSAO, OP.NU_LOTE');
$paging->cols_width('10%,7%,10%,39%,8%,11%,10%,10%');
$paging->rowsperpage(30);
$paging->page(isset($_GET['p']) ? $_GET['p'] : 1);
if ($_GET['load'] == 'controls') {
    $paging->show_controls();
} else {
    $paging->show_table();
}
Ejemplo n.º 3
0
    $espessura = 0;
    $flag = 'N';
}
$paging->table('');
if ($espessura == '18/37') {
    $espessura = "'18','37'";
}
if ($flag == 'N') {
    $paging->where('PCP_PRODUTO.CO_INT_PRODUTO LIKE "%' . $searchfor . '%"
					AND PCP_OP.DT_EMISSAO BETWEEN "' . $dataInicial . '" AND "' . $dataFinal . '"
					AND PCP_PRODUTO.CO_COR ="' . $co_cor . '" 
					AND PCP_PRODUTO.NU_ESPESSURA in(' . $espessura . ')
					AND PCP_OP.CO_PCP_OP NOT IN (SELECT DISTINCT CO_PCP_OP FROM TB_PCP_AD_PECA) 
					AND PCP_OP.FL_DELET IS NULL');
} else {
    $paging->where('PCP_PRODUTO.CO_INT_PRODUTO LIKE "%' . $searchfor . '%"
					AND PCP_OP.DT_EMISSAO BETWEEN "' . $dataInicial . '" AND "' . $dataFinal . '"
					AND PCP_PRODUTO.CO_COR ="' . $co_cor . '"
					AND PCP_PRODUTO.NU_ESPESSURA in(' . $espessura . ') AND PCP_OP.FL_DELET IS NULL');
}
$paging->_title = array("Status", "Numero da Ordem de Produção", "Código Interno", "Descrição do Produto", "Quantidade do Produto", "Quantidade Processadas", "Quantidade Produzida", "Lote", "Data Emissão");
$paging->labels('Status,Num. Op.,C&oacuted. Int.,Desc. Produto,Quantidade,Qtd. Proces.,Qtd. Produzida,Lote, Dt. Emiss&atilde;o');
$paging->fields('PCP_OP.CO_PCP_AD,NUM_OP,PCP_PCP_OP, PCP_PRODUTO.CO_INT_PRODUTO,PCP_PRODUTO.DS_PRODUTO,PCP_OP.QTD_PRODUTO,PCP_OP.QTD_PROCESSADA, PCP_OP.QTD_PRODUZIDA,PCP_NU_LOTE,PCP_OP.DT_EMISSAO');
$paging->cols_width('47,8,60,380,80,60,65,49,80');
$paging->rowsperpage(100);
$paging->page(isset($_GET['p']) ? $_GET['p'] : 1);
if ($_GET['load'] == 'controls') {
    $paging->show_controls();
} else {
    $paging->show_table();
}
Ejemplo n.º 4
0
<?php

require 'cores_grid_paging.php';
$paging = new Paging();
$searchfor = isset($_GET['searchfor']) ? $_GET['searchfor'] : '';
$paging->table('tb_pcp_cor COR');
$paging->where('COR.CO_COR = "' . $searchfor . '" OR COR.DS_COR LIKE "%' . $searchfor . '%" AND COR.FL_DELET IS NULL');
$paging->labels('C�digo,Descri��o,Recno');
$paging->fields('COR.CO_COR,COR.DS_COR,COR.CO_RECNO');
$paging->cols_width('80,300');
$paging->rowsperpage(30);
$paging->page(isset($_GET['p']) ? $_GET['p'] : 1);
if ($_GET['load'] == 'controls') {
    $paging->show_controls();
} else {
    $paging->show_table();
}
Ejemplo n.º 5
0
<?php

session_start();
$codigo_usuario = $_SESSION['codigoUsuario'];
require 'apontamento_grid_paging.php';
$paging = new Paging();
$searchfor = isset($_GET['searchfor']) ? $_GET['searchfor'] : '';
$paging->table('tb_pcp_apontamento PCP_APONTAMENTO');
$paging->where('(CONCAT(PCP_OP.CO_NUM, PCP_OP.CO_ITEM, PCP_OP.CO_SEQUENCIA) IS NULL OR CONCAT(PCP_OP.CO_NUM, PCP_OP.CO_ITEM, PCP_OP.CO_SEQUENCIA) LIKE "' . $searchfor . '%") ');
$paging->labels('C&oacute;digo,Data,Recurso,Hora Inicio,Hora Fim,Tipo,Numero OP, C&oacute;d. Int.');
$paging->fields('PCP_APONTAMENTO.CO_PCP_APONTAMENTO,DT_APONTAMENTO,NO_RECURSO,HR_INICIO,HR_FIM,FL_APONTAMENTO,NU_OP,PCP_PRODUTO.CO_INT_PRODUTO');
$paging->cols_width('50,60,200,70,70,120,90');
$paging->rowsperpage(10);
$paging->page(isset($_GET['p']) ? $_GET['p'] : 1);
if ($_GET['load'] == 'controls') {
    $paging->show_controls();
} else {
    $paging->show_table();
}
Ejemplo n.º 6
0
<?php

require 'acesso_visitante_grid_paging.php';
$paging = new Paging();
$searchfor = isset($_GET['searchfor']) ? $_GET['searchfor'] : '';
$paging->table('tb_acesso_visitante ACESSO_VISITANTE');
$paging->where('ACESSO_VISITANTE.CO_PESSOA = "' . $searchfor . '" OR PESSOA_FISICA.CPF_PESSOA_FISICA LIKE "%' . $searchfor . '%" OR PESSOA_JURIDICA.CNPJ_PESSOA_JURIDICA LIKE "%' . $searchfor . '%"');
$paging->labels('C&oacute;digo,Data Cadastro,Data Acesso,Hora Entrada,Hora Sa&iacute;da,Cart&atilde;o,Visitante');
$paging->fields('ACESSO_VISITANTE.CO_ACESSO_VISITANTE,DT_CADAS,DT_ACESSO_VISITANTE,HR_ENTRADA,HR_SAIDA,NU_CARTAO_IDENTIFICACAO,NOME_PESSOA');
$paging->cols_width('60,110,90,85,70,60');
$paging->rowsperpage(15);
$paging->page(isset($_GET['p']) ? $_GET['p'] : 1);
if ($_GET['load'] == 'controls') {
    $paging->show_controls();
} else {
    $paging->show_table();
}
Ejemplo n.º 7
0
<?php

require 'acesso_consultor_grid_paging.php';
$paging = new Paging();
$searchfor = isset($_GET['searchfor']) ? $_GET['searchfor'] : '';
$paging->table('tb_acesso_prestador ACESSO_CONSULTOR');
$paging->where('ACESSO_CONSULTOR.CO_PRESTADOR = "' . $searchfor . '" OR PESSOA_FISICA.CPF_PESSOA_FISICA LIKE "%' . $searchfor . '%"');
$paging->labels('C&oacute;digo,Data Cadastro,Hora Entrada,Hora Sa&iacute;da,Cart&atilde;o,Prestador de Servi&ccedil;o');
$paging->fields('ACESSO_CONSULTOR.CO_ACESSO_PRESTADOR,DT_CADAS,HR_ENTRADA,HR_SAIDA,NU_CARTAO_IDENTIFICACAO,NOME_PESSOA');
$paging->cols_width('60');
$paging->rowsperpage(15);
$paging->page(isset($_GET['p']) ? $_GET['p'] : 1);
if ($_GET['load'] == 'controls') {
    $paging->show_controls();
} else {
    $paging->show_table();
}
Ejemplo n.º 8
0
<?php

require 'cep_grid_paging.php';
$paging = new Paging();
$searchfor = isset($_GET['searchfor']) ? $_GET['searchfor'] : '';
$paging->table('tb_cep CEP');
$paging->where('CO_CEP= "' . $searchfor . '" OR CEP.NU_CEP LIKE "%' . $searchfor . '%" OR CEP.NO_LOGRADOURO LIKE "%' . $searchfor . '%"');
$paging->labels('Codigo,Estado,Cidade,Bairro,CEP,Logradouro');
$paging->fields('CO_CEP,UF.DS_UF,MUNICIPIO.NO_MUNICIPIO,BAIRRO.NO_BAIRRO,CEP.NU_CEP,CEP.NO_LOGRADOURO');
$paging->cols_width('60,120,150,250,70');
$paging->rowsperpage(30);
$paging->page(isset($_GET['p']) ? $_GET['p'] : 1);
if ($_GET['load'] == 'controls') {
    $paging->show_controls();
} else {
    $paging->show_table();
}
Ejemplo n.º 9
0
<?php

require 'pessoa_grid_paging.php';
$paging = new Paging();
$searchfor = isset($_GET['searchfor']) ? $_GET['searchfor'] : '';
$paging->table('tb_pessoa PESSOA');
$paging->where('PESSOA.CO_PESSOA = "' . $searchfor . '" OR PESSOA.NO_PESSOA LIKE "%' . $searchfor . '%"');
$paging->labels('C&oacute;digo,Data Cadastro,Nome,Tipo,CPF/CNPJ');
$paging->fields('CO_PESSOA,DT_CADAS,NO_PESSOA,TP_PESSOA,CPF_CNPJ_PESSOA');
$paging->cols_width('60,120,600,70,150');
$paging->rowsperpage(30);
$paging->page(isset($_GET['p']) ? $_GET['p'] : 1);
if ($_GET['load'] == 'controls') {
    $paging->show_controls();
} else {
    $paging->show_table();
}
<?php

require_once '../setup.php';
require_once APP_PATH . 'sistema/inc/ordem_producao_lista_plano_corte_grid_paging.php';
$paging = new Paging();
$searchfor = isset($_GET['searchfor']) ? $_GET['searchfor'] : '';
$paging->table('tb_pcp_ad PCP_AD');
$paging->where('PCP_AD.no_pcp_ad LIKE "%' . $searchfor . '%" OR PCP_OP.nu_lote LIKE "%' . $searchfor . '%" AND PCP_OP.FL_DELET IS NULL');
$paging->labels('Arquivo,Criado em, Unidade Complementar, Lote');
$paging->fields('PCP_AD.arquivo, PCP_AD.data_criacao_arquivo,PCP_AD.un_complementar,PCP_OP.nu_lote');
$paging->cols_width('5,50,60,10,10,100');
$paging->rowsperpage(15);
$paging->page(isset($_GET['p']) ? $_GET['p'] : 1);
if ($_GET['load'] == 'controls') {
    $paging->show_controls();
} else {
    $paging->show_table();
}