This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ Partial Class RH_CatPersonal
|
||||
End Property
|
||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||
If Not Page.IsPostBack Then
|
||||
If UsuarioActual.CveEmpresa.Contiene(1, 119, 158) Then
|
||||
If UsuarioActual.CveEmpresa.Contiene(1, 119, 158, 172, 173, 174) Then
|
||||
HplAddVenta.Visible = False
|
||||
End If
|
||||
LnkAddPersonalSimplificado.Visible = Not HplAddVenta.Visible
|
||||
|
||||
@@ -2147,7 +2147,7 @@ Partial Class RH_Personal
|
||||
|
||||
If EnviarCorreoNomina AndAlso DDLUsuarioNomina.SelectedValue.ToEntero > 0 Then
|
||||
'EnviarCorreoNominista()
|
||||
EviarCorreoBajaReingresoNomista(TipoMovimientoRH.Alta)
|
||||
EnviarCorreoBajaReingresoNomista(TipoMovimientoRH.Alta)
|
||||
End If
|
||||
|
||||
|
||||
@@ -7513,7 +7513,7 @@ Partial Class RH_Personal
|
||||
|
||||
If continuar Then
|
||||
|
||||
EviarCorreoBajaReingresoNomista(If(estatus = 1, TipoMovimientoRH.Reingreso, TipoMovimientoRH.Baja))
|
||||
EnviarCorreoBajaReingresoNomista(If(estatus = 1, TipoMovimientoRH.Reingreso, TipoMovimientoRH.Baja))
|
||||
|
||||
End If
|
||||
|
||||
@@ -7669,7 +7669,7 @@ Partial Class RH_Personal
|
||||
Reingreso
|
||||
End Enum
|
||||
|
||||
Private Sub EviarCorreoBajaReingresoNomista(eTipoMovimientoRH As TipoMovimientoRH)
|
||||
Private Sub EnviarCorreoBajaReingresoNomista(eTipoMovimientoRH As TipoMovimientoRH)
|
||||
|
||||
|
||||
Dim CorreoNominista As String = GlobalDTUsuarios(CveUsuario:=DDLUsuarioNomina.SelectedValue.ToEntero).FiltroPrimeroValor("Correo")
|
||||
|
||||
Reference in New Issue
Block a user