-- globalDtUsuarios
This commit is contained in:
@@ -78,7 +78,7 @@ Public Class E48 : Implements IHttpHandler, IRequiresSessionState
|
||||
|
||||
Dim IDPoliza As Integer = 0
|
||||
Dim usuario As String = JsonRequest("usuario").ToString()
|
||||
If ObjUsuarios.GetUsuariosEmpresas(-1) Then
|
||||
If ObjUsuarios.GetUsuariosEmpresas(-1, -1) Then
|
||||
CveUsuario = ObjUsuarios.DtResultados.FiltroPrimeroValor("CveUsuario", String.Format("Usuario = '{0}' ", usuario)).ToEntero
|
||||
If CveUsuario > 0 Then
|
||||
UsuarioActual = ValidaUsuarioSistema(CveUsuario, CveEmpresa)
|
||||
|
||||
@@ -511,7 +511,7 @@ Public Class WSSIGApp
|
||||
' End If
|
||||
'End If
|
||||
|
||||
If ObjUsuarios.GetUsuariosEmpresas(Salida.CveUsuario) Then
|
||||
If ObjUsuarios.GetUsuariosEmpresas(Salida.CveUsuario, Salida.CveEmpresa) Then
|
||||
For Each Row As DataRow In ObjUsuarios.DtResultados.FiltraParametros("", "", {"CveEmpresa", "CveEncuestaCRM", "Empresa", "Tipo_CentroCosto"}).Rows
|
||||
Empresas.Add(New WsEmpresa With {
|
||||
.CveEmpresa = Row("CveEmpresa").ToString.ToEntero(),
|
||||
@@ -572,7 +572,7 @@ Public Class WSSIGApp
|
||||
Next
|
||||
End If
|
||||
Salida.Modulos = UsuariosModulos
|
||||
If tUsuario.GetUsuariosEmpresas(Salida.CveUsuario) Then
|
||||
If tUsuario.GetUsuariosEmpresas(Salida.CveUsuario, Salida.CveEmpresa) Then
|
||||
For Each Row As DataRow In tUsuario.DtResultados.Rows
|
||||
Empresas.Add(New WsEmpresa With {.CveEmpresa = Row("CveEmpresa").ToString.ToEntero, .Empresa = Row("Empresa").ToString})
|
||||
Next
|
||||
|
||||
Reference in New Issue
Block a user