47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using Extensiones;
|
|
|
|
public partial class Nomina_ISCalculoAnual : ClsPaginas
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
DataTable dtejercicio = new DataTable();
|
|
using (ClsNominas objnom = new ClsNominas())
|
|
{
|
|
if (objnom.GetEjercicios(UsuarioActual.CveEmpresa))
|
|
{
|
|
dtejercicio = objnom.DtResultados;
|
|
}
|
|
}
|
|
DdlEjercicios.DataSource = dtejercicio;
|
|
DdlEjercicios.DataBind();
|
|
}
|
|
|
|
protected void LnkConsultar_Click(object sender, EventArgs e)
|
|
{
|
|
CargaPersonalISRAnual();
|
|
}
|
|
|
|
protected void CargaPersonalISRAnual()
|
|
{
|
|
DataTable dtdatos = new DataTable();
|
|
int ejercicio = DdlEjercicios.SelectedValue.ToEntero();
|
|
using (ClsNominas objnom = new ClsNominas())
|
|
{
|
|
if (objnom.PersonalISRAnual(-1, UsuarioActual.CveEmpresa, ejercicio))
|
|
{
|
|
dtdatos = objnom.DTSetResultados.Tables[0];
|
|
}
|
|
}
|
|
GVPersonalISRAnual.DataSource = dtdatos;
|
|
GVPersonalISRAnual.DataBind();
|
|
upDatosPers.Update();
|
|
}
|
|
} |