Compras Ajuste Gridview vinculacion anticipos notas, pomociones, ya no bloquear proposiones con padre

This commit is contained in:
Oscar Irigoyen
2023-02-09 19:36:35 -07:00
parent 2bd559fbc0
commit 3adb2aa212
4 changed files with 25 additions and 21 deletions

View File

@@ -873,7 +873,10 @@
<div class="col-md-6">
<asp:UpdatePanel ID="UPPAnticiposSel" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GvAnticiposSel" runat="server" CssClass="table table-striped table-hover Widthall" AutoGenerateColumns="False" DataKeyNames="TipoDocto,CveCompraNC" ClientIDMode="Static" EmptyDataText="" Caption="Anticipos/NC Vinculados" GridLines="None">
<asp:Literal runat="server" ID="LtlGvAnticiposSel" Visible="false">Anticipos/NC Vinculados</asp:Literal>
<asp:GridView ID="GvAnticiposSel" runat="server" CssClass="table table-striped table-hover ScrollAD" Width="100%" AutoGenerateColumns="False" DataKeyNames="TipoDocto,CveCompraNC" ClientIDMode="Static" EmptyDataText="" data-height="280"
GridLines="None">
<Columns>
<asp:TemplateField>
<ItemTemplate>

View File

@@ -3122,6 +3122,10 @@ Partial Class Compras_Compras
GvAnticiposSel.DataSource = dtnc
GvAnticiposSel.DataBind()
If dtnc IsNot Nothing AndAlso dtnc.Rows.Count > 0 Then
LtlGvAnticiposSel.Visible = True
End If
'' VALIDA ELIMINAR COMPRA, QUE NO TENGA PAGOS CONCILIADOS
If (UsuarioActual.TienePermisoProceso(77) OrElse UsuarioActual.TienePermisoProceso(135)) AndAlso dr("NumPagosConciliados").ToString.ToEntero = 0 Then ' Eliminar compra