コード例 #1
0
 public function execute()
 {
     $config = $this->getConfig();
     $tipoId = new tipoIdTable($config);
     $this->objTipoId = $tipoId->getAll();
     $this->defineView('tipoId', 'index', 'html');
 }
コード例 #2
0
 public function execute()
 {
     $id = filter_input(INPUT_GET, 'id');
     $config = $this->getConfig();
     $tipoId = new tipoIdTable($config);
     $this->objTipoId = $tipoId->getById($id);
     $this->defineView('tipoId', 'verView', 'html');
 }
コード例 #3
0
 public function execute()
 {
     $config = $this->getConfig();
     $tipoId = new tipoIdTable($config);
     $id = filter_input(INPUT_GET, 'id');
     $tipoId->setId($id);
     $tipoId->delete();
     header('Location: ' . $config->getUrl() . 'index.php/tipoId/index');
 }
コード例 #4
0
 public function execute()
 {
     $config = $this->getConfig();
     $formTipoId = filter_input_array(INPUT_POST)['tipoId'];
     $tipoId = new tipoIdTable($config);
     $tipoId->setDescripcion($formTipoId['descripcion']);
     $this->objTipoId = $tipoId->save();
     header('Location: ' . $config->getUrl() . 'index.php/tipoId/index');
     exit;
 }
コード例 #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();
     $this->defineView('tercero', 'nuevoView', 'html');
 }
コード例 #6
0
 public function execute()
 {
     $config = $this->getConfig();
     $id = filter_input(INPUT_GET, 'id');
     $tipoId = new tipoIdTable($config);
     $this->objTipoId = $tipoId->getById($id);
     //    $variables = array (
     //        'objPersona'=>$objPersona
     //    );
     $this->defineView('tipoId', 'editarView', 'html');
 }
コード例 #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);
     $this->defineView('tercero', 'verView', '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');
 }