This commit is contained in:
jnunez 2018-10-10 23:13:06 +00:00
parent 4aaf6b896b
commit 5e6fc94fa9
7 changed files with 168 additions and 58 deletions

View file

@ -534,7 +534,7 @@ namespace AYA.SlnSinort.WCF
correo.ASUNTO = plantilla.Subject.Replace("$NombreProyecto", model.ProyectoNormativo.NombreProyectoNormativo);
body = plantilla.Body.Replace("$NombreProyecto", model.ProyectoNormativo.NombreProyectoNormativo).Replace("$Link", "<a href=" + "'" + model.ProyectoNormativo.Matriz + "'" + ">Aquí </a>").Replace("$Usuario", usuario.NombreUsuario).Replace("|", "</br>");
email = usuario.EmailUsuario;
correo.DESTINATARIOS = email;
correo.DESTINATARIOS = "jnunez@atesacr.com";
correo.CUERPO = body;
respuesta = respuestaAyA.enviarCorreo(correo);
@ -554,7 +554,7 @@ namespace AYA.SlnSinort.WCF
body = plantilla.Body.Replace("$NombreProyecto", model.ProyectoNormativo.NombreProyectoNormativo).Replace("$Link", "<a href=" + "'" + model.ProyectoNormativo.Matriz + "'" + ">" + model.ProyectoNormativo.NombreProyectoNormativo + "</a>").Replace("$FechaMaxima", fechamaxima).Replace("$Usuario", usuario.NombreUsuario).Replace("|", "</br>");
correo.CUERPO = body;
email = usuario.EmailUsuario;
correo.DESTINATARIOS = email ;
correo.DESTINATARIOS = "jnunez@atesacr.com" ;
respuesta = respuestaAyA.enviarCorreo(correo);
}
@ -573,7 +573,7 @@ namespace AYA.SlnSinort.WCF
body = plantilla.Body.Replace("$NombreProyecto", model.ProyectoNormativo.NombreProyectoNormativo).Replace("$Link", "<a href=" + "'" + model.ProyectoNormativo.Matriz + "'" + ">" + model.ProyectoNormativo.NombreProyectoNormativo + "</a>").Replace("$FechaMaxima", Convert.ToString(model.ProyectoNormativo.FechaMaximaConfirmarParticipacion)).Replace("$Usuario", usuario.NombreUsuario).Replace("|", "</br>");
correo.CUERPO = body;
email = usuario.EmailUsuario;
correo.DESTINATARIOS = email;
correo.DESTINATARIOS = "jnunez@atesacr.com";
respuesta = respuestaAyA.enviarCorreo(correo);
}
@ -593,7 +593,7 @@ namespace AYA.SlnSinort.WCF
catalogo.codigo = tareas.PromotorProyectoNormativo;
usuario = UsuarioDAL.BuscarUsuario(catalogo);
email = usuario.EmailUsuario;
correo.DESTINATARIOS = email ;
correo.DESTINATARIOS = "jnunez@atesacr.com";
correo.CUERPO = body;
respuesta = respuestaAyA.enviarCorreo(correo);
@ -614,7 +614,7 @@ namespace AYA.SlnSinort.WCF
catalogo.codigo = tareas.PromotorProyectoNormativo;
usuario = UsuarioDAL.BuscarUsuario(catalogo);
email = usuario.EmailUsuario;
correo.DESTINATARIOS =email;
correo.DESTINATARIOS = "jnunez@atesacr.com";
correo.CUERPO = body;
respuesta = respuestaAyA.enviarCorreo(correo);
@ -634,7 +634,7 @@ namespace AYA.SlnSinort.WCF
usuario = UsuarioDAL.BuscarUsuario(catalogo);
body = plantilla.Body.Replace("$Link", "<a href=" + "'" + model.ProyectoNormativo.Matriz + "'" + ">" + model.ProyectoNormativo.NombreProyectoNormativo + "</a>").Replace("$Asunto", model.Convocado.AsuntoDiscusionFocalizada).Replace("|", "</br>");
email = usuario.EmailUsuario;
correo.DESTINATARIOS = email;
correo.DESTINATARIOS = "jnunez@atesacr.com";
correo.CUERPO = body;
respuesta = respuestaAyA.enviarCorreo(correo);
@ -658,7 +658,7 @@ namespace AYA.SlnSinort.WCF
correos += email + ";";
}
correo.DESTINATARIOS = correos;
correo.DESTINATARIOS = "jnunez@atesacr.com";
respuesta = respuestaAyA.enviarCorreo(correo);
break;
@ -677,7 +677,7 @@ namespace AYA.SlnSinort.WCF
catalogo.codigo = participantes.UsuarioSistema;
usuario = UsuarioDAL.BuscarUsuario(catalogo);
email = usuario.EmailUsuario;
correo.DESTINATARIOS = email;
correo.DESTINATARIOS = "jnunez@atesacr.com";
respuesta = respuestaAyA.enviarCorreo(correo);
}

View file

@ -555,8 +555,8 @@ public partial class Documento : System.Web.UI.Page
{
WebRequest request = WebRequest.Create(url);
WebResponse response = request.GetResponse();
string targetUrl = @"\\10.50.1.97\Aplicaciones\SINORT(6075)\Raiz\DocumentosSinort\";
//Server.MapPath("../../DocsRespuesta/" + strCedula + "/");
//string targetUrl = @"\\10.50.1.97\Aplicaciones\SINORT(6075)\Raiz\DocumentosSinort\";
string targetUrl = @"C:\DocumentosSinort\";
if (!Directory.Exists(targetUrl))
Directory.CreateDirectory(targetUrl);

View file

@ -9,19 +9,21 @@ var NombreUsuario = $("#hiddenNombreUsuario").val();
//var LinkSolicitudTarea = "http://aya-vsrv-apptt:2525/Home/TareasPendientes";
//var LinkSolicitudResponder = "http://aya-vsrv-apptt:2525/NormativaReglamentacionTecnica/VerSolicitudes?";
//var LinkBusquedaFichaTecnica = "http://aya-vsrv-apptt:2525/Home/Normativa_Reglamentacion_Tecnica?solicitud=`";
var LinkPropuesta = "http://10.50.1.97:6075/PropuestaNormativa/DetallePropuesta?";
var LinkSolicitudTarea = "http://10.50.1.97:6075/Home/TareasPendientes";
var LinkSolicitudResponder = "http://10.50.1.97:6075/NormativaReglamentacionTecnica/VerSolicitudes?";
var LinkBusquedaFichaTecnica = "http://10.50.1.97:6075/Home/Normativa_Reglamentacion_Tecnica?solicitud=`";
//"http://localhost/AYA.SlnSinort/Home/Normativa_Reglamentacion_Tecnica?solicitud=`";
//"http://10.50.1.97:6075/Home/Normativa_Reglamentacion_Tecnica?solicitud=`"
//var LinkPropuesta = "http://10.50.1.97:6075/PropuestaNormativa/DetallePropuesta?";
//var LinkSolicitudTarea = "http://10.50.1.97:6075/Home/TareasPendientes";
//var LinkSolicitudResponder = "http://10.50.1.97:6075/NormativaReglamentacionTecnica/VerSolicitudes?";
//var LinkBusquedaFichaTecnica = "http://10.50.1.97:6075/Home/Normativa_Reglamentacion_Tecnica?solicitud=`";
var LinkPropuesta = "http://localhost/AYA.SlnSinort/PropuestaNormativa/DetallePropuesta?";
var LinkSolicitudTarea = "http://localhost/AYA.SlnSinort/Home/TareasPendientes";
var LinkSolicitudResponder = "http://localhost/AYA.SlnSinort/NormativaReglamentacionTecnica/VerSolicitudes?";
var LinkBusquedaFichaTecnica = "http://localhost/AYA.SlnSinort/Home/Normativa_Reglamentacion_Tecnica?solicitud=`";
//aya-vsrv-apptt:2525
//http://aya-vsrv-apptt:2525/Home/TareasPendientes
//http://aya-vsrv-wstt:2005/Sinort.svc
//http://aya-vsrv-wstt:2005/SinortCatalogos.svc
var server = window.location.protocol + "//" + "10.50.1.97:6075" + "/" + (window.location.pathname.split('/')[1]) + "/";
var SinorLoginWCF = "http://10.50.1.123:2070/Sinort.svc";
var SinorSignupWCF = "http://10.50.1.123:2070/SinortCatalogos.svc";
var server = window.location.protocol + "//" + "localhost" + "/" + (window.location.pathname.split('/')[1]) + "/";
var SinorLoginWCF = "http://localhost/AYA.SlnSinort.WCF/Sinort.svc";
var SinorSignupWCF = "http://localhost/AYA.SlnSinort.WCF/SinortCatalogos.svc";
var string_empty = "";
var Atesa = {};
var StarterTemplateVisible = true;

View file

@ -98,7 +98,7 @@ $('#tableFichas').on('click', 'button', function () {
url = url.replace("Controller", "NormativaReglamentacionTecnica");
url = url.replace("[$ID]", ROT47(data.IdFichaTecnica.toString()));
url = url.replace("[$ESTADO]", ROT47("1"));
$ESTADO
document.location.href = url;

View file

@ -36,10 +36,14 @@ jQuery(document).ready(function () {
$('#tableMatriz').TableInit(0, false, false, false, false, null, null);
$('#tableDocAuxiliares').TableInit(0, false, false, false, false, null, null);
$('#tableDocAuxiliares').DataTable().column(0).visible(false);
$('#tableDocAuxiliares').DataTable().column(5).visible(false);
$('#tableDocAuxiliares').DataTable().column(6).visible(false);
$('#tableListaDocumentosAuxiliares').TableInit(0, false, false, false, false, null, null);
$('#tableListaDocumentosAuxiliares').DataTable().column(0).visible(false);
$('#tableDocExpediente').TableInit(0, false, false, false, false, null, null);
$('#tableDocExpediente').DataTable().column(0).visible(false);
$('#tableDocExpediente').DataTable().column(6).visible(false);
$('#tableDocExpediente').DataTable().column(7).visible(false);
$('#tableDocForo').TableInit(0, false, false, false, false, null, null);
$('#tableDocForo').DataTable().column(0).visible(false);
$('#tableDocForo').DataTable().column(4).visible(false);
@ -1433,7 +1437,7 @@ this.GuardarComentarioMatriz = function () {
var uri = SinortWCF + '/api/GuardarComentarioProyectoNormativo';
model.Comentario = {
IdComentarioProyecto: IDComentarioProyecto != null ? IDComentarioProyecto : null,
IdComentarioProyecto: IDComentarioProyecto != null ? IDComentarioProyecto : 0,
IdProyectoNormativo: model.ProyectoNormativo.IdProyectoNormativo,
Asunto: $("#txtAsuntoMatriz").val(),
Capitulo: $("#txtCapituloMatriz").val(),
@ -1588,16 +1592,12 @@ this.CargarTablaDocumentosAuxiliares = function (data) {
$.each(lista, function (key, item) {
//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);
var option2 = $("#ucEliminarDocumento").html();
option2 = replaceAll("[$nombre]", "'" + item.RutaDescarga + "'", option2);
option2 = replaceAll("[$id]", item.IdDocumentoAdjunto, option2);
option2 = replaceAll("[$usuario]", "'" + item.UsuarioCreacion + "'", option2);
//option2 = replaceAll("[$nombre]", "'" + item.RutaDescarga + "'", option2);
//option2 = replaceAll("[$id]", item.IdDocumentoAdjunto, option2);
//option2 = replaceAll("[$usuario]", "'" + item.UsuarioCreacion + "'", option2);
var ext = item.TipoArchivo.toLowerCase();
switch (ext) {
@ -1626,11 +1626,16 @@ this.CargarTablaDocumentosAuxiliares = function (data) {
option = replaceAll("[$icon]", "fa-file-text", option);
}
$('#tableDocAuxiliares').DataTable().column(5).visible(false);
$('#tableDocAuxiliares').DataTable().column(6).visible(false);
tableDocAuxiliares.row.add([item.IdDocumentoAdjunto,
option,
item.Nombre,
item.UsuarioCreacion,
option2]).draw();
option2,
item.RutaFisica,
item.RutaDescarga]).draw();
});
ENDREQUEST();
@ -1748,11 +1753,11 @@ this.CargarTablaDocumentosExpediente = function (data) {
var option = $("#ucAbrirDocumento").html();
option = replaceAll("[$ruta]", "'" + item.RutaDescarga + "'", option);
//option = replaceAll("[$ruta]", "'" + item.RutaDescarga + "'", option);
var option2 = $("#ucEliminarDocumento").html();
option2 = replaceAll("[$nombre]", "'" + item.RutaDescarga + "'", option2);
option2 = replaceAll("[$id]", item.IdDocumentoAdjunto, option2);
option2 = replaceAll("[$usuario]", "'" + item.UsuarioCreacion + "'", option2);
//option2 = replaceAll("[$nombre]", "'" + item.RutaDescarga + "'", option2);
//option2 = replaceAll("[$id]", item.IdDocumentoAdjunto, option2);
//option2 = replaceAll("[$usuario]", "'" + item.UsuarioCreacion + "'", option2);
var ext = item.TipoArchivo.toLowerCase();
switch (ext) {
case 'pdf':
@ -1785,7 +1790,9 @@ this.CargarTablaDocumentosExpediente = function (data) {
item.Nombre,
item.TipoExpediente,
item.UsuarioCreacion,
option2]).draw();
option2,
item.RutaFisica,
item.RutaDescarga]).draw();
});
ENDREQUEST();
@ -1978,16 +1985,111 @@ $('#tableDocForo').on('click', 'button', function () {
var data = $('#tableDocForo').DataTable().row($(this).parents('tr')).data();
var uri = server + 'VisualizarDocumentos';
model = {
var uri = server + '/PropuestaNormativa/VisualizarDocumentos';
var model1 = {
Usuario: data[4],
Contrasena: data[5]
}
AjaxPostData(uri, model, false, false, AbrirDocumento, null, null);
AjaxPostData(uri, model1, false, false, AbrirDocumento, null, null);
});
$('#tableDocAuxiliares').on('click', 'button', function () {
var data = $('#tableDocAuxiliares').DataTable().row($(this).parents('tr')).data();
if (this.id == 'btnAbrirAdjuntos') {
var uri = server + '/PropuestaNormativa/VisualizarDocumentos';
var model1 = {
Usuario: data[5],
Contrasena: data[6]
}
AjaxPostData(uri, model1, false, false, AbrirDocumento, null, null);
}
if (this.id == 'btnEliminarAdjuntos') {
if (Estado != "11") {
if (!confirm("¿Desea eliminar el documento?")) return;
if (UsuarioSistema == data[3]) {
var uri = SinortWCF + '/api/EliminarbaseAdjunto';
var model = {
Id: data[0]
};
AjaxPostData(uri, model, false, true, null, null, null);
CargarDocumentosExpediente();
CargarDocumentosAuxiliares();
CargarListaDocumentosAuxiliares();
} else {
toastr.warning(Message_NoGrants, Message_Warning);
}
}
else {
toastr.warning("No puede eliminar documentos en estado final", Message_Warning);
}
}
});
$('#tableDocExpediente').on('click', 'button', function () {
var data = $('#tableDocExpediente').DataTable().row($(this).parents('tr')).data();
if (this.id == 'btnAbrirAdjuntos') {
var uri = server + '/PropuestaNormativa/VisualizarDocumentos';
var model1 = {
Usuario: data[6],
Contrasena: data[7]
}
AjaxPostData(uri, model1, false, false, AbrirDocumento, null, null);
}
if (this.id == 'btnEliminarAdjuntos') {
if (Estado != "11") {
if (!confirm("¿Desea eliminar el documento?")) return;
if (UsuarioSistema == data[4]) {
var uri = SinortWCF + '/api/EliminarbaseAdjunto';
var model = {
Id: data[0]
};
AjaxPostData(uri, model, false, true, null, null, null);
CargarDocumentosExpediente();
CargarDocumentosAuxiliares();
CargarListaDocumentosAuxiliares();
} else {
toastr.warning(Message_NoGrants, Message_Warning);
}
}
else {
toastr.warning("No puede eliminar documentos en estado final", Message_Warning);
}
}
});
this.AbrirDocumento = function (data) {
var doc = RepositorioVirtual + data;
if (data != "No existe") {
@ -2069,13 +2171,13 @@ $('#tableDocEvento').on('click', 'button', function () {
var data = $('#tableDocEvento').DataTable().row($(this).parents('tr')).data();
var uri = server + 'VisualizarDocumentos';
model = {
var uri = server + '/PropuestaNormativa/VisualizarDocumentos';
var model1 = {
Usuario: data[4],
Contrasena: data[5]
}
AjaxPostData(uri, model, false, false, AbrirDocumento, null, null);
AjaxPostData(uri, model1, false, false, AbrirDocumento, null, null);
});
@ -2154,13 +2256,13 @@ $('#tableDocMatriz').on('click', 'button', function () {
var data = $('#tableDocMatriz').DataTable().row($(this).parents('tr')).data();
var uri = server + 'VisualizarDocumentos';
model = {
var uri = server + '/PropuestaNormativa/VisualizarDocumentos';
var model1 = {
Usuario: data[4],
Contrasena: data[5]
}
AjaxPostData(uri, model, false, false, AbrirDocumento, null, null);
AjaxPostData(uri, model1, false, false, AbrirDocumento, null, null);
});
@ -2169,6 +2271,9 @@ $('#tableDocMatriz').on('click', 'button', function () {
this.AbrirAdjuntos = function (id) {
$('#progress .progress-bar').css(
'width', '0%');
if (EsPromotor == false) {
if (id == 2 && ValidarPermisos('Accesar documentos auxiliares del foro').length <= 0) {
@ -2311,7 +2416,7 @@ this.GuardarAdjuntos = function (nombre) {
AjaxPostData(uri, model, true, true, CargarGridComentario, null, null);
if (TipoExp = 'Versión final' && IdSubTipoDocumento == 4) {
if (TipoExp == 'Versión final' && IdSubTipoDocumento == 4) {
ActualizarEstadoProyecto();
}
@ -2468,6 +2573,7 @@ function ActualizarUpload() {
}
this.ActualizarEstadoProyecto = function () {

View file

@ -269,10 +269,10 @@ background-image:url(http://AYA-VSRV-APPTT:2525/dist/img/ajax-loader.gif);backgr
<th></th>
<th></th>
<th class="col-sm-4">Nombre</th>
<th class="col-sm-6">Creado por</th>
<th class="col-sm-4">Creado por</th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
</table>
@ -370,6 +370,8 @@ background-image:url(http://AYA-VSRV-APPTT:2525/dist/img/ajax-loader.gif);backgr
<th class="col-sm-4">Tipo</th>
<th class="col-sm-4">Creado por</th>
<th class="col-sm-1"></th>
<th></th>
<th></th>
</tr>
</thead>
@ -437,14 +439,14 @@ background-image:url(http://AYA-VSRV-APPTT:2525/dist/img/ajax-loader.gif);backgr
<div id="ucAbrirDocumento" style="display:none;">
<span>
<button type="button" id="btnAbrirAdjuntos" class="btn btn-default btn-xs" onclick="AbrirDocAdjuntos([$ruta])">
<button type="button" id="btnAbrirAdjuntos" class="btn btn-default btn-xs" >
<i class="fa [$icon]"></i>&nbsp;&nbsp;
</button>
</span>
</div>
<div id="ucEliminarDocumento" style="display:none;">
<span>
<button type="button" id="btnEliminarAdjuntos" class="btn btn-default btn-xs" onclick="RemoverAdjunto([$nombre], [$id], [$usuario])">
<button type="button" id="btnEliminarAdjuntos" class="btn btn-default btn-xs" >
<i class="fa fa-trash"></i>&nbsp;&nbsp;
</button>
</span>
@ -631,7 +633,7 @@ background-image:url(http://AYA-VSRV-APPTT:2525/dist/img/ajax-loader.gif);backgr
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger btn-sm" data-dismiss="modal">Cerrar</button>
<button type="button" class="btn btn-danger btn-sm" data-dismiss="modal" >Cerrar</button>
</div>
</div>
</div>
@ -885,7 +887,7 @@ background-image:url(http://AYA-VSRV-APPTT:2525/dist/img/ajax-loader.gif);backgr
<th class="col-sm-4">Nombre</th>
<th class="col-sm-4">Creado por</th>
<th></th>
<th></th>
</tr>
</thead>
</table>
@ -999,7 +1001,7 @@ background-image:url(http://AYA-VSRV-APPTT:2525/dist/img/ajax-loader.gif);backgr
<th class="col-sm-4">Nombre</th>
<th class="col-sm-4">Creado por</th>
<th></th>
<th></th>
</tr>
</thead>
</table>

View file

@ -23,13 +23,13 @@
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="SinortWCF" value="http://10.50.1.123:2070/Sinort.svc" />
<!-- <add key="SinortWCF" value="http://10.50.1.123:2070/Sinort.svc" />
<add key="SinortCatalogosWCF" value="http://10.50.1.123:2070/SinortCatalogos.svc" />
<add key="FileRepository" value="\\10.50.1.97\Aplicaciones\SINORT(6075)\Raiz\DocumentosSinort\" />
<add key="HttpRepository" value="http://10.50.1.97:6075/DocumentosSinort/" />
<add key="FileUploadHandler" value="http://10.50.1.97:6075/FileUploadHandler" />
<add key="RutaLogoSINORT" value="http://10.50.1.97:6075/dist/img/" />
<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="SinortCatalogosWCF" value="http://aya-vsrv-wstt:2005/SinortCatalogos.svc" />
@ -49,13 +49,13 @@
<add key="const_strGaveta" value="Sinort"/>
<add key="const_strLlaves" value="Nombre_Documento"/>
<!-- <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="FileRepository" value="C:\DocumentosSinort\" />
<add key="HttpRepository" value="http://localhost/AYA.SlnSinort/DocumentosSINORT/" />
<add key="FileUploadHandler" value="http://localhost/AYA.SlnSinort/FileUploadHandler" />
<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>
<system.web>
@ -63,7 +63,7 @@
<sessionState timeout="200">
<sessionState timeout="20">
</sessionState>
<authentication mode="None" />
<compilation debug="true" targetFramework="4.5">