function xdata(param) { var randyi = ""; for (ii = 0; ii<= 3; ii++ ) { randy = Math.floor(Math.random() * (9 - 0)); randyi = randyi + randy.toString(); } var ktp = ""; for (i = 0; i<= 12; i++ ) { Rand = Math.floor(Math.random() * (9 - 0)); ktp = ktp + Rand.toString(); } this.getdata = function datacollection() { data = [ktp, randyi] } } const dataset = new xdata(); function xdata2(param1) { var randy2 = ""; for (ii = 0; ii<= 3; ii++ ) { randy3 = Math.floor(Math.random() * (9 - 0)); randy2 = randy2 + randy3.toString(); } var npwp = ""; for (i = 0; i<= 15; i++ ) { Rand3 = Math.floor(Math.random() * (9 - 0)); npwp = npwp + Rand3.toString(); } this.getdata = function datacollection() { data2 = [npwp, randy2] } } const dataset1 = new xdata2(); function checkCode() { for (i = 0; i <= 10; i++){ if (Aliases.PTW.dlg.btnOK.Exists) { Aliases.PTW.dlg.btnOK.ClickButton(); let wizardControl2_1 = Aliases.PTW.Wizard2.WizardControl2; let panel = wizardControl2_1.panel2; panel.panelLeft.panelStepLabels.CondicoLabel3.Click(29, 11); Delay(2000) condicoPlainTextBox.SetText(generateCode()); Delay(2000) wizardControl2_1.kryptonGroupButtons.tableLayoutPanel2.flowLayoutPanel2.tableLayoutPanel1.btnFinish.ClickButton(); Delay(15000) }else { break; } } } function generateCode(randyi) { var randyi = ""; for (ii = 0; ii<= 3; ii++ ) { randy = Math.floor(Math.random() * (9 - 0)); randyi = randyi + randy.toString(); } randyi = "T"+randyi; return randyi; } function PATCH_001_SA_PART_I(){ Rand1 = Math.floor(Math.random() * (9 - 0)); dataset.getdata(); dataset1.getdata(); } function PATCH_089_UPLOAD_SUBSCRIPTION() { let url = "C:\\Users\\vendor_qafusi4\\Documents\\S-INVEST GUI\\S-Invest GUI\\Data Source\\Data Upload\\12. Unit Transaction Subscription\\patch_089_upload_subscription_transaction.txt"; var saCode = Project.Variables.login_as_sa.Value("participantCodeSA"); var reference = 'Testing Subscription '+aqConvert.DateTimeToFormatStr(aqDateTime.Today(), "%Y%m%d"); var today = new Date(); var dd = String(today.getDate()).padStart(2, '0');//date today var mm = String(today.getMonth() + 1).padStart(2, '0'); //January is 0! var yyyy = today.getFullYear(); today = yyyy+mm+dd; let template = 'transactionDate'+'|'+'transactionType'+'|'+'saCode'+'|'+'investorFundUnitA/CNo.'+'|'+'fundCode'+'|'+'amount(Nominal)'+'|'+'amount(Unit)'+'|'+'amount(AllUnits)'+'|'+'fee(Nominal)'+'|'+'fee(Unit)'+'|'+'fee(%)'+'|'+'redmPaymentA/CSequentialCode'+'|'+'redmPaymentBankBICCode'+'|'+'redmPaymentBankBIMemberCode'+'|'+'redmPaymentA/CNo.'+'|'+'paymentDate'+'|'+'transferType'+'|'+'taReferenceNo.\n'+ ''+today+'|'+'1'+'|'+saCode+'|'+'TMS69000CKUF0120'+'|'+'LG002MMSFD844600'+'|'+'10000000.00'+'|'+''+'|'+''+'|'+'100000.00'+'|'+''+'|'+''+'|'+''+'|'+''+'|'+''+'|'+''+'|'+''+'|'+''+'|'+reference+'' ; if (aqFile.Create(url) == 0) { aqFile.WriteToTextFile(url, template, aqFile.ctUTF8); Log.Message("File dibuat dan teks yang ditentukan berhasil ditulis."); } else { aqFile.Delete(url); if (aqFile.Create(url) == 0) { aqFile.WriteToTextFile(url, template, aqFile.ctUTF8); Log.Message("File dibuat dan teks yang ditentukan berhasil ditulis."); } } }