<apex:page controller="NewDBMCAgentPDFAdnMceConfigController" showHeader="false" sidebar="false" action="{!init}" renderAs="pdf" applyHtmlTag="false" >
|
<!-- lightningStylesheets="true" -->
|
<html>
|
<head>
|
<style>
|
@page {
|
size: A4 portrait;
|
margin: 12mm 12mm 5mm 12mm;
|
}
|
table { border-collapse: collapse; }
|
td.detail { text-align: center; font-size: 8pt}
|
/* } */
|
body > .top-right {
|
position: absolute;
|
top: 10px;
|
right: 10px;
|
font-size: 12px;
|
}
|
.text-wrap {
|
overflow-wrap: break-word;
|
word-wrap: break-word;
|
word-break: break-word;
|
hyphens: auto;
|
}
|
</style>
|
</head>
|
<body style="font-family: Arial Unicode MS;">
|
<!-- 合同编码 -->
|
<div class="top-right">
|
<div>合同管理编码: {!targetObj.MCD.Management_Code__c}</div>
|
<apex:dataList styleClass="no-bullet-list" value="{!targetObj.MCL}" var="mc">
|
<div style="margin-left: 80px;">{!mc.Management_Code__c}</div>
|
</apex:dataList>
|
</div>
|
<table width="100%" cellspacing="0" cellpadding="0" style="font-size:13pt;margin-top: 20%;">
|
<!-- <tr><td style="text-align: center;font-size: 18pt"><span style="border-bottom:double 3px;">奥林巴斯维修服务合同</span></td></tr> -->
|
<tr><td height="100px"></td></tr>
|
<tr><td style="text-align: center;font-size: 30pt">
|
<!-- -->
|
<!-- <c:PDFWbr targetStr="{!targetObj.MC.Hospital__r.Name}"/> -->
|
<c:PDFWbr targetStr="奥林巴斯维修服务合同"/>
|
|
<!-- {!targetObj.year}年度服务合同 -->
|
</td></tr>
|
<tr><td height="250px"></td></tr>
|
</table>
|
<!-- 甲方乙方1 -->
|
<table width="100%" cellspacing="0" cellpadding="0" style="font-size:13pt;">
|
<tr><td height="10px"></td></tr>
|
<tr>
|
<td width="20px" style="font-size: 16pt;vertical-align: text-top;">甲方:
|
</td>
|
<td style="font-size: 16pt">
|
<u> <c:PDFWbr targetStr="{!IF(targetObj.MC.Dealer__r.Name == null,targetObj.MC.Hospital__r.Name,targetObj.MC.Dealer__r.Name)}" /> </u>
|
</td>
|
</tr>
|
<tr><td height="40px"></td></tr>
|
<tr>
|
<td width="20px" style="font-size: 16pt;vertical-align: text-top;">
|
乙方:
|
</td>
|
<td style="font-size: 16pt"> <c:PDFWbr targetStr="{!targetObj.BCompany}"/></td></tr>
|
|
<!-- <tr><td height="250px"></td></tr> -->
|
</table>
|
<div style="page-break-after: always;"/>
|
<div style="counter-increment: page -1"></div>
|
<apex:variable value="{!1}" var="pageCnt" />
|
<apex:variable value="{!1}" var="lineNo" />
|
|
<apex:repeat value="{!targetObjList}" var="targetObj">
|
<table width="100%" cellspacing="0" cellpadding="0" >
|
<tr>
|
<td width="10%" >附件</td>
|
</tr>
|
<tr><td height="15px"></td></tr>
|
<tr>
|
<td colspan="2" style="text-align: center;font-size: 20pt">
|
奥林巴斯维修服务合同设备清单
|
</td>
|
</tr>
|
</table>
|
<br/>
|
<table width="100%" border="1" cellspacing="0" cellpadding="0" style="table-layout: fixed;">
|
<tr style="font-size: 9pt">
|
<td width="5%" style="text-align: center;">编号</td>
|
<td width="18%" style="text-align: center;">合同号</td>
|
<td width="20%" style="text-align: center;">型号</td>
|
<td width="24%" style="text-align: center;">机器名称</td>
|
<td width="10%" style="text-align: center;">机身号</td>
|
<td width="5%" style="text-align: center;">备注</td>
|
<!-- <apex:outputPanel layout="none" rendered="{!IF(RecordTypeName = 'NewMaintenance_Quote' , true, false)}"> -->
|
<td width="10%" style="text-align: center;">备品确保<br/>提供</td>
|
<td width="8%" style="text-align: center;">约定点检<br/>设备对象</td>
|
<!-- </apex:outputPanel> -->
|
</tr>
|
|
<apex:repeat value="{!targetObj.assetInfoList}" var="asset" id="asset">
|
<tr>
|
<td class="detail"><apex:outputText escape="false" value="{!asset.lineNo}"></apex:outputText></td>
|
<td class="detail"><apex:outputText escape="false" value="{!asset.Management_Code}"></apex:outputText></td>
|
<td class="detail"><apex:outputText escape="false" value="{!asset.assetModelNo}"></apex:outputText></td>
|
<td class="detail">
|
<apex:outputText escape="false" value="{!asset.assetName}" styleClass="text-wrap"></apex:outputText>
|
</td>
|
<td class="detail"><apex:outputText escape="false" value="{!asset.assetSerialNumber}"></apex:outputText></td>
|
<td class="detail"><apex:outputText escape="false" value="{!asset.assetComment}"></apex:outputText></td>
|
<!-- <apex:outputPanel layout="none" rendered="{!IF(RecordTypeName = 'NewMaintenance_Quote' , true, false)}"> -->
|
<td class="detail"><apex:outputText escape="false" value="{!asset.mcae.Characteristic__c}"></apex:outputText></td>
|
<!-- </apex:outputPanel> -->
|
<td class="detail"><apex:outputField value="{!asset.mcae.Check_Object__c}"/></td>
|
</tr>
|
<apex:variable value="{!lineNo + 1}" var="lineNo" />
|
</apex:repeat>
|
</table>
|
<apex:outputPanel rendered="{!pageCnt < targetObjSize}" layout="none">
|
<div style="page-break-after: always;"/>
|
</apex:outputPanel>
|
<apex:variable value="{!pageCnt + 1}" var="pageCnt" />
|
</apex:repeat>
|
|
<div style="page-break-after: always;"/>
|
<div style="counter-increment: page -1"></div>
|
|
</body>
|
</html>
|
</apex:page>
|