Пример #1
0
                 } elseif (!$operation['ejecution']) {
                     $log = Log::registro($usuario->getID(), "error", "Actualización la información. Tercero Empresa. {" . $tercero->getTipo() . ", " . $get->regimen . ", " . $get->estado . ", " . $get->nit . ", " . $get->razon_social . ", " . $get->naturaleza . " , " . $get->fecha . ", " . $get->ciudad . ", " . $get->direccion . ", " . $get->telefono . "} - {" . $operation['error'] . "}", $conexion);
                 }
             } else {
                 $operation['ejecution'] = true;
                 $operation['result'] = false;
                 $operation['message'] = "Por favor diligencie los todos los campos del formulario.";
             }
         }
         echo json_encode($operation);
     }
 }
 if ($get->buscar) {
     $conexion = new Conexion();
     $get->parametro = strtoupper(base64_decode($get->parametro));
     $operation = Tercero::buscar($get->parametro, $conexion);
     if (count($operation['result']) == 1) {
         $operation['message'] = "Se encontro " . count($operation['result']) . " registro.";
     } elseif (count($operation['result']) > 1) {
         $operation['message'] = "Se encontraron " . count($operation['result']) . " registros.";
     } else {
         $operation['message'] = "No se encuentran registros con los parametros ingresados.";
     }
     echo json_encode($operation);
 }
 if ($get->instanciar) {
     $get->tipo = base64_decode($get->tipo);
     $conexion = new Conexion();
     if ($get->tipo == "NATURAL") {
         $get->numero_documento = base64_decode($get->numero_documento);
         $tercero = new Tercero();