Proveedores grid representates
This commit is contained in:
@@ -380,6 +380,9 @@ Partial Class Compras_Proveedores
|
||||
End If
|
||||
HlEvento.Visible = True
|
||||
HlEvento.NavigateUrl = "/OI/PopUpAgenda.aspx?CveTipoEvento=2&CveProveedor=" & CveProveedor & "&TB_iframe=true&height=370&width=600;"
|
||||
|
||||
CargaRepresentantes()
|
||||
|
||||
Else
|
||||
'Configuración de Modalidad Insert
|
||||
|
||||
@@ -500,6 +503,30 @@ Partial Class Compras_Proveedores
|
||||
'ViewState("OUsuario") = "Usuario DESC"
|
||||
End Sub
|
||||
|
||||
|
||||
Private Sub CargaRepresentantes()
|
||||
|
||||
If CveProveedor > 0 Then
|
||||
|
||||
Dim ObjProveedores As New ClsCompProveedores
|
||||
|
||||
If ObjProveedores.GetRePresentanteLegal(-1, UsuarioActual.CveEmpresa, CveProveedor) Then
|
||||
|
||||
GvRepresentante.DataSource = ObjProveedores.DtResultados
|
||||
Else
|
||||
GvRepresentante.DataSource = Nothing
|
||||
End If
|
||||
|
||||
ObjProveedores.Dispose()
|
||||
|
||||
GvRepresentante.DataBind()
|
||||
End If
|
||||
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
Private Sub CargaCuentasContables(Optional IdCuentaPadre As Integer = -1)
|
||||
If UsuarioActual.Empresa.UsaContabilidad Then
|
||||
Dim ObjContabilidad As New ClsContPAQi(UsuarioActual.Empresa)
|
||||
|
||||
Reference in New Issue
Block a user