Merge branch 'master' of http://192.168.10.111:8383/SIG
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>
|
||||
|
||||
|
||||
@@ -1287,7 +1287,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
|
||||
|
||||
|
||||
@@ -2011,6 +2011,7 @@ Partial Class Inventarios_EntregaAlmacen
|
||||
#Region " GUARDAR "
|
||||
Protected Sub BtnGuardar_Click(sender As Object, e As EventArgs)
|
||||
|
||||
|
||||
Select Case TipoEntrega
|
||||
Case 1
|
||||
GuardaVenta()
|
||||
|
||||
@@ -3070,6 +3070,9 @@ Partial Class Inventarios_RecepcionUsados
|
||||
Case "MOTOBATERIA"
|
||||
'20517 MOTOBATERIAS
|
||||
ListaClasificacionesPermitidas.Add(20517) 'MOTOBATERIAS
|
||||
Case "AUXILIAR"
|
||||
'30043 AUXILIAR
|
||||
ListaClasificacionesPermitidas.Add(30043) 'AUXILIAR
|
||||
End Select
|
||||
|
||||
If ListaClasificacionesPermitidas.Contains(CveClasificacionPS) Then
|
||||
|
||||
Reference in New Issue
Block a user