This commit is contained in:
dmendez 2018-07-13 17:21:07 +00:00
parent 14b684f1dd
commit e8887fa358

View file

@ -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 = "<html xmlns:o='urn:schemas-microsoft-com:office:office' xmlns:w='urn:schemas-microsoft-com:office:word' xmlns='http://www.w3.org/TR/REC-html40'><head><meta charset='utf-8'><title>SINORT</title></head><body>";
var postHtml = "</body></html>";
var html = preHtml;
html = html + '<p><center><img src="http://localhost/AYA.SlnSinort/dist/img/bannersinort.png" style="margin: 0 auto;" align="middle" width="300"></center></p>' ;
html = html + '<p><center><img src=" ' + rutaImagenes + 'bannersinort.png" style="margin: 0 auto;" align="middle" width="300"></center></p>' ;
html = html + '<br/>'
html = html + '<center><h1>SISTEMA DE NORMATIVA Y REGULACION TECNICA DEL AyA</h1></center>'
html = html + '<br/>'