Пример #1
0
<?php

/*
 * import de classes
 */
require_once '../../lib/jqsImports/JqsAutoImports.php';
$JqsAutoImports = new JqsAutoImports();
$idLote = $_GET['id'];
$lote = new LoteDao();
$lt = $lote->listarItensLoteEtiquetas($idLote);
?>

<!DOCTYPE html>
<html>
	<head>				
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">		
		
		<title>Preciata</title>		
		<link href="../assets/bootstrap-3.3.6-dist/css/bootstrap.min.css" rel="stylesheet">
		<link href="../assets/estilo_custom.css" rel="stylesheet">
		<link href="../assets/impressao.css" type="text/css" rel="stylesheet" media="print" />
		
		<script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
		<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
		<script type="text/javascript" src="../assets/bootstrap-3.3.6-dist/js/bootstrap.min.js"></script>
		<script src="../assets/scripts/jquery.mask.min.js" type="text/javascript"></script>
		<script src="../assets/scripts/jquery.mask.js" type="text/javascript"></script>				
		
		<!-- <script type="text/javascript" src="../assets/scripts/lote.js"></script>
		<script type="text/javascript" src="../assets/scripts/lote_itens_view.js"></script> -->
Пример #2
0
<?php

/*
 * import de classes
 */
require_once '../../lib/jqsImports/JqsAutoImports.php';
$JqsAutoImports = new JqsAutoImports();
$idLote = $_GET['id'];
$lote = new LoteDao();
$lt = $lote->localizarLoteCliente($idLote);
?>

<!DOCTYPE html>
<html>
	<head>				
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		
		<title>Preciata</title>		
		<link href="../assets/bootstrap-3.3.6-dist/css/bootstrap.min.css" rel="stylesheet">
		<link href="../assets/estilo_custom.css" rel="stylesheet">
		
		<script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
		<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
		<script type="text/javascript" src="../assets/bootstrap-3.3.6-dist/js/bootstrap.min.js"></script>
		<script src="../assets/scripts/jquery.mask.min.js" type="text/javascript"></script>
		<script src="../assets/scripts/jquery.mask.js" type="text/javascript"></script>				
		
		<script type="text/javascript" src="../assets/scripts/lote.js"></script>
		
		<script type="text/javascript">
        $value['status'] = "sucesso";
    } else {
        $value['status'] = "erro";
    }
    echo json_encode($value);
    /*
     * editar cliente
     */
} elseif ($act == "edit") {
    /*
     * dados do formulário de lote
     */
    $quantidade = $_POST['fdQuantidadeItens'];
    $total = $_POST['vlTotal'];
    $idLote = $_POST['idLote'];
    /*
     * setando modelo de produto
     */
    $lt = new Lote();
    $lt->setQuantidadeItens($quantidade);
    $lt->setValor($total);
    $lt->setId($idLote);
    $loteDAO = new LoteDao();
    $salvar = $loteDAO->finalizarLote($lt);
    if ($salvar) {
        $value['status'] = "sucesso";
    } else {
        $value['status'] = "erro";
    }
    echo json_encode($value);
}