byte-jscript
Version:
A helper package for creating Macros and Validation Rules within the Byte Pro Loan Management System (LMS).
47 lines (46 loc) • 1.48 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.los = exports.ev = void 0;
var LocalSystem_1 = require("./LocalSystem");
Object.defineProperty(exports, "los", { enumerable: true, get: function () { return LocalSystem_1.LocalSystem; } });
/**
* **Environment**: Holds the current information and methods pertaining to the current environment
* @class
*/
var Environment = /** @class */ (function () {
function Environment() {
}
/**
* **Validation Rule**: Creates a hard stop when set to *true*
* @type {boolean}
*/
Environment.Cancel = true;
/**
* **Macro**: Gets the button ID of the button that was pressed in the environment
* @type {string}
*/
Environment.ButtonID = "";
/**
* **Macro + Validation Rule**: Allows access to the current file pertaining to the environment
*
*/
Environment.File = {
DoesChildObjectExist: function (objectName) {
return true;
},
GetCollectionCount: function (collectionName) {
return 1;
},
GetCollectionObject: function (collectionName, index) {
return {};
},
GetCollectionObjectNames: function () {
return [];
},
DeleteCollectionObject: function (collectionName, index) {
return;
}
};
return Environment;
}());
exports.ev = Environment;