permisos 2.1
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C414
This commit is contained in:
parent
c30d70ab66
commit
f921a04eea
2 changed files with 13 additions and 12 deletions
|
|
@ -116,12 +116,12 @@ $('#tableSitios').on('click', 'button', function () {
|
|||
var data = $('#tableSitios').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
|
||||
//if (ValidarPermisos('Búsqueda rápida').length <= 0) {
|
||||
// if (ValidarPermisos('Super Usuario').length <= 0) {
|
||||
// toastr.warning(Message_NoGrants, Message_Warning);
|
||||
// return;
|
||||
// }
|
||||
//}
|
||||
if (ValidarPermisos('Búsqueda rápida').length <= 0) {
|
||||
if (ValidarPermisos('Super Usuario').length <= 0) {
|
||||
toastr.warning(Message_NoGrants, Message_Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
url = $("#hiddenHref").val();
|
||||
url = url.replace("View", "FichaTecnica");
|
||||
|
|
|
|||
|
|
@ -404,15 +404,16 @@ this.GuardarRespuestaSolicitud = function () {
|
|||
this.GuardarRespuestaSolicitudCompra = function () {
|
||||
|
||||
if (EstadoTipoUsuario == "1") {
|
||||
|
||||
justificacion = $('#txtJustificacionCompra').val();
|
||||
|
||||
if (EstadoConfirmacion) {
|
||||
if (ValidarPermisos('Autorización de compra de documento técnico').length <= 0) {
|
||||
if (ValidarPermisos('Super Usuario').length <= 0) {
|
||||
toastr.warning(Message_NoGrants, Message_Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
justificacion = $('#txtJustificacionCompra').val();
|
||||
|
||||
if (EstadoConfirmacion) {
|
||||
if (!confirm("¿Está seguro que desea autorizar la solicitud de compra? .\n ¿Desea continuar?"))
|
||||
{ return; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue