12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- function PATCH_093_GET_DATE() {
- let url = "C:\\Users\\vendor_qafusi4\\Documents\\S-INVEST GUI\\S-Invest GUI\\Data Source\\Data Input\\12. Unit Transaction Subscription\\patch_089_input_date.txt";
- 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\n'+
- ''+today+''
- ;
-
- 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.");
- }
- }
- }
-
- function PATCH_093_FILE_UPLOAD(){
- var ref = Aliases.browser.page1011261948080.textnode.shadowroot.textnodeNo.shadowroot.cellVaadinGridCell123.innerText;
- var cbCode = Project.Variables.login_as_cb.Value("participantCode");
- let url = "C:\\Users\\vendor_qafusi4\\Documents\\S-INVEST GUI\\S-Invest GUI\\Data Source\\Data Upload\\12. Unit Transaction Subscription\\patch_093_upload_investor_unit_allocation.txt"
-
- 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'+'|'+'cbCode'+'|'+'investorFundUnitA/CNo.'+'|'+'fundCode'+'|'+'numberOfUnits'+'|'+'NAVperUnit'+'|'+'grossTransactionAmount'+'|'+'transactionFee(Nominal)'+'|'+'netTransactionAmount'+'|'+'ReferenceNo.\n'+
- ''+today+'|'+'1'+'|'+cbCode+'|'+'TMS69000CKUF0120'+'|'+'LG002MMSFD844600'+'|'+'379.2249'+'|'+'26105.880000'+'|'+'10000000.00'+'|'+'100000.00'+'|'+'9900000.00'+'|'+ref+''
- ;
-
- 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.");
- }
- }
- }
- function PATCH_094_FILE_INPUT(){
- var ref = Aliases.browser.page1011261948080.textnode.shadowroot.textnodeNo.shadowroot.cellVaadinGridCell163.innerText;
- let url = "C:\\Users\\vendor_qafusi4\\Documents\\S-INVEST GUI\\S-Invest GUI\\Data Source\\Data Input\\12. Unit Transaction Subscription\\patch_093_input_investor_unit_allocation.txt"
-
- let template =
- 'investorFundUnitA/CNo.'+'|'+'fundCode'+'|'+'numberOfUnits'+'|'+'NAVperUnit'+'|'+'grossTransactionAmount'+'|'+'transactionFee(Nominal)'+'|'+'netTransactionAmount'+'|'+'ReferenceNo.\n'+
- ''+'TMS69000CKUF0120'+'|'+'LG002MMSFD844600'+'|'+'379.2249'+'|'+'26105.880000'+'|'+'10000000.00'+'|'+'100000.00'+'|'+'9900000.00'+'|'+'00025445'+''
- ;
-
- 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.");
- }
- }
- }
|