⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 orderview.fo.ftl

📁 Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电子商务应用(e-commerce), POS系统(point of sales),知识管理,存货与仓库管理
💻 FTL
📖 第 1 页 / 共 2 页
字号:
<#-- *  Copyright (c) 2003-2005 The Open For Business Project - www.ofbiz.org * *  Permission is hereby granted, free of charge, to any person obtaining a *  copy of this software and associated documentation files (the "Software"), *  to deal in the Software without restriction, including without limitation *  the rights to use, copy, modify, merge, publish, distribute, sublicense, *  and/or sell copies of the Software, and to permit persons to whom the *  Software is furnished to do so, subject to the following conditions: * *  The above copyright notice and this permission notice shall be included *  in all copies or substantial portions of the Software. * *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY *  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT *  OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *  THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *@author     Si Chen (sichen@opensourcestrategies.com)--><?xml version="1.0" encoding="UTF-8"?><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">    <fo:layout-master-set>        <fo:simple-page-master master-name="main-page"            margin-top="1in" margin-bottom="1in"            margin-left="1in" margin-right="1in">          <fo:region-body margin-top="3.5in" margin-bottom="1in"/>  <#-- main body -->            <fo:region-after extent="1in"/>  <#-- a footer -->            <fo:region-before extent="3.5in"/>  <#-- a header -->        </fo:simple-page-master>  </fo:layout-master-set>    <fo:page-sequence master-reference="main-page">       <#-- the region-before and -after must be declared as fo:static-content and before the fo:flow.  only 1 fo:flow per            fo:page-sequence -->       <fo:static-content flow-name="xsl-region-before">         <#-- a nest of tables to put company information on left and invoice information on the right -->        <fo:table>           <fo:table-column column-width="3.5in"/>           <fo:table-column column-width="3in"/>            <fo:table-body>              <fo:table-row>                <fo:table-cell>Importing a screen                   ${screens.render("component://order/widget/ordermgr/OrderPrintForms.xml#CompanyLogo")}                </fo:table-cell>                <fo:table-cell>                  <fo:table>                    <fo:table-column column-width="1.5in"/>                    <fo:table-column column-width="1.5in"/>                    <fo:table-body>                    <fo:table-row>                      <fo:table-cell>                         <fo:block number-columns-spanned="2" font-weight="bold">${orderHeader.getRelatedOne("OrderType").getString("description")} ${uiLabelMap.OrderOrder}</fo:block>                      </fo:table-cell>                    </fo:table-row>                                        <fo:table-row>                      <fo:table-cell><fo:block>${uiLabelMap.OrderDateOrdered}</fo:block></fo:table-cell>                      <#assign dateFormat = Static["java.text.DateFormat"].LONG>                      <#assign orderDate = Static["java.text.DateFormat"].getDateInstance(dateFormat).format(orderHeader.get("orderDate"))>                      <fo:table-cell><fo:block>${orderDate}</fo:block></fo:table-cell>                    </fo:table-row>                                                      <fo:table-row>                      <fo:table-cell><fo:block>${uiLabelMap.OrderOrder} #</fo:block></fo:table-cell>                      <fo:table-cell><fo:block>${orderId}</fo:block></fo:table-cell>                    </fo:table-row>                    <fo:table-row>                      <fo:table-cell><fo:block>${uiLabelMap.OrderCurrentStatus}</fo:block></fo:table-cell>                      <fo:table-cell><fo:block font-weight="bold">${currentStatus.description}</fo:block></fo:table-cell>                    </fo:table-row>                  </fo:table-body>                </fo:table>              </fo:table-cell>            </fo:table-row>          </fo:table-body>        </fo:table>       <#-- Inserts a newline.  white-space-collapse="false" specifies that the stuff inside fo:block is to repeated verbatim -->       <fo:block white-space-collapse="false"> </fo:block>        <fo:table border-spacing="3pt">           <fo:table-column column-width="3.75in"/>          <fo:table-column column-width="3.75in"/>          <fo:table-body>            <fo:table-row>    <#-- this part could use some improvement -->             <#list orderContactMechValueMaps as orderContactMechValueMap>               <#assign contactMech = orderContactMechValueMap.contactMech>               <#assign contactMechPurpose = orderContactMechValueMap.contactMechPurposeType>               <#if contactMech.contactMechTypeId == "POSTAL_ADDRESS">               <fo:table-cell>                 <fo:block white-space-collapse="false"><fo:block font-weight="bold">${contactMechPurpose.description} : </fo:block><#assign postalAddress = orderContactMechValueMap.postalAddress><#if postalAddress?has_content><#if postalAddress.toName?has_content>${postalAddress.toName}</#if><#if postalAddress.attnName?has_content>${postalAddress.attnName}</#if>${postalAddress.address1}<#if postalAddress.address2?has_content>${postalAddress.address2}</#if>${postalAddress.city}<#if postalAddress.stateProvinceGeoId?has_content>, ${postalAddress.stateProvinceGeoId} </#if></#if><#if postalAddress.postalCode?has_content>${postalAddress.postalCode}</#if></fo:block>                </fo:table-cell>                </#if>             </#list>             <#if orderHeader.getString("orderTypeId") == "PURCHASE_ORDER">             <#if supplierGeneralContactMechValueMap?exists>               <#assign contactMech = supplierGeneralContactMechValueMap.contactMech>               <fo:table-cell>                 <fo:block white-space-collapse="false"><fo:block font-weight="bold">${uiLabelMap.ProductSupplier}:</fo:block><#assign postalAddress = supplierGeneralContactMechValueMap.postalAddress><#if postalAddress?has_content><#if postalAddress.toName?has_content>${postalAddress.toName}</#if><#if postalAddress.attnName?has_content>${postalAddress.attnName}</#if>${postalAddress.address1}<#if postalAddress.address2?has_content>${postalAddress.address2}</#if>${postalAddress.city}<#if postalAddress.stateProvinceGeoId?has_content>, ${postalAddress.stateProvinceGeoId} </#if></#if><#if postalAddress.postalCode?has_content>${postalAddress.postalCode}</#if></fo:block>               </fo:table-cell>             </#if>             </#if>            </fo:table-row>         </fo:table-body>       </fo:table>       <fo:block white-space-collapse="false"> </fo:block>        <fo:table border-spacing="3pt">          <fo:table-column column-width="1.75in"/>          <fo:table-column column-width="4.25in"/>            <#-- payment info -->                          <fo:table-body>            <fo:table-row>                <fo:table-cell><fo:block>${uiLabelMap.AccountingPaymentInformation}</fo:block></fo:table-cell>                <fo:table-cell><fo:block>                   <#if orderPaymentPreferences?has_content>                      <#list orderPaymentPreferences as orderPaymentPreference>                         <#assign paymentMethodType = orderPaymentPreference.getRelatedOne("PaymentMethodType")?if_exists>                         <#if ((orderPaymentPreference != null) && (orderPaymentPreference.getString("paymentMethodTypeId") == "CREDIT_CARD") && (orderPaymentPreference.getString("paymentMethodId")?has_content))>                           <#assign creditCard = orderPaymentPreference.getRelatedOne("PaymentMethod").getRelatedOne("CreditCard")>                             ${Static["org.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)}                         <#else>                             ${paymentMethodType.description?if_exists}                         </#if>                      </#list>                   </#if>                         </fo:block>                 </fo:table-cell>            </fo:table-row>        <#-- shipping method.  currently not shown for PO's because we are not recording a shipping method for PO's in order entry -->           <#if orderHeader.getString("orderTypeId") == "SALES_ORDER">            <fo:table-row>               <fo:table-cell><fo:block>${uiLabelMap.OrderShipmentInformation}:</fo:block></fo:table-cell>                  <fo:table-cell>                 <#if shipGroups?has_content>                   <#list shipGroups as shipGroup>                   <#-- TODO: List all full details of each ship group here -->                        <fo:block>                      ${shipGroup.shipmentMethodTypeId?if_exists}                     </fo:block>                   </#list>                  </#if>               </fo:table-cell>             </fo:table-row>           </#if>       <#-- order terms information -->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -