<?php require 'ExpertoProductos.php'; $oData = $oRequestData = $_POST ? $_POST : $_GET; $exp = new ExpertoProductos(); $filterBy = ""; if ($oData["filtros"]) { $filters = explode("||", $oData["filtros"]); for ($i = 0; $i < count($filters); $i++) { $fieldAnValue = explode("=", $filters[$i]); $value[$i] = $fieldAnValue[1]; } $filterBy .= "mygrid.getFilterElement(1).value = '" . $value[1] . "';"; $filterBy .= "mygrid.getFilterElement(2).value = '" . $value[2] . "';"; $filterBy .= "mygrid.getFilterElement(3).value = '" . $value[3] . "';"; $filterBy .= "mygrid.getFilterElement(9).value = '" . $value[9] . "';"; $filterBy .= "mygrid.getFilterElement(10).value = '" . $value[10] . "';"; $filterBy .= "mygrid.getFilterElement(11).value = '" . $value[11] . "';"; $filterBy .= "mygrid.getFilterElement(12).value = '" . $value[12] . "';"; $filterBy .= "mygrid.filterByAll();"; } $data = $exp->getAll(); ?> <html> <head> <!-- FORMS --> <script language="javascript" src="<?php echo $lib_js; ?> mainFormba.js"></script>
<?php include_once 'ExpertoProductos.php'; include_once '../impresion/ExpertoImpresion.php'; $oData = $oRequestData = $_POST ? $_POST : $_GET; $exp = new ExpertoProductos(); switch ($oData["behavior"]) { case 'save': if (isset($oData['id_producto'])) { if ($exp->save($oData)) { echo true; } else { echo false; } } break; case 'delete': $flag = false; if (isset($oData['id_producto'])) { $ids = explode(",", $oData['id_producto']); foreach ($ids as $id) { if (!$exp->delete($id)) { $flag = true; } } if ($flag) { $msge = "parent.showMsgeError(\"<div style='font-family:verdana'>Algunos registros no pudieron ser eliminados.</div>\");"; } else { $msge = "parent.showMsgeExito(\"<div style='font-family:verdana'>Éxito!!!</div>\");"; } $data = $exp->getAll();
<?php require '../../config.php'; require "../productos/ExpertoProductos.php"; $exp = new ExpertoProductos(); $data = $exp->getAllSimple(); /*echo $data; exit;*/ ?> <html> <head> <!-- FORMS --> <script language="javascript" src="<?php echo $lib_js; ?> mainFormba.js"></script> <!-- BÁSICO DHTMLX --> <link rel="stylesheet" type="text/css" href="<?php echo $dhtmlx; ?> dhtmlxGrid/codebase/dhtmlxgrid.css"> <link rel="stylesheet" type="text/css" href="<?php echo $dhtmlx; ?> dhtmlxGrid/codebase/skins/dhtmlxgrid_dhx_skyblue.css"> <script src="<?php echo $dhtmlx; ?> dhtmlxGrid/codebase/dhtmlxcommon.js"></script>
<?php include_once '../../config.php'; include_once "../../_framework.php"; include_once 'ExpertoProductos.php'; include_once '../proveedores/ExpertoProveedores.php'; $oData = $oRequestData = $_POST ? $_POST : $_GET; $filtros = $oData["filtros"]; $exp = new ExpertoProductos(); $expProv = new ExpertoProveedores(); switch ($oData['behavior']) { case 'load': $oData = $exp->getById($oData['id_producto']); $prov = $exp->getProveedoresByProducto($oData['id_producto']); $subprod = $exp->getSubproducto($oData['id_producto']); if ($subprod) { $displaySub = ""; } else { $displaySub = "display:none;"; } break; case 'new': $prov = $expProv->getAllByRZ(); $displaySub = "display:none;"; break; } ?> <html> <head> <link rel="stylesheet" type="text/css" href="<?php
<?php require 'ExpertoProductos.php'; include_once '../../_framework.php'; $oData = $oRequestData = $_POST ? $_POST : $_GET; $exp = new ExpertoProductos(); switch ($oData['behavior']) { case 'load': $oData = $exp->getById($oData['id_producto']); $rs = $exp->getCodeAvailable(); $oData["codigo_producto"] = $rs["codigo_producto"]; echo returnVectorJSON($oData); break; case 'save': if (isset($oData['id_producto_padre'])) { $exp->save($oData); $data = $exp->getAll(); echo "<script>parent.winProd.close();\n var data = \"{$data}\";\n parent.mygrid.clearAll();\n parent.mygrid.parse(data, 'xml');\n parent.mygrid.filterByAll();\n </script>"; } break; }