From e8887fa35877f721ae0b100eccabddca59c1ad34 Mon Sep 17 00:00:00 2001
From: dmendez
Date: Fri, 13 Jul 2018 17:21:07 +0000
Subject: [PATCH] git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C246
---
.../DetallePropuestaNormativa.js | 35 ++++++++++---------
1 file changed, 19 insertions(+), 16 deletions(-)
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 + '
'