Skip to content

Conversation

@vrimada
Copy link
Contributor

@vrimada vrimada commented Aug 11, 2025

Requerimiento

Funcionalidad desarrollada

  1. https://proyectos.andes.gob.ar/browse/LAB-142
    feat: se agrega un modal para que acepte terminos y condiciones. Se agrega en la bd la fecha y además el log de Aceptacion de los terminos y condiciones de uso.

Se debe agregar en el Web.Config el atributo "DiasTerminosCondiciones" , con un entero que representa la cantidad de DIAS que deben transcurrir para que salga el cartel de inicio de sesión.

UserStories llegó a completarse

  • Si
  • No
  • No corresponde

Requiere actualizaciones en la base de datos

  • Si
  • No
  • No corresponde
if (select count(*) from sys.all_objects o
  inner join sys.all_columns c on o.object_id= c.object_id
  where o.name = 'Sys_usuario' and c.name = 'fechaAceptaTerminosCondiciones') = 0
begin 
  /* Se agrega columna 'fechaAceptaTerminosCondiciones' en Sys_usuario */
  alter table Sys_usuario 
  add fechaAceptaTerminosCondiciones datetime not null 
  CONSTRAINT DF_Sys_usuario_fechaAceptaTerminosCondiciones DEFAULT ('1900-01-01 00:00:00.000');
  
  end
GO

if( select count(*) from sys.all_objects o where o.name = 'LAB_LogAccesoTerminosCondiciones') = 0
BEGIN
  CREATE TABLE [dbo].[LAB_LogAccesoTerminosCondiciones](
  [idLogAcceso] [int] IDENTITY(1,1) NOT NULL,
  [idUsuario] [int] NOT NULL,
  [fecha] [datetime] NOT NULL,
CONSTRAINT [PK_LAB_LAB_LogAccesoTerminosCondiciones] PRIMARY KEY CLUSTERED 
(
  [idLogAcceso] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]

  
end
GO 

@vrimada vrimada self-assigned this Aug 11, 2025
@vrimada vrimada added the enhancement New feature or request label Aug 11, 2025
@vrimada vrimada requested a review from caroPintos August 11, 2025 13:43
…grega en la bd la fecha y el log de Aceptacion de los terminos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant