No mostrar chk de bonificacion cuando el importe es 0
This commit is contained in:
@@ -4502,7 +4502,7 @@
|
|||||||
|
|
||||||
<asp:TemplateField HeaderText="Cargo" ItemStyle-HorizontalAlign="Center">
|
<asp:TemplateField HeaderText="Cargo" ItemStyle-HorizontalAlign="Center">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:CheckBox ID="ChkCargo" runat="server"></asp:CheckBox>
|
<asp:CheckBox ID="ChkCargo" runat="server" Visible="false" Checked="false"></asp:CheckBox>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="Bonificación" ItemStyle-HorizontalAlign="Center">
|
<asp:TemplateField HeaderText="Bonificación" ItemStyle-HorizontalAlign="Center">
|
||||||
|
|||||||
@@ -9219,13 +9219,13 @@ Partial Class Clientes
|
|||||||
Dim FacturadoCargo As Boolean = Boolean.Parse(e.Row.DataKey("FacturadoCargo"))
|
Dim FacturadoCargo As Boolean = Boolean.Parse(e.Row.DataKey("FacturadoCargo"))
|
||||||
Dim FacturadoBonificacion As Boolean = Boolean.Parse(e.Row.DataKey("FacturadoBonificacion"))
|
Dim FacturadoBonificacion As Boolean = Boolean.Parse(e.Row.DataKey("FacturadoBonificacion"))
|
||||||
|
|
||||||
If FacturadoCargo Then
|
'If FacturadoCargo Then
|
||||||
e.Row.FCCheckBox("ChkCargo").Checked = False
|
' e.Row.FCCheckBox("ChkCargo").Checked = False
|
||||||
e.Row.FCCheckBox("ChkCargo").Visible = False
|
' e.Row.FCCheckBox("ChkCargo").Visible = False
|
||||||
Else
|
'Else
|
||||||
e.Row.FCCheckBox("ChkCargo").Checked = False
|
' e.Row.FCCheckBox("ChkCargo").Checked = False
|
||||||
e.Row.FCCheckBox("ChkCargo").Visible = False 'True
|
' e.Row.FCCheckBox("ChkCargo").Visible = False 'True
|
||||||
End If
|
'End If
|
||||||
|
|
||||||
If FacturadoBonificacion Then
|
If FacturadoBonificacion Then
|
||||||
e.Row.FCCheckBox("ChkBonificacion").Checked = False
|
e.Row.FCCheckBox("ChkBonificacion").Checked = False
|
||||||
@@ -9240,6 +9240,10 @@ Partial Class Clientes
|
|||||||
ElseIf e.Row.DBCampo("EsUsadoAjuste") = "1" Then
|
ElseIf e.Row.DBCampo("EsUsadoAjuste") = "1" Then
|
||||||
e.Row.FCCheckBox("ChkBonificacion").Visible = False
|
e.Row.FCCheckBox("ChkBonificacion").Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If e.Row.DBCampo("ImporteBonificacion").ToDecimal() = 0 Then
|
||||||
|
e.Row.FCCheckBox("ChkBonificacion").Visible = False
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
|
|||||||
Reference in New Issue
Block a user