MT2201_D.xml
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="utf-8"?>
<Manifest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:Declaration:datamodel:standard:CN:MT2201:1">
<Head th:object="${head}">
<MessageID th:text="*{messageId}"></MessageID>
<FunctionCode>3</FunctionCode>
<MessageType>MT2201</MessageType>
<SenderID>460470678920X_DXPENT0000460002</SenderID>
<ReceiverID th:text="*{receiverID}"></ReceiverID>
<SendTime th:text="*{sendTime}"></SendTime>
<Version>1.0</Version>
</Head>
<Declaration th:object="${flight}">
<RepresentativePerson>
<Name>70678920X</Name>
</RepresentativePerson>
<BorderTransportMeans>
<JourneyID th:text="|*{flightNo}/*{#dates.format(flightDate,'yyyyMMdd')}|"></JourneyID>
</BorderTransportMeans>
<th:block th:each="bill : ${bills}">
<Consignment>
<TransportContractDocument>
<ID th:text="${bill.billMasterNo}"></ID>
<ChangeReasonCode>999</ChangeReasonCode>
</TransportContractDocument>
<th:block th:if="${bill.billType == 'sub'}">
<AssociatedTransportDocument>
<ID th:text="${bill.billSecNo}"></ID>
</AssociatedTransportDocument>
</th:block>
</Consignment>
</th:block>
<AdditionalInformation th:object="${reason}">
<Reason th:utext="*{alterReason}"></Reason>
<ContactName th:utext="*{contantname}"></ContactName>
<ContactTel th:text="*{contenttel}"></ContactTel>
</AdditionalInformation>
</Declaration>
</Manifest>