This commit is contained in:
@@ -489,6 +489,7 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
private void CargaTiposPeriodo()
|
||||
{
|
||||
set_GlobalDTTipoPeriodos(UsuarioActual.CveEmpresa, null);
|
||||
DdlTipoPeriodo.DataSource = get_GlobalDTTipoPeriodos(UsuarioActual.CveEmpresa);
|
||||
DdlTipoPeriodoCM.DataSource = DdlTipoPeriodo.DataSource;
|
||||
DdlTipoPeriodoSim.DataSource = DdlTipoPeriodo.DataSource;
|
||||
@@ -7541,7 +7542,8 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
GvConceptossimulador.DataSource = new DataTable();
|
||||
LblSalarioDiarioSimula.Text = "";
|
||||
GvConceptossimulador.DataBind();
|
||||
DdlTipoPeriodoSim.SelectedValue = "1";
|
||||
DdlTipoPeriodoSim.SelectedValueExist(4);
|
||||
DdlTipoPeriodoSim.SelectedValueExist(1);
|
||||
RegistraScript("$('#DSimulador').modal()");
|
||||
UpSimulador.Update();
|
||||
}
|
||||
|
||||
@@ -347,7 +347,7 @@
|
||||
<div class="portlet light smmallpadding bordered">
|
||||
<div class="portlet-title">
|
||||
<div class="caption">
|
||||
<i class="icon-user"></i><span class="caption-subject bold uppercase" style="font-size: 18px;">Personal (<span id="contaper"></span>)</span>
|
||||
<i class="icon-user"></i><span class="caption-subject bold uppercase" style="font-size: 18px;">Personal (<asp:Literal ID="ltlContador" runat="server"></asp:Literal>)</span>
|
||||
</div>
|
||||
<div class="tools">
|
||||
<div style="display: inline-block">
|
||||
@@ -1353,7 +1353,8 @@
|
||||
|
||||
|
||||
Sys.Application.add_load(function (s, e) {
|
||||
<%= String.Format("FiltrarTablaClass('TxtBusqueda','{0}','contaper');", GvDatos.ClientID) %>
|
||||
|
||||
<%= String.Format("setTimeout(function(){{ FiltrarTablaClass('TxtBusqueda','{0}','contaper');}}, 1000)", GvDatos.ClientID) %>
|
||||
});
|
||||
function OrdenarGV() {
|
||||
|
||||
|
||||
@@ -89,6 +89,7 @@ Partial Class RH_CatPersonal
|
||||
|
||||
|
||||
End If
|
||||
ltlContador.Text = String.Format("<span id='contaper' {0}>...</span>{1}", If(GvDatos.Rows.Count > 0, "", " class='hidden' "), If(GvDatos.Rows.Count > 0, "", "0"))
|
||||
End Sub
|
||||
|
||||
Public Sub CargaDatos()
|
||||
|
||||
@@ -85,7 +85,7 @@ function FiltrarTabla(idtxt, idtable, idcontador) {
|
||||
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').css('display', '');
|
||||
}
|
||||
if ($('#' + idcontador).length > 0) {
|
||||
$('#' + idcontador).html($('#' + idtable + ' tr:visible').length);
|
||||
$('#' + idcontador).html($('#' + idtable + ' tr:visible:not(.ADtr)').length);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ function FiltrarTablaStr(str, idtable, idcontador) {
|
||||
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').css('display', '');
|
||||
}
|
||||
if ($('#' + idcontador).length > 0) {
|
||||
$('#' + idcontador).html($('#' + idtable + ' tr:visible').length);
|
||||
$('#' + idcontador).html($('#' + idtable + ' tr:visible:not(.hidetrad):not(.ADtr)').length);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ function FiltrarTablaStrMulti(idtable, idcontador /*, str1, str2, str3...*/ ) {
|
||||
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').css('display', '');
|
||||
if (idcontador) {
|
||||
if ($('#' + idcontador).length > 0) {
|
||||
$('#' + idcontador).html($('#' + idtable + ' tr:visible').length);
|
||||
$('#' + idcontador).html($('#' + idtable + ' tr:visible:not(.hidetrad):not(.ADtr)').length);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -130,7 +130,7 @@ function FiltrarTablaClass(idtxt, idtable, idcontador, resta) {
|
||||
$('div.ADScroller .ADScroller-header table#' + idtable + ' tr:not(.ADtr)').removeClass('hidetrad');
|
||||
}
|
||||
if ($('#' + idcontador).length > 0) {
|
||||
let numconta = $('#' + idtable + ' tr:not(.hidetrad):not(.ADtr)').length;
|
||||
let numconta = $('#' + idtable + ' tr:visible:not(.hidetrad):not(.ADtr)').length;
|
||||
if (numconta > 0) { numconta - resta}
|
||||
$('#' + idcontador).html(numconta );
|
||||
}
|
||||
@@ -144,7 +144,7 @@ function FiltrarTablaV2(idtxt, idtable, idcontador) {
|
||||
$('div.ADScroller .ADScroller-header ' + idtable + ' tr:not(.ADtr)').css('display', '');
|
||||
}
|
||||
if ($('#' + idcontador).length > 0) {
|
||||
$('#' + idcontador).html($(idtable + ' tr:visible').length);
|
||||
$('#' + idcontador).html($(idtable + ' tr:visible:not(.hidetrad):not(.ADtr)').length);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user