Exemple #1
0
<?php

ini_set("display_errors", E_ALL);
error_reporting(E_ALL);
require_once '../bootstrap.php';
use Webetiq\DBase\DBase;
use Webetiq\Ops;
$config = json_encode(['host' => 'localhost', 'user' => 'root', 'pass' => 'monitor5', 'db' => 'blabel']);
$dbase = new DBase($config);
$ops = new Ops($dbase);
$op = $ops->get('7');
echo "<pre>";
print_r($op);
echo "</pre>";
Exemple #2
0
 * depois de completar os dados requeridos passa os dados para
 * impressão
 * 
 * Mostra o total já registrado
 * SELECT SUM(amount*labels) AS qtd, SUM(netweight*labels) AS peso FROM  `movements` WHERE  `op_id`='67450'
 */
use Webetiq\DBase\DBase;
use Webetiq\Ops;
use Webetiq\Movements;
use Webetiq\Labels\Label;
use Webetiq\Printers;
use Webetiq\Units;
$config = json_encode(['host' => 'localhost', 'user' => 'root', 'pass' => 'monitor5', 'db' => 'blabel']);
$dbase = new DBase($config);
$oPrinters = new Printers($dbase);
$oOPs = new Ops($dbase);
$oMovements = new Movements($dbase);
$oUnits = new Units($dbase);
$lbl = new Label();
$remoteip = $_SERVER['REMOTE_ADDR'];
$numop = filter_input(INPUT_POST, 'numop', FILTER_SANITIZE_STRING);
$copias = 1;
$emissao = date('d/m/Y');
//carrega impressoras
$aPrint = $oPrinters->all();
$selPrintGroup = '<div class="form-group"><label for=\\"printer\\">Selecione a impressora</label><select class="form-control" name="printer">';
foreach ($aPrint as $printer) {
    $selp = '';
    if ($printer->name == 'newZebra') {
        $selp = 'selected';
    }