function actualizar() { $boolean = 0; $result = new Rs($this->buscar()); if ($result->getRowCount() == 0) { $this->Ejecutar("update unidad_tributaria set unidad='" . $this->getunidad() . "',fecha='" . $this->getfecha() . "',is_inactiva='" . $this->getis_inactiva() . "' where id=" . $this->getid() . ";"); $boolean = 1; } else { if ($result->Registros()) { if ($result->getCampo('id') == $this->getid()) { $this->Ejecutar("update unidad_tributaria set unidad='" . $this->getunidad() . "',fecha='" . $this->getfecha() . "',is_inactiva='" . $this->getis_inactiva() . "' where id=" . $this->getid() . ";"); $boolean = 1; } } } return $boolean; }
function actualizar() { $boolean = 0; $result = new Rs($this->buscar()); if ($result->getRowCount() == 0) { $this->Ejecutar("update sis_relaciones set id_sis_tablas=" . $this->getid_sis_tablas() . ",id_sis_tablas_relacion=" . $this->getid_sis_tablas_relacion() . " where id=" . $this->getid() . ";"); $boolean = 1; } else { if ($result->Registros()) { if ($result->getCampo('id') == $this->getid()) { $this->Ejecutar("update sis_relaciones set id_sis_tablas=" . $this->getid_sis_tablas() . ",id_sis_tablas_relacion=" . $this->getid_sis_tablas_relacion() . " where id=" . $this->getid() . ";"); $boolean = 1; } } } return $boolean; }
function actualizar() { $boolean = 0; $result = new Rs($this->buscar()); if ($result->getRowCount() == 0) { $this->Ejecutar("update solicitud_arancel set nro_solicitud='" . $this->getnro_solicitud() . "',fecha='" . $this->getfecha() . "',user_id='" . $this->getuser_id() . "' where id=" . $this->getid() . ";"); $boolean = 1; } else { if ($result->Registros()) { if ($result->getCampo('id') == $this->getid()) { $this->Ejecutar("update solicitud_arancel set nro_solicitud='" . $this->getnro_solicitud() . "',fecha='" . $this->getfecha() . "',user_id='" . $this->getuser_id() . "' where id=" . $this->getid() . ";"); $boolean = 1; } } } return $boolean; }
function actualizar() { $boolean = 0; $result = new Rs($this->buscar()); if ($result->getRowCount() == 0) { $this->Ejecutar("update configuraciones set vigencia_solicitud='" . $this->getvigencia_solicitud() . "',dias_elaboracion='" . $this->getdias_elaboracion() . "',dias_firma='" . $this->getdias_firma() . "',dias_entrega='" . $this->getdias_entrega() . "' where id=" . $this->getid() . ";"); $boolean = 1; } else { if ($result->Registros()) { if ($result->getCampo('id') == $this->getid()) { $this->Ejecutar("update configuraciones set vigencia_solicitud='" . $this->getvigencia_solicitud() . "',dias_elaboracion='" . $this->getdias_elaboracion() . "',dias_firma='" . $this->getdias_firma() . "',dias_entrega='" . $this->getdias_entrega() . "' where id=" . $this->getid() . ";"); $boolean = 1; } } } return $boolean; }
function actualizar() { $boolean = 0; $result = new Rs($this->buscar()); if ($result->getRowCount() == 0) { $this->Ejecutar("update sis_modulos set modulo='" . $this->getmodulo() . "',descripcion='" . $this->getdescripcion() . "' where id=" . $this->getid() . ";"); $boolean = 1; } else { if ($result->Registros()) { if ($result->getCampo('id') == $this->getid()) { $this->Ejecutar("update sis_modulos set modulo='" . $this->getmodulo() . "',descripcion='" . $this->getdescripcion() . "' where id=" . $this->getid() . ";"); $boolean = 1; } } } return $boolean; }
function actualizar() { $boolean = 0; $result = new Rs($this->buscar()); if ($result->getRowCount() == 0) { $this->Ejecutar("update estatus_solicitud set estatus='" . $this->getestatus() . "' where id=" . $this->getid() . ";"); $boolean = 1; } else { if ($result->Registros()) { if ($result->getCampo('id') == $this->getid()) { $this->Ejecutar("update estatus_solicitud set estatus='" . $this->getestatus() . "' where id=" . $this->getid() . ";"); $boolean = 1; } } } return $boolean; }
function actualizar() { $boolean = 0; $result = new Rs($this->buscar()); if ($result->getRowCount() == 0) { $this->Ejecutar("update citas set fecha_ini='" . $this->getfecha_ini() . "',fecha_fin='" . $this->getfecha_fin() . "',user_id='" . $this->getuser_id() . "',id_tipo_solicitud=" . $this->getid_tipo_solicitud() . " where id=" . $this->getid() . ";"); $boolean = 1; } else { if ($result->Registros()) { if ($result->getCampo('id') == $this->getid()) { $this->Ejecutar("update citas set fecha_ini='" . $this->getfecha_ini() . "',fecha_fin='" . $this->getfecha_fin() . "',user_id='" . $this->getuser_id() . "',id_tipo_solicitud=" . $this->getid_tipo_solicitud() . " where id=" . $this->getid() . ";"); $boolean = 1; } } } return $boolean; }
function actualizar() { $boolean = 0; $result = new Rs($this->buscar()); if ($result->getRowCount() == 0) { $this->Ejecutar("update arancel set nombre='" . $this->getnombre() . "',monto='" . $this->getmonto() . "',max='" . $this->getmax() . "' where id=" . $this->getid() . ";"); $boolean = 1; } else { if ($result->Registros()) { if ($result->getCampo('id') == $this->getid()) { $this->Ejecutar("update arancel set nombre='" . $this->getnombre() . "',monto='" . $this->getmonto() . "',max='" . $this->getmax() . "' where id=" . $this->getid() . ";"); $boolean = 1; } } } return $boolean; }
function actualizar() { $boolean = 0; $result = new Rs($this->buscar()); if ($result->getRowCount() == 0) { $this->Ejecutar("update pagos set id_solicitud_arancel=" . $this->getid_solicitud_arancel() . ",id_bancos=" . $this->getid_bancos() . ",monto='" . $this->getmonto() . "',nro_deposito='" . $this->getnro_deposito() . "' where id=" . $this->getid() . ";"); $boolean = 1; } else { if ($result->Registros()) { if ($result->getCampo('id') == $this->getid()) { $this->Ejecutar("update pagos set id_solicitud_arancel=" . $this->getid_solicitud_arancel() . ",id_bancos=" . $this->getid_bancos() . ",monto='" . $this->getmonto() . "',nro_deposito='" . $this->getnro_deposito() . "' where id=" . $this->getid() . ";"); $boolean = 1; } } } return $boolean; }
function actualizar() { $boolean = 0; $result = new Rs($this->buscar()); if ($result->getRowCount() == 0) { $this->Ejecutar("update sis_usuarios set id_grupos=" . $this->getid_grupos() . ",cedula='" . $this->getcedula() . "',apellidos='" . $this->getapellidos() . "',nombres='" . $this->getnombres() . "',login='******' where id=" . $this->getid() . ";"); $boolean = 1; } else { if ($result->Registros()) { if ($result->getCampo('id') == $this->getid()) { $this->Ejecutar("update sis_usuarios set id_grupos=" . $this->getid_grupos() . ",cedula='" . $this->getcedula() . "',apellidos='" . $this->getapellidos() . "',nombres='" . $this->getnombres() . "',login='******'where id=" . $this->getid() . ";"); $boolean = 1; } } } return $boolean; }
function actualizar() { $boolean = 0; $result = new Rs($this->buscar()); if ($result->getRowCount() == 0) { $this->Ejecutar("update vst_estudiantes_pyscde set primer_apellido='" . $this->getprimer_apellido() . "',segundo_apellido='" . $this->getsegundo_apellido() . "',primer_nombre='" . $this->getprimer_nombre() . "',segundo_nombre='" . $this->getsegundo_nombre() . "',cod_carrera='" . $this->getcod_carrera() . "',carrera='" . $this->getcarrera() . "',cod_sede='" . $this->getcod_sede() . "',sede='" . $this->getsede() . "',estatus='" . $this->getestatus() . "' where id=" . $this->getcedula() . ";"); $boolean = 1; } else { if ($result->Registros()) { if ($result->getCampo('cedula') == $this->getcedula()) { $this->Ejecutar("update vst_estudiantes_pyscde set primer_apellido='" . $this->getprimer_apellido() . "',segundo_apellido='" . $this->getsegundo_apellido() . "',primer_nombre='" . $this->getprimer_nombre() . "',segundo_nombre='" . $this->getsegundo_nombre() . "',cod_carrera='" . $this->getcod_carrera() . "',carrera='" . $this->getcarrera() . "',cod_sede='" . $this->getcod_sede() . "',sede='" . $this->getsede() . "',estatus='" . $this->getestatus() . "' where id=" . $this->getcedula() . ";"); $boolean = 1; } } } return $boolean; }
function actualizar() { $boolean = 0; $result = new Rs($this->buscar()); if ($result->getRowCount() == 0) { $this->Ejecutar("update sis_permisos set id_grupos=" . $this->getid_grupos() . ",id_modulos=" . $this->getid_modulos() . ",seleccionar=" . $this->getseleccionar() . ",insertar=" . $this->getinsertar() . ",actualizar=" . $this->getactualizar() . ",eliminar=" . $this->geteliminar() . ",ejecutar=" . $this->getejecutar() . " where id=" . $this->getid() . ";"); $boolean = 1; } else { if ($result->Registros()) { if ($result->getCampo('id') == $this->getid()) { $this->Ejecutar("update sis_permisos set id_grupos=" . $this->getid_grupos() . ",id_modulos=" . $this->getid_modulos() . ",seleccionar=" . $this->getseleccionar() . ",insertar=" . $this->getinsertar() . ",actualizar=" . $this->getactualizar() . ",eliminar=" . $this->geteliminar() . ",ejecutar=" . $this->getejecutar() . " where id=" . $this->getid() . ";"); $boolean = 1; } } } return $boolean; }