MT3201_D.xml 1.5 KB
<?xml version="1.0" encoding="utf-8"?>
<Manifest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:Declaration:datamodel:standard:CN:MT3201:1">
    <Head th:object="${head}">
        <MessageID th:text="*{messageId}"></MessageID>
        <FunctionCode>3</FunctionCode>
        <MessageType>MT3201</MessageType>
        <SenderID>460470678920X_DXPENT0000460002</SenderID>
        <ReceiverID th:text="*{receiverID}"></ReceiverID>
        <SendTime th:text="*{sendTime}"></SendTime>
        <Version>1.0</Version>
    </Head>
    <Declaration th:object="${flight}">
        <DeclarationOfficeID th:text="${head.receiverID}"></DeclarationOfficeID>
        <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>
            </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>