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"> <div class="col-md-6">
<asp:UpdatePanel ID="UPPAnticiposSel" runat="server" UpdateMode="Conditional"> <asp:UpdatePanel ID="UPPAnticiposSel" runat="server" UpdateMode="Conditional">
<ContentTemplate> <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> <Columns>
<asp:TemplateField> <asp:TemplateField>
<ItemTemplate> <ItemTemplate>

View File

@@ -3122,6 +3122,10 @@ Partial Class Compras_Compras
GvAnticiposSel.DataSource = dtnc GvAnticiposSel.DataSource = dtnc
GvAnticiposSel.DataBind() 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 '' 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 If (UsuarioActual.TienePermisoProceso(77) OrElse UsuarioActual.TienePermisoProceso(135)) AndAlso dr("NumPagosConciliados").ToString.ToEntero = 0 Then ' Eliminar compra

View File

@@ -722,7 +722,7 @@
<Paragraph> <Paragraph>
<TextRuns> <TextRuns>
<TextRun> <TextRun>
<Value>LUGAR DE EXPEDICIÓN:</Value> <Value>LUGAR DE EXPEDICIÓN: 56400</Value>
<Style> <Style>
<FontFamily>Calibri</FontFamily> <FontFamily>Calibri</FontFamily>
<FontSize>8pt</FontSize> <FontSize>8pt</FontSize>
@@ -734,21 +734,6 @@
<TextAlign>Center</TextAlign> <TextAlign>Center</TextAlign>
</Style> </Style>
</Paragraph> </Paragraph>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Parameters!CP.Value</Value>
<Style>
<FontFamily>Calibri</FontFamily>
<FontSize>8pt</FontSize>
<FontWeight>Normal</FontWeight>
</Style>
</TextRun>
</TextRuns>
<Style>
<TextAlign>Center</TextAlign>
</Style>
</Paragraph>
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox10</rd:DefaultName> <rd:DefaultName>Textbox10</rd:DefaultName>
<Top>0.53358in</Top> <Top>0.53358in</Top>
@@ -5423,6 +5408,18 @@
<AllowBlank>true</AllowBlank> <AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt> <Prompt>ReportParameter1</Prompt>
</ReportParameter> </ReportParameter>
<ReportParameter Name="QRDescarga">
<DataType>String</DataType>
<Nullable>true</Nullable>
<AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt>
</ReportParameter>
<ReportParameter Name="Kilometraje">
<DataType>String</DataType>
<Nullable>true</Nullable>
<AllowBlank>true</AllowBlank>
<Prompt>ReportParameter1</Prompt>
</ReportParameter>
</ReportParameters> </ReportParameters>
<EmbeddedImages> <EmbeddedImages>
<EmbeddedImage Name="Logo2"> <EmbeddedImage Name="Logo2">

View File

@@ -315,10 +315,10 @@ Partial Class Ventas_Promociones
ButBtnEliminar.Visible = True ButBtnEliminar.Visible = True
If CvePromocionPadre > 0 Then 'If CvePromocionPadre > 0 Then
BtnGuardar.Enabled = False ' BtnGuardar.Enabled = False
ButBtnEliminar.Enabled = False ' ButBtnEliminar.Enabled = False
End If 'End If
ObjVentas.Dispose() ObjVentas.Dispose()
End Sub End Sub