clsImportTenantEnvironment Class |
Namespace: MARIInterface
The clsImportTenantEnvironment type exposes the following members.
| Name | Description | |
|---|---|---|
| clsImportTenantEnvironment | Initializes a new instance of the clsImportTenantEnvironment class |
| Name | Description | |
|---|---|---|
| ActionMode | Action Mode Inetrnal Handling to push or pull actions from the environment. | |
| EnvironmentGUID | EnvironmentGUID | |
| EnvironmentID | unique internal id. Can be 0 for the import | |
| EnvironmentName | Environment Name | |
| InActive | InActive | |
| ManagedByCardCode | ManagedByCardCode | |
| ManagedByCompany | in the master database link to the company this instalation will be managed. Requried for the card codes. | |
| ManagedByEmployee | ManagedByEmployee | |
| Memo | Memo | |
| WebServicePWD | WebServicePWD | |
| WebServiceURL | WebServiceURL | |
| WebServiceUser | WebServiceUser |
| Name | Description | |
|---|---|---|
| bReadFromDB | (Overrides clsImportBasebReadFromDB(MPInterface, String).) | |
| bSaveRSToMDB | (Overrides clsImportBasebSaveRSToMDB(MPInterface, DataRow, DataTable).) |
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()); } }