<apex:page controller="PrintConsumblePDFController" showHeader="false" sidebar="false" renderAs="PDF" action="{!init}" applyBodyTag="false">
|
<!-- <apex:page controller="PrintConsumblePDFController" showHeader="false" sidebar="false" action="{!init}" applyBodyTag="false"> -->
|
<apex:stylesheet value="{!URLFOR($Resource.contractdetailpdf)}"/>
|
<head>
|
<style>
|
|
tr.columuscolour {
|
display: none;
|
}
|
</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}"/>
|
|
<!-- 各ページのタイトル -->
|
<div class="quoteTitle">订货单</div>
|
<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>
|
<div style="height:25px;">{!$Label.Contract_Detail_Dealer_Name}</div>
|
<div style="height:25px;">{!$Label.Quote_AddressName}</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;"> {!coc.Name}</div>
|
<div style="height:25px;"> {!GestName}</div>
|
<div style="height:25px;"> {!GestName}</div>
|
<div style="height:25px;"> {!addressName}</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;">{!$Label.Quote_Department}</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;"> </div>
|
<div style="height:25px;"> </div>
|
</td>
|
<td>
|
<div style="height:25px;"> </div>
|
<div style="height:25px;"> </div>
|
<div style="height:25px;"> </div>
|
<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>
|
<!-- update by rentx 2020-11-11 CHAN-BV2677 start -->
|
<div style="height:25px;">电子签收ID号</div>
|
<!-- update by rentx 2020-11-11 CHAN-BV2677 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>
|
<!-- update by rentx 2020-11-11 CHAN-BV2677 start -->
|
<div style="height:25px;" align="right">{!idName}</div>
|
<!-- update by rentx 2020-11-11 CHAN-BV2677 end -->
|
<div style="height:25px;"> <apex:outputText value="{0, date, yyyyMMdd}">
|
<apex:param value="{!TODAY()}" />
|
</apex:outputText></div>
|
</td>
|
</tr>
|
</table>
|
</div>
|
|
<br/>
|
|
<div class="detailCanvas" style="font-size: 10px">
|
<table cellspacing="0" cellpadding="0" class="detailTable">
|
<tr class="detailTableHeader">
|
<th class="detailTableHeader" scope="col" ></th>
|
<th class="detailTableHeader" scope="col" >编码</th>
|
<th class="detailTableHeader" scope="col" ></th>
|
<th class="detailTableHeader" scope="col" >产品型号/名称</th>
|
<th class="detailTableHeader" scope="col" >注册证号<br/>备案凭证编号</th>
|
<th class="detailTableHeader" scope="col" width="25%" >生产企业</th>
|
<th class="detailTableHeader" scope="col" >单位</th>
|
<th class="detailTableHeader" scope="col" >包装规格</th>
|
<th class="detailTableHeader" scope="col" >单价</th>
|
<th class="detailTableHeader" scope="col" >数量</th>
|
<th class="detailTableHeader" scope="col" >金额</th>
|
</tr>
|
<apex:repeat value="{!items}" var="records">
|
<tr >
|
<td class="detailTableCols detailRowNumber">
|
<apex:outputText value="{!records.lineNo}"/>
|
</td>
|
<td class="detailTableCols detailRowString">
|
<apex:outputField value="{!records.esd.Product_code__c}"/>
|
</td>
|
<td class="detailTableCols detailRowString">
|
<apex:outputText value="{!records.esd.Remarks__c}"/>
|
</td>
|
<td class="detailTableCols detailRowString">
|
<apex:outputField value="{!records.esd.Lose_reason__c}"/>
|
</td>
|
<td class="detailTableCols detailRowString">
|
|
</td>
|
<td class="detailTableCols detailRowString">
|
<c:PDFWbr targetStr="{!records.esd.AgencyName_text1__c}"/>
|
</td>
|
<td class="detailTableCols detailRowString">
|
<apex:outputText value="{!records.unit}" />
|
</td>
|
<td class="detailTableCols detailRowString">
|
<apex:outputField value="{!records.esd.ProductPacking_list_manual__c}"/>
|
<apex:variable var="v" value="" rendered="{!records.esd.ProductPacking_list_manual__c!=null}">
|
Pcs
|
</apex:variable>
|
</td>
|
<td class="detailTableCols detailRowString">
|
|
</td>
|
<td class="detailTableCols detailRowString">
|
<apex:outputField value="{!records.esd.Consumable_count__c}"/>
|
</td>
|
<td class="detailTableCols detailRowString">
|
|
</td>
|
</tr>
|
</apex:repeat>
|
</table>
|
|
<!--<apex:dataTable value="{!items}" var="records" id="dataTable" styleClass="detailTable" headerClass="detailTableHeader" columnClasses="detailTableCols">
|
<apex:column styleClass="detailRowNumber">
|
<apex:facet name="header"></apex:facet>
|
<apex:outputText value="{!records.lineNo}"/>
|
</apex:column>
|
<apex:column styleClass="detailRowString">
|
<apex:facet name="header">编码</apex:facet>
|
<apex:outputField value="{!records.esd.Product_code__c}"/>
|
</apex:column>
|
<apex:column styleClass="detailRowString">
|
<apex:facet name="header"> </apex:facet>
|
<apex:outputText value="{!records.esd.Remarks__c}"/>
|
</apex:column>
|
<apex:column styleClass="detailRowString" style="width: 150PX;">
|
<apex:facet name="header">产品型号/名称</apex:facet>
|
<apex:outputField value="{!records.esd.Lose_reason__c}"/>
|
</apex:column>
|
<apex:column styleClass="detailRowString">
|
<apex:facet name="header">注册证号<br/>备案凭证编号</apex:facet>
|
</apex:column>
|
<apex:column styleClass="detailRowString">
|
<apex:facet name="header">生产企业</apex:facet>
|
<apex:outputField value="{!records.esd.AgencyName_text1__c}" />
|
</apex:column>
|
<apex:column styleClass="detailRowString">
|
<apex:facet name="header">单位</apex:facet>
|
<apex:outputText value="{!records.unit}" />
|
</apex:column>
|
<apex:column styleClass="detailRowString">
|
<apex:facet name="header">包装规格</apex:facet>
|
<apex:outputField value="{!records.esd.ProductPacking_list_manual__c}"/>
|
<apex:variable var="v" value="" rendered="{!records.esd.ProductPacking_list_manual__c!=null}">
|
Pcs
|
</apex:variable>
|
</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:outputField value="{!records.esd.Consumable_count__c}"/>
|
</apex:column>
|
<apex:column styleClass="detailRowString">
|
<apex:facet name="header">金额</apex:facet>
|
|
</apex:column>
|
</apex:dataTable>-->
|
</div>
|
|
<apex:outputpanel rendered="{!count==maxPageNumber}">
|
<div>
|
<table>
|
<!-- 20181016 XHL UpdateSTART CHAN-B5L538 -->
|
<tr class="headerRow">
|
<td style="text-align: left;" >备注:上述产品注册证号/备案凭证编号以收到实物中文标签中的注册证信息为准</td>
|
</tr>
|
<!-- 20181016 XHL UpdateEND CHAN-B5L538 -->
|
<tr class="headerRow">
|
<td width="500px"></td>
|
<td>订货总金额:</td>
|
<td style="text-align: right;">{!coc.Total_amount__c}元</td>
|
</tr>
|
<tr class="{!IF(coc.Offers_Price__c ==null || coc.Offers_Price__c == 0,'columuscolour','headerRow')}">
|
<td width="500px"></td>
|
<td>特价总金额:</td>
|
<td style="text-align: right;">{!coc.Offers_Price__c}元</td>
|
</tr>
|
</table>
|
</div>
|
</apex:outputpanel>
|
|
<br/>
|
<br/>
|
|
<div class="footerCanvasContract">
|
<div class="footerSignContract">
|
(买方盖章)<br />
|
<br />
|
年 月 日<br />
|
</div>
|
</div>
|
</div>
|
<!-- 各ページを区切る改ページ、最終ページには出さないようにしている -->
|
<apex:outputpanel rendered="{!count<maxPageNumber}">
|
<div style="page-break-after: always;"/>
|
</apex:outputpanel>
|
|
</apex:repeat>
|
</body>
|
</apex:page>
|