loading table of contents...

6.7. FOREST_CREAR_RESPONSABLE()

 
FOREST_CREAR_RESPONSABLE
Crea un usuario o funcionario en el sistema.
Retorna: void 
Esta función no retorna valor
Parámetros:
object  objeto
Objeto con parámetros para el borrador, obligatorio.
Posibles parametros:

String nombre;
String primerNombre;
String segundoNombre;
String primerApellido;
String segundoApellido;
String númeroIdentificacion;
String teléfono;
String dirección;
String email;
Integer codigoMunicipio;
Integer codigoLocalidad;
String barrio;
Integer codigoBarrio;
Integer codigoUPZ;
boolean editable;
String codigoSedePrincipal;
String celular;
String fax;
Int tipoDocumento;
Boolean activo;
String codigoRepresentante;
String cargoRepresentante
String codigo;
Integer codigoCargo;
Int codigoDependencia;
Int codigoRol;
String clave;
Int tipoUsuario;
Versión: 3.0+
 
Ejemplo:
var responsable = MAKE_OBJECT("ParametrosResponsable");
responsable.numeroIdentificacion = numero;
responsable.tipoDocumento = CurrentForm.tipopersona;
responsable.telefono = CurrentForm.telefono;
responsable.direccion = CurrentForm.direccion;
responsable.email = CurrentForm.email;
responsable.codigoMunicipio = CurrentForm.ciudad;
responsable.codigoLocalidad = CurrentForm.localidad;
responsable.codigoUPZ = CurrentForm.upz;
responsable.codigoBarrio = CurrentForm.barrio;
responsable.editable = false;
responsable.activo = true;
responsable.codigo = numero;
responsable.codigoDependencia = 7085;
responsable.codigoRol = 2;
responsable.clave = MD5(CurrentForm.contra);
responsable.tipoUsuario = 2;
FOREST_CREAR_RESPONSABLE(responsable);