1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- function uploadIndividual()
- {
- var issuerCode = Project.Variables.code.Value("issuerCode");
- var registrarCode = Project.Variables.code.Value("codeRegister");
- var clientCode = Project.Variables.code.Value("accountclientCodeUpload");
- var name = Project.Variables.name.Value("investoreIndividualName1");
- var sid = Aliases.browser.pageEBaePtKustodianSentralEfekIn.cell70.innerText;
-
- var template =
- '<Message>\n'+
- '<Record name="data">\n'+
- '<Field name="accountSID">'+sid+'</Field>\n'+
- '<Field name="accountParticipantCode">'+registrarCode+'</Field>\n'+
- '<Field name="accountIssuerCode">'+issuerCode+'</Field>\n'+
- '<Field name="accountClientCode">'+clientCode+'</Field>\n'+
- '<Field name="accountOptionType">SEC</Field>\n'+
- '<Field name="accountComminglingCashAccount">y</Field>\n'+
- '<Field name="accountType">120</Field>\n'+
- '<Field name="accountCorrespondentBank"></Field>\n'+
- '<Field name="accountCorrespondentAccountNumber"></Field>\n'+
- '<Field name="accountOwner">2</Field>\n'+
- '<Field name="accountNomineeSID">1234567890</Field>\n'+
- '<Field name="accountDescription">'+name+'</Field>\n'+
- '<Field name="accountAction">CREATE</Field>\n'+
- '<Field name="accountStakeholderType">I</Field>\n'+
- '<Field name="accountComments"></Field>\n'+
- '<Field name="accountExcludeDormant">n</Field>\n'+
- '<Field name="accountBillingFlag">n</Field>\n'+
- '<Field name="accountCAFlag">n</Field>\n'+
- '</Record>\n'+
- '</Message>\n';
-
-
- if (aqFile.Create("C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Account\\account.sdiac") == 0)
- {
-
- aqFile.WriteToTextFile("C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Account\\account.sdiac", template, aqFile.ctUTF8);
- Log.Message("File dibuat dan teks yang ditentukan berhasil ditulis.");
- }
- else
- {
- aqFile.Delete("C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Account\\account.sdiac");
- aqFile.Delete("C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Account\\account.zip");
- if (aqFile.Create("C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Account\\account.sdiac") == 0)
- {
-
- aqFile.WriteToTextFile("C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Account\\account.sdiac", template, aqFile.ctUTF8);
- Log.Message("File dibuat dan teks yang ditentukan berhasil ditulis.");
- }
- }
- }
|