CL.UDFS 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package CL.UDFS --version 1.0.0
NuGet\Install-Package CL.UDFS -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CL.UDFS" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CL.UDFS --version 1.0.0
#r "nuget: CL.UDFS, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CL.UDFS as a Cake Addin
#addin nuget:?package=CL.UDFS&version=1.0.0

// Install CL.UDFS as a Cake Tool
#tool nuget:?package=CL.UDFS&version=1.0.0

Acerca de CL.UDFS

CL.UDFS es un conjunto de funcionalidades que nos permite configurar campos definidos por usuario de SAP.

¿Qué resuelve?

Facilita la gestión de las configuraciones necesarias para interactuar con los campos definidos por usuario de SAP, y además permite guardar estas configuraciones localmente.

Rutinas de CL.UDFS

GetUdfs(CL.STRUCTURES.CLASSES.ServiceLayer.SLRequestObject _slRequestObject): CL.STRUCTURES.CLASSES.Rebound.CLContext<System.Collections.Generic.List<CL.STRUCTURES.CLASSES.Udf.UdfContext>>

Descripción

Usado para obtener campos definidos por usuarios de SAP según categoría específica.

Parametros

  • _slRequestObject(Requerido): Objeto con la información necesaria para realizar la conexion y consulta con Service Layer

Ejemplo:

public static CL.STRUCTURES.CLASSES.Rebound.CLContext<System.Collections.Generic.List<CL.STRUCTURES.CLASSES.Udf.UdfContext>> GetUdfs()
{
    //...more code

    // La función FuncionQueConfiguraObjeto se encarga
    // de agregar la información necesaria para conectar a sap.
    SLRequestObject oSLRequestObject = FuncionQueConfiguraObjeto();
    // Retorna una lista de campos definidos por usuario (UDFs) con el tipo especificado en el método.
  
    return await Udf.GetUdfs(requestModel);
}

GetUdfCategories<System.Data.Entity.DbContext>(System.String _dbObjectToken) :CL.STRUCTURES.CLASSES.Rebound.CLContext<System.Collections.Generic.IEnumerable<CL.STRUCTURES.CLASSES.Udf.UdfCategory>>

Descripción

Usado para obtener las categorías con su respectiva configuración de UDFs a utilizar en la aplicación.

Parametros

  • _dbObjectToken(Requerido): Codigo de registro de la tabla DBResources.

Ejemplo:

public static CLContext<IEnumerable<CL.STRUCTURES.CLASSES.Udf.UdfCategory>> GetUdfCategories()
{
    // Retorna lista de categorías configuradas localmente.
    return Udf.GetUdfCategories<MainDBContext>("GetUdfCategories").Get();
}

GetUdfConfigured<System.Data.Entity.DbContext, T, CL.STRUCTURES.INTERFACES.ICLSingle>(System.String _dbObjectToken, T _object) :CL.STRUCTURES.CLASSES.Rebound.CLContext<CL.STRUCTURES.CLASSES.Udf.UdfTransfer>>

Descripción

Usado para obtener los campos definidos por usuario (udfs) configurados localmente según categoría específica.

Parametros

  • _dbObjectToken(Requerido): Alias de objeto de base de datos.
  • _object(Requerido): Objeto que va a ser mapeado a un query.

Ejemplo:

public static CL.STRUCTURES.CLASSES.Rebound.CLContext<CL.STRUCTURES.CLASSES.Udf.UdfTransfer> GetConfiguredUdf()
    // Retorna todos los udfs configurados localmente según el objeto T  
    return Udf.GetUdfConfigured<MainDBContext, FilterUdfs, ICLSingle>("GetUdfs",
            new FilterUdfs(){
                Category = category,
                CompanyId = _companyId
            }).Get();
}

PostUdf<System.Data.Entity.DbContext, CL.STRUCTURES.INTERFACES.ICLMaster, CL.STRUCTURES.INTERFACES.ICLSingle>(System.String _dbObjectToken, params System.String[] _fields) :CL.STRUCTURES.CLASSES.Rebound.CLContext<CL.STRUCTURES.CLASSES.Udf.UdfTransfer>

Descripción

Usado para guardar campos definidos por usuario (udfs) localmente

Parametros

  • _dbObjectToken(Requerido): Objeto que va a ser mapeado a un query.
  • _fields(Requerido): Propiedades a excluir

Ejemplo:

public static CL.STRUCTURES.CLASSES.Rebound.CLContext<CL.STRUCTURES.CLASSES.Udf.UdfTransfer> ConfigureUdfs(CL.STRUCTURES.CLASSES.Udf.UdfTransfer _udfs)
{
    // Guarda los campos definidos por usuario (udfs) localmente según el objeto T. 
    return _udfs.PostUdf<MainDBContext, ICLExclude, ICLSingle>("PostUdf", "UDFList");
}

PatchUdf<System.Data.Entity.DbContext, CL.STRUCTURES.INTERFACES.ICLMaster, CL.STRUCTURES.INTERFACES.ICLSingle>(System.String _dbObjectToken, params System.String[] _fields) :CL.STRUCTURES.CLASSES.Rebound.CLContext<CL.STRUCTURES.CLASSES.Udf.UdfTransfer>

Descripción

Usado para actualizar campos definidos por usuario (udfs) localmente

Parametros

  • _dbObjectToken(Requerido): Objeto que va a ser mapeado a un query.
  • _fields(Requerido): Propiedades a excluir

Ejemplo:

public static CL.STRUCTURES.CLASSES.Rebound.CLContext<CL.STRUCTURES.CLASSES.Udf.UdfTransfer> UpdateConfiguredUdfs(CL.STRUCTURES.CLASSES.Udf.UdfTransfer _udfs)
{
    //  Actualiza los campos definidos por usuario (udfs) localmente según el objeto T.
    return _udfs.PatchUdf<MainDBContext, ICLExclude, ICLSingle>("PostUdf", "UDFList");
}

GetUdfInvokeDBO(CL.STRUCTURES.CLASSES.ServiceLayer.SLRequestObject _slRequestObject) :System.Threading.Tasks.Task<CL.STRUCTURES.CLASSES.Rebound.CLContext<System.Collections.Generic.List<CL.STRUCTURES.CLASSES.Udf.UdfInvoke>>>

Descripción

Usado para obtener mediante Service Layer los valores de un UDF configurados desde de una vista de base de datos

Parametros

  • _slRequestObject(Requerido): Objeto con la información necesaria para realizar la conexion y consulta con Service Layer

Ejemplo:

public static async CLContext<List<CL.STRUCTURES.CLASSES.Udf.UdfInvoke>> GetUdfInvokeDBO(System.String _dataSourceDBO)
{
    //...more code
    return await Udf.GetUdfInvokeDBO(_slRequestModel);
}

Clavis Consultores ©

Product Compatible and additional computed target framework versions.
.NET Framework net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.0 93 4/18/2024
1.1.0.1 137 1/12/2024
1.1.0 154 11/28/2023
1.0.0 143 9/4/2023