1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- var Unibase;
- (function (Unibase) {
- let Platform;
- (function (Platform) {
- let Apps;
- (function (Apps) {
- let Components;
- (function (Components) {
- class Partition extends Platform.Core.BaseComponent {
- cssFiles() {
- return [];
- }
- init(containerid) {
- }
- jsFiles() {
- return ["platform/apps/managers/partitionmanager.js"];
- }
- html(id, containerid) {
- return '';
- }
- load(id, containerid, callback) {
- }
- loadForm(FormId, Pk_Value, AppConfigurationId, Callback, ElementId) {
- }
- createPartitionTables(PartitionId) {
- var instance = this;
- instance.fileCacheHelper.loadJsFile("platform/apps/managers/partitionmanager.js", function () {
- Unibase.Platform.Apps.Managers.PartitionManager.Instance().createPartitionTables(PartitionId).then(function (response) {
- if (response.errors == null) {
- MessageHelper.Instance().showSuccess(response.message, "");
- }
- else {
- MessageHelper.Instance().showError(response.errors, "div_message");
- }
- });
- });
- }
- refreshAllPartitions() {
- var instance = this;
- instance.fileCacheHelper.loadJsFile("platform/apps/managers/partitionmanager.js", function () {
- Unibase.Platform.Apps.Managers.PartitionManager.Instance().refreshAllPartitions().then(function (response) {
- if (response.errors == null) {
- MessageHelper.Instance().showSuccess(response.message, "");
- }
- else {
- MessageHelper.Instance().showError(response.errors, "div_message");
- }
- });
- });
- }
- static Instance() {
- if (this.instance === undefined) {
- this.instance = new Partition();
- }
- return this.instance;
- }
- }
- Components.Partition = Partition;
- })(Components = Apps.Components || (Apps.Components = {}));
- })(Apps = Platform.Apps || (Platform.Apps = {}));
- })(Platform = Unibase.Platform || (Unibase.Platform = {}));
- })(Unibase || (Unibase = {}));
|