public function execute()
 {
     try {
         if (request::getInstance()->isMethod('POST')) {
             $id = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::ID, true));
             $TIPO_DOCUMENTO_ID = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::TIPO_DOCUMENTO_ID, true));
             $IDENTIFICACION = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::IDENTIFICACION, true));
             $NOMBRE = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::NOMBRE, true));
             $APELLIDO = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::APELLIDO, true));
             $DIRECCION = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::DIRECCION, true));
             $TELEFONO = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::TELEFONO, true));
             $MOVIL = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::MOVIL, true));
             $CORREO = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::CORREO, true));
             //        $LOCALIDAD_ID = request::getInstance()->getPost( empleadoTableClass::getNameField( empleadoTableClass::LOCALIDAD_ID, true));
             //        $USUARIO_ID = request::getInstance()->getPost( empleadoTableClass::getNameField( empleadoTableClass::USUARIO_ID, true));
             $id = array(empleadoTableClass::ID => $id);
             $data = array(empleadoTableClass::TIPO_DOCUMENTO_ID => $TIPO_DOCUMENTO_ID, empleadoTableClass::IDENTIFICACION => $IDENTIFICACION, empleadoTableClass::NOMBRE => $NOMBRE, empleadoTableClass::APELLIDO => $APELLIDO, empleadoTableClass::DIRECCION => $DIRECCION, empleadoTableClass::TELEFONO => $TELEFONO, empleadoTableClass::MOVIL => $MOVIL, empleadoTableClass::CORREO => $CORREO);
             empleadoTableClass::update($id, $data);
         }
         session::getInstance()->setSuccess('El registro fue modificado exitosamente');
         routing::getInstance()->redirect('@empleado_listado');
         //$this->defineView('editBanco', 'banco', session::getInstance()->getFormatOutput());
     } catch (PDOException $exc) {
         session::getInstance()->setFlash('exc', $exc);
         routing::getInstance()->forward('shfSecurity', 'exception');
     }
 }
 public function execute()
 {
     try {
         if (request::getInstance()->isMethod('POST')) {
             $ids = array(usuarioTableClass::ID => request::getInstance()->getPost(usuarioTableClass::getNameField(usuarioTableClass::ID, true)));
             $data = array(usuarioTableClass::USER => request::getInstance()->getPost('inputUsuario'), usuarioTableClass::PASSWORD => md5(request::getInstance()->getPost('inputPassword')));
             $data1 = array(empleadoTableClass::NOMBRE => request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::NOMBRE, true)), empleadoTableClass::APELLIDO_EMPLEADO => request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::APELLIDO_EMPLEADO, true)), empleadoTableClass::DIRECCION_EMPLEADO => request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::DIRECCION_EMPLEADO, true)), empleadoTableClass::TELEFONO_EMPLEADO => request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::TELEFONO_EMPLEADO, true)), empleadoTableClass::MOVIL_EMPELADO => request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::MOVIL_EMPELADO, true)), empleadoTableClass::CORREO_EMPLEADO => request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::CORREO_EMPLEADO, true)), empleadoTableClass::CARGO_ID => request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::CARGO_ID, true)));
             $ids1 = array(empleadoTableClass::ID => request::getInstance()->getPost(usuarioTableClass::getNameField(usuarioTableClass::ID, true)));
             session::getInstance()->setSuccess('El empleado fue actulizado exitosamente');
             // $this->defineView('cliente', 'prestamo', session::getInstance()->getFormatOutput());
             $this->defineView('index', 'prestamo', session::getInstance()->getFormatOutput());
             usuarioTableClass::update($ids, $data);
             empleadoTableClass::update($ids1, $data1);
         }
         routing::getInstance()->redirect('default', 'index');
     } catch (PDOException $exc) {
         session::getInstance()->setFlash('exc', $exc);
         routing::getInstance()->forward('shfSecurity', 'exception');
     }
 }
 public function execute()
 {
     try {
         if (request::getInstance()->isMethod('POST')) {
             $id = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::ID, true));
             $numero_documento = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::NUMERO_DOC, true));
             $nombre_completo = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::NOMBRE, true));
             $tipo_doc = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::TIPO_DOC, true));
             $cargo = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::CARGO, true));
             $ciudad = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::CIUDAD, true));
             $telefono = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::TEL, true));
             $direccion = request::getInstance()->getPost(empleadoTableClass::getNameField(empleadoTableClass::DIRECCION, true));
             empleadoTableClass::validateUpdate($nombre_completo, $direccion, $telefono, $numero_documento);
             $ids = array(empleadoTableClass::ID => $id);
             $data = array(empleadoTableClass::NUMERO_DOC => $numero_documento, empleadoTableClass::NOMBRE => $nombre_completo, empleadoTableClass::TIPO_DOC => $tipo_doc, empleadoTableClass::CARGO => $cargo, empleadoTableClass::TEL => $telefono, empleadoTableClass::DIRECCION => $direccion, empleadoTableClass::CIUDAD => $ciudad);
             empleadoTableClass::update($ids, $data);
             log::register('update', empleadoTableClass::getNameTable());
         }
         routing::getInstance()->redirect('personal', 'indexEmpleado');
     } catch (PDOException $exc) {
         session::getInstance()->setFlash('exc', $exc);
         routing::getInstance()->forward('shfSecurity', 'exception');
     }
 }