git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C175
This commit is contained in:
parent
c2dc0c8cd6
commit
1ebaaaa96f
4 changed files with 25 additions and 3 deletions
|
|
@ -1,14 +1,21 @@
|
|||
using Atesa.Utilitarios;
|
||||
using AYA.SlnSinortModel.Sinort;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Data.Entity;
|
||||
using System.Data.Entity.Validation;
|
||||
using AYA.SlnSinortModel.Entidades;
|
||||
using Atesa.Utilitarios;
|
||||
using AYA.SlnSinortModel.Constantes;
|
||||
|
||||
namespace AYA.SlnSinortModel.DAL.Sinort
|
||||
{
|
||||
public class PermisosUsuarioDAL
|
||||
{
|
||||
Log log = new Log("PermisosUsuarioDAL");
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
|||
{
|
||||
using (SinortContex Conn = new SinortContex())
|
||||
{
|
||||
|
||||
|
||||
model.ProyectoNormativo.ClearProperties();
|
||||
|
||||
if (!Conn.ProyectoNormativo.Any(x => x.IdProyectoNormativo == model.ProyectoNormativo.IdProyectoNormativo))
|
||||
|
|
@ -131,5 +131,8 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
|||
|
||||
return model;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -116,6 +116,7 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
|||
}
|
||||
else
|
||||
{
|
||||
|
||||
model.FechaModificacion = DateTime.Now;
|
||||
model.FechaCreacion = Actual.FechaCreacion;
|
||||
model.UsuarioCreacion = Actual.UsuarioCreacion;
|
||||
|
|
@ -146,7 +147,6 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
|||
}
|
||||
return Respuesta;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
@ -186,5 +186,8 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
|||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,4 +52,13 @@ namespace AYA.SlnSinortModel.Entidades
|
|||
public string end { get; set; }
|
||||
public bool allDay { get; set; }
|
||||
}
|
||||
|
||||
public class PermisosJSON : BaseJson
|
||||
{
|
||||
public List<Pantallas> Pantallas { get; set; }
|
||||
public RolesPantallas RolesPantallas { get; set; }
|
||||
public RolesUsuario RolesUsuario { get; set; }
|
||||
public Roles Rol { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue