예제 #1
0
 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');
 }
예제 #2
0
 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');
 }
예제 #3
0
 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');
 }
예제 #4
0
 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');
 }
예제 #5
0
 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');
 }
예제 #6
0
 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;
 }
예제 #7
0
 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');
 }
예제 #8
0
 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');
 }