git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C454
This commit is contained in:
parent
cf93170ce0
commit
677f7f21bc
3 changed files with 38 additions and 11 deletions
|
|
@ -621,6 +621,29 @@ namespace AYA.SlnSinort.WCF
|
|||
correo.DESTINATARIOS = "jnunez@atesacr.com";
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
break;
|
||||
|
||||
case "Correo Evento Calendario":
|
||||
//Correo Evento Calendario
|
||||
plantilla = Listaplantillas.Where(p => p.NombrePlatilla == model.PlantillaEmail.NombrePlatilla).FirstOrDefault();
|
||||
correo = new ServiciosUsuariosWCF.correoEL();
|
||||
correo.FORMATO = "html";
|
||||
correo.ASUNTO = plantilla.Subject.Replace("$Asunto", model.ProyectoNormativo.Matriz);
|
||||
body = plantilla.Body.Replace("$Descripcion", model.ProyectoNormativo.DescTipoProyecto).Replace("|", "</br>");
|
||||
correo.CUERPO = body;
|
||||
|
||||
foreach (var participantes in model.ListaConvocatoria)
|
||||
{
|
||||
catalogo.codigo = participantes.UsuarioSistema;
|
||||
usuario = UsuarioDAL.BuscarUsuario(catalogo);
|
||||
string fechamaxima = Convert.ToDateTime(model.ProyectoNormativo.FechaMaximaConfirmarParticipacion).ToString("dd/MM/yyyy");
|
||||
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 = "jnunez@atesacr.com";
|
||||
|
||||
respuesta = respuestaAyA.enviarCorreo(correo);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@ this.getDataModel = function () {
|
|||
$("#btnAgregarElemento").unbind("click");
|
||||
$("#btnAgregarElemento").click(function () {
|
||||
|
||||
if (EsPromotor == false && Participa == true || EsPromotor == true) {
|
||||
if (EsPromotor == false && Participa == true || EsPromotor == true || ValidarPermisos('Administrador Funcional').length > 0) {
|
||||
$("#divRespuestaMatriz").empty();
|
||||
$("#lblAsuntoM").text("*Asunto");
|
||||
$("#lblCapitulo").text("*Capítulo");
|
||||
|
|
@ -662,7 +662,7 @@ this.BuscarUsuario = function () {
|
|||
SelectedCatalog = 'Usuarios';
|
||||
|
||||
|
||||
if (EsPromotor == true) {
|
||||
if (EsPromotor == true || ValidarPermisos('Administrador Funcional').length > 0) {
|
||||
if ($.fn.DataTable.isDataTable('#tableUsuarios')) {
|
||||
|
||||
LoadMessage();
|
||||
|
|
@ -1830,7 +1830,7 @@ this.AbrirAdjuntos = function (id) {
|
|||
$('#modalDocumentosAuxiliares').modal('show');
|
||||
break;
|
||||
case 3:
|
||||
if (EsPromotor == false && Participa == true || EsPromotor == true) {
|
||||
if (EsPromotor == false && Participa == true || EsPromotor == true || ValidarPermisos('Administrador Funcional').length > 0) {
|
||||
SubTipoproyecto = SubDocumento.DocumentoAuxiliar.Descripcion;
|
||||
$('#divEnviarDocAux').hide();
|
||||
$('#divTipoExpediente').hide();
|
||||
|
|
@ -2346,7 +2346,7 @@ $('#tableParticipantes').on('click', 'button', function () {
|
|||
|
||||
var data = $('#tableParticipantes').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
if (EsPromotor == true) {
|
||||
if (EsPromotor == true || ValidarPermisos('Administrador Funcional').length > 0) {
|
||||
EliminarConvocatoriaProyectoNormativo(data[1]);
|
||||
ENDREQUEST();
|
||||
} else {
|
||||
|
|
@ -2368,11 +2368,16 @@ $('#tableDiscusion').on('click', 'button', function () {
|
|||
|
||||
});
|
||||
this.ExportarDocumento = function (TipoComentario, filename) {
|
||||
|
||||
if(EsPromotor == true || ValidarPermisos('Administrador Funcional').length > 0){
|
||||
if (TipoComentario == 'Matriz') {
|
||||
ExportarAExcel(TipoComentario, filename);
|
||||
} else {
|
||||
ExportarADoc(TipoComentario, filename);
|
||||
}
|
||||
} else {
|
||||
toastr.warning(Message_NoGrants, Message_Warning);
|
||||
}
|
||||
}
|
||||
this.ExportarADoc = function (TipoComentario, filename) {
|
||||
|
||||
|
|
|
|||
|
|
@ -51,13 +51,12 @@ $('#tableSitios').on('click', 'button', function () {
|
|||
|
||||
|
||||
|
||||
if (data.PromotorProyecto != UsuarioSistema) {
|
||||
if (data.PromotorProyecto != UsuarioSistema || ValidarPermisos('Administrador Funcional').length <= 0) {
|
||||
//ValidarPermisos('Accesar expediente de propuesta normativa').length <= 0
|
||||
if ( data.IdEstado == Estados.Contruccion.Codigo) {
|
||||
|
||||
if (ValidarPermisos('Accesar expediente de propuesta normativa').length <= 0 || data.IdEstado == Estados.Contruccion.Codigo) {
|
||||
if (ValidarPermisos('Administrador Funcional').length <= 0) {
|
||||
toastr.warning(Message_NoGrants, Message_Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue