CatBancos CveSATBancos, EntregaAlamcen desactivar requiered de fecha de caducidad cuando no este marcado el check
This commit is contained in:
@@ -1163,16 +1163,36 @@
|
||||
|
||||
}
|
||||
|
||||
function fncCantidad(checkbox, numeroMax, idTbCantidadF) {
|
||||
function fncCantidad(checkbox, numeroMax, idTbCantidadF, rfv) {
|
||||
|
||||
var $textbox = $('#' + idTbCantidadF);
|
||||
|
||||
if ($(checkbox).is(':checked')) {
|
||||
$textbox.val(numeroMax);
|
||||
activarValidatorPorId(rfv);
|
||||
} else {
|
||||
$textbox.val(0);
|
||||
desactivarValidatorPorId(rfv);
|
||||
}
|
||||
}
|
||||
|
||||
function desactivarValidatorPorId(idValidatorCliente) {
|
||||
var validator = document.getElementById(idValidatorCliente);
|
||||
if (validator) {
|
||||
validator.enabled = false;
|
||||
validator.style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
function activarValidatorPorId(idValidatorCliente) {
|
||||
var validator = document.getElementById(idValidatorCliente);
|
||||
if (validator) {
|
||||
validator.enabled = true;
|
||||
validator.style.display = "inline";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1278,7 +1278,7 @@ Partial Class Inventarios_EntregaAlmacen
|
||||
If BloqueCantidad Then
|
||||
e.Row.FCTextBox("TbCantidadF").Enabled = False
|
||||
Else
|
||||
e.Row.FCCheckBox("cbInv").Attributes.Add("onclick", $"fncCantidad(this,{e.Row.DBCampo("CantidadF")},'{e.Row.FCTextBox("TbCantidadF").ClientID}')")
|
||||
e.Row.FCCheckBox("cbInv").Attributes.Add("onclick", $"fncCantidad(this,{e.Row.DBCampo("CantidadF")},'{e.Row.FCTextBox("TbCantidadF").ClientID}','{e.Row.FCRequiredFieldValidator("RFVCaducidad").ClientID}')")
|
||||
End If
|
||||
|
||||
|
||||
@@ -1996,6 +1996,8 @@ Partial Class Inventarios_EntregaAlmacen
|
||||
|
||||
#Region " GUARDAR "
|
||||
Protected Sub BtnGuardar_Click(sender As Object, e As EventArgs)
|
||||
Alert("ok")
|
||||
Exit Sub
|
||||
|
||||
Select Case TipoEntrega
|
||||
Case 1
|
||||
|
||||
Reference in New Issue
Block a user