Cambio entre portales (portal del proveedor)
This commit is contained in:
@@ -371,7 +371,8 @@ Partial Class Sistemas_PopUpAddUsuario
|
||||
' Return
|
||||
'End If
|
||||
|
||||
If UsuarioActual.Empresa.CvePlataforma = 1 Then
|
||||
'SI ES UN USUARIO DEL ERP, DEBE DARLE ACCESO AL CLIENTE
|
||||
If UsuarioActual.Empresa.CvePlataforma = 1 AndAlso CveCliente > 0 Then
|
||||
Dim DtClientesAcceso As DataTable = Nothing
|
||||
If Not HuboError AndAlso ObjUsuarios.GetUsuarioCliente(CveUsuario, CveCliente) Then
|
||||
'DEBE AGREGAR EL USUARIO AL CLIENTE
|
||||
@@ -383,6 +384,19 @@ Partial Class Sistemas_PopUpAddUsuario
|
||||
Else
|
||||
HuboError = True
|
||||
End If
|
||||
'SI ES UN USUARIO DEL ERP, DEBE DARLE ACCESO AL PROVEEDOR
|
||||
ElseIf UsuarioActual.Empresa.CvePlataforma = 1 AndAlso CveProveedor > 0 Then
|
||||
Dim DtProveedoresAcceso As DataTable = Nothing
|
||||
If Not HuboError AndAlso ObjUsuarios.GetUsuarioProveedor(CveUsuario, CveProveedor) Then
|
||||
'DEBE AGREGAR EL USUARIO AL PROVEEDOR
|
||||
If ObjUsuarios.DtResultados.Rows.Count = 0 Then
|
||||
If Not HuboError AndAlso Not ObjUsuarios.AddUsuarioProveedor(CveUsuario, CveProveedor) Then
|
||||
HuboError = True
|
||||
End If
|
||||
End If
|
||||
Else
|
||||
HuboError = True
|
||||
End If
|
||||
ElseIf UsuarioActual.Empresa.CvePlataforma = 3 Then
|
||||
If Not ObjUsuarios.UpdateUsuario(LtlUsuario.Text.Trim, TxtNombre.Text, -1, TxtEmail.Text, -1, -1, False, True, -1, CveUsuario, -1, -1) Then
|
||||
HuboError = True
|
||||
|
||||
Reference in New Issue
Block a user