Cambio para limpiar variables en javascript
This commit is contained in:
@@ -174,7 +174,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</asp:UpdatePanel>
|
||||
<asp:UpdatePanel ID="UpComisiones" runat="server" UpdateMode="Conditional">
|
||||
<ContentTemplate>
|
||||
<div class="row rowcheck truncate" id="DivComisioncheck" >
|
||||
@@ -623,8 +623,28 @@
|
||||
debugger;
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
function Depositar() {
|
||||
LimppiarVariables();
|
||||
|
||||
}
|
||||
function Consultar() {
|
||||
LimppiarVariables();
|
||||
|
||||
}
|
||||
|
||||
function LimppiarVariables() {
|
||||
|
||||
ValorTotalSeleccionado = 0;
|
||||
comision = 0;
|
||||
descuento = 0;
|
||||
saldo = 0;
|
||||
IVA = 0;
|
||||
ComisionIntermediario = 0;
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
</asp:Content>
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ Partial Class Bancos_DepositosCaja
|
||||
ChkDescuento.Attributes.Add("onclick", "CheckDescuento(this);")
|
||||
ChkIntermediario.Attributes.Add("onclick", "CheckIntermediario(this);")
|
||||
BtnConsultar.Attributes.Add("onclick", "Consultar(this);")
|
||||
BtnDepositar.Attributes.Add("onclick", "Depositar(this);")
|
||||
|
||||
End If
|
||||
End Sub
|
||||
@@ -100,6 +101,9 @@ Partial Class Bancos_DepositosCaja
|
||||
|
||||
|
||||
GvFacturas.DataBind()
|
||||
ChkFaltante.Checked = False
|
||||
ChkDescuento.Checked = False
|
||||
ChkIntermediario.Checked = False
|
||||
TxtComision.Text = ""
|
||||
TxtDescuento.Text = ""
|
||||
TxtIVA.Text = ""
|
||||
@@ -112,6 +116,7 @@ Partial Class Bancos_DepositosCaja
|
||||
DdlSubProyectoIntermediario.SelectedValueExist(DdlSubProyectos.SelectedValue.ToEntero)
|
||||
UpGvFacturas.Update()
|
||||
UpParametros.Update()
|
||||
UpComisiones.Update()
|
||||
End Sub
|
||||
|
||||
Private Sub BtnDepositar_Click(sender As Object, e As EventArgs) Handles BtnDepositar.Click
|
||||
|
||||
Reference in New Issue
Block a user