Validacion Promotor de Proyecto
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C217
This commit is contained in:
parent
8cefc34fa4
commit
e3b29ca6a3
1 changed files with 12 additions and 0 deletions
|
|
@ -23,6 +23,8 @@ this.CargarTablaSitios = function (data) {
|
|||
{ "data": "NombreProyectoNormativo" },
|
||||
{ "data": "IdTipoProyecto", "visible": false },
|
||||
{ "data": "DescTipoProyecto" },
|
||||
{ "data": "PromotorProyecto", "visible": false },
|
||||
{ "data": "IdEstado", "visible": false },
|
||||
{ "data": null, className: "center", defaultContent: Seleccionar }
|
||||
];
|
||||
|
||||
|
|
@ -38,6 +40,14 @@ this.CargarTablaSitios = function (data) {
|
|||
|
||||
$('#tableSitios').on('click', 'button', function () {
|
||||
|
||||
if (data.PromotorProyecto != UsuarioSistema) {
|
||||
if (ValidarPermisos('Accesar expediente de propuesta normativa').length <= 0) {
|
||||
toastr.warning('No tiene permisos para ejecutar esta opción', Message_Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var data = $('#tableSitios').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
url = $("#hiddenHref").val();
|
||||
|
|
@ -45,6 +55,8 @@ $('#tableSitios').on('click', 'button', function () {
|
|||
url = url.replace("Controller", "PropuestaNormativa");
|
||||
url = url.replace("[$ID]", ROT47(data.IdProyectoNormativo.toString()));
|
||||
url = url.replace("[$TIPO]", ROT47(data.IdTipoProyecto.toString()));
|
||||
url = url.replace("[$Promotor]", data.PromotorProyecto.toString());
|
||||
url = url.replace("[$Estado]", data.IdEstado.toString());
|
||||
|
||||
document.location.href = url;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue