FOREST_CREAR_RESPONSABLE |
||||||
Crea un usuario o funcionario en el sistema.
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); |