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.

redepositepayment.component.js 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. var Bizgaze;
  2. (function (Bizgaze) {
  3. let Apps;
  4. (function (Apps) {
  5. let Transact;
  6. (function (Transact) {
  7. let Controls;
  8. (function (Controls) {
  9. class ReDepositePayment extends Unibase.Platform.Core.BaseComponent {
  10. init(formpropertyid, prop, callback) { }
  11. loadControl(containerid, prop) { }
  12. loadControlSettings(controlsettingjson, formpropertyid) { }
  13. loadPropertySettings(propertysettings, formpropertyid, DocPropertyName) { }
  14. bindEditFormDetails(formpropertyid, propval, DocPropertyName) { }
  15. ReDepositePayment() {
  16. var InstalledAppId = Unibase.Themes.Providers.DetailHelper.installedAppId;
  17. let detailContainer = "#" + Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds[Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds.length - 1];
  18. var stage = String(Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + InstalledAppId + "_stageshortcode").Value);
  19. var paymentmode = Number(Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + InstalledAppId + "_paymentmodeid").Value);
  20. if (paymentmode == 2 && stage == "RJT") {
  21. $(detailContainer).find('.DetailSetting_' + '' + InstalledAppId + '' + '_ReDeposite').parent('li').removeClass('hidden');
  22. }
  23. else {
  24. $(detailContainer).find('.DetailSetting_' + '' + InstalledAppId + '' + '_ReDeposite').parent('li').addClass('hidden');
  25. }
  26. var detail_instance = Unibase.Themes.Compact.Components.Details.Instance();
  27. const containerid = detail_instance._containerId;
  28. var portletid = detail_instance.unibase_core_activeportletid;
  29. detail_instance.loadWidgets(InstalledAppId, portletid, "#" + containerid + "");
  30. }
  31. static Instance() {
  32. if (this._instance === undefined)
  33. this._instance = new ReDepositePayment();
  34. return this._instance;
  35. }
  36. }
  37. Controls.ReDepositePayment = ReDepositePayment;
  38. })(Controls = Transact.Controls || (Transact.Controls = {}));
  39. })(Transact = Apps.Transact || (Apps.Transact = {}));
  40. })(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
  41. })(Bizgaze || (Bizgaze = {}));