Validador para fecha documento que no sea mayor del dia actual
This commit is contained in:
@@ -140,7 +140,7 @@
|
||||
<HeaderTemplate>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkFactura" OnCheckedChanged="ChkFactura_Click" runat="server" Checked="false" Enabled="True" AutoPostBack="True"/>
|
||||
<asp:CheckBox ID="ChkFactura" runat="server"/>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Factura">
|
||||
@@ -200,5 +200,23 @@
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
||||
<script type="text/javascript" language="javascript">
|
||||
|
||||
function FnSuma(chk, cantidad) {
|
||||
debugger;
|
||||
var saldo = ToDouble($('#C_lblValorTotal').text());
|
||||
debugger;
|
||||
if (chk.checked == false) {
|
||||
cantidad = cantidad * -1;
|
||||
debugger;
|
||||
}
|
||||
saldo = saldo + cantidad;
|
||||
debugger;
|
||||
$('#C_lblValorTotal').text(FormatoNumero(saldo, 2));
|
||||
debugger;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
</asp:Content>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user