public function execute() { $config = $this->getConfig(); $tercero = new terceroTable($config); $this->objtercero = $tercero->getAll(); // así declaramos la vista a usar $this->defineView('tercero', 'reporte', 'html'); }
public function execute() { $config = $this->getConfig(); $tercero = new terceroTable($config); $id = filter_input(INPUT_GET, 'id'); $tercero->setId($id); $tercero->delete(); header('Location: ' . $config->getUrl() . 'index.php/tercero/index'); }
public function execute() { $id = filter_input(INPUT_GET, 'id'); $config = $this->getConfig(); $entradaBodega = new entradaSalidaBodegaTable($config); $tercero = new terceroTable($config); $this->objTercero = $tercero->getAll(); $this->objEntradaBodega = $entradaBodega->getById($id); $this->objEntradaBodegaD = $entradaBodega->getByIdDetall($id); $this->defineView('entradaBodega', 'editar', 'html'); }
public function execute() { $config = $this->getConfig(); $entradaBodga = new entradaSalidaBodegaTable($config); $this->objEntradaBodega = $entradaBodga->consById(); $tercero = new terceroTable($config); $this->objTercero = $tercero->getAll(); $producto = new productoTable($config); $this->objProducto = $producto->getAll(); $unm = new unidadMedidaTable($config); $this->objUnm = $unm->getAll(); $this->defineView('entradaBodega', 'nuevo', 'html'); }
public function execute() { $config = $this->getConfig(); $cargo = new cargoTable($config); $this->objcargo = $cargo->getAll(); $tipoId = new tipoIdTable($config); $this->objTipoId = $tipoId->getAll(); $tipoTercero = new tipoTerceroTable($config); $this->objTipoTercero = $tipoTercero->getAll(); $id = filter_input(INPUT_GET, 'id'); $tercero = new terceroTable($config); $this->objtercero = $tercero->getById($id); $this->defineView('tercero', 'verView', 'html'); }
public function execute() { $config = $this->getConfig(); $formtercero = filter_input_array(INPUT_POST)['tercero']; $tercero = new terceroTable($config); $tercero->setNombre($formtercero['nombre']); $tercero->setApellido($formtercero['apellido']); $tercero->setTelefono($formtercero['telefono']); $tercero->setDireccion($formtercero['direccion']); $tercero->setCorreo($formtercero['correo']); $tercero->setCargoId($formtercero['cargoId']); $tercero->setTipoId($formtercero['tipoId']); $tercero->setTipoTerceroId($formtercero['tipoTerceroId']); $this->objtercero = $tercero->save(); header('Location: ' . $config->getUrl() . 'index.php/tercero/index'); exit; }
public function execute() { $config = $this->getConfig(); $cargo = new cargoTable($config); $this->objcargo = $cargo->getAll(); $tipoId = new tipoIdTable($config); $this->objTipoId = $tipoId->getAll(); $tipoTercero = new tipoTerceroTable($config); $this->objTipoTercero = $tipoTercero->getAll(); $id = filter_input(INPUT_GET, 'id'); $tercero = new terceroTable($config); $this->objtercero = $tercero->getById($id); // $variables = array ( // 'objPersona'=>$objPersona // ); $this->defineView('tercero', 'editarView', 'html'); }
public function execute() { $config = $this->getConfig(); $cargo = new cargoTable($config); $this->objcargo = $cargo->getAll(); $tipoId = new tipoIdTable($config); $this->objTipoId = $tipoId->getAll(); $tipoTercero = new tipoTerceroTable($config); $this->objTipoTercero = $tipoTercero->getAll(); $metodo = new terceroTable($config); $paginacion = new Zebra_Pagination(); $this->objRespuesta = $metodo->total(); $respuesta = $this->objRespuesta[0]; $resultado = 5; $pagina = ($paginacion->get_page() - 1) * $resultado; $indicio = filter_input(INPUT_POST, 'filtro'); if (empty($indicio)) { $this->objMetodo = $metodo->pager($resultado, $pagina); } else { $this->objFiltro = $metodo->filtro($indicio); $this->objMetodo = $this->objFiltro; } $this->defineView('tercero', 'index', 'html'); }