Clientes reacomodo, limpieza modulos, rep compras af

This commit is contained in:
Oscar Irigoyen
2022-10-05 09:33:29 -07:00
parent 6e0a0e7dc9
commit bbb9f23c33
21 changed files with 670 additions and 1781 deletions

View File

@@ -8,7 +8,7 @@
<asp:UpdatePanel runat="server">
<ContentTemplate>
<li>
<asp:LinkButton ID="LBAdd" PostBackUrl="/Sistemas/Empresa.aspx" CommandArgument="-1" runat="server"><i class="fa fa-plus-circle"></i> Nueva Empresa</asp:LinkButton>
<asp:LinkButton ID="LBAdd" PostBackUrl="/Sistemas/Empresa.aspx" CommandArgument="-1" runat="server" Visible="false"><i class="fa fa-plus-circle"></i> Nueva Empresa</asp:LinkButton>
</li>
</ContentTemplate>
</asp:UpdatePanel>

View File

@@ -45,12 +45,13 @@ Partial Class Sistemas_CatEmpresas
#End Region
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
'If UsuarioActual.CveRol <> 1 Then Response.Redirect("/Inicio.aspx")
ViewState("Orden") = "CveEmpresa ASC"
ViewState("CveRol") = -1
'CargaRoles()
CargaDatos()
If UsuarioActual.CveRol = 1 Or UsuarioActual.CveUsuario = 100 Then
LBAdd.Visible = True
End If
End If
End Sub