Exemple #1
0
        // funciones para pago de decios

        public bool procesarDIII(ro_rol_Info info)
        {
            try
            {
                using (Entities_rrhh Context = new Entities_rrhh())
                {
                    Context.spROL_DecimoTercero(info.IdEmpresa, info.Anio, info.region, info.UsuarioIngresa, info.Observacion);
                }
                return(true);
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemple #2
0
        // funciones para pago de decios

        public bool procesarDIII(ro_rol_Info info)
        {
            try
            {
                if (info.IdRol == 0)
                {
                    info.IdRol = get_id(info.IdEmpresa);
                }
                using (Entities_rrhh Context = new Entities_rrhh())
                {
                    Context.spROL_DecimoTercero(info.IdEmpresa, info.Anio, info.region, info.UsuarioIngresa, info.Observacion, Convert.ToInt32(info.IdRol));
                }
                return(true);
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemple #3
0
        // funciones para pago de decios

        public bool procesarDIII(ro_rol_Info info)
        {
            try
            {
                int IdSucursalInicio = Convert.ToInt32(info.IdSucursal);
                int IdSucursalFin    = Convert.ToInt32(info.IdSucursal) == 0 ? 9999 : Convert.ToInt32(info.IdSucursal);

                if (info.IdRol == 0)
                {
                    info.IdRol = get_id(info.IdEmpresa);
                }
                using (Entities_rrhh Context = new Entities_rrhh())
                {
                    Context.spROL_DecimoTercero(info.IdEmpresa, info.Anio, info.region, info.UsuarioIngresa, info.Observacion, Convert.ToInt32(info.IdRol), IdSucursalInicio, IdSucursalFin, info.IdNomina_Tipo);
                }
                return(true);
            }
            catch (Exception)
            {
                throw;
            }
        }