agregando validación al IE
This commit is contained in:
@@ -423,7 +423,19 @@ Partial Class Bancos_IE
|
|||||||
End Set
|
End Set
|
||||||
|
|
||||||
End Property
|
End Property
|
||||||
|
Private Property PermisoComplementoVigente As Boolean
|
||||||
|
Get
|
||||||
|
If ViewState("PermisoComplementoVigente") Is Nothing Then
|
||||||
|
Return False
|
||||||
|
Else
|
||||||
|
Return CBool(ViewState("PermisoComplementoVigente"))
|
||||||
|
End If
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
ViewState("PermisoComplementoVigente") = value
|
||||||
|
End Set
|
||||||
|
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
#Region "CANCELACIÓN COMPLEMENTO MODAL V2"
|
#Region "CANCELACIÓN COMPLEMENTO MODAL V2"
|
||||||
@@ -1090,6 +1102,9 @@ Partial Class Bancos_IE
|
|||||||
|
|
||||||
If (Not VerificaComplementos(True)) And UsuarioActual.TienePermisoProceso(99) And ObjIE.CveEstatusIE <> 2 Then
|
If (Not VerificaComplementos(True)) And UsuarioActual.TienePermisoProceso(99) And ObjIE.CveEstatusIE <> 2 Then
|
||||||
BtnEditar.Visible = True
|
BtnEditar.Visible = True
|
||||||
|
PermisoComplementoVigente = True
|
||||||
|
Else
|
||||||
|
BtnEditar.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
UpGuardar.Update()
|
UpGuardar.Update()
|
||||||
@@ -5598,14 +5613,14 @@ Partial Class Bancos_IE
|
|||||||
BtnEditar.Visible = False
|
BtnEditar.Visible = False
|
||||||
UpGuardar.Update()
|
UpGuardar.Update()
|
||||||
|
|
||||||
ControlesEdicion(True)
|
ControlesEdicion()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub ControlesEdicion(mostrar As Boolean)
|
Private Sub ControlesEdicion()
|
||||||
|
|
||||||
|
|
||||||
If mostrar Then
|
If PermisoComplementoVigente Then
|
||||||
|
|
||||||
DdlTipoTransaccion.Enabled = True
|
DdlTipoTransaccion.Enabled = True
|
||||||
LblCuenta.Visible = False
|
LblCuenta.Visible = False
|
||||||
@@ -5617,12 +5632,11 @@ Partial Class Bancos_IE
|
|||||||
|
|
||||||
CargaCuentasDepositoClientes()
|
CargaCuentasDepositoClientes()
|
||||||
|
|
||||||
|
Else
|
||||||
|
TxtFolio.Enabled = True
|
||||||
|
TxtObservaciones.Enabled = True
|
||||||
|
|
||||||
|
UpDatos.Update()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
Reference in New Issue
Block a user