<apex:page standardController="Quote" extensions="QuotePDFExtensionController" showHeader="false" sidebar="false" action="{!startContract}" renderAs="pdf"><!-- renderAs="pdf" -->
|
<apex:stylesheet value="{!URLFOR($Resource.contractdetailpdf)}"/>
|
<head>
|
|
<style>
|
|
</style>
|
|
</head>
|
|
<body style="font-family: Arial Unicode MS;">
|
|
<!-- ページ番号の定義 -->
|
<apex:variable var="count" value="{!0}"/>
|
|
<!-- ページのリピート -->
|
<apex:repeat value="{!printRecords}" var="items" id="thePage">
|
|
<!-- ページキャンバス -->
|
<div class="pageCanvas">
|
|
<!-- ページ番号インクリメント -->
|
<apex:variable var="count" value="{!count + 1}"/>
|
<!-- SWAG-C7S8QN 【委托】【重要】SI询价配置单没有抬头 lt 20211015 update 原<apex:outputpanel rendered="{!IF(params.trade == 'USD', true, false)}">附件2 </apex:outputpanel> -->
|
<div style="text-align: left;font-weight: bold;font-size: 18px;width: 100%;padding-bottom: 20px;"><apex:outputpanel >附件2 </apex:outputpanel></div>
|
<!-- 各ページのタイトル -->
|
<div class="quoteTitle"><apex:outputpanel rendered="{!IF(params.trade == 'USD', true, false)}">Commodity List </apex:outputpanel></div>
|
<!-- WLIG-BYRD37 【委托】询价 打印配置单 字段修改 精琢技术 wql 2021/03/08 start -->
|
<div class="quoteTitle">
|
<!-- SWAG-C7S8QN 【委托】【重要】SI询价配置单没有抬头 lt 20211015 update -->
|
<!-- 20211015 原<apex:outputpanel rendered="{!IF(params.PurchaseType == '一般引合' || params.PurchaseType == ' SI(手術室案件)', true, false)}"> -->
|
<apex:outputpanel >
|
{!$Label.Contract_Detail_Title}
|
</apex:outputpanel>
|
</div>
|
<div class="quoteTitle">
|
<apex:outputpanel rendered="{!IF(params.PurchaseType == 'ET24時間販売',true , false)}">
|
订货单
|
</apex:outputpanel>
|
</div>
|
<!-- //WLIG-BYRD37 【委托】询价 打印配置单 字段修改 精琢技术 wql 2021/03/08 end -->
|
<!-- CHAN-B2L4NY 外贸询价的合同配置单格式恢复 -->
|
<apex:outputpanel rendered="{!IF(params.trade == 'RMB', true, false)}">
|
<!-- 各ページのヘッダキャンバス -->
|
<div class="headerCanvas">
|
<table style="height:100%;">
|
<tr>
|
<td>
|
<div style="height:25px;">{!$Label.Contract_Detail_System_Code}</div>
|
<div style="height:25px;">{!$Label.Quote_Client_Name}</div>
|
<apex:outputpanel layout="none" rendered="{!IF(params.salesRoot == '販売店', true, false)}">
|
<div style="height:25px;">{!$Label.Contract_Detail_Dealer_Name}</div>
|
</apex:outputpanel>
|
<div style="height:25px;">{!$Label.Quote_AddressName}</div>
|
</td>
|
<td>
|
<div style="height:25px;">: </div>
|
<div style="height:25px;">: </div>
|
<apex:outputpanel layout="none" rendered="{!IF(params.salesRoot == '販売店', true, false)}">
|
<div style="height:25px;">: </div>
|
</apex:outputpanel>
|
<div style="height:25px;">: </div>
|
</td>
|
<td>
|
<div style="height:25px;"> {!params.quoteNo}</div>
|
<div style="height:25px;"> {!params.clientName}</div>
|
<apex:outputpanel layout="none" rendered="{!IF(params.salesRoot == '販売店', true, false)}">
|
<div style="height:25px;"> {!params.agentNameForContract}</div>
|
</apex:outputpanel>
|
<div style="height:25px;"> {!params.addressName}</div>
|
</td>
|
<td>
|
<div style="height:25px;"> </div>
|
<div style="height:25px;"> </div>
|
<apex:outputpanel layout="none" rendered="{!IF(params.salesRoot == '販売店', true, false)}">
|
<div style="height:25px;"> </div>
|
</apex:outputpanel>
|
<div style="height:25px;"> </div>
|
</td>
|
<td>
|
<div style="height:25px;"> </div>
|
<div style="height:25px;">{!$Label.Quote_Department}</div>
|
<apex:outputpanel layout="none" rendered="{!IF(params.salesRoot == '販売店', true, false)}">
|
<div style="height:25px;"> </div>
|
</apex:outputpanel>
|
<div style="height:25px;"> </div>
|
</td>
|
<td>
|
<div style="height:25px;"> </div>
|
<div style="height:25px;">: </div>
|
<apex:outputpanel layout="none" rendered="{!IF(params.salesRoot == '販売店', true, false)}">
|
<div style="height:25px;"> </div>
|
</apex:outputpanel>
|
<div style="height:25px;"> </div>
|
</td>
|
<td>
|
<div style="height:25px;"> </div>
|
<div style="height:25px;"> {!params.departmentName}</div>
|
<apex:outputpanel layout="none" rendered="{!IF(params.salesRoot == '販売店', true, false)}">
|
<div style="height:25px;"> </div>
|
</apex:outputpanel>
|
<div style="height:25px;"> </div>
|
</td>
|
</tr>
|
</table>
|
<table style="top:0px; right:0px; position:absolute; height:100%;">
|
<tr>
|
<td>
|
<div style="height:25px;"> </div>
|
<div style="height:25px;"> </div>
|
<!-- 电子签收ID号 wql 精琢技术 2020/11/20 start -->
|
<apex:outputpanel layout="none" rendered="{!IF(params.salesRoot == '販売店', true, false)}">
|
<div style="height:25px;">{!$Label.eSignAgencyNum}</div>
|
</apex:outputpanel>
|
<apex:outputpanel layout="none" rendered="{!IF(params.salesRoot == '販売店', false, true)}">
|
<div style="height:25px;"> </div>
|
</apex:outputpanel>
|
<!-- 电子签收ID号 wql 精琢技术 2020/11/20 end -->
|
<div style="height:25px;">{!$Label.Contract_Detail_Print_Date}</div>
|
</td>
|
<td>
|
<div style="height:25px;"> </div>
|
<div style="height:25px;"> </div>
|
<div style="height:25px;">: </div>
|
<div style="height:25px;">: </div>
|
</td>
|
<td>
|
<div style="height:25px;"> </div>
|
<div style="height:25px;"> </div>
|
<!-- 电子签收ID号 wql 精琢技术 2020/11/20 start -->
|
<apex:outputpanel layout="none" rendered="{!IF(params.salesRoot == '販売店', true, false)}">
|
<div style="height:25px;">{!params.eSignAgencyNum}</div>
|
</apex:outputpanel>
|
<apex:outputpanel layout="none" rendered="{!IF(params.salesRoot == '販売店', false, true)}">
|
<div style="height:25px;"> </div>
|
</apex:outputpanel>
|
<!-- 电子签收ID号 wql 精琢技术 2020/11/20 end -->
|
<div style="height:25px;"> {!params.offerPrintDateStringContract}</div>
|
</td>
|
</tr>
|
</table>
|
</div>
|
|
<br/>
|
|
<!-- ページ内の詳細のREPEAT -->
|
<div class="detailCanvas" style="font-size: 10px">
|
<apex:dataTable value="{!items}" var="item" id="dataTable" styleClass="detailTable" headerClass="detailTableHeader" columnClasses="detailTableCols">
|
<apex:column styleClass="detailRowNumber" style="vertical-align:text-top;">
|
<apex:facet name="header">{!$Label.Quote_Product_Code}</apex:facet>
|
<apex:outputText value="{!item.qli.Item_Order__c}"/>
|
</apex:column>
|
<apex:column styleClass="detailRowString" style="vertical-align:text-top;width: 111px">
|
<apex:facet name="header"></apex:facet>
|
<!-- <apex:outputText value="{!item.qli.Asset_Model_No_forPrint__c}"/> -->
|
<c:PDFWbr targetStr="{!item.qli.Asset_Model_No_forPrint__c}"/>
|
</apex:column>
|
<apex:column styleClass="detailRowString" style="vertical-align:text-top;">
|
<apex:facet name="header"></apex:facet>
|
<apex:outputText value="{!item.qli.NameForPrintDelimiter__c}"/>
|
</apex:column>
|
<apex:column styleClass="detailRowString" style="vertical-align:text-top;width: 131px">
|
<apex:facet name="header">{!$Label.Quote_Product_Name}</apex:facet>
|
<!-- <apex:outputText value="{!item.qli.NameForPrint__c}"/> -->
|
<c:PDFWbr targetStr="{!item.qli.NameForPrint__c}"/>
|
</apex:column>
|
<apex:column styleClass="detailRowString" style="vertical-align:text-top;width: 80px">
|
<!-- lt 20220223 CHAN-CBW9FX 特殊交货期影响的对应 -->
|
<!-- <apex:facet name="header">{!$Label.Quote_SFDA_Approbation_No}</apex:facet> </br>-->
|
<apex:facet name="header">注册证号/ 备案凭证 <br/>编号</apex:facet>
|
<apex:outputText value="{!item.ApprobationNo_c}"/>
|
</apex:column>
|
<apex:column styleClass="detailRowString" style="vertical-align:text-top;width: 160px">
|
<apex:facet name="header">{!$Label.Quote_ProduceCompany}</apex:facet>
|
<!-- <apex:outputText value="{!item.ProduceCompany_c}"/> -->
|
<c:PDFWbr targetStr="{!item.ProduceCompany_c}"/>
|
</apex:column>
|
<apex:column styleClass="detailRowString" style="vertical-align:text-top;">
|
<apex:facet name="header">{!$Label.Quote_SalesPackagingUnit}</apex:facet>
|
<apex:outputText value="{!item.SalesPackagingUnit_c}"/>
|
</apex:column>
|
<apex:column styleClass="detailRowNumeric" style="vertical-align:text-top;">
|
<apex:facet name="header">{!$Label.Quote_PackingListManual}</apex:facet>
|
<apex:outputText value="{0, number, ###,###}">
|
<apex:param value="{!item.PackingListManual_c}" />
|
</apex:outputText>
|
{!item.PackingListManual2_c}
|
</apex:column>
|
<apex:column styleClass="detailRowString" style="vertical-align:text-top;" >
|
<apex:facet name="header">{!$Label.Quote_UnitPrice}</apex:facet>
|
<apex:outputText value=""/>
|
</apex:column>
|
<apex:column styleClass="detailRowNumeric" style="vertical-align:text-top;">
|
<apex:facet name="header">{!$Label.Quantity}</apex:facet>
|
<apex:outputText value="{0, number, ###,###}">
|
<apex:param value="{!item.qli.Quantity}" />
|
</apex:outputText>
|
</apex:column>
|
<apex:column styleClass="detailRowString" style="vertical-align:text-top;">
|
<apex:facet name="header">{!$Label.Quote_Amount}</apex:facet>
|
<apex:outputText value=" "/>
|
</apex:column>
|
<apex:column styleClass="detailRowString" style="vertical-align:text-top; text-align: center;">
|
<apex:facet name="header">特殊保修 年限</apex:facet>
|
<apex:outputText value="{!item.qli.GuaranteePeriod__c}"/>
|
</apex:column>
|
|
<!-- lt 20220223 CHAN-CBW9FX 特殊交货期影响的对应 start -->
|
<apex:column styleClass="detailRowNumeric">
|
<apex:facet name="header">交货期</apex:facet>
|
<apex:outputText value="{!item.qli.DeliveryDate__c}"/>
|
</apex:column>
|
<!-- lt 20220223 CHAN-CBW9FX 特殊交货期影响的对应 end -->
|
|
</apex:dataTable>
|
</div>
|
|
<apex:outputpanel rendered="{!count=maxPageNumber}">
|
<div>
|
<table style="width:100%;">
|
<tr>
|
<!-- 2018/10/11 CHAN-B5F35C 内贸时不显示 注册证号/备案凭证编号备注 start -->
|
<td style="text-align: left;">
|
<div style="height:25px;">备注:上述产品注册证号/备案凭证号以收到实物中文标签中的注册证信息为准。</div>
|
</td>
|
<!-- 2018/10/11 CHAN-B5F35C 内贸时不显示 注册证号/备案凭证编号备注 end -->
|
</tr>
|
<tr>
|
<td style="width: 85%;text-align: right;">
|
<div style="height:25px;">{!$Label.Quote_TotalPrice}</div>
|
</td>
|
<td>
|
<div style="height:25px;">: </div>
|
</td>
|
<td>
|
<div style="height:25px;">
|
<apex:outputText value="{0, number, ###,##0.00}">
|
<apex:param value="{!params.newTotalPrice}" />
|
</apex:outputText>
|
</div>
|
</td>
|
</tr>
|
</table>
|
</div>
|
</apex:outputpanel>
|
</apex:outputpanel>
|
<!-- CHAN-B2L4NY 外贸询价的合同配置单格式恢复 -->
|
<apex:outputpanel rendered="{!IF(params.trade == 'RMB', false, true)}">
|
<!-- 各ページのヘッダキャンバス -->
|
<div class="headerCanvas">
|
<table style="height:100%;">
|
<tr>
|
<td>
|
<div style="height:25px;">
|
Prospect Code {!$Label.Contract_Detail_System_Code}</div>
|
<div style="height:25px;">End user {!$Label.Quote_Client_Name}</div>
|
<div style="height:25px;">Department {!$Label.Quote_Department}</div>
|
<div style="height:25px;">The Buyer {!$Label.Contract_Detail_Dealer_Name}</div>
|
</td>
|
<td>
|
<div style="height:25px;">: </div>
|
<div style="height:25px;">: </div>
|
<div style="height:25px;">: </div>
|
<div style="height:25px;">: </div>
|
</td>
|
<td>
|
<div style="height:25px;"> {!params.quoteNo}</div>
|
<div style="height:25px;"> {!params.clientName}</div>
|
<div style="height:25px;"> {!params.departmentName}</div>
|
<apex:outputPanel rendered="{!IF(params.agentNameForContract != null && params.lenAgentName >= 40, true, false)}">
|
<div style="height:22px; padding-top:3px; font-size:10px;"> {!params.agentNameForContract}</div>
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!IF(params.agentNameForContract != null && params.lenAgentName < 40, true, false)}">
|
<div style="height:25px;"> {!params.agentNameForContract}</div>
|
</apex:outputPanel>
|
</td>
|
</tr>
|
</table>
|
<table style="top:0px; right:0px; position:absolute; height:100%;">
|
<tr>
|
<td>
|
<div style="height:25px;"> </div>
|
<div style="height:25px;"> </div>
|
<!-- -->
|
<div style="height:25px;">Print date {!$Label.Contract_Detail_Print_Date}</div>
|
<div style="height:25px;"> ID Code</div>
|
</td>
|
<td>
|
<div style="height:25px;"> </div>
|
<div style="height:25px;"> </div>
|
<!-- <div style="height:25px;"> </div> -->
|
<div style="height:25px;">: </div>
|
<div style="height:25px;">: </div>
|
</td>
|
<td>
|
<div style="height:25px;"> </div>
|
<div style="height:25px;"> </div>
|
<div style="height:25px;"> {!params.offerPrintDateStringContract}</div>
|
<div style="height:25px;"> </div>
|
</td>
|
</tr>
|
|
</table>
|
</div>
|
|
<br/>
|
|
<!-- ページ内の詳細のREPEAT -->
|
<div class="detailCanvas">
|
<!-- 2021/01/15 liying start -->
|
<!-- 多表头 第一列表头 -->
|
<apex:dataTable value="{!items}" var="item" id="dataTableUSD" styleClass="detailTableUSD" headerClass="detailTableHeaderUSD" columnClasses="detailTableCols">
|
<apex:column styleClass="detailRowNumber">
|
<apex:facet name="header">Commodity Type</apex:facet>
|
</apex:column>
|
<apex:column styleClass="detailRowString">
|
<apex:facet name="header"></apex:facet>
|
</apex:column>
|
<apex:column styleClass="detailRowString">
|
<apex:facet name="header"></apex:facet>
|
</apex:column>
|
<apex:column styleClass="detailRowString">
|
<apex:facet name="header">
|
Description</apex:facet>
|
</apex:column>
|
<apex:column styleClass="detailRowNumeric">
|
<apex:facet name="header"> Quantity</apex:facet>
|
</apex:column>
|
<apex:column styleClass="detailRowNumeric">
|
<apex:facet name="header"> Special Warranty Period(year) </apex:facet>
|
</apex:column>
|
|
<!-- lt 20220223 CHAN-CBW9FX 特殊交货期影响的对应 start -->
|
<apex:column styleClass="detailRowNumeric">
|
<apex:facet name="header"> Delivery Date </apex:facet>
|
</apex:column>
|
<!-- lt 20220223 CHAN-CBW9FX 特殊交货期影响的对应 end -->
|
|
</apex:dataTable>
|
<!-- 2021/01/15 liying end -->
|
<!-- 多表头 第二列表头 -->
|
<apex:dataTable value="{!items}" var="item" id="dataTable2" styleClass="detailTable" headerClass="detailTableHeader" columnClasses="detailTableCols">
|
<apex:column styleClass="detailRowNumber">
|
<apex:facet name="header">{!$Label.Quote_Product_Code}</apex:facet>
|
<apex:outputText value="{!item.qli.Item_Order__c}"/>
|
</apex:column>
|
<apex:column styleClass="detailRowString">
|
<apex:facet name="header"></apex:facet>
|
<apex:outputText value="{!item.qli.Asset_Model_No_forPrint__c}"/>
|
</apex:column>
|
<apex:column styleClass="detailRowString">
|
<apex:facet name="header"> </apex:facet>
|
<apex:outputText value="{!item.qli.NameForPrintDelimiter__c}"/>
|
</apex:column>
|
<apex:column styleClass="detailRowString">
|
<apex:facet name="header">{!$Label.Quote_Product_Name}</apex:facet>
|
<apex:outputText value="{!item.qli.NameForPrint__c}"/>
|
</apex:column>
|
<apex:column styleClass="detailRowNumeric">
|
<apex:facet name="header">{!$Label.Quantity}</apex:facet>
|
<apex:outputText value="{0, number, ###,###}">
|
<apex:param value="{!item.qli.Quantity}" />
|
</apex:outputText>
|
</apex:column>
|
|
<apex:column styleClass="detailRowNumeric">
|
<apex:facet name="header">特殊保修年限</apex:facet>
|
<apex:outputText value="{!item.qli.GuaranteePeriod__c}"/>
|
</apex:column>
|
|
<!-- lt 20220223 CHAN-CBW9FX 特殊交货期影响的对应 start -->
|
<!-- <apex:column styleClass="detailRowNumeric">
|
<apex:facet name="header">交货期</apex:facet>
|
<apex:outputText value="{!item.qli.DeliveryDate__c}"/>
|
</apex:column> -->
|
<!-- lt 20220223 CHAN-CBW9FX 特殊交货期影响的对应 end -->
|
|
</apex:dataTable>
|
</div>
|
</apex:outputpanel>
|
|
<br />
|
|
<!-- 各ページのフッタキャンバス -->
|
<div class="footerCanvasContract">
|
<div class="footerSignContract">
|
({!$Label.Contract_Detail_Buyer_Stamp})<br />
|
<br />
|
年 月 日<br />
|
</div>
|
</div>
|
|
</div>
|
|
<!-- 各ページを区切る改ページ、最終ページには出さないようにしている -->
|
<apex:outputpanel rendered="{!count<maxPageNumber}">
|
<div style="page-break-after: always;"/>
|
</apex:outputpanel>
|
|
</apex:repeat>
|
|
</body>
|
|
</apex:page>
|