Click or drag to resize

clsImportTenantEnvironment Class

Import for table MPTenantEnvironments: Base client enviornment (master for over all clients)
Inheritance Hierarchy
SystemObject
  MARIInterfaceclsImportBase
    MARIInterfaceclsImportTenantEnvironment

Namespace:  MARIInterface
Assembly:  MARIInterface (in MARIInterface.dll) Version: 8.0.0.100
Syntax
public class clsImportTenantEnvironment : clsImportBase

The clsImportTenantEnvironment type exposes the following members.

Constructors
  NameDescription
Public methodclsImportTenantEnvironment
Initializes a new instance of the clsImportTenantEnvironment class
Top
Properties
  NameDescription
Public propertyActionMode
Action Mode Inetrnal Handling to push or pull actions from the environment.
Public propertyEnvironmentGUID
EnvironmentGUID
Public propertyEnvironmentID
unique internal id. Can be 0 for the import
Public propertyEnvironmentName
Environment Name
Public propertyInActive
InActive
Public propertyManagedByCardCode
ManagedByCardCode
Public propertyManagedByCompany
in the master database link to the company this instalation will be managed. Requried for the card codes.
Public propertyManagedByEmployee
ManagedByEmployee
Public propertyMemo
Memo
Public propertyWebServicePWD
WebServicePWD
Public propertyWebServiceURL
WebServiceURL
Public propertyWebServiceUser
WebServiceUser
Top
Methods
Remarks
Examples
Create new tenant environment
public bool CreateTenantEnvironment(string EnvironmentName, string ManagingEmployee, string ManagedByCardCode) {
    clsImportTenantEnvironment oEnv = new clsImportTenantEnvironment();
    oEnv.EnvironmentName = EnvironmentName;
    oEnv.ManagedByCompany = 1; // first linked company
    oEnv.ManagedByCardCode = ManagedByCardCode; //OCRD.CardCode

    oEnv.ManagedByEmployee = ManagingEmployee;
    if (oMPInterface.bImportTenantEnvironment(oEnv, clsImportBase.eImportMode.ValidateAndImport)) {
        return true;
    } else {
        throw new Exception(oMPInterface.oErrors.PrintErrors());
    }
}
See Also