diff --git a/App_Code/ClsNominas.vb b/App_Code/ClsNominas.vb
index e3b1f758d..513bb17b4 100644
--- a/App_Code/ClsNominas.vb
+++ b/App_Code/ClsNominas.vb
@@ -2032,6 +2032,107 @@ Public Class ClsNominas
End Try
Return retorno
End Function
+
+#Region "CRUD_Acumulados"
+ Public Function GetAcumuladosTipos() As Boolean
+ Dim retorno As Boolean = False
+ DataAdapter("PA_Nom_TipoAcumuladosGet", CommandType.StoredProcedure)
+ Try
+ SqlAdapter.Fill(Data)
+ retorno = True
+ Catch sqEx As SqlException
+ retorno = False
+ OnError("Ocurrió un error al obtener los acumulados.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ Catch ex As Exception
+ retorno = False
+ OnError("Ocurrió un error al obtener los acumulados.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ End Try
+ Return retorno
+ End Function
+ Public Function GetAcumulados(cveAcumulado As Int32, cveEmpresa As Int32) As Boolean
+ Dim retorno As Boolean = False
+ DataAdapter("PA_Nom_AcumuladosGet", CommandType.StoredProcedure)
+ Try
+ With SqlAdapter.SelectCommand.Parameters
+ .Add("@CveAcumulado", SqlDbType.Int).Value = cveAcumulado
+ .Add("@CveEmpresa", SqlDbType.Int).Value = cveEmpresa
+ End With
+
+ SqlAdapter.Fill(Data)
+ retorno = True
+ Catch sqEx As SqlException
+ retorno = False
+ OnError("Ocurrió un error al obtener los acumulados.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ Catch ex As Exception
+ retorno = False
+ OnError("Ocurrió un error al obtener los acumulados.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ End Try
+ Return retorno
+ End Function
+ Public Function AcumuladosAdd(cveTipoAcumulado As Int32, acumulado As String, cveEmpresa As Int32) As Boolean
+ Dim retorno As Boolean = False
+ DataAdapter("PA_Nom_AcumuladosAdd", CommandType.StoredProcedure)
+ Try
+ With SqlAdapter.SelectCommand.Parameters
+ .Add("@CveTipoAcumulado", SqlDbType.Int).Value = cveTipoAcumulado
+ .Add("@Acumulado", SqlDbType.VarChar).Value = acumulado
+ .Add("@CveEmpresa", SqlDbType.Int).Value = cveEmpresa
+ End With
+
+ SqlAdapter.Fill(Data)
+ retorno = True
+ Catch sqEx As SqlException
+ retorno = False
+ OnError("Ocurrió un error al obtener los acumulados.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ Catch ex As Exception
+ retorno = False
+ OnError("Ocurrió un error al obtener los acumulados.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ End Try
+ Return retorno
+ End Function
+ Public Function AcumuladosUp(cveAcumulado As Int32, cveTipoAcumulado As Int32, acumulado As String, cveEmpresa As Int32) As Boolean
+ Dim retorno As Boolean = False
+ DataAdapter("PA_Nom_AcumuladosUp", CommandType.StoredProcedure)
+ Try
+ With SqlAdapter.SelectCommand.Parameters
+ .Add("@CveAcumulado", SqlDbType.Int).Value = cveAcumulado
+ .Add("@CveTipoAcumulado", SqlDbType.VarChar).Value = cveTipoAcumulado
+ .Add("@Acumulado", SqlDbType.Int).Value = acumulado
+ .Add("@CveEmpresa", SqlDbType.Int).Value = cveEmpresa
+ End With
+
+ SqlAdapter.Fill(Data)
+ retorno = True
+ Catch sqEx As SqlException
+ retorno = False
+ OnError("Ocurrió un error al obtener los acumulados.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ Catch ex As Exception
+ retorno = False
+ OnError("Ocurrió un error al obtener los acumulados.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ End Try
+ Return retorno
+ End Function
+ Public Function AcumuladosRemove(cveAcumulado As Int32, cveEmpresa As Int32) As Boolean
+ Dim retorno As Boolean = False
+ DataAdapter("PA_Nom_AcumuladosRemove", CommandType.StoredProcedure)
+ Try
+ With SqlAdapter.SelectCommand.Parameters
+ .Add("@CveAcumulado", SqlDbType.Int).Value = cveAcumulado
+ .Add("@CveEmpresa", SqlDbType.Int).Value = cveEmpresa
+ End With
+
+ SqlAdapter.Fill(Data)
+ retorno = True
+ Catch sqEx As SqlException
+ retorno = False
+ OnError("Ocurrió un error al obtener los acumulados.", sqEx, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ Catch ex As Exception
+ retorno = False
+ OnError("Ocurrió un error al obtener los acumulados.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
+ End Try
+ Return retorno
+ End Function
+#End Region
#Region "MovtosPermanentes"
Public Function GetMovtoPermanente(CveEmpresa As Int32, CvePersonal As Integer) As Boolean
diff --git a/App_Code/ClsPaginas.vb b/App_Code/ClsPaginas.vb
index a3d763c62..9d546b7b5 100644
--- a/App_Code/ClsPaginas.vb
+++ b/App_Code/ClsPaginas.vb
@@ -3723,6 +3723,7 @@ Public Class ClsPaginas
If Application("GlobalSIGAppPaginas") Is Nothing Then
PaginaDict = New System.Collections.Hashtable
+ PaginaDict.Add("/Nomina/Acumulados.aspx".ToUpper(), -1)
PaginaDict.Add("/Inicio.aspx".ToUpper(), -1)
PaginaDict.Add("/reporteador.aspx".ToUpper(), -1)
PaginaDict.Add("/General/CATIEPSxEntidadFed.aspx".ToUpper(), 719)
diff --git a/Nomina/Acumulados.aspx b/Nomina/Acumulados.aspx
new file mode 100644
index 000000000..279ca5ad3
--- /dev/null
+++ b/Nomina/Acumulados.aspx
@@ -0,0 +1,94 @@
+<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Acumulados.aspx.cs" Inherits="Nomina_Acumulados" %>
+
+
+
+
+
+
+ Acumulados nominas
+
+
+
+
+
+ Acumulados
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Nomina/Acumulados.aspx.cs b/Nomina/Acumulados.aspx.cs
new file mode 100644
index 000000000..78a4b7d4f
--- /dev/null
+++ b/Nomina/Acumulados.aspx.cs
@@ -0,0 +1,138 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using Extensiones;
+public partial class Nomina_Acumulados : ClsPaginas
+{
+
+ #region Propiedades
+ private int RcveAcumulado
+ {
+ get { return (ViewState["RcveAcumulado"] == null) ? 0 : Convert.ToInt32(ViewState["RcveAcumulado"]); }
+ set { ViewState["RcveAcumulado"] = value; }
+ }
+ private int CcveAcumulado
+ {
+ get { return (ViewState["CcveAcumulado"] == null) ? 0: Convert.ToInt32(ViewState["CcveAcumulado"]); }
+ set { ViewState["CcveAcumulado"] = value; }
+ }
+
+ #endregion
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ RcveAcumulado = Request["cveAcumulado"] == null ? -1: Request["cveAcumulado"].ToString().ToEntero();
+
+ using (ClsNominas ObjAcum = new ClsNominas())
+ {
+
+ ObjAcum.GetAcumuladosTipos();
+ DdlTipoAcumulado.DataSource = ObjAcum.DtResultados;
+ }
+ DdlTipoAcumulado.DataBind();
+ CargaAcumulados();
+ }
+ }
+ protected void CargaAcumulados()
+ {
+ using (ClsNominas ObjAcum = new ClsNominas())
+ {
+
+ ObjAcum.GetAcumulados(RcveAcumulado,UsuarioActual.CveEmpresa );
+ GVAcumulados.DataSource = ObjAcum.DtResultados;
+ }
+ GVAcumulados.DataBind();
+ upDatosAcum.Update();
+ }
+ protected void LimpiaAcumulados()
+ {
+ DdlTipoAcumulado.SelectedValue = "1";
+ TxtAcumacumulado.Text = "";
+ UPModalAcum.Update();
+ }
+ protected void LnkEditarAcum_Click(object sender, EventArgs e)
+ {
+ LimpiaAcumulados();
+ GridViewRow gvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
+ CcveAcumulado = gvRow.DataKey("CveAcumulado").ToEntero();
+ int cveTipoAcumulado = gvRow.DataKey("CveTipoAcumulado").ToEntero();
+ string acumulado = gvRow.DataKey("Acumulado");
+
+ DdlTipoAcumulado .SelectedValueExist(cveTipoAcumulado.ToString());
+ TxtAcumacumulado.Text = acumulado.ToString();
+ this.RegistraScript("$('#DModalAcumulados').modal();");
+ BtnAcumADD.Visible = false;
+ BtnAcumEdit.Visible = true;
+ UPModalAcum.Update();
+ }
+ protected void LnkAgregarAcum_Click(object sender, EventArgs e)
+ {
+ this.RegistraScript("$('#DModalAcumulados').modal();");
+ LimpiaAcumulados();
+ BtnAcumADD.Visible = true;
+ BtnAcumEdit.Visible = false;
+ UPModalAcum.Update();
+ }
+ protected void BtnAcumADD_Click(object sender, EventArgs e)
+ {
+
+ int cveTipoAcumulado = DdlTipoAcumulado.SelectedValue.ToEntero();
+ string acumulado = TxtAcumacumulado.Text;
+ int cveEmpresa = UsuarioActual.CveEmpresa;
+ bool Continuar = false;
+ using (ClsNominas ObjAcum = new ClsNominas())
+ {
+
+ Continuar = ObjAcum.AcumuladosAdd(cveTipoAcumulado, acumulado, cveEmpresa);
+ ObjAcum.Dispose();
+ }
+ if (Continuar)
+ {
+ this.RegistraScript("$('#DModalAcumulados').modal('hide');");
+ LimpiaAcumulados();
+ CargaAcumulados();
+ UPModalAcum.Update();
+ this.Alert("El Acumulados Se ha agregado");
+ }
+ }
+ protected void BtnAcumEdit_Click(object sender, EventArgs e)
+ {
+
+ int cveTipoAcumulado = DdlTipoAcumulado.SelectedValue.ToEntero();
+ string acumulado = TxtAcumacumulado.Text;
+ int cveEmpresa = UsuarioActual.CveEmpresa;
+ bool Continuar = false;
+ using (ClsNominas ObjAcum = new ClsNominas())
+ {
+ Continuar = ObjAcum.AcumuladosUp(CcveAcumulado, cveTipoAcumulado, acumulado, cveEmpresa);
+ }
+ if (Continuar)
+ {
+ this.RegistraScript("$('#DModalAcumulados').modal('hide');");
+ LimpiaAcumulados();
+ UPModalAcum.Update();
+ CargaAcumulados();
+ this.Alert("El Acumulados Se ha actualizado");
+ }
+ }
+ protected void LnkEliminarAcum_Click(object sender, EventArgs e)
+ {
+ GridViewRow gvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
+ CcveAcumulado = gvRow.DataKey("CveAcumulado").ToEntero();
+ int cveEmpresa = UsuarioActual.CveEmpresa;
+ bool Continuar = false;
+ using (ClsNominas ObjAcum = new ClsNominas())
+ {
+ Continuar = ObjAcum.AcumuladosRemove(CcveAcumulado, cveEmpresa);
+ }
+ if (Continuar)
+ {
+ CargaAcumulados();
+ this.Alert("El Acumulados Se ha Eliminado");
+ }
+ }
+}
\ No newline at end of file