Class System
This class contains functions that allow you to return information about the application.
Description
Gets the application´s ID.
Return Function
A string value that indicates the application´s ID.
Parameters
n/a
Example
Dim appID as string = SDK.System.GetAppID()
Description
Gets the application´s version.
Return Function
A string value that indicates the application´s version.
Parameters
n/a
Example
Dim version as string = SDK.System.Version()
Description
Gets the application´s major version.
Return Function
A string value that indicates the application´s major version.
Parameters
n/a
Example
Dim versionMajor as string = SDK.System.VersionMajor()
Description
Gets the application´s minor version.
Return Function
A string value that indicates the application´s minor version.
Parameters
n/a
Example
Dim versionMinor as string = SDK.System.VersionMinor()
Description
Checks if the application is a Trial application.
Return Function
A logical value indicating whether or not the application is a trial application.
Parameters
n/a
Example
Dim isTrial as Boolean = SDK.System.IsTrial()
Description
Checks if the application is a KitParceiroDev application.
Return Function
A logical value indicating whether or not the application is a KitParceiroDev application.
Parameters
n/a
Example
Dim isKitParceiro as Boolean = SDK.System.IsKitParceiro()
Description
Checks if the application is a KitParceiro application.
Return Function
A logical value indicating whether or not the application is a KitParceiro application.
Parameters
n/a
Example
Dim isKitParceiroApp as Boolean = SDK.System.IsKitParceiroApp()
Description
Gets the application´s license.
Return Function
A string value that indicates the application´s license.
Parameters
n/a
Example
Dim license as string = SDK.System.License()
Description
Gets the application´s export directory.
Return Function
A string value that indicates the application´s export directory.
Parameters
n/a
Example
Dim exportDirectory as string = SDK.System.ExportDir()
Description
Gets the export path of a file.
Return Function
A string value that indicates the export path of a file.
Parameters
Name |
Description |
Type |
filename |
File name |
String |
Example
Dim exportPath as string = SDK.System.GetExportPath("filename.txt")
Description
Gets the application´s current gama.
Return Function
The application´s current gama.
Parameters
n/a
Example
'Checks if applications gama is Advanced
Dim currentGama as Gamas = SDK.System.GetCurrentEdition()
If currentGama = Gamas.Advanced
Return New MsgInfo("The applications gama is: Advanced")
End If
Description
Checks if the gama is available.
Return Function
A logical value indicating whether or not the gama is avaiable.
Parameters
Name |
Description |
Type |
gamaCheck |
The gama to be checked |
ENUM PHCLibrary.Gamas (Ready, Grow, Corporate, Advanced, Enterprise) |
Example
Dim isGamaGrowAvailable as Boolean = SDK.System.IsEditionAvailable(Gamas.Grow)
Description
Gets the list of application´s Advancedducts.
Return Function
A list of integer with all application´s Advancedducts.
Parameters
n/a
Example
'Checks if POS is available
Dim AdvancedductsList As List(Of Integer) = SDK.System.AppAdvancedducts()
If AdvancedductsList.Contains(Advancedducts.POS) Then
Return New MsgInfo("POS is avaiable")
End If
Description
Checks if the Advancedduct is available.
Return Function
A logical value indicating whether or not the Advancedduct is avaiable.
Parameters
Name |
Description |
Type |
AdvancedductId |
The Advancedduct to be checked |
Int32
or
ENUM PHCLibrary.Advancedducts (POS, VENDAS, STOCKS, COMPRAS, TESOURARIA, ANALISES, Agenda, UBLESPAP2_1, Documents, Equipamentos) |
Example
Dim isAdvancedductDocumentLicense as boolean = SDK.System.IsAdvancedductLicence(Advancedducts. Documents)
Description
This function recycles the application by deleting released documents and activities, and it can be used in both “Trial” and “KitParceiro” environments.
All released documents and activities, including Payroll, Assets, and Accounting records, will be deleted.
Framework records will not be deleted.
The process may take a few minutes to be completed.
Return Function
PHCResult.
Parameters
n/a
Example
SDK.System.RecycleTrial()