Built files from Bizgaze WebServer
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

refreshwallets.js 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. var Bizgaze;
  2. (function (Bizgaze) {
  3. let Apps;
  4. (function (Apps) {
  5. let Transact;
  6. (function (Transact) {
  7. let Components;
  8. (function (Components) {
  9. let Offers;
  10. (function (Offers) {
  11. class RefreshWallets extends Unibase.Platform.Core.BaseComponent {
  12. cssFiles() {
  13. throw new Error("Method not implemented.");
  14. }
  15. jsFiles() {
  16. return ['apps/transact/managers/offers/offermanager.js'];
  17. }
  18. html(id, containerid) {
  19. throw new Error("Method not implemented.");
  20. }
  21. load(id, containerid, callback) {
  22. throw new Error("Method not implemented.");
  23. }
  24. init() {
  25. var instance = this;
  26. var offerid = Number(Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_offerid").Value);
  27. var offername = Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_offername").Value;
  28. instance.fileCacheHelper.loadJsFile('apps/transact/managers/offers/offermanager.js', function () {
  29. Bizgaze.Apps.Transact.Managers.OfferManager.Instance().refreshallwallets(offerid, offername).then(function (response) {
  30. MessageHelper.Instance().showSuccess(response.message, "div_message");
  31. });
  32. });
  33. }
  34. refreshwallets() {
  35. var instance = this;
  36. instance.fileCacheHelper.loadJsFile('apps/transact/managers/offers/offermanager.js', function () {
  37. Bizgaze.Apps.Transact.Managers.OfferManager.Instance().refreshallofferswallets().then(function (response) {
  38. MessageHelper.Instance().showSuccess(response.message, "div_message");
  39. });
  40. });
  41. }
  42. static Instance() {
  43. if (this._instance === undefined)
  44. this._instance = new RefreshWallets();
  45. return this._instance;
  46. }
  47. }
  48. Offers.RefreshWallets = RefreshWallets;
  49. })(Offers = Components.Offers || (Components.Offers = {}));
  50. })(Components = Transact.Components || (Transact.Components = {}));
  51. })(Transact = Apps.Transact || (Apps.Transact = {}));
  52. })(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
  53. })(Bizgaze || (Bizgaze = {}));