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.

payoutrequestsubmissionapproval.js 33KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
  2. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  3. return new (P || (P = Promise))(function (resolve, reject) {
  4. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  5. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  6. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  7. step((generator = generator.apply(thisArg, _arguments || [])).next());
  8. });
  9. };
  10. var _pagesize = 10;
  11. var pageIndex = 0;
  12. var Bizgaze;
  13. (function (Bizgaze) {
  14. let Apps;
  15. (function (Apps) {
  16. let Transact;
  17. (function (Transact) {
  18. let Components;
  19. (function (Components) {
  20. let Wallets;
  21. (function (Wallets) {
  22. class PayoutRequestSubmissionApproval extends Unibase.Platform.Core.BaseComponent {
  23. constructor() {
  24. super(...arguments);
  25. this.Installedappid = 0;
  26. }
  27. cssFiles() {
  28. return [""];
  29. }
  30. jsFiles() {
  31. return ["apps/transact/components/Wallets/payoutrequestsubmissionapproval.js",
  32. "apps/transact/managers/wallets/walletmanager.js",
  33. "tenants/themes/default/components/details/details.js",
  34. "apps/transact/managers/inventory/itemmanager.js",
  35. "tenants/themes/default/notificationrefresh.js",
  36. "apps/paybacks/components/secondaryqrcodedetails.js",
  37. "libs/bizgaze/helpers/messages/messagehelper.js",
  38. ];
  39. }
  40. init(containerid) {
  41. var instance = this;
  42. Bizgaze.Apps.Transact.Components.Wallets.PayoutRequestSubmissionApproval.Instance().render(containerid);
  43. Bizgaze.Apps.Transact.Components.Wallets.PayoutRequestSubmissionApproval.Instance().LoadPayoutRequestSubmissionStages();
  44. Bizgaze.Apps.Transact.Components.Wallets.PayoutRequestSubmissionApproval.Instance().getInstalledapp();
  45. $('#txt_CouponSubmission_Org_search').change(function () {
  46. $(".CpnSubmission").remove();
  47. pageIndex = 0;
  48. var StageId = Number($('select#txt_CouponSubmission_Org_search option:selected').val());
  49. if (StageId != 0)
  50. Bizgaze.Apps.Transact.Components.Wallets.PayoutRequestSubmissionApproval.Instance().getPayoutRequestSubmissionApproval(StageId, 0);
  51. });
  52. $("#checkAll").change(function () {
  53. $("input:checkbox").prop('checked', $(this).prop("checked"));
  54. });
  55. $('#btn_list_load_more__modal_bizgaze_srpl').click(function () {
  56. pageIndex++;
  57. var StageId = Number($('select#txt_CouponSubmission_Org_search option:selected').val());
  58. if (StageId != 0)
  59. Bizgaze.Apps.Transact.Components.Wallets.PayoutRequestSubmissionApproval.Instance().getPayoutRequestSubmissionApproval(StageId, pageIndex);
  60. });
  61. var Stagestatusname = "";
  62. $('#btnsubmissions').click(function () {
  63. if ($('select#txt_CouponSubmission_Org_search option:selected').text() == "Successfully Generated") {
  64. Bizgaze.Apps.Transact.Components.Wallets.PayoutRequestSubmissionApproval.Instance().ApprovedByFinanceStage();
  65. }
  66. if ($('select#txt_CouponSubmission_Org_search option:selected').text() == "In-Progress") {
  67. Stagestatusname = "authenticsucessfullygenerated";
  68. Bizgaze.Apps.Transact.Components.Wallets.PayoutRequestSubmissionApproval.Instance().SuccessfullyGenerateStage(Stagestatusname);
  69. }
  70. if ($('select#txt_CouponSubmission_Org_search option:selected').text() == "Payment In-Progress") {
  71. Stagestatusname = "authenticapprovedbyfinance";
  72. Bizgaze.Apps.Transact.Components.Wallets.PayoutRequestSubmissionApproval.Instance().SuccessfullyGenerateStage(Stagestatusname);
  73. }
  74. });
  75. }
  76. html(id, containerid) {
  77. var html = ``;
  78. return html;
  79. }
  80. load(id, containerid, callback) {
  81. return __awaiter(this, void 0, void 0, function* () {
  82. var instance = this;
  83. });
  84. }
  85. loadhtml(id, containerid) {
  86. var instance = this;
  87. var html = ``;
  88. return html;
  89. }
  90. render(containerid) {
  91. var html = `<span class="spn_cpnaprl_errormsg text-danger text-center" id="spn_cpnaprl_errormsg" ></span><div class="card">
  92. <select id="txt_CouponSubmission_Org_search" class="form-control text-control required" style="width:100%;" placeholder = "Search" data-placeholder="Search"></select>
  93. <input type="hidden" id="hf_Coupon_Org_search" class="hf_txt_CouponSubmission_Org_search' form-control value-control" data-isdynamic="true"/>
  94. </div>
  95. <div class="card">
  96. <div class="card-header" id="Couponsubmissionid">
  97. <div class="row col-sm-12">
  98. <div class="col-sm-1"><input type="checkbox" class="checkAll hidden" id="checkAll" style="cursor:pointer"/></div>
  99. <div class="col-sm-2" id="cpnsarl_CouponSubmissionNo"><strong>Submission No</strong></div>
  100. <input type='hidden' id='hfCouponSubmissionNumber' value='' />
  101. <div class="col-sm-2" id="cpnsarl_Contact"><strong>Contact Name</strong></div>
  102. <div class="col-sm-2" id="cpnsarl_ContactType"><strong>Contact Type</strong></div>
  103. <div class="col-sm-2" id="cpnsarl_Status"><strong>Stage Name</strong></div>
  104. <div class="col-sm-1" id="cpnsarl_TotalcouponPoints"><strong>Redeem Value</strong></div>
  105. <div class="col-sm-2" id="cpnsarl_CreatedDate"><strong>Created Date</strong></div>
  106. </div>
  107. </div>
  108. <div class="row Couponsubmissiondiv " id="Couponsubmissiondiv">
  109. </div>
  110. <div class="card-footer" style="background-color:white;">
  111. <div class="text-center text-white bg-white templatebody-div">
  112. </div>
  113. <div class="col-sm-4 pull-left" id="cpntotalrecords">
  114. <span class="text-muted pull-left">Total : <span id="lblcpnTotals">0</span></span>
  115. </div>
  116. <div class="col-sm-6">
  117. <a class="btn btn-success m-b btn-list-load-more mt-10 mb-20 ml-100" id="btn_list_load_more__modal_bizgaze_srpl">More<i class=""> </i></a>
  118. </div>
  119. <div class="col-sm-2 _btnsubmissions_div">
  120. <span class="pull-right"><a class="btn mr-20 btn mr-20 btn btn-success btn-sm float-right text-white" id="btnsubmissions"></a></span>
  121. </div>
  122. </div>
  123. </div>`;
  124. $("#" + containerid).html(html);
  125. }
  126. getInstalledapp() {
  127. var instance = this;
  128. let uniqueid = 'Bizgaze_Extension_Transact_PayoutRequest_App_PayoutRequest';
  129. Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("platform/apps/managers/appmanager.js", function () {
  130. Unibase.Platform.Apps.Managers.AppManager.Instance().getInstallAppId(uniqueid).then(function (response) {
  131. var data = response.result;
  132. Bizgaze.Apps.Transact.Components.Wallets.PayoutRequestSubmissionApproval.Instance().Installedappid = data.InstalledAppId;
  133. });
  134. });
  135. }
  136. getPayoutRequestSubmissionApproval(StageId, page) {
  137. if (StageId != 0)
  138. Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/transact/managers/wallets/walletmanager.js", function () {
  139. Bizgaze.Apps.Transact.Managers.WalletManager.Instance().getPayoutRequestSubmissionApprovalData(StageId, page).then(function (response) {
  140. var totalRecords = 0;
  141. $('._btnsubmissions_div').addClass('hidden');
  142. if (response.result._rows.length != 0) {
  143. var _datetimehelper = Unibase.Platform.Helpers.DateTimeHelper.Instance();
  144. var isCheckCouponSubmission = false;
  145. var Stagestatusname = '';
  146. var finalhtml = '';
  147. let StageName = response.result._rows[0].Cells[4];
  148. if (StageName == "Successfully Generated")
  149. $(".checkAll").removeClass("hidden");
  150. else if (StageName == "In-Progress")
  151. $(".checkAll").removeClass("hidden");
  152. else if (StageName == "Payment In-Progress")
  153. $(".checkAll").removeClass("hidden");
  154. else
  155. $(".checkAll").addClass("hidden");
  156. totalRecords = response.result._totalRecords;
  157. for (var i = 0; i < response.result._rows.length; i++) {
  158. var data = response.result._rows[i];
  159. var submissionId = data.Cells[0];
  160. var SubmissionNo = data.Cells[1];
  161. var CustomerName = data.Cells[2];
  162. var CustomerTagName = 'NA';
  163. var RedeemValue = data.Cells[5];
  164. var StageId = data.Cells[4];
  165. var _StageName = data.Cells[3];
  166. var submissionDate = _datetimehelper.formatLocalDate1(data.Cells[6], '');
  167. var html = '';
  168. if (CustomerName == null) {
  169. CustomerName = 'NA';
  170. }
  171. if (CustomerTagName == null) {
  172. CustomerTagName = 'NA';
  173. }
  174. var index = Number(i);
  175. html += ' <div class="card CpnSubmission" > <div class="card-body CpnSubmission" id="Couponsubmissionid_' + submissionId + '"><div class="row Couponsubmissiondiv1 col-sm-12" id = "Couponsubmissiondiv_' + submissionId + '" > ' +
  176. '<input type="hidden" class="CouponsubmissionIndexnumber" id="Indexnumber_' + index + '" value="' + i + '"/>' +
  177. '<input type="hidden" class="Indexnumber" id="Indexnumber_' + index + '" value="' + index + '"/>' +
  178. '<input type="hidden" class="hfCouponSubmissionId" id="hfCouponSubmissionId_' + submissionId + '" value="' + submissionId + '" />' +
  179. '<div class="col-sm-1" ><input type = "checkbox" class="CheckCouponSubmissionNumber hidden" name="CheckCouponSubmissionNumber" id = "CheckCouponSubmission_' + submissionId + '" value="' + submissionId + '" style="cursor:pointer"/></div>' +
  180. '<div class="col-sm-2" ><span><a class="font-bold">' + SubmissionNo + ' </a></span></div>' +
  181. '<input type="hidden" class="cpnsub_SubmissionNo" id="cpnsub_SubmissionNo_' + submissionId + '" value="' + SubmissionNo + '"/>' +
  182. '<div class="col-sm-2" class="cpnsub_CustomerName" id="cpnsub_CustomerName_' + submissionId + '">' + CustomerName + '</div>' +
  183. '<input type="hidden" class="cpnsub_CustomerName" id="cpnsub_CustomerName_' + submissionId + '" value="' + CustomerName + '"/>' +
  184. '<div class="col-sm-2" class="cpnsub_CustomerTagName" id="cpnsub_CustomerTagName_' + submissionId + '">' + CustomerTagName + '</div>' +
  185. '<input type="hidden" class="cpnsub_CustomerTagName" id="cpnsub_CustomerTagName_' + submissionId + '" value="' + CustomerTagName + '"/>' +
  186. '<div class="col-sm-2" class="cpnsub_StageName" id="cpnsub_StageName_' + submissionId + '">' + _StageName + '</div>' +
  187. '<input type="hidden" class="cpnsub_StageName" id="cpnsub_StageName_' + submissionId + '" value="' + _StageName + '"/>' +
  188. '<div class="col-sm-1 class="cpnsub_CouponPoints" id="cpnsub_CouponPoints_' + submissionId + '">' + RedeemValue + '</div>' +
  189. '<input type="hidden" class="cpnsub_CouponPoints" id="cpnsub_CouponPoints_' + submissionId + '" value="' + RedeemValue + '"/>' +
  190. '<div class="col-sm-2 class="cpnsub_SubmissionDate" id="cpnsub_SubmissionDate_' + submissionId + '">' + submissionDate + '</div>' +
  191. '<input type="hidden" class="cpnsub_SubmissionDate" id="Indexnumber_' + i + '" value="' + submissionDate + '"/>';
  192. html += '</div></div></div>';
  193. $(".Couponsubmissiondiv:last").after("<div class='Couponsubmissiondiv' id='AddCouponsubmissiondiv_" + submissionId + "'></div>");
  194. $("#AddCouponsubmissiondiv_" + submissionId).append(html);
  195. }
  196. }
  197. if ($('select#txt_CouponSubmission_Org_search option:selected').text() == "Successfully Generated" || $('select#txt_CouponSubmission_Org_search option:selected').text() == "Payment In-Progress") {
  198. $('#btnsubmissions').text('Approved By Finance');
  199. $(".CheckCouponSubmissionNumber").removeClass("hidden");
  200. $('._btnsubmissions_div').removeClass('hidden');
  201. }
  202. else if ($('select#txt_CouponSubmission_Org_search option:selected').text() == "In-Progress") {
  203. $('#btnsubmissions').text('Verify');
  204. $(".CheckCouponSubmissionNumber").removeClass("hidden");
  205. $('._btnsubmissions_div').removeClass('hidden');
  206. }
  207. $('#conta').removeClass('hidden');
  208. if (totalRecords > _pagesize) {
  209. $("#gridPager2").show();
  210. $("#cpntotalrecords").show();
  211. }
  212. else {
  213. $("#gridPager2").hide();
  214. }
  215. if (totalRecords > _pagesize) {
  216. var totalCount = totalRecords;
  217. var startingValue = 0;
  218. var _count = 0;
  219. var t = (1 + page) * 10;
  220. if (totalCount > 0) {
  221. startingValue = 1;
  222. _count = totalCount;
  223. }
  224. if (totalCount > t)
  225. _count = t;
  226. if (1 > 0) {
  227. startingValue += t - 10;
  228. }
  229. var res = startingValue + " - " + _count + " of " + totalRecords;
  230. $('#lblcpnTotals').text(res);
  231. if (_count == totalRecords) {
  232. $("#btn_list_load_more__modal_bizgaze_srpl").addClass("hidden");
  233. }
  234. else {
  235. $("#btn_list_load_more__modal_bizgaze_srpl").removeClass("hidden");
  236. }
  237. }
  238. else
  239. $('#lblcpnTotals').text(totalRecords);
  240. });
  241. });
  242. }
  243. cspValidation() {
  244. var inpStageID = 0;
  245. var InstalledAppId = Unibase.Themes.Providers.DetailHelper.installedAppId;
  246. var stagename = Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + InstalledAppId + "_stagename").Value;
  247. var stageID = Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + InstalledAppId + "_stageid").Value;
  248. $("#li_DetailSetting_" + InstalledAppId + "_Verify").addClass('hidden');
  249. if (stagename == "In-Progress") {
  250. $("#li_DetailSetting_" + InstalledAppId + "_Verify").removeClass('hidden');
  251. Unibase.Platform.Apps.Managers.StageManager.Instance().getStages(InstalledAppId).then(function (response) {
  252. for (let x of response.result) {
  253. if (x.StageName == "Successfully Generated") {
  254. inpStageID = x.StageId;
  255. }
  256. }
  257. });
  258. }
  259. $(".DetailSetting_" + InstalledAppId + "_Verify").unbind().click(function () {
  260. Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile('platform/core/infos/status.js', function () { });
  261. var recordid = Unibase.Themes.Providers.DetailHelper.recordId;
  262. var installedappid = Unibase.Themes.Providers.DetailHelper.installedAppId;
  263. Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile('tenants/themes/compact/components/details/details.js', function () {
  264. Unibase.Themes.Compact.Components.Details.Instance().changeStage(inpStageID, installedappid);
  265. });
  266. });
  267. }
  268. LoadPayoutRequestSubmissionStages() {
  269. var StageStatusName = "authenticsucessfullygenerated";
  270. Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/transact/managers/wallets/walletmanager.js", function () {
  271. Bizgaze.Apps.Transact.Managers.WalletManager.Instance().getPayoutRequestSubmissionStages(StageStatusName).then(function (response) {
  272. var stagedata = response.result;
  273. for (var i = 0; i < stagedata.length; i++) {
  274. if (response.result[i].StageName == "Successfully Generated") {
  275. $('#txt_CouponSubmission_Org_search').append('<option selected="selected" value="' + stagedata[i].StageId + '">' + response.result[i].StageName + '</option>');
  276. Bizgaze.Apps.Transact.Components.Wallets.PayoutRequestSubmissionApproval.Instance().getPayoutRequestSubmissionApproval(stagedata[i].StageId, 0);
  277. }
  278. else
  279. $('#txt_CouponSubmission_Org_search').append('<option value="' + stagedata[i].StageId + '">' + response.result[i].StageName + '</option>');
  280. }
  281. });
  282. });
  283. }
  284. CouponSubmissionStageUpdate(Docarr) {
  285. Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/transact/managers/wallets/walletmanager.js", function () {
  286. Bizgaze.Apps.Transact.Managers.WalletManager.Instance().PayoutRequestSubmissonstagechanged(Docarr).then(function (response) {
  287. if (response.errors != null) {
  288. MessageHelper.Instance().showError(response.message, 'spn_cpnaprl_errormsg');
  289. }
  290. else {
  291. $('.spn_cpnaprl_errormsg').html('');
  292. MessageHelper.Instance().showSuccess(response.message, 'spn_cpnaprl_errormsg');
  293. var StageId = Number($('select#txt_CouponSubmission_Org_search option:selected').val());
  294. if (StageId != 0)
  295. Bizgaze.Apps.Transact.Components.Wallets.PayoutRequestSubmissionApproval.Instance().getPayoutRequestSubmissionApproval(StageId, 0);
  296. }
  297. });
  298. });
  299. }
  300. ApprovedByFinanceStage() {
  301. var StageId = $('select#txt_CouponSubmission_Org_search option:selected').val();
  302. var StageStatusName = "authenticapprovedbyfinance";
  303. var CheckedStages = [];
  304. $.each($("input[name='CheckCouponSubmissionNumber']:checked"), function () {
  305. CheckedStages.push($(this).val());
  306. });
  307. if (CheckedStages.length >= 1) {
  308. bootbox.confirm("Are you sure ! You want to change selected submission's to 'Approved By Finance' stage?", function (result) {
  309. if (result) {
  310. var Docarr = [];
  311. for (var i = 0; i < CheckedStages.length; i++) {
  312. var Stagedata = CheckedStages[i];
  313. $(".Couponsubmissiondiv").find(".Couponsubmissiondiv1").each(function () {
  314. var sid = Number($(this).find('.hfCouponSubmissionId').val());
  315. if (Number(Stagedata) == sid) {
  316. var data = {
  317. PayoutRequestId: Number($(this).find('.hfCouponSubmissionId').val()),
  318. SubmissionNo: $(this).find('.cpnsub_SubmissionNo').val(),
  319. CustomerName: $(this).find('.cpnsub_CustomerName').val(),
  320. CustomerTagName: $(this).find('.cpnsub_CustomerTagName').val(),
  321. StageStatusName: StageStatusName,
  322. CouponPoints: $(this).find('.cpnsub_CouponPoints').val(),
  323. SubmissionDate: $(this).find('.cpnsub_SubmissionDate').val(),
  324. StageId: StageId,
  325. };
  326. Docarr.push(data);
  327. }
  328. });
  329. }
  330. Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/transact/managers/wallets/walletmanager.js", function () {
  331. Bizgaze.Apps.Transact.Managers.WalletManager.Instance().PayoutRequestSubmissonstagechanged(Docarr).then(function (response) {
  332. if (response.errors != null) {
  333. MessageHelper.Instance().showError(response.message, 'spn_cpnaprl_errormsg');
  334. }
  335. else {
  336. var objList = [];
  337. $('.spn_cpnaprl_errormsg').html('');
  338. MessageHelper.Instance().showSuccess(response.message, 'spn_cpnaprl_errormsg');
  339. var StageId = Number($('select#txt_CouponSubmission_Org_search option:selected').val());
  340. if (StageId != 0)
  341. Bizgaze.Apps.Transact.Components.Wallets.PayoutRequestSubmissionApproval.Instance().getPayoutRequestSubmissionApproval(StageId, 0);
  342. }
  343. });
  344. });
  345. $("#checkAll").prop('checked', false);
  346. $(".CpnSubmission").remove();
  347. }
  348. });
  349. }
  350. else {
  351. alert("No submission is selected");
  352. }
  353. }
  354. SuccessfullyGenerateStage(StageStatusName) {
  355. var StageId = $('select#txt_CouponSubmission_Org_search option:selected').val();
  356. var CheckedStages = [];
  357. $.each($("input[name='CheckCouponSubmissionNumber']:checked"), function () {
  358. CheckedStages.push($(this).val());
  359. });
  360. var msg = "";
  361. if (StageStatusName == "authenticsucessfullygenerated") {
  362. msg = "Successfully Generated";
  363. }
  364. if (StageStatusName == "authenticapprovedbyfinance") {
  365. msg = "Approved By Finance";
  366. }
  367. if (CheckedStages.length >= 1) {
  368. bootbox.confirm("Are you sure ! You want to change selected submission's to '" + msg + "' stage?", function (result) {
  369. if (result) {
  370. var Docarr = [];
  371. for (var i = 0; i < CheckedStages.length; i++) {
  372. var Stagedata = CheckedStages[i];
  373. $(".Couponsubmissiondiv").find(".Couponsubmissiondiv1").each(function () {
  374. var sid = Number($(this).find('.hfCouponSubmissionId').val());
  375. if (Number(Stagedata) == sid) {
  376. var data = {
  377. CouponSubmissionId: Number($(this).find('.hfCouponSubmissionId').val()),
  378. SubmissionNo: $(this).find('.cpnsub_SubmissionNo').val(),
  379. CustomerName: $(this).find('.cpnsub_CustomerName').val(),
  380. CustomerTagName: $(this).find('.cpnsub_CustomerTagName').val(),
  381. StageStatusName: StageStatusName,
  382. CouponPoints: $(this).find('.cpnsub_CouponPoints').val(),
  383. SubmissionDate: $(this).find('.cpnsub_SubmissionDate').val(),
  384. StageId: StageId,
  385. };
  386. Docarr.push(data);
  387. }
  388. });
  389. }
  390. Bizgaze.Apps.Transact.Components.Wallets.PayoutRequestSubmissionApproval.Instance().CouponSubmissionStageUpdate(Docarr);
  391. $("#checkAll").prop('checked', false);
  392. $(".CpnSubmission").remove();
  393. }
  394. });
  395. }
  396. else {
  397. alert("No submission is selected");
  398. }
  399. }
  400. static Instance() {
  401. if (this.instance === undefined) {
  402. this.instance = new PayoutRequestSubmissionApproval();
  403. }
  404. return this.instance;
  405. }
  406. }
  407. Wallets.PayoutRequestSubmissionApproval = PayoutRequestSubmissionApproval;
  408. })(Wallets = Components.Wallets || (Components.Wallets = {}));
  409. })(Components = Transact.Components || (Transact.Components = {}));
  410. })(Transact = Apps.Transact || (Apps.Transact = {}));
  411. })(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
  412. })(Bizgaze || (Bizgaze = {}));