Built files from Bizgaze WebServer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

partition.js 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. var Unibase;
  2. (function (Unibase) {
  3. let Platform;
  4. (function (Platform) {
  5. let Apps;
  6. (function (Apps) {
  7. let Components;
  8. (function (Components) {
  9. class Partition extends Platform.Core.BaseComponent {
  10. cssFiles() {
  11. return [];
  12. }
  13. init(containerid) {
  14. }
  15. jsFiles() {
  16. return ["platform/apps/managers/partitionmanager.js"];
  17. }
  18. html(id, containerid) {
  19. return '';
  20. }
  21. load(id, containerid, callback) {
  22. }
  23. loadForm(FormId, Pk_Value, AppConfigurationId, Callback, ElementId) {
  24. }
  25. createPartitionTables(PartitionId) {
  26. var instance = this;
  27. instance.fileCacheHelper.loadJsFile("platform/apps/managers/partitionmanager.js", function () {
  28. Unibase.Platform.Apps.Managers.PartitionManager.Instance().createPartitionTables(PartitionId).then(function (response) {
  29. if (response.errors == null) {
  30. MessageHelper.Instance().showSuccess(response.message, "");
  31. }
  32. else {
  33. MessageHelper.Instance().showError(response.errors, "div_message");
  34. }
  35. });
  36. });
  37. }
  38. refreshAllPartitions() {
  39. var instance = this;
  40. instance.fileCacheHelper.loadJsFile("platform/apps/managers/partitionmanager.js", function () {
  41. Unibase.Platform.Apps.Managers.PartitionManager.Instance().refreshAllPartitions().then(function (response) {
  42. if (response.errors == null) {
  43. MessageHelper.Instance().showSuccess(response.message, "");
  44. }
  45. else {
  46. MessageHelper.Instance().showError(response.errors, "div_message");
  47. }
  48. });
  49. });
  50. }
  51. static Instance() {
  52. if (this.instance === undefined) {
  53. this.instance = new Partition();
  54. }
  55. return this.instance;
  56. }
  57. }
  58. Components.Partition = Partition;
  59. })(Components = Apps.Components || (Apps.Components = {}));
  60. })(Apps = Platform.Apps || (Platform.Apps = {}));
  61. })(Platform = Unibase.Platform || (Unibase.Platform = {}));
  62. })(Unibase || (Unibase = {}));