diff --git a/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/PropuestaNormativa/DetallePropuestaNormativa.js b/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/PropuestaNormativa/DetallePropuestaNormativa.js index d6c41b485..4ba232ece 100644 --- a/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/PropuestaNormativa/DetallePropuestaNormativa.js +++ b/AYA.SlnSynor/AYA.SlnSynor/Sinort-Scripts/PropuestaNormativa/DetallePropuestaNormativa.js @@ -81,6 +81,22 @@ jQuery(document).ready(function () { EsPromotor = true; } + if (EsPromotor == false) { + + if (ValidarPermisos('Ingreso y actualización de área de proyecto').length <= 0 || Estado != Estados.Activo.Codigo || Estado != Estados.Inicial.Codigo) { + $("#tabs").tabs({ + disabled: [2] + }); + } + + if (ValidarPermisos('Accesar expediente de foro').length <= 0 || Estado != Estados.Activo.Codigo || Estado != Estados.Inicial.Codigo) { + $("#tabs").tabs({ + disabled: [3] + }); + } + + } + }); @@ -183,21 +199,6 @@ this.getDataModel = function () { $('#btnModificar').disable(); - if (EsPromotor == false) { - - if (ValidarPermisos('Ingreso y actualización de área de proyecto').length <= 0 || Estado != Estados.Activo.Codigo || Estado != Estados.Inicial.Codigo) { - $("#tabs").tabs({ - disabled: [2] - }); - } - - if (ValidarPermisos('Accesar expediente de foro').length <= 0 || Estado != Estados.Activo.Codigo || Estado != Estados.Inicial.Codigo) { - $("#tabs").tabs({ - disabled: [3] - }); - } - - } CargarUsuarios(); } @@ -1649,11 +1650,13 @@ this.Export2Doc = function (element, filename) { this.ExportarADoc = function (TipoComentario, filename) { + var rutaImagenes = 'http://localhost/AYA.SlnSinort/dist/img/'; + var preHtml = "SINORT"; var postHtml = ""; var html = preHtml; - html = html + '

' ; + html = html + '

' ; html = html + '
' html = html + '

SISTEMA DE NORMATIVA Y REGULACION TECNICA DEL AyA

' html = html + '
'