This commit is contained in:
JORGE LUIS CAUDILLO ESPARZA
2023-06-15 17:51:19 -07:00
parent 51d05ecc25
commit d2ffd13bfd
5 changed files with 702 additions and 490 deletions

View File

@@ -111,6 +111,7 @@
<th colspan="5" style="background-color: #a9a9e8 !important;">Actual</th>
<th colspan="3" style="background-color: #88d6cd !important;">Nuevo</th>
<th></th>
<th></th>
<%--<th></th>--%>
</tr>
</table>
@@ -244,6 +245,16 @@
<asp:Label ID="lblsalarioDiarioSSf" runat="server" Text='<%# (Eval("SalarioDiarioSSNuevo", "{0:N2}") == Eval("SalarioDiarioSS", "{0:N2}") ? "NO" : "SI") %>'> </asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center">
<HeaderTemplate>
<input type="checkbox" class="chkt4u" checked="checked" />
<input type="checkbox" id="ChkAllGVDatosA" />
</HeaderTemplate>
<ItemTemplate>
<input id="chk" type="checkbox" class="chkt4" runat="server" />
<asp:CheckBox ID="chkUpdate" CssClass="chkp4" runat="server"></asp:CheckBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="center" Visible="false">
<ItemTemplate>
@@ -979,6 +990,59 @@
setTimeout(function () { loadadscroll(); }, 50);
}, 400);*/
}
function checkclicks(tablaclass, inputsclass, inputall, inputrange, OnChecksChange) {
$('table' + tablaclass + ' ' + inputsclass + ' input').change(function () {
valor = $(this).is(':checked');
OnChecksChange();
});
$(inputall).change(function () {
var ischeked = $(this).is(':checked');
$('table' + tablaclass + ' ' + inputsclass + ' input').prop("checked", ischeked);
OnChecksChange();
});
$(inputrange).change(function () {
if ($(inputrange + ':checked').length == 2) {
var check = false;
var valor = $(inputrange + 'u').is(':checked');
$('table' + tablaclass + ' tr').each(function (index) {
if ($(this).find(inputrange) && $(this).find(inputrange).is(':checked')) {
if (check) {
var inputi = $(this).find('' + inputsclass + ' input');
if (inputi) {
inputi.prop("checked", valor);
}
check = false;
} else {
check = true;
}
}
if (check) {
var inputi = $(this).find('' + inputsclass + ' input');
if (inputi) {
inputi.prop("checked", valor);
inputi.prop("checked", valor);
}
}
});
$(inputrange + ':checked').prop("checked", false);
OnChecksChange();
}
});
OnChecksChange();
}
checkclicks('.GVDatos', '.chkp4', '#ChkAllGVDatosA', '.chkt4', showhide);
</script>
</asp:Content>