Manuais
PHC GO Funções SDK - Util
 

Util

This class contains methods and functions related to translations within the application.
 
 

GetAllApplicationEntities


Description

Obtain a list of all application entities.

Return Function

A list of all application entities.

Parameters

n/a

Example


Dim ApplicationEntitiesList As List(Of EntityStructureVO) = (from pk In SDK.Util.GetAllApplicationEntities() where pk.isFormEntity And pk.userHaveAcess And Not pk.flagsAttributes.contains(TableFlags.StudioOnly) Select pk).ToList() 


GetApplicationEntityStructure


Description

Obtain the structure of an application entity.

Return Function

EntityStructureVO.

Parameters


Name Description Type
entityname The name of the entity, for example Clients is CL, Invoicing Documents is FT, Suppliers is FL, Purchases is FO String

Example


Dim FtStruc As EntityStructureVO = SDK.Util.GetApplicationEntityStructure("Ft") 


GetVOStructure


Description

Obtain the structure of an itemVO.

Return Function

VOStructure

Parameters


Name Description Type
entityname The name of the entity, for example Clients is CL, Invoicing Documents is FT, Suppliers is FL, Purchases is FO String

Example


Dim VOStruc As VOStructure = SDK.Util.GetVOStructure("Ft") 


GetVOStructure


Description

Obtain the structure of an itemVO.

Return Function

VOStructure

Parameters


Name Description Type
itemType Is a given type obtained for example through: itemVO.GetType Type

Example


Dim VOStruc As VOStructure = SDK.Util.GetVOStructure(itemVO.GetType) 


parseText(of T)


Description

Replaces itemVO´s fields into values on a given text.

Return Function

The text with all itemVO´s fields replaced

Parameters


Name Description Type
record The itemVO T
text The text to parse String

Example



Dim text as String = "{FT.E1VO.NOMECOMP} - {FT.NMDOC} n.º {FT.FNO}" 
Dim FtRecord = SDK.Query.GetEntityData(Of FtVO)(New FilterItem(Ft.ftstamp, Comparison.Equal, "'z202002171526455260076073'")).FirstOrDefault()
Dim result as String = SDK.Util.parseText(of FtVO)(FtRecord, text)


ToExtensoPtEuro


Description

Transforms a numeric value into its full value.

Return Function

The function allows you to return the value received in the parameter in full value.

Parameters


Name Description Type
number Value to parse Decimal

Example


Return
Sdk.Util.ToExtensoPtEuro(0.05)