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.

syncsubmission.js 3.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. var Unibase;
  2. (function (Unibase) {
  3. let Platform;
  4. (function (Platform) {
  5. let Automation;
  6. (function (Automation) {
  7. let Sync;
  8. (function (Sync) {
  9. let Components;
  10. (function (Components) {
  11. class SyncSubmission extends Unibase.Platform.Core.BaseComponent {
  12. jsFiles() {
  13. return ['platform/automation/sync/managers/syncmanager.js'];
  14. }
  15. cssFiles() {
  16. return [];
  17. }
  18. html() {
  19. return null;
  20. }
  21. load() {
  22. }
  23. syncTenant(tenantid, database, rdbconstr, isindividual) {
  24. let containerId = Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds[Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds.length - 1];
  25. let btnSync = $(containerId).find('.btn_sync');
  26. let obj = new syncProviders();
  27. obj.TenantId = tenantid;
  28. obj.DBName = database;
  29. obj.RDBConnectionString = rdbconstr;
  30. obj.IsIndividual = isindividual;
  31. var instance = this;
  32. if (isindividual) {
  33. instance.fileCacheHelper.loadJsFile("platform/automation/sync/managers/syncmanager.js", function () {
  34. Unibase.Platform.Automation.Sync.Managers.SyncManager.Instance().syncTenant(obj).then(function (responce) {
  35. if (responce != null) {
  36. }
  37. });
  38. });
  39. }
  40. else {
  41. bootbox.confirm("Are you sure you want to SYNC All tenants?", function (result) {
  42. if (result) {
  43. instance.fileCacheHelper.loadJsFile("platform/automation/sync/managers/syncmanager.js", function () {
  44. Unibase.Platform.Automation.Sync.Managers.SyncManager.Instance().syncTenant(obj).then(function (responce) {
  45. if (responce != null) {
  46. }
  47. });
  48. });
  49. }
  50. });
  51. }
  52. }
  53. static Instance() {
  54. if (this.instance === undefined) {
  55. this.instance = new SyncSubmission();
  56. }
  57. return this.instance;
  58. }
  59. }
  60. SyncSubmission.syncName = [];
  61. Components.SyncSubmission = SyncSubmission;
  62. })(Components = Sync.Components || (Sync.Components = {}));
  63. class syncProviders {
  64. }
  65. })(Sync = Automation.Sync || (Automation.Sync = {}));
  66. })(Automation = Platform.Automation || (Platform.Automation = {}));
  67. })(Platform = Unibase.Platform || (Unibase.Platform = {}));
  68. })(Unibase || (Unibase = {}));