12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- function uploadUnclaimedAsset()
- {
- var issuerCode = Project.Variables.code.Value("issuerCode");
- var registrarCode = Project.Variables.code.Value("codeRegister");
- var clientCode1 = Project.Variables.code.Value("accountClientCode1");
- var clientCOde2 = Project.Variables.code.Value("accountClientCode2");
- var clientCode3 = Project.Variables.code.Value("accountClientCode3");
- var clientCode4 = Project.Variables.code.Value("accountClientCode4");
- var instituionalCode = Project.Variables.code.Value("instituionalCode");
- var url = "C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Unclaimed Asset Investor\\account_sdiuc.sdiuc";
- var zip = "C:\\Users\\vendor_qafusi2\\Documents\\EBAE Upload\\Upload Unclaimed Asset Investor\\account_sdiuc.zip";
-
- var template =
- '<Message>\n'+
- '<Record name="data">\n'+
- '<Field name="registrarRef">REF01</Field>\n'+
- '<Field name="accountParticipantCode">'+registrarCode+'</Field>\n'+
- '<Field name="accountIssuerCode">'+issuerCode+'</Field>\n'+
- '<Field name="accountClientCode">'+clientCode1+'</Field>\n'+
- '<Field name="accountOptionType">SEC</Field>\n'+
- '<Field name="accountType">121</Field>\n'+
- '<Field name="accountOwner">1</Field>\n'+
- '<Field name="accountDescription">Automation 01</Field>\n'+
- '<Field name="accountAction">CREATE</Field>\n'+
- '<Field name="accountStakeholderType">I</Field>\n'+
- '</Record>\n'+
- '<Record name="data">\n'+
- '<Field name="registrarRef">REF02</Field>\n'+
- '<Field name="accountParticipantCode">'+registrarCode+'</Field>\n'+
- '<Field name="accountIssuerCode">'+issuerCode+'</Field>\n'+
- '<Field name="accountClientCode">'+clientCOde2+'</Field>\n'+
- '<Field name="accountOptionType">SEC</Field>\n'+
- '<Field name="accountType">121</Field>\n'+
- '<Field name="accountOwner">1</Field>\n'+
- '<Field name="accountDescription">Automation 02</Field>\n'+
- '<Field name="accountAction">CREATE</Field>\n'+
- '<Field name="accountStakeholderType">I</Field>\n'+
- '</Record>\n'+
- '<Record name="data">\n'+
- '<Field name="registrarRef">REF03</Field>\n'+
- '<Field name="accountParticipantCode">'+registrarCode+'</Field>\n'+
- '<Field name="accountIssuerCode">'+issuerCode+'</Field>\n'+
- '<Field name="accountClientCode">'+clientCode3+'</Field>\n'+
- '<Field name="accountOptionType">SEC</Field>\n'+
- '<Field name="accountType">121</Field>\n'+
- '<Field name="accountOwner">1</Field>\n'+
- '<Field name="accountDescription">Automation 03</Field>\n'+
- '<Field name="accountAction">CREATE</Field>\n'+
- '<Field name="accountStakeholderType">I</Field>\n'+
- '</Record>\n'+
- '<Record name="data">\n'+
- '<Field name="registrarRef">REF04</Field>\n'+
- '<Field name="accountParticipantCode">'+registrarCode+'</Field>\n'+
- '<Field name="accountIssuerCode">'+issuerCode+'</Field>\n'+
- '<Field name="accountClientCode">'+clientCode4+'</Field>\n'+
- '<Field name="accountOptionType">SEC</Field>\n'+
- '<Field name="accountType">121</Field>\n'+
- '<Field name="accountOwner">1</Field>\n'+
- '<Field name="accountDescription">Automation 04</Field>\n'+
- '<Field name="accountAction">CREATE</Field>\n'+
- '<Field name="accountStakeholderType">I</Field>\n'+
- '</Record>\n'+
- '</Message>'
-
-
- 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);
- aqFile.Delete(zip);
- if (aqFile.Create(url) == 0)
- {
-
- aqFile.WriteToTextFile(url, template, aqFile.ctUTF8);
- Log.Message("File dibuat dan teks yang ditentukan berhasil ditulis.");
- }
- }
- }
|