This commit is contained in:
47
Nomina/ISRCalculoAnual.aspx.cs
Normal file
47
Nomina/ISRCalculoAnual.aspx.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user