Historico DAL - WCF - Vistas - JS - Controller
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C236
This commit is contained in:
parent
eb722e1d38
commit
30f03e5183
1 changed files with 31 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
||||||
registros.ProyectosNormativos = db.ProyectoNormativo
|
registros.ProyectosNormativos = db.ProyectoNormativo
|
||||||
.Include(p => p.TipoProyecto)
|
.Include(p => p.TipoProyecto)
|
||||||
.Include(p => p.Convocatoria)
|
.Include(p => p.Convocatoria)
|
||||||
.Where(x => x.PromotorProyecto == model.UserName && x.IdEstado != EnumTipoEstado.ELIMINADO || x.Convocatoria.Any(p => p.UsuarioSistema == model.UserName && x.IdEstado != EnumTipoEstado.ELIMINADO ))
|
.Where(x => x.PromotorProyecto == model.UserName && x.IdEstado != EnumTipoEstado.HISTORICO || x.Convocatoria.Any(p => p.UsuarioSistema == model.UserName && x.IdEstado != EnumTipoEstado.HISTORICO ))
|
||||||
.AsNoTracking()
|
.AsNoTracking()
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
|
|
@ -88,6 +88,36 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
||||||
return registros;
|
return registros;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public ProyectoNormativoJSON Historico(AtesaJSON model)
|
||||||
|
{
|
||||||
|
|
||||||
|
ProyectoNormativoJSON registros = new ProyectoNormativoJSON();
|
||||||
|
try
|
||||||
|
{
|
||||||
|
using (SinortContex db = new SinortContex())
|
||||||
|
{
|
||||||
|
|
||||||
|
registros.ProyectosNormativos = db.ProyectoNormativo
|
||||||
|
.Include(p => p.TipoProyecto)
|
||||||
|
.Include(p => p.Convocatoria)
|
||||||
|
.Where(x => x.PromotorProyecto == model.UserName && x.IdEstado == EnumTipoEstado.HISTORICO || x.Convocatoria.Any(p => p.UsuarioSistema == model.UserName && x.IdEstado == EnumTipoEstado.HISTORICO ))
|
||||||
|
.AsNoTracking()
|
||||||
|
.ToList();
|
||||||
|
|
||||||
|
registros.CodigoRespuesta = EnumTipoCodigoRespuesta.EXITOSO;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
registros.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR;
|
||||||
|
log.Error(ex);
|
||||||
|
}
|
||||||
|
|
||||||
|
return registros;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public ProyectoNormativoJSON ObtenerProyectoNormativo(ProyectoNormativoJSON model)
|
public ProyectoNormativoJSON ObtenerProyectoNormativo(ProyectoNormativoJSON model)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue