Example #1
0
 public function execute()
 {
     $config = $this->getConfig();
     $detalleEjecucion = new detalleEjecucionTable($config);
     $this->objDetalleEjecucion = $detalleEjecucion->getAll();
     $this->defineView('detalleEjecucion', 'index', 'html');
 }
 public function execute()
 {
     $deId = filter_input(INPUT_POST, 'deId');
     $detalleEjecucion = new detalleEjecucionTable();
     $detalleEjecucion->setId($deId);
     $this->objEntradaSalidaBodega = $detalleEjecucion->delete();
     $variables = array('data' => array('code' => 200));
     $this->defineView('detalleEjecucion', 'eliminar', $variables, 'json');
 }
 public function execute()
 {
     $formDetalleEjecucion = filter_input_array(INPUT_POST)['detalleEjecucion'];
     $detalleEjecucion = new detalleEjecucionTable();
     $detalleEjecucion->setId($formDetalleEjecucion['deId']);
     $detalleEjecucion->setOrdenEjecucionId($formDetalleEjecucion['oreId']);
     $detalleEjecucion->setTerceroId($formDetalleEjecucion['terId']);
     $detalleEjecucion->setServicioMaquinaId($formDetalleEjecucion['serId']);
     $detalleEjecucion->setProductoId($formDetalleEjecucion['proId']);
     $detalleEjecucion->setCantidad($formDetalleEjecucion['cantidad']);
     $detalleEjecucion->setPrecio($formDetalleEjecucion['precio']);
     $detalleEjecucion->setUpdatedAt('now()');
     $this->objDetalleEjecucion = $detalleEjecucion->update();
     header('Location: ' . $fsConfig->getUrl() . 'index.php/detalleEjecucion/index');
 }
Example #4
0
 public function execute()
 {
     $deId = filter_input(INPUT_GET, 'deId');
     $objdetalleEjecucion = detalleEjecucionTable::getById($deId);
     $variables = array('objDetalleEjecucion' => $objdetalleEjecucion);
     $this->defineView('detalleEjecucion', 'ver', $variables, 'html');
 }