-- mejora en movtos permanentes
This commit is contained in:
@@ -1446,16 +1446,14 @@
|
||||
|
||||
<div class="actions">
|
||||
|
||||
<div style="display:inline-block;width:296px">
|
||||
<div style="display:inline-block;width:186px">
|
||||
<asp:DropDownList ID="ddlmvtoperfiltroestatus" runat="server" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar">
|
||||
<div style="display:inline-block;width:296px">Activos:
|
||||
<div style="display:inline-block;width:125px">
|
||||
<asp:DropDownList ID="ddlmvtoperfiltroestatus" AutoPostBack="true" OnSelectedIndexChanged="ddlmvtoperfiltroestatus_SelectedIndexChanged" runat="server" Class="form-control input-sm select2me" Width="100%" ValidationGroup="GrpGuardar">
|
||||
<asp:ListItem Value="-1" Text="Todos"></asp:ListItem>
|
||||
<asp:ListItem Value="1" Text="Activo"></asp:ListItem>
|
||||
<asp:ListItem Value="0" Text="Inactivo"></asp:ListItem>
|
||||
<asp:ListItem Value="1" Text="Si" Selected="True"></asp:ListItem>
|
||||
<asp:ListItem Value="0" Text="No"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
|
||||
</div>
|
||||
<asp:LinkButton ID="LnkFiltro" OnClick="LnkFiltro_Click" CssClass="btn btn-primary" runat="server">Filtrar</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<asp:LinkButton ID="LnkAddMovtoPermanente" OnClick="LnkAddMovtoPermanente_Click" CssClass="btn yellow-gold" runat="server">Agregar</asp:LinkButton>
|
||||
@@ -1510,7 +1508,7 @@
|
||||
CssClass="lnkMovotPermanente" runat="server" Text='<%# Eval("FechaInicioAplicacion", "{0:dd/MM/yyyy}")%>'></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Activo">
|
||||
<asp:TemplateField HeaderText="Activo" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton data-toggle="tooltip" title="Editar" OnClick="LnkEditarMovtoPermanente_Click"
|
||||
CssClass="lnkMovotPermanente" runat="server" Text='<%# (Eval("Estatus").ToString()=="1" ? "Si" : "No") %>'></asp:LinkButton>
|
||||
|
||||
@@ -7830,15 +7830,14 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
DdlConcepto.DataBind();
|
||||
//DdlConcepto.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||
}
|
||||
|
||||
protected void LnkFiltro_Click(object sender, EventArgs e)
|
||||
private void CargaMovtoPermanente()
|
||||
{
|
||||
int estatus = ddlmvtoperfiltroestatus.SelectedValue.ToEntero();
|
||||
using (ClsNominas ObjMovt = new ClsNominas())
|
||||
{
|
||||
ObjMovt.GetMovtoPermanente(UsuarioActual.CveEmpresa, SRCvePersonal);
|
||||
DataTable dt = ObjMovt.DtResultados;
|
||||
if(estatus >= 0)
|
||||
if (estatus >= 0)
|
||||
{
|
||||
dt = dt.FiltraParametros(string.Format("Estatus ={0}", estatus));
|
||||
}
|
||||
@@ -7847,20 +7846,6 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
GVMovtoPermanente.DataBind();
|
||||
UpMovtosPermanentes.Update();
|
||||
|
||||
|
||||
}
|
||||
private void CargaMovtoPermanente()
|
||||
{
|
||||
ddlmvtoperfiltroestatus.SelectedValue = "-1";
|
||||
using (ClsNominas ObjMovt = new ClsNominas())
|
||||
{
|
||||
ObjMovt.GetMovtoPermanente(UsuarioActual.CveEmpresa, SRCvePersonal);
|
||||
GVMovtoPermanente.DataSource = ObjMovt.DtResultados;
|
||||
|
||||
}
|
||||
GVMovtoPermanente.DataBind();
|
||||
UpMovtosPermanentes.Update();
|
||||
}
|
||||
protected void DdlTipo_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
@@ -12483,4 +12468,9 @@ public partial class Nomina_Nomina2 : ClsPaginas
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected void ddlmvtoperfiltroestatus_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
CargaMovtoPermanente();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user