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