git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C439
This commit is contained in:
parent
8861c216b7
commit
7607db4c11
18 changed files with 144 additions and 93 deletions
|
|
@ -34,8 +34,9 @@ namespace AYA.SlnSinort.WCF
|
||||||
|
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
ProyectoNormativoJSON GuardarEventoProyectoNormativo(ProyectoNormativoJSON model);
|
ProyectoNormativoJSON GuardarEventoProyectoNormativo(ProyectoNormativoJSON model);
|
||||||
//[OperationContract]
|
|
||||||
//ProyectoNormativoJSON EliminarConvocatoriaProyectoNormativo(ProyectoNormativoJSON model);
|
[OperationContract]
|
||||||
|
ProyectoNormativoJSON EliminarConvocatoriaProyectoNormativo(ProyectoNormativoJSON model);
|
||||||
|
|
||||||
|
|
||||||
//Para la ficha tecnica
|
//Para la ficha tecnica
|
||||||
|
|
|
||||||
|
|
@ -164,33 +164,33 @@ namespace AYA.SlnSinort.WCF
|
||||||
return model;
|
return model;
|
||||||
}
|
}
|
||||||
|
|
||||||
//public ProyectoNormativoJSON EliminarConvocatoriaProyectoNormativo(ProyectoNormativoJSON model)
|
public ProyectoNormativoJSON EliminarConvocatoriaProyectoNormativo(ProyectoNormativoJSON model)
|
||||||
//{
|
{
|
||||||
// try
|
try
|
||||||
// {
|
{
|
||||||
// if (model.ProyectoNormativo == null)
|
if (model.ProyectoNormativo == null)
|
||||||
// {
|
{
|
||||||
// model.CodigoRespuesta = EnumTipoCodigoRespuesta.ADVERTENCIA;
|
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ADVERTENCIA;
|
||||||
// model.DescripcionRespuesta = "No se encontraron datos del proyecto normativo";
|
model.DescripcionRespuesta = "No se encontraron datos del proyecto normativo";
|
||||||
// return model;
|
return model;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// if (model.Convocado == null)
|
if (model.Convocado == null)
|
||||||
// {
|
{
|
||||||
// model.CodigoRespuesta = EnumTipoCodigoRespuesta.ADVERTENCIA;
|
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ADVERTENCIA;
|
||||||
// model.DescripcionRespuesta = "No se encontraron datos del usuario";
|
model.DescripcionRespuesta = "No se encontraron datos del usuario";
|
||||||
// return model;
|
return model;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// model = new ConvocatoriaDAL().EliminarConvocatoriaProyectoNormativo(model);
|
model = new ConvocatoriaDAL().EliminarConvocatoriaProyectoNormativo(model);
|
||||||
// }
|
}
|
||||||
// catch (Exception ex)
|
catch (Exception ex)
|
||||||
// {
|
{
|
||||||
// log.Error(ex);
|
log.Error(ex);
|
||||||
// model.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR;
|
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR;
|
||||||
// }
|
}
|
||||||
// return model;
|
return model;
|
||||||
//}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
# region Ficha Tecnica
|
# region Ficha Tecnica
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@
|
||||||
|
|
||||||
<connectionStrings>
|
<connectionStrings>
|
||||||
<!--<add name="Contex" connectionString="data source=192.168.1.37;initial catalog=SinortAyA;persist security info=True;user id=sinort;password=sinort2018;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />-->
|
<!--<add name="Contex" connectionString="data source=192.168.1.37;initial catalog=SinortAyA;persist security info=True;user id=sinort;password=sinort2018;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />-->
|
||||||
<add name="Contex" connectionString="data source=10.50.1.98;initial catalog=SINORT;persist security info=True;user id=usersinort;password=usersinort;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
|
<!--<add name="Contex" connectionString="data source=10.50.1.98;initial catalog=SINORT;persist security info=True;user id=usersinort;password=usersinort;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />-->
|
||||||
<!-- <add name="Contex" connectionString="data source=AYA-VSRV-BDTT;initial catalog=SINORT;persist security info=True;user id=usersinort;password=us3rsinort;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />-->
|
<add name="Contex" connectionString="data source=AYA-VSRV-BDTT;initial catalog=SINORT;persist security info=True;user id=usersinort;password=us3rsinort;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
|
||||||
</connectionStrings>
|
</connectionStrings>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ var RepositorioLocal = $("#hiddenRepositorioLocal").val();
|
||||||
var UsuarioSistema = $("#hiddenUsuarioSistema").val();
|
var UsuarioSistema = $("#hiddenUsuarioSistema").val();
|
||||||
var NombreUsuario = $("#hiddenNombreUsuario").val();
|
var NombreUsuario = $("#hiddenNombreUsuario").val();
|
||||||
//aya-vsrv-apptt:2525
|
//aya-vsrv-apptt:2525
|
||||||
var server = window.location.protocol + "//" + "localhost" + "/" + (window.location.pathname.split('/')[1]) + "/";
|
var server = window.location.protocol + "//" + "aya-vsrv-apptt:2525" + "/" + (window.location.pathname.split('/')[1]) + "/";
|
||||||
var SinorLoginWCF = "http://localhost/AYA.SlnSinort.WCF/Sinort.svc";
|
var SinorLoginWCF = "http://aya-vsrv-wstt:2005/Sinort.svc";
|
||||||
var string_empty = "";
|
var string_empty = "";
|
||||||
var Atesa = {};
|
var Atesa = {};
|
||||||
var StarterTemplateVisible = true;
|
var StarterTemplateVisible = true;
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ this.RedireccionarBusquedaAvanzada = function () {
|
||||||
this.CargarSitios = function () {
|
this.CargarSitios = function () {
|
||||||
var uri = SinortWCF + '/api/ObtenerSitios';
|
var uri = SinortWCF + '/api/ObtenerSitios';
|
||||||
model =
|
model =
|
||||||
AjaxPostData(uri, Item, true, true, CargarTablaSitios, null, null);
|
AjaxPostData(uri, Item, true, false, CargarTablaSitios, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.CargarEliminadas = function () {
|
this.CargarEliminadas = function () {
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ this.CargarFichas = function () {
|
||||||
|
|
||||||
var uri = SinortWCF + '/api/ObtenerSitios';
|
var uri = SinortWCF + '/api/ObtenerSitios';
|
||||||
model =
|
model =
|
||||||
AjaxPostData(uri, Item, true, true, CargarTablaFichas, null, null);
|
AjaxPostData(uri, Item, true, false, CargarTablaFichas, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.CargarTablaFichas = function (data) {
|
this.CargarTablaFichas = function (data) {
|
||||||
|
|
|
||||||
|
|
@ -869,10 +869,17 @@ this.CargarTablaDocumentosAuxiliares = function (data) {
|
||||||
$.each(lista, function (key, item) {
|
$.each(lista, function (key, item) {
|
||||||
|
|
||||||
|
|
||||||
var option = $("#ucOpcionesDocumentos").html();
|
//var option = $("#ucOpcionesDocumentos").html();
|
||||||
|
//option = replaceAll("[$ruta]", "'" + item.RutaDescarga + "'", option);
|
||||||
|
//option = replaceAll("[$nombre]", "'" + item.RutaDescarga + "'", option);
|
||||||
|
//option = replaceAll("[$id]", item.IdDocumentoAdjunto, option);
|
||||||
|
var option = $("#ucAbrirDocumento").html();
|
||||||
option = replaceAll("[$ruta]", "'" + item.RutaDescarga + "'", option);
|
option = replaceAll("[$ruta]", "'" + item.RutaDescarga + "'", option);
|
||||||
option = replaceAll("[$nombre]", "'" + item.RutaDescarga + "'", option);
|
var option2 = $("#ucEliminarDocumento").html();
|
||||||
option = replaceAll("[$id]", item.IdDocumentoAdjunto, option);
|
option2 = replaceAll("[$nombre]", "'" + item.RutaDescarga + "'", option2);
|
||||||
|
option2 = replaceAll("[$id]", item.IdDocumentoAdjunto, option2);
|
||||||
|
option2 = replaceAll("[$usuario]", "'" + item.UsuarioCreacion + "'", option2);
|
||||||
|
|
||||||
var ext = item.TipoArchivo.toLowerCase();
|
var ext = item.TipoArchivo.toLowerCase();
|
||||||
switch (ext) {
|
switch (ext) {
|
||||||
case 'pdf':
|
case 'pdf':
|
||||||
|
|
@ -901,9 +908,10 @@ this.CargarTablaDocumentosAuxiliares = function (data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
tableDocAuxiliares.row.add([item.IdDocumentoAdjunto,
|
tableDocAuxiliares.row.add([item.IdDocumentoAdjunto,
|
||||||
|
option,
|
||||||
item.Nombre,
|
item.Nombre,
|
||||||
item.UsuarioCreacion,
|
item.UsuarioCreacion,
|
||||||
option]).draw();
|
option2]).draw();
|
||||||
|
|
||||||
});
|
});
|
||||||
ENDREQUEST();
|
ENDREQUEST();
|
||||||
|
|
@ -938,10 +946,12 @@ this.CargarTablaDocumentosExpediente = function (data) {
|
||||||
$.each(lista, function (key, item) {
|
$.each(lista, function (key, item) {
|
||||||
|
|
||||||
|
|
||||||
var option = $("#ucOpcionesDocumentos").html();
|
var option = $("#ucAbrirDocumento").html();
|
||||||
option = replaceAll("[$ruta]", "'" + item.RutaDescarga + "'", option);
|
option = replaceAll("[$ruta]", "'" + item.RutaDescarga + "'", option);
|
||||||
option = replaceAll("[$nombre]", "'" + item.RutaDescarga + "'", option);
|
var option2 = $("#ucEliminarDocumento").html();
|
||||||
option = replaceAll("[$id]", item.IdDocumentoAdjunto, option);
|
option2 = replaceAll("[$nombre]", "'" + item.RutaDescarga + "'", option2);
|
||||||
|
option2 = replaceAll("[$id]", item.IdDocumentoAdjunto, option2);
|
||||||
|
option2 = replaceAll("[$usuario]", "'" + item.UsuarioCreacion + "'", option2);
|
||||||
var ext = item.TipoArchivo.toLowerCase();
|
var ext = item.TipoArchivo.toLowerCase();
|
||||||
switch (ext) {
|
switch (ext) {
|
||||||
case 'pdf':
|
case 'pdf':
|
||||||
|
|
@ -970,9 +980,10 @@ this.CargarTablaDocumentosExpediente = function (data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
tableDocExpediente.row.add([item.IdDocumentoAdjunto,
|
tableDocExpediente.row.add([item.IdDocumentoAdjunto,
|
||||||
|
option,
|
||||||
item.Nombre,
|
item.Nombre,
|
||||||
item.UsuarioCreacion,
|
item.UsuarioCreacion,
|
||||||
option]).draw();
|
option2]).draw();
|
||||||
|
|
||||||
});
|
});
|
||||||
ENDREQUEST();
|
ENDREQUEST();
|
||||||
|
|
@ -981,7 +992,11 @@ this.AbrirDocAdjuntos = function (ruta){
|
||||||
window.open(ruta);
|
window.open(ruta);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.RemoverAdjunto = function (nombre,id) {
|
this.RemoverAdjunto = function (nombre,id,usuario) {
|
||||||
|
|
||||||
|
if (!confirm("¿Desea eliminar el documento?")) return;
|
||||||
|
|
||||||
|
if (UsuarioSistema == usuario){
|
||||||
|
|
||||||
var separador = "/";
|
var separador = "/";
|
||||||
var arregloDeSubCadenas = nombre.split(separador);
|
var arregloDeSubCadenas = nombre.split(separador);
|
||||||
|
|
@ -996,7 +1011,10 @@ this.RemoverAdjunto = function (nombre,id) {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
AjaxPostData(uri, model, false, false, EliminarbaseAdjunto,null , null);
|
AjaxPostData(uri, model, false, true, EliminarbaseAdjunto, null, null);
|
||||||
|
} else {
|
||||||
|
toastr.warning(Message_NoGrants, Message_Warning);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
this.EliminarbaseAdjunto = function (data) {
|
this.EliminarbaseAdjunto = function (data) {
|
||||||
|
|
@ -1775,6 +1793,32 @@ this.Export2Doc = function (element, filename) {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.EliminarConvocatoriaProyectoNormativo = function (usuario) {
|
||||||
|
|
||||||
|
var uri = SinortWCF + '/api/EliminarConvocatoriaProyectoNormativo';
|
||||||
|
|
||||||
|
model.ProyectoNormativo = {
|
||||||
|
IdProyectoNormativo: model.ProyectoNormativo.IdProyectoNormativo
|
||||||
|
}
|
||||||
|
model.Convocado = {
|
||||||
|
UsuarioSistema : usuario
|
||||||
|
}
|
||||||
|
|
||||||
|
AjaxPostData(uri, model, false, true, CargarConvocados, null, null);
|
||||||
|
|
||||||
|
}
|
||||||
|
$('#tableParticipantes').on('click', 'button', function () {
|
||||||
|
|
||||||
|
var data = $('#tableParticipantes').DataTable().row($(this).parents('tr')).data();
|
||||||
|
|
||||||
|
if (EsPromotor == true) {
|
||||||
|
EliminarConvocatoriaProyectoNormativo(data[1]);
|
||||||
|
ENDREQUEST();
|
||||||
|
} else {
|
||||||
|
toastr.warning(Message_NoGrants, Message_Warning);
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
this.ExportarADoc = function (TipoComentario, filename) {
|
this.ExportarADoc = function (TipoComentario, filename) {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,8 @@ $('#tableSitios').on('click', 'button', function () {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
url = $("#hiddenHref").val();
|
url = $("#hiddenHref").val();
|
||||||
url = url.replace("View", "DetallePropuesta");
|
url = url.replace("View", "DetallePropuesta");
|
||||||
url = url.replace("Controller", "PropuestaNormativa");
|
url = url.replace("Controller", "PropuestaNormativa");
|
||||||
|
|
|
||||||
|
|
@ -560,7 +560,7 @@ this.ActualizarConvocado = function (data) {
|
||||||
UsuarioSistema: InfoIUsuarioAsignado,
|
UsuarioSistema: InfoIUsuarioAsignado,
|
||||||
IdProyectoNormativo: InfoIdProyectoNormativo,
|
IdProyectoNormativo: InfoIdProyectoNormativo,
|
||||||
Participante: (EstadoParticipacion == 0) ? false : true,
|
Participante: (EstadoParticipacion == 0) ? false : true,
|
||||||
Justificacion: $('#txtJustificacion').val()
|
Justificacion: (EstadoParticipacion == 0) ? $('#txtJustificacion').val() : null,
|
||||||
}
|
}
|
||||||
ArrayParticipantes.push(Convocatoria);
|
ArrayParticipantes.push(Convocatoria);
|
||||||
var uri = SinortWCF + '/api/GuardarConvocatoriaProyectoNormativo';
|
var uri = SinortWCF + '/api/GuardarConvocatoriaProyectoNormativo';
|
||||||
|
|
|
||||||
|
|
@ -2,41 +2,13 @@
|
||||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||||
}
|
}
|
||||||
|
|
||||||
<style >
|
|
||||||
|
|
||||||
body, html {
|
<form id="formPrincipal" class="form-horizontal" role="form" >
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
* {
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg-img {
|
<img class="img-responsive" style="position: absolute; z-index: 1; width: 100%; height: 85%;" src="~/dist/img/2386_white_abstract.jpg">
|
||||||
/* The image used */
|
|
||||||
background-image: url("~/dist/img/SINORT_LOGO.png");
|
|
||||||
|
|
||||||
/* Control the height of the image */
|
@*<div class="row">
|
||||||
min-height: 380px;
|
|
||||||
|
|
||||||
/* Center and scale the image nicely */
|
|
||||||
background-position: center;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-size: cover;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<div class="bg-img">
|
|
||||||
<form id="formPrincipal" class="form-horizontal" role="form">
|
|
||||||
<div class="row">
|
|
||||||
|
|
||||||
<div class="col-sm-12" style="height:100%"><img class="img-responsive" src="~/dist/img/SINORT_LOGO.png" ></div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@*<img class="img-responsive" style="position: absolute; z-index: 1; width: 100%; height: 85%;" src="~/dist/img/SINORT_LOGO.png">*@
|
|
||||||
|
|
||||||
@*<div class="row">
|
|
||||||
|
|
||||||
<div class="col-sm-4"><a href="javascript: EntrarVerEstadoFicha('1');"> <img class="img-responsive" src="~/dist/img/imgNormReg1.png"></div>
|
<div class="col-sm-4"><a href="javascript: EntrarVerEstadoFicha('1');"> <img class="img-responsive" src="~/dist/img/imgNormReg1.png"></div>
|
||||||
<div class="col-sm-4"><a href="javascript: ValidarAcceder('Proyecto_Normativo','Home','Ver proyectos y foros');"> <img class="img-responsive" src="~/dist/img/imgProyeNorm1.png"></div>
|
<div class="col-sm-4"><a href="javascript: ValidarAcceder('Proyecto_Normativo','Home','Ver proyectos y foros');"> <img class="img-responsive" src="~/dist/img/imgProyeNorm1.png"></div>
|
||||||
|
|
@ -45,6 +17,5 @@
|
||||||
</div>*@
|
</div>*@
|
||||||
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
@ -225,6 +225,7 @@
|
||||||
<table id="tableDocAuxiliares" class="table table-striped">
|
<table id="tableDocAuxiliares" class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<th></th>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th class="col-sm-4">Nombre</th>
|
<th class="col-sm-4">Nombre</th>
|
||||||
<th class="col-sm-6">Creado por</th>
|
<th class="col-sm-6">Creado por</th>
|
||||||
|
|
@ -392,7 +393,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="ucEliminarDocumento" style="display:none;">
|
<div id="ucEliminarDocumento" style="display:none;">
|
||||||
<span>
|
<span>
|
||||||
<button type="button" id="btnAbrirAdjuntos" class="btn btn-default btn-xs" onclick="RemoverAdjunto([$nombre], [$id])">
|
<button type="button" id="btnEliminarAdjuntos" class="btn btn-default btn-xs" onclick="RemoverAdjunto([$nombre], [$id], [$usuario])">
|
||||||
<i class="fa fa-trash"></i>
|
<i class="fa fa-trash"></i>
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,7 @@
|
||||||
|
|
||||||
<li class="treeview">
|
<li class="treeview">
|
||||||
<a href="#" >
|
<a href="#" >
|
||||||
<img class="img-responsive" style="width:40%" src="~/dist/img/GotaNormativa.png"> <span>Normativa y </br> Reglamentación Técnica </span><span class="pull-right-container">
|
<img class="img-responsive" style="width:40%;" src="~/dist/img/GotaNormativa.png"> <span>Normativa y </br> Reglamentación Técnica </span><span class="pull-right-container">
|
||||||
<i class="fa fa-angle-left pull-right"></i>
|
<i class="fa fa-angle-left pull-right"></i>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
|
|
@ -29,23 +29,23 @@
|
||||||
<add key="RutaImagenes" value="http://10.50.1.97:6075/bower_components/Ionicons/png/512/" /> -->
|
<add key="RutaImagenes" value="http://10.50.1.97:6075/bower_components/Ionicons/png/512/" /> -->
|
||||||
|
|
||||||
|
|
||||||
<!--<add key="SinortWCF" value="http://aya-vsrv-wstt:2005/Sinort.svc" />
|
<add key="SinortWCF" value="http://aya-vsrv-wstt:2005/Sinort.svc" />
|
||||||
<add key="SinortCatalogosWCF" value="http://aya-vsrv-wstt:2005/SinortCatalogos.svc" />
|
<add key="SinortCatalogosWCF" value="http://aya-vsrv-wstt:2005/SinortCatalogos.svc" />
|
||||||
<add key="FileRepository" value="D:\Aplicaciones\SINORT\Raiz\DocumentosSinort\" />
|
<add key="FileRepository" value="D:\Aplicaciones\SINORT\Raiz\DocumentosSinort\" />
|
||||||
<add key="HttpRepository" value="http://AYA-VSRV-APPTT:2525/DocumentosSINORT/" />
|
<add key="HttpRepository" value="http://AYA-VSRV-APPTT:2525/DocumentosSINORT/" />
|
||||||
<add key="FileUploadHandler" value="http://AYA-VSRV-APPTT:2525/FileUploadHandler" />
|
<add key="FileUploadHandler" value="http://AYA-VSRV-APPTT:2525/FileUploadHandler" />
|
||||||
<add key="RutaLogoSINORT" value="http://AYA-VSRV-APPTT:2525/dist/img/" />
|
<add key="RutaLogoSINORT" value="http://AYA-VSRV-APPTT:2525/dist/img/" />
|
||||||
<add key="RutaImagenes" value="http://AYA-VSRV-APPTT:2525/bower_components/Ionicons/png/512/" /> -->
|
<add key="RutaImagenes" value="http://AYA-VSRV-APPTT:2525/bower_components/Ionicons/png/512/" />
|
||||||
|
|
||||||
<add key="MaxSizeFileLoadKB" value="5120" />
|
<add key="MaxSizeFileLoadKB" value="5120" />
|
||||||
<add key="MaxCountFileLoad" value="3" />
|
<add key="MaxCountFileLoad" value="3" />
|
||||||
<add key="SinortWCF" value="http://localhost/AYA.SlnSinort.WCF/Sinort.svc" />
|
<!--<add key="SinortWCF" value="http://localhost/AYA.SlnSinort.WCF/Sinort.svc" />
|
||||||
<add key="SinortCatalogosWCF" value="http://localhost/AYA.SlnSinort.WCF/SinortCatalogos.svc" />
|
<add key="SinortCatalogosWCF" value="http://localhost/AYA.SlnSinort.WCF/SinortCatalogos.svc" />
|
||||||
<add key="FileRepository" value="C:\DocumentosSinort\" />
|
<add key="FileRepository" value="C:\DocumentosSinort\" />
|
||||||
<add key="HttpRepository" value="http://localhost/AYA.SlnSinort/DocumentosSINORT/" />
|
<add key="HttpRepository" value="http://localhost/AYA.SlnSinort/DocumentosSINORT/" />
|
||||||
<add key="FileUploadHandler" value="http://localhost/AYA.SlnSinort/FileUploadHandler" />
|
<add key="FileUploadHandler" value="http://localhost/AYA.SlnSinort/FileUploadHandler" />
|
||||||
<add key="RutaLogoSINORT" value="http://localhost/AYA.SlnSinort/dist/img/" />
|
<add key="RutaLogoSINORT" value="http://localhost/AYA.SlnSinort/dist/img/" />
|
||||||
<add key="RutaImagenes" value="http://localhost/AYA.SlnSinort/bower_components/Ionicons/png/512/" />
|
<add key="RutaImagenes" value="http://localhost/AYA.SlnSinort/bower_components/Ionicons/png/512/" /> -->
|
||||||
</appSettings>
|
</appSettings>
|
||||||
<system.web>
|
<system.web>
|
||||||
<sessionState timeout="20">
|
<sessionState timeout="20">
|
||||||
|
|
|
||||||
|
|
@ -59,5 +59,39 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
||||||
return model;
|
return model;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ProyectoNormativoJSON EliminarConvocatoriaProyectoNormativo(ProyectoNormativoJSON model)
|
||||||
|
{
|
||||||
|
Convocatoria Actual = new Convocatoria();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
model.ClearProperties();
|
||||||
|
|
||||||
|
using (SinortContex Conn = new SinortContex())
|
||||||
|
{
|
||||||
|
Actual = Conn.Convocatoria.FirstOrDefault(x => x.UsuarioSistema.ToString() == model.Convocado.UsuarioSistema && x.IdProyectoNormativo == model.ProyectoNormativo.IdProyectoNormativo);
|
||||||
|
if (Actual != null)
|
||||||
|
{
|
||||||
|
Conn.Entry(Actual).State = System.Data.Entity.EntityState.Deleted;
|
||||||
|
Conn.SaveChanges();
|
||||||
|
Conn.Commit();
|
||||||
|
model.CodigoRespuesta = EnumTipoCodigoRespuesta.EXITOSO.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (DbEntityValidationException ex)
|
||||||
|
{
|
||||||
|
log.Error(ex);
|
||||||
|
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR.ToString();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
log.Error(ex);
|
||||||
|
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
return model;
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -97,11 +97,11 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
||||||
|
|
||||||
if (Actual == null)
|
if (Actual == null)
|
||||||
{
|
{
|
||||||
registros = db.DocumentosAdjuntos.Where(r => r.IdTipoDocumento == model.Adjuntos.IdTipoDocumento && r.IdSubTipoDocumento == model.Adjuntos.IdSubTipoDocumento && r.NumeroTipoDocumento == model.Adjuntos.NumeroTipoDocumento).OrderBy(r => r.IdDocumentoAdjunto).ToList();
|
registros = db.DocumentosAdjuntos.Where(r => r.IdTipoDocumento == model.Adjuntos.IdTipoDocumento && r.IdSubTipoDocumento == model.Adjuntos.IdSubTipoDocumento && r.NumeroTipoDocumento == model.Adjuntos.NumeroTipoDocumento).OrderByDescending(r => r.IdDocumentoAdjunto).ToList();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
registros = db.DocumentosAdjuntos.Where(r => r.IdDocumentoAdjunto == model.IdDocumentoAdjunto).OrderBy(r => r.IdDocumentoAdjunto).ToList();
|
registros = db.DocumentosAdjuntos.Where(r => r.IdDocumentoAdjunto == model.IdDocumentoAdjunto).OrderByDescending(r => r.IdDocumentoAdjunto).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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.HISTORICO || x.Convocatoria.Any(p => p.UsuarioSistema == model.UserName && x.IdEstado != EnumTipoEstado.HISTORICO ))
|
.Where(x => x.PromotorProyecto == model.UserName && x.IdEstado != EnumTipoEstado.HISTORICO || x.Convocatoria.Any(p => p.UsuarioSistema == model.UserName && x.IdEstado != EnumTipoEstado.HISTORICO && p.Justificacion == null))
|
||||||
.AsNoTracking()
|
.AsNoTracking()
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,10 +29,8 @@ namespace AYA.SlnSinortModel.Sinort
|
||||||
[StringLength(200)]
|
[StringLength(200)]
|
||||||
public string Apartado { get; set; }
|
public string Apartado { get; set; }
|
||||||
|
|
||||||
[StringLength(200)]
|
|
||||||
public string TextoOriginal { get; set; }
|
public string TextoOriginal { get; set; }
|
||||||
|
|
||||||
[StringLength(200)]
|
|
||||||
public string TextoPropuesto { get; set; }
|
public string TextoPropuesto { get; set; }
|
||||||
|
|
||||||
public string Comentario { get; set; }
|
public string Comentario { get; set; }
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue