Commit 8024bf05 by chengzhuoshen

template and xml

parent fc92d441
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.054.001.02"> <Envelope xmlns="urn:swift:xsd:envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:swift:xsd:envelope ../../../../Schemas/Translator_envelope.xsd">
<AppHdr xmlns="urn:iso:std:iso:20022:tech:xsd:head.001.001.02">
<Fr>
<FIId>
<FinInstnId>
<BICFI>DEUTDEFF</BICFI>
</FinInstnId>
</FIId>
</Fr>
<To>
<FIId>
<FinInstnId>
<BICFI>DEUTNL2A</BICFI>
</FinInstnId>
</FIId>
</To>
<BizMsgIdr>pacs8bizmsgidr02</BizMsgIdr>
<MsgDefIdr>camt.054.001.02</MsgDefIdr>
<BizSvc>swift.cbprplus.02</BizSvc>
<CreDt>2020-09-08T10:10:47+08:00</CreDt>
</AppHdr>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.054.001.02">
<BkToCstmrDbtCdtNtfctn> <BkToCstmrDbtCdtNtfctn>
<GrpHdr> <GrpHdr>
<MsgId>FRDA000003421606</MsgId> <MsgId>FRDA000003421606</MsgId>
...@@ -15,13 +36,13 @@ ...@@ -15,13 +36,13 @@
</Id> </Id>
<Svcr> <Svcr>
<FinInstnId> <FinInstnId>
<BIC>40457258</BIC> <BIC>DEUTNL2A</BIC>
</FinInstnId> </FinInstnId>
</Svcr> </Svcr>
<Ownr> <Ownr>
<Id> <Id>
<OrgId> <OrgId>
<BICOrBEI>SHWHQWER123</BICOrBEI> <BICOrBEI>DEUTDEFF</BICOrBEI>
</OrgId> </OrgId>
</Id> </Id>
</Ownr> </Ownr>
...@@ -184,4 +205,5 @@ ...@@ -184,4 +205,5 @@
</Ntry> </Ntry>
</Ntfctn> </Ntfctn>
</BkToCstmrDbtCdtNtfctn> </BkToCstmrDbtCdtNtfctn>
</Document> </Document>
\ No newline at end of file </Envelope>
\ No newline at end of file
{1:F01${vm.receiverBic}0001000001}{2:${vm.isCov}${vm.createTime}${vm.createDate}${vm.senderBic}0002000001${vm.outDate}${vm.outTime}N}{3:{108:178908658RSC1}{111:001}{121:9bc16ba2-76e0-4651-b225-3bae8552f17a}#if(${vm.cov}) {1:$vm.head1}{2:$vm.head2}#if(!$null.isNull($vm.head3) && $vm.head3.length()>0){3:$vm.head3}#end{4:
${vm.cov}#end}{4:
:20:$vm.field20 :20:$vm.field20
:21:$vm.field21 :21:$vm.field21
#if(!$null.isNull($vm.filed13CList) && $vm.filed13CList.size()!=0) #if(!$null.isNull($vm.field13cList) && $vm.field13cList.size()!=0)
#foreach($field13C in $vm.filed13CList) #foreach($field13C in $vm.field13cList)
:13C:$field13C :13C:$field13C
#end #end
#end #end
:32A:$vm.field32A :32A:$vm.field32A
#if($vm.field52Key=='A') #if($vm.field52Option=='A')
:52A:$vm.field52A :52A:$vm.field52A
#if($vm.field52Account) #elseif($vm.field52Option=='D')
$vm.field52Account :52D:$vm.field52A
#end #end
#elseif($vm.field52Key == 'D') #if($vm.field53Option=='A')
#if($vm.field52DAdr)
:52D:$vm.field52DAdr
#end
#if($vm.field52Account)
$vm.field52Account
#end
#end
#if($vm.field53AKey=='A')
#if($vm.field53A)
:53A:$vm.field53A :53A:$vm.field53A
#elseif($vm.field53Option=='B')
:53B:$vm.field53A
#elseif($vm.field53Option=='D')
:53D:$vm.field53A
#end #end
#if($vm.field53Account) #if($vm.field54Option=='A')
$vm.field53Account
#end
#elseif($vm.field53BKey == 'B')
#if($vm.field53Account)
:53B:$vm.field53Account
#end
#elseif($vm.field53DKey == 'D')
#if($vm.field53Adr)
:53D:$vm.field53Adr
#if($vm.field53Account)
$vm.field53Account
#end
#end
#end
#if($vm.field54AKey=='A')
:54A:$vm.field54A :54A:$vm.field54A
#if($vm.field54Account) #elseif($vm.field54Option=='D')
$vm.field54Account :54D:$vm.field54A
#end
#elseif($vm.field54DKey == 'D')
#if($vm.field54Adr)
:54D:$vm.field54Adr
#end
#if($vm.field54Account)
$vm.field54Account
#end #end
#end #if($vm.field56Option=='A')
#if($vm.field56AKey=='A')
:56A:$vm.field56A :56A:$vm.field56A
#if($vm.field56Account) #elseif($vm.field56Option=='D')
$vm.field56Account :56D:$vm.field56A
#end
#elseif($vm.field56DKey == 'D')
#if($vm.field56Adr)
:56D:$vm.field56Adr
#end
#if($vm.field56Account)
$vm.field56Account
#end #end
#end #if($vm.field57Option=='A')
#if($vm.field57AKey=='A')
:57A:$vm.field57A :57A:$vm.field57A
#if($vm.field57Account) #elseif($vm.field57Option=='D')
$vm.field57Account :57D:$vm.field57A
#end
#elseif($vm.field57DKey == 'D')
#if($vm.field57Adr)
:57D:$vm.field57Adr
#end
#if($vm.field57Account)
$vm.field57Account
#end #end
#end #if($vm.field58Option=='A')
#if($vm.field58AKey=='A')
:58A:$vm.field58A :58A:$vm.field58A
#if($vm.field58Account) #elseif($vm.field58Option=='D')
$vm.field58Account :58D:$vm.field58A
#end #end
#elseif($vm.field58DKey == 'D') #if(!$null.isNull($vm.field72) && $vm.field72.length() > 0)
#if($vm.field58Adr) :72:$vm.field72
:58D:$vm.field58Adr #end
#end #if($vm.field50BOption=='A')
#if($vm.field58Account) :50A:$vm.field50B
$vm.field58Account #elseif($vm.field50BOption=='F')
#end :50F:$vm.field50B
#end #elseif($vm.field50BOption=='K')
#if(!$null.isNull($vm.filed72) && $vm.filed72.length()>0) :50K:$vm.field50B
:72:$vm.filed72 #end
#end #if($vm.field52BOption=='A')
#if($vm.fieldB50Option=='A') :52A:$vm.field52B
#if($vm.field50A) #elseif($vm.field52BOption=='D')
:50A:$vm.fieldB50A :52D:$vm.field52B
#end #end
#if($vm.fieldB50Account) #if($vm.field56BOption=='A')
$vm.fieldB50Account :56A:$vm.field56B
#end #elseif($vm.field56BOption=='C')
#elseif($vm.fieldB50Option == 'F') :56C:$vm.field56B
#if($vm.fieldB50F) #elseif($vm.field56BOption=='D')
:50F:$vm.fieldB50F :56D:$vm.field56B
#end #end
#if($vm.fieldB50Account) #if($vm.field57BOption=='A')
$vm.fieldB50Account :57A:$vm.field57B
#end #elseif($vm.field57BOption=='C')
#elseif($vm.fieldB50Option == 'K') :57C:$vm.field57B
#if($vm.fieldB50K) #elseif($vm.field57BOption=='D')
:50K:$vm.fieldB50K :57D:$vm.field57B
#end #end
#if($vm.fieldB50Account) #if($vm.field59BOption=='A')
$vm.fieldB50Account :59A:$vm.field59B
#end #elseif($vm.field59BOption=='NOLETTER')
#end :59:$vm.field59B
#if($vm.fieldB52Option=='A') #end
:52A:$vm.fieldB52A #if(!$null.isNull($vm.field70B) && $vm.field70B.length() > 0)
#if($vm.fieldB52Account) :70:$vm.field70B
$vm.fieldB52Account #end
#end #if(!$null.isNull($vm.filed72B) && $vm.filed72B.length() > 0)
#elseif($vm.fieldB52Option == 'D') :72:$vm.filed72B
#if($vm.fieldB52D) #end
:52D:$vm.fieldB52D #if(!$null.isNull($vm.field33B) && $vm.field33B.length() > 0)
#end
#if($vm.fieldB52Account)
$vm.fieldB52Account
#end
#end
#if($vm.fieldB56Option=='A')
#if($vm.fieldB56A)
:56A:$vm.fieldB56A
#end
#if($vm.fieldB56Account)
$vm.fieldB56Account
#end
#elseif($vm.fieldB56Option == 'C')
#if($vm.fieldB56Account)
:56C:$vm.fieldB56Account
#end
#elseif($vm.fieldB56Option == 'D')
#if($vm.fieldB56D)
:56K:$vm.fieldB56D
#end
#if($vm.fieldB56Account)
$vm.fieldB56Account
#end
#end
#if($vm.fieldB57Option=='A')
#if($vm.fieldB57)
:57A:$vm.fieldB57
#end
#if($vm.fieldB57Account)
$vm.fieldB57Account
#end
#elseif($vm.fieldB57Option == 'C')
#if($vm.fieldB57Account)
:57C:$vm.fieldB57Account
#end
#elseif($vm.fieldB57Option == 'D')
#if($vm.fieldB57D)
:57D:$vm.fieldB57D
#end
#if($vm.fieldB57Account)
$vm.fieldB57Account
#end
#end
#if($vm.fieldB59Option=='')
:59:$vm.fieldB59
#if($vm.fieldB59Account)
$vm.fieldB59Account
#end
#elseif($vm.fieldB59Option == 'A')
#if($vm.fieldB59A)
:59A:$vm.fieldB59A
#end
#if($vm.fieldB59Account)
$vm.fieldB59Account
#end
#end
#if(!$null.isNull($vm.field70) && $vm.field70.length()>0)
:70:$vm.field70
#end
#if(!$null.isNull($vm.field33B) && $vm.field33B.length()>0)
:33B:$vm.field33B :33B:$vm.field33B
#end #end
-}{5:{MAC:6342F3D2}{CHK:C412E5AF7797}{DLM:}} -}#if(!$null.isNull($vm.head5) && $vm.head5.length()>0){5:$vm.head5}#end
\ No newline at end of file \ No newline at end of file
{1:F01${vm.receiverBic}0001000001}{2:O${vm.mtType}${vm.createTime}${vm.createDate}${vm.senderBic}0002000001${vm.outDate}${vm.outTime}N}{3:{108:178908658RSC1}{111:001}{121:9bc16ba2-76e0-4651-b225-3bae8552f17a}}{4: {1:$vm.head1}{2:$vm.head2}#if(!$null.isNull($vm.head3) && $vm.head3.length()>0){3:$vm.head3}#end{4:
:20:$vm.field20 :20:$vm.field20
:21:$vm.field21 :21:$vm.field21
:25:$vm.field25a :25:$vm.field25a
#if(!$null.isNull($vm.field13D) && $vm.field13D.length()>0) #if(!$null.isNull($vm.field13D) && $vm.field13D.length()>0)
:13:$vm.field13D :13D:$vm.field13D
#end #end
:32A:$vm.field32A :32A:$vm.field32A
#if($vm.field50aOption=="A") #if($vm.field50aOption=="A")
...@@ -26,4 +26,4 @@ ...@@ -26,4 +26,4 @@
#if(!$null.isNull($vm.field72) && $vm.field72.length()>0) #if(!$null.isNull($vm.field72) && $vm.field72.length()>0)
:72:$vm.field72 :72:$vm.field72
#end #end
-}{5:{MAC:6342F3D2}{CHK:C412E5AF7797}{DLM:}} -}#if(!$null.isNull($vm.head5) && $vm.head5.length()>0){5:$vm.head5}#end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment