📄 quotereport.fo.ftl
字号:
<#-- * Copyright (c) 2004 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 Jacopo Cappellato (tiz@sastau.it) *@version $Rev: 6407 $--><?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" margin-top="0.5in" margin-bottom="1in" margin-left="1in" margin-right="1in"> <fo:region-body margin-top="3.5in"/> <fo:region-before extent="3.5in"/> <fo:region-after extent="1in"/> </fo:simple-page-master></fo:layout-master-set><#if quote?exists><fo:page-sequence master-reference="main"> <fo:static-content flow-name="xsl-region-before" font-size="9pt"> <#-- 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> <#-- Top Left cell --> <fo:table-cell> ${screens.render("component://order/widget/ordermgr/OrderPrintForms.xml#CompanyLogo")} </fo:table-cell> <#-- Top Right cell --> <fo:table-cell> </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> <fo:table-cell> <fo:block> <#assign quotePartyNameResult = dispatcher.runSync("getPartyNameForDate", Static["org.ofbiz.base.util.UtilMisc"].toMap("partyId", quote.partyId, "compareDate", quote.issueDate, "userLogin", userLogin))/> <fo:block font-weight="bold">${quotePartyNameResult.fullName?default("[Name Not Found]")}</fo:block> </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block> <fo:block font-weight="bold">Address: </fo:block> <#if toPostalAddress?exists> <fo:block font-weight="bold">${toPostalAddress.address1?if_exists}</fo:block> <fo:block font-weight="bold">${toPostalAddress.address2?if_exists}</fo:block> <fo:block font-weight="bold">${toPostalAddress.city}<#if toPostalAddress.stateProvinceGeoId?has_content>, ${toPostalAddress.stateProvinceGeoId}</#if> ${toPostalAddress.postalCode?if_exists}</fo:block> </#if> </fo:block> </fo:table-cell> </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.5in"/> <fo:table-column column-width="3.75in"/> <fo:table-body> <fo:table-row> <fo:table-cell><fo:block font-weight="bold">${uiLabelMap.CommonType}</fo:block></fo:table-cell> <fo:table-cell><fo:block>${(quoteType.description)?default(quote.quoteTypeId?if_exists)}</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell><fo:block font-weight="bold">${uiLabelMap.OrderOrderQuoteId}</fo:block></fo:table-cell> <fo:table-cell><fo:block>${quote.quoteId}</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell><fo:block font-weight="bold">${uiLabelMap.CommonStatus}</fo:block></fo:table-cell> <fo:table-cell><fo:block>${(statusItem.get("description", locale))?default(quote.statusId?if_exists)}</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell><fo:block font-weight="bold">${uiLabelMap.OrderOrderQuoteName}</fo:block></fo:table-cell> <fo:table-cell><fo:block>${quote.quoteName?if_exists}</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell><fo:block font-weight="bold">${uiLabelMap.CommonDescription}</fo:block></fo:table-cell> <fo:table-cell><fo:block>${quote.description?if_exists}</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell><fo:block font-weight="bold">${uiLabelMap.CommonCurrency}</fo:block></fo:table-cell> <fo:table-cell><fo:block><#if currency?exists>${currency.description?default(quote.currencyUomId?if_exists)}</#if></fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell><fo:block font-weight="bold">${uiLabelMap.OrderOrderQuoteIssueDate}</fo:block></fo:table-cell> <fo:table-cell><fo:block>${(quote.issueDate.toString())?if_exists}</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell><fo:block font-weight="bold">${uiLabelMap.CommonValidFromDate}</fo:block></fo:table-cell> <fo:table-cell><fo:block>${(quote.validFromDate.toString())?if_exists}</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell><fo:block font-weight="bold">${uiLabelMap.CommonValidThruDate}</fo:block></fo:table-cell> <fo:table-cell><fo:block>${(quote.validThruDate.toString())?if_exists}</fo:block></fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:static-content> <#-- Footer --> <fo:static-content flow-name="xsl-region-after"> <#-- displays page number. "theEnd" is an id of a fo:block at the very end --> <fo:block font-size="10pt" text-align="center">Page <fo:page-number/> of <fo:page-number-citation ref-id="theEnd"/></fo:block> </fo:static-content> <fo:flow flow-name="xsl-region-body" font-family="Helvetica"> <fo:block space-after.optimum="10pt" font-size="8pt"> <fo:table> <fo:table-column column-width="40pt"/> <fo:table-column column-width="200pt"/> <fo:table-column column-width="50pt"/> <fo:table-column column-width="50pt"/>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -