예제 #1
0
 public function GuardarIIMS($Array = false)
 {
     if ($Array == true and is_array($Array) == true) {
         $SQL = new NeuralBDGab();
         $SQL->SeleccionarDestino('GESTION', 'tbl_base_general');
         foreach ($Array as $Columna => $Valor) {
             $SQL->AgregarSentencia($Columna, $Valor);
         }
         $SQL->AgregarSentencia('Tipo_Reporte', 'IIMS');
         $SQL->InsertarDatos();
     }
 }
 private function ActualizarEstado($Id = false, $Estado = false)
 {
     $SQL = new NeuralBDGab();
     $SQL->SeleccionarDestino('GESTION', 'tbl_gestion_asesor_asignado');
     $SQL->AgregarSentencia('Estado', $Estado);
     $SQL->AgregarCondicion('Id', $Id);
     $SQL->ActualizarDatos();
 }
예제 #3
0
 public function CambioPassword($Password = false, $Id = false)
 {
     if ($Password == true and $Id == true) {
         $SQL = new NeuralBDGab();
         $SQL->SeleccionarDestino('GESTION', 'tbl_sistema_usuarios');
         $SQL->AgregarSentencia('Password', sha1($Password));
         $SQL->AgregarCondicion('Id', $Id);
         $SQL->ActualizarDatos();
     }
 }
예제 #4
0
 /**
  * Funcion     : Editar(integer, string, string, string, string, string, string, integer)
  * Descripcion : Edita registro a la base de datos
  * Tipo        : Publico
  * Parametros  : 
  *
  **/
 public function Editar($idUsuario, $nombre, $apellidoPaterno, $apellidoMaterno, $username, $passwd, $email, $nivel)
 {
     $SQL = new NeuralBDGab();
     $SQL->SeleccionarDestino('POS', 'tbl_usuarios');
     $SQL->AgregarSentencia('idTipoUsuario', $nivel);
     $SQL->AgregarSentencia('nombre', $nombre);
     $SQL->AgregarSentencia('apellidoPaterno', $apellidoPaterno);
     $SQL->AgregarSentencia('apellidoMaterno', $apellidoMaterno);
     $SQL->AgregarSentencia('username', $username);
     $SQL->AgregarSentencia('password', $passwd);
     $SQL->AgregarSentencia('email', $email);
     $SQL->AgregarCondicion('idUsuario', $idUsuario);
     $SQL->ActualizarDatos();
 }
예제 #5
0
 public function ActivacionUsuario($Id = false, $Estado = false)
 {
     if ($Id == true and $Estado == true) {
         $SQL = new NeuralBDGab();
         $SQL->SeleccionarDestino('GESTION', 'tbl_gestion_asesores');
         $SQL->AgregarSentencia('Estado', $Estado);
         $SQL->AgregarCondicion('Id', $Id);
         $SQL->ActualizarDatos();
     }
 }
예제 #6
0
 public function ActualizarEstadoRegistroNotas($Registro = false)
 {
     if ($Registro == true) {
         $SQL1 = new NeuralBDGab();
         $SQL1->SeleccionarDestino('GESTION', 'tbl_base_general');
         $SQL1->AgregarSentencia('Seguimiento', 'FINALIZADO');
         $SQL1->AgregarCondicion('Id', $Registro);
         $SQL1->ActualizarDatos();
         $SQL2 = new NeuralBDGab();
         $SQL2->SeleccionarDestino('GESTION', 'tbl_gestion_seguimiento');
         $SQL2->AgregarSentencia('Estado', 'INACTIVO');
         $SQL2->AgregarSentencia('Fecha_Fin', date("Y-m-d H:i:s"));
         $SQL2->AgregarCondicion('Registro', $Registro);
         $SQL2->ActualizarDatos();
     }
 }
예제 #7
0
 public function TelefoniaSoftswitchEditar($Array = false)
 {
     if ($Array == true and is_array($Array) == true) {
         $SQL = new NeuralBDGab();
         $SQL->SeleccionarDestino('GESTION', 'tbl_base_softswitch');
         $SQL->AgregarSentencia('Nombre', $Array['Nombre']);
         $SQL->AgregarCondicion('Id', $Array['Id']);
         $SQL->ActualizarDatos();
     }
 }