From e6068da47c1bef5517c9e5fdc8c726766867ad4e Mon Sep 17 00:00:00 2001 From: buli <137736985@qq.com> Date: 星期五, 14 七月 2023 15:10:02 +0800 Subject: [PATCH] Merge branch 'master' into LEXUpgrade2023-Deloitte --- force-app/main/default/pages/RepairAgainAnPDF.page | 562 +++++++++++++++++++++++++++++++++++++++---------------- 1 files changed, 393 insertions(+), 169 deletions(-) diff --git a/force-app/main/default/pages/RepairAgainAnPDF.page b/force-app/main/default/pages/RepairAgainAnPDF.page index 1a83154..3fda5ba 100644 --- a/force-app/main/default/pages/RepairAgainAnPDF.page +++ b/force-app/main/default/pages/RepairAgainAnPDF.page @@ -1,32 +1,67 @@ -<apex:page controller="RepairAgainAnPDFController" showHeader="false" sidebar="false" renderAs="pdf" action="{!init}" applyHtmlTag="false"> +<apex:page controller="RepairAgainAnPDFController" showHeader="false" sidebar="false" renderAs="PDF" action="{!init}" applyHtmlTag="false"> <html> <head> + <style> @page { size: A4 portrait; - margin: 5mm 12mm 5mm 12mm; + margin: 5mm 10mm 5mm 10mm; + /*@top-center { + content: element(header); + }*/ } + + /*div.header { + margin-top:10px; + width: 10%; + margin-right: 10px; + position: running(header); + }*/ table {border-collapse: collapse;} td.title {text-align: center; font-weight: bold; background-color: #BDBDBD; height: 23px;} - td.middle {text-align: center; font-size:120%;} - td.label {padding-left: 10px; height: 23px; font-weight: bold;} + td.middle {text-align: center; font-size:100%;} + td.label {padding-left: 10px; height: 23px; font-weight: bold;} + </style> + + <script type="text/javascript"> + window.onload=function(){ + + function my$(id){ + return document.getElementById(id); + } + + function showAndHide(){ + var status=!status; + alert("褰撳墠椤甸潰鐘舵�佷负锛�"+status); + } + showAndHide(); + } + </script> + </head> <body style="font-family: Arial Unicode MS;"> + <!-- <div class="header"> + <apex:image id="logo" value="{!$Resource.RepairAgainAnPDF_Header}" /> + </div> --> <table width="100%" border="0"> <tr> - <td width="15%"> + <td width="20%"> <table width="100%" border="1" cellspacing="0" style="border-color: red;"> - <tr><td colspan="2" style="font-size: 7px; font-weight: bold; color: red; text-align: center; padding: 0px 0px 0px 0px; border-color: red;">OLYMPUS</td></tr> + <tr><td colspan="2" style="font-size: 6px; font-weight: bold; color: red; text-align: center; padding: 0px 0px 0px 0px;">OLYMPUS</td></tr> <tr> - <td style="font-size: 7px; color: red; text-align: center; padding: 0px 0px 0px 0px; border-color: red;" width="80%" >CONFIDENTIAL</td> - <td style="font-size: 7px; color: red; text-align: center; padding: 0px 0px 0px 0px; border-color: red;">銑�</td> + <td style="font-size: 7px; color: red; text-align: center; padding: 0px 0px 0px 0px; border-color: red;" width="80%" >INTERNAL USER ONLY</td> + <td style="font-size: 7px; color: red; text-align: center; padding: 0px 0px 0px 0px; border-color: red;">绀惧绉�</td> </tr> + </table> + <table width="100%" border="0" cellspacing="0" style="border-color: red;"> + <tr><td colspan="2" style="font-size: 6px; font-weight: bold; color: red; text-align: center; padding: 0px 0px 0px 0px;"> + 绀惧唴瀵�:鍏徃鍐呴儴鍏紑</td></tr> </table> <table width="100%" cellspacing="0"> <tr> - <td style="font-size: 10pt; text-align: left; padding: 0px 0px 0px 0px;">绠$悊鍙�:</td> + <td style="font-size: 10pt; text-align: left; padding: 0px 0px 0px 0px;">绠$悊鍙�:{!ra.Repair__r.Name}</td> <td style="font-size: 10pt; text-align: left; padding: 0px 0px 0px 0px;"></td> </tr> </table> @@ -76,13 +111,15 @@ <td class="label">鍖婚櫌</td> <td colspan="3" class="middle">{!ra.Hospital__c}</td> <td rowspan="7" class="label">鎶ヤ环妫�娴嬬‘璁�</td> - <td rowspan="7" colspan="3" class="middle" style="height:161px; font-size:120%; font-weight: bold;"> + <td rowspan="7" colspan="3" class="middle" style="height:161px; font-size:100%; font-weight: bold;"> + <div style="text-align: left;text-indent:2em" id="Society_div"> <c:PDFWbr targetStr="{!ra.InspectionComment__c}" /> + </div> </td> </tr> <tr> <td rowspan="1" class="label">鏁呴殰鐜拌薄</td> - <td rowspan="1" colspan="3" class="middle" style="height:46px; font-size:120%; font-weight: bold;"> + <td rowspan="1" colspan="3" class="middle" style="height:46px; font-size:100%; font-weight: bold;"> <c:PDFWbr targetStr="{!ra.PhenomenonName__c}" /> </td> </tr> @@ -109,7 +146,7 @@ <td width="10%" class="label" height="23px">鎶ュ憡鑰�</td> <td width="15%" class="middle">{!ra.Reporter__r.Name}</td> <td width="10%" class="label">纭鑰�</td> - <td width="15%" class="middle">{!ra.FSE_Confirmer__r.Name}</td> + <td width="15%" class="middle">{!ra.RC_Confirmer__r.Name}</td> <td width="10%" class="label">鎶ュ憡鏃�</td> <td width="15%" class="middle"><apex:outputField value="{!ra.Report_Date__c}"/></td> <td width="10%" class="label">闄勫浘鐗�</td> @@ -145,14 +182,10 @@ </td> </tr> <tr> - <td width="10%" class="label">鍐嶄慨鐞�</td> - <td width="15%" class="label"> - <apex:outputPanel layout="none" rendered="{!ra.IFRepairAgain__c == '鏄�'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.IFRepairAgain__c <> '鏄�'}">□</apex:outputPanel>鏄� - - <apex:outputPanel layout="none" rendered="{!ra.IFRepairAgain__c == '鍚�'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.IFRepairAgain__c <> '鍚�'}">□</apex:outputPanel>鍚� - </td> <td width="10%" class="label">杩旇繕鏃�</td> <td width="15%" class="middle"><apex:outputField value="{!ra.Repair_Returned_Last__c}"/></td> + <td width="10%" class="label"></td> + <td width="15%" class="label"></td> <td width="10%" class="label">淇悊</td> <td width="40%" class="label"> <apex:outputPanel layout="none" rendered="{!ra.Repair_Rank_Last__c == 'A(W)'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.Repair_Rank_Last__c <> 'A(W)'}">□</apex:outputPanel>A(W) @@ -166,134 +199,48 @@ </tr> <tr> <td width="10%" class="label">涓婃鏁呴殰缁翠慨淇℃伅</td> - <td colspan="5" class="middle" style="height:69px; font-size:120%; font-weight: bold;"> + <td colspan="5" class="middle" style="height:69px; font-size:100%; font-weight: bold;"> <c:PDFWbr targetStr="{!ra.InspectionFailureCause_Last__c}" /> </td> </tr> </table> </td> </tr> - <tr> - <td style="border-top-color: white;"> - <table width="100%" border="1" cellspacing="0"> - <tr> - <td colspan="8" class="title">鎶�鏈娴嬪垎鏋愶紙OSH鍖荤枟鍝佽川淇濋殰閮ㄥ~鍐欙級</td> - </tr> - <tr> - <td colspan="8" style="height:18px; padding-top: 0px; padding-bottom: 0px; padding-left: 10px; font-weight: bold">鎶�鏈娴�/鍒嗘瀽璇﹁堪</td> - </tr> - <tr> - <td colspan="8" class="middle" style="height:138px; border-top-color: white; font-size:120%; font-weight: bold; vertical-align: top;"><c:PDFWbr targetStr="{!ra.AnalysisOSH__c}" /></td> - </tr> - <tr> - <td colspan="8" style="height:18px; padding-top: 0px; padding-bottom: 0px; padding-left: 10px;">鍘熷洜</td> - </tr> - <tr> - <td colspan="8" class="middle" style="height:69px; border-top-color: white; font-size:120%; font-weight: bold; vertical-align: top;"><c:PDFWbr targetStr="{!ra.AnalysisReasonOSH__c}" /></td> - </tr> - <tr> - <td class="label">缁撹</td> - <td colspan="7" class="label"> - <apex:outputPanel layout="none" rendered="{!ra.JudgementOSH__c == '璐ㄩ噺鍘熷洜'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.JudgementOSH__c <> '璐ㄩ噺鍘熷洜'}">□</apex:outputPanel>璐ㄩ噺鍘熷洜 - - <apex:outputPanel layout="none" rendered="{!ra.JudgementOSH__c == '闈炶川閲忓師鍥�'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.JudgementOSH__c <> '闈炶川閲忓師鍥�'}">□</apex:outputPanel>闈炶川閲忓師鍥� - - <apex:outputPanel layout="none" rendered="{!ra.JudgementOSH__c == '鏁呴殰鏈啀鐜�'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.JudgementOSH__c <> '鏁呴殰鏈啀鐜�'}">□</apex:outputPanel>鏁呴殰鏈啀鐜� - </td> - </tr> - <tr> - <td class="label">鎶�鏈搴�</td> - <td colspan="7" class="label"> - <apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c == '鏃犲伩缁翠慨'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c <> '鏃犲伩缁翠慨'}">□</apex:outputPanel>鏃犲伩缁翠慨 - - <apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c == '鏈夊伩缁翠慨'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c <> '鏈夊伩缁翠慨'}">□</apex:outputPanel>鏈夊伩缁翠慨 - - <apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c == '閫佸洖'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c <> '閫佸洖'}">□</apex:outputPanel>閫佸洖 - - <apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c == '缁х画瑙傚療'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c <> '缁х画瑙傚療'}">□</apex:outputPanel>缁х画瑙傚療 - </td> - </tr> - <tr> - <td width="10%" class="label">妫�娴嬭��</td> - <td width="15%" class="middle">{!ra.OSH_Detector__r.Name}</td> - <td width="10%" class="label">纭鑰�</td> - <td width="15%" class="middle">{!ra.OSH_Confirmer__r.Name}</td> - <td width="10%" class="label">纭鏃�</td> - <td width="15%" class="middle"><apex:outputField value="{!ra.OSH_Confirmation_Date__c}"/></td> - <td width="10%" class="label">闄勫浘鐗�</td> - <td width="15%" class="label"> - <apex:outputPanel layout="none" rendered="{!ra.OSH_Dectect_Picture1_URL__c != null || ra.OSH_Dectect_Picture2_URL__c != null || ra.OSH_Dectect_Picture3_URL__c != null || ra.OSH_Dectect_Picture4_URL__c != null}">✔</apex:outputPanel> - <apex:outputPanel layout="none" rendered="{!ra.OSH_Dectect_Picture1_URL__c == null && ra.OSH_Dectect_Picture2_URL__c == null && ra.OSH_Dectect_Picture3_URL__c == null && ra.OSH_Dectect_Picture4_URL__c == null}">□</apex:outputPanel>鏈� - - <apex:outputPanel layout="none" rendered="{!ra.OSH_Dectect_Picture1_URL__c == null && ra.OSH_Dectect_Picture2_URL__c == null && ra.OSH_Dectect_Picture3_URL__c == null && ra.OSH_Dectect_Picture4_URL__c == null}">✔</apex:outputPanel> - <apex:outputPanel layout="none" rendered="{!ra.OSH_Dectect_Picture1_URL__c != null || ra.OSH_Dectect_Picture2_URL__c != null || ra.OSH_Dectect_Picture3_URL__c != null || ra.OSH_Dectect_Picture4_URL__c != null}">□</apex:outputPanel>鏃� - </td> - </tr> - </table> - </td> - </tr> - <tr> - <td style="border-top-color: white;"> - <table width="100%" border="1" cellspacing="0"> - <tr> - <td colspan="6" class="title">瀹㈡埛瀵瑰簲锛圤CM鏈嶅姟鏈儴濉啓锛�</td> - </tr> - <tr> - <td colspan="6" class="middle" style="height:92px; border-top-color: white; font-size:120%; font-weight: bold; vertical-align: top;"><c:PDFWbr targetStr="{!ra.AnalysisOCM__c}" /></td> - </tr> - <tr> - <td class="label">瀹㈡埛瀵瑰簲</td> - <td colspan="5" class="label"> - <apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c == '鏃犲伩缁翠慨'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c <> '鏃犲伩缁翠慨'}">□</apex:outputPanel>鏃犲伩缁翠慨 - - <apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c == '鏈夊伩缁翠慨'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c <> '鏈夊伩缁翠慨'}">□</apex:outputPanel>鏈夊伩缁翠慨 - - <apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c == '閫佸洖'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c <> '閫佸洖'}">□</apex:outputPanel>閫佸洖 - - <apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c == '缁х画瑙傚療'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c <> '缁х画瑙傚療'}">□</apex:outputPanel>缁х画瑙傚療 - - <apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c == '鐗瑰埆瀵瑰簲'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c <> '鐗瑰埆瀵瑰簲'}">□</apex:outputPanel>鐗瑰埆瀵瑰簲 - </td> - </tr> - <tr> - <td width="10%" class="label" height="23px">鎶�鏈媴褰�</td> - <td width="15%" class="middle">{!ra.Technical_Responsibility__r.Name}</td> - <td width="10%" class="label">纭鑰�</td> - <td width="15%" class="middle">{!ra.OCM_Confirmer__r.Name}</td> - <td width="10%" class="label">纭鏃�</td> - <td width="40%" class="middle"><apex:outputField value="{!ra.OCM_Confirmation_Date__c}"/></td> - </tr> - </table> - </td> - </tr> </table> - <!-- 鍦ㄥ厓绱犲悗鎻掑叆鍒嗛〉绗� --> + + <!-- 鍦ㄥ厓绱犲悗鎻掑叆鍒嗛〉绗� --> + + <apex:outputPanel layout="none" rendered="{!ra.Dectect_Picture1_URL__c != null || ra.Dectect_Picture2_URL__c != null}"> <div style="page-break-after: always;"></div> <table width="100%" border="0"> <tr> - <td width="15%"> + <td width="20%"> <table width="100%" border="1" cellspacing="0" style="border-color: red;"> <tr><td colspan="2" style="font-size: 6px; font-weight: bold; color: red; text-align: center; padding: 0px 0px 0px 0px;">OLYMPUS</td></tr> <tr> - <td style="font-size: 7px; color: red; text-align: center; padding: 0px 0px 0px 0px; border-color: red;" width="80%" >CONFIDENTIAL</td> - <td style="font-size: 7px; color: red; text-align: center; padding: 0px 0px 0px 0px; border-color: red;">銑�</td> + <td style="font-size: 7px; color: red; text-align: center; padding: 0px 0px 0px 0px; border-color: red;" width="80%" >INTERNAL USER ONLY</td> + <td style="font-size: 7px; color: red; text-align: center; padding: 0px 0px 0px 0px; border-color: red;">绀惧绉�</td> </tr> </table> - + <table width="100%" border="0" cellspacing="0" style="border-color: red;"> + <tr><td colspan="2" style="font-size: 6px; font-weight: bold; color: red; text-align: center; padding: 0px 0px 0px 0px;"> + 绀惧唴瀵�:鍏徃鍐呴儴鍏紑</td></tr> + </table> </td> <td style="text-align: center;"><span style="font-size: 14pt;">鍐嶄慨鐞嗚繑鍝佸垎鏋愭姤鍛�</span></td> <td width="12%" style="text-align: right; vertical-align: bottom; font-size: 10pt;"> <table width="100%" cellspacing="0"> <tr> - <td style="font-size: 10px; text-align: left; padding: 0px 0px 0px 0px;">绠$悊鍙�:</td> + <td style="font-size: 10px; text-align: left; padding: 0px 0px 0px 0px;">绠$悊鍙�:{!ra.Repair__r.Name}</td> <td style="font-size: 10px; text-align: left; padding: 0px 0px 0px 0px;"></td> </tr> </table> </td> </tr> </table> + <div style="height:3px;"></div> - <table width="100%" border="1" cellspacing="2" style="font-size: 8pt;"> + <table width="100%" border="1" cellspacing="0" style="font-size: 8pt;"> <tr> <td width="10%" class="label" height="23px">鏈哄瀷</td> <td width="15%" class="middle"><c:PDFWbr targetStr="{!ra.Asset_Model_No__c}"/></td> @@ -303,65 +250,342 @@ <td width="15%" class="middle"><apex:outputField value="{!ra.AcceptDate__c}"/></td> <td width="10%" class="label">鎶ュ憡鏃�</td> <td width="15%" class="middle"><apex:outputField value="{!ra.Report_Date__c}"/></td> - </tr> + </tr> <tr> <td colspan="8" style="border-top-color: white;"> - <table width="100%" border="1" cellspacing="0"> - <tr><td class="title">鏈鎶ヤ环妫�娴嬪浘鐗�</td></tr> - </table> - </td> - </tr> + <table width="100%" border="1" cellspacing="0"> + <tr><td class="title">鏈鎶ヤ环妫�娴嬪浘鐗�</td></tr> + </table> + </td> + </tr> + <tr> + <td colspan="4" style="border-top-color: white;"> + <table width="100%" border="1" cellspacing="0"> + <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.Dectect_Picture1_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.Dectect_Picture1_URL__c))}" /></td></tr> + <tr><td style="height:40px;"></td></tr> + </table> + </td> + <td colspan="4" style="border-top-color: white;"> + <table width="100%" border="1" cellspacing="0"> + <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.Dectect_Picture2_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.Dectect_Picture2_URL__c))}" /></td></tr> + <tr><td style="height:40px;"></td></tr> + </table> + </td> + </tr> + <tr> + <td colspan="4" style="border-top-color: white;"> + <table width="100%" border="1" cellspacing="0"> + <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.Dectect_Picture3_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.Dectect_Picture3_URL__c))}" /></td></tr> + <tr><td style="height:40px;"></td></tr> + </table> + </td> + <td colspan="4" style="border-top-color: white;"> + <table width="100%" border="1" cellspacing="0"> + <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.Dectect_Picture4_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.Dectect_Picture4_URL__c))}" /></td></tr> + <tr><td style="height:40px;"></td></tr> + </table> + </td> + </tr> + </table> + </apex:outputPanel> + + + <!-- 鍦ㄥ厓绱犲悗鎻掑叆鍒嗛〉绗� --> + + <apex:outputPanel layout="none" rendered="{!status>=2}"> + <div style="page-break-after: always;"></div> + <table width="100%" border="0" display = "none"> <tr> - <td colspan="4" style="border-top-color: white;"> - <table width="100%" border="1" cellspacing="0"> - <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.Dectect_Picture1_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.Dectect_Picture1_URL__c))}" /></td></tr> - <tr><td style="height:40px;"></td></tr> + <td width="20%"> + <table width="100%" border="1" cellspacing="0" style="border-color: red;"> + <tr><td colspan="2" style="font-size: 6px; font-weight: bold; color: red; text-align: center; padding: 0px 0px 0px 0px;">OLYMPUS</td></tr> + <tr> + <td style="font-size: 7px; color: red; text-align: center; padding: 0px 0px 0px 0px; border-color: red;" width="80%" >INTERNAL USER ONLY</td> + <td style="font-size: 7px; color: red; text-align: center; padding: 0px 0px 0px 0px; border-color: red;">绀惧绉�</td> + </tr> + </table> + <table width="100%" border="0" cellspacing="0" style="border-color: red;"> + <tr><td colspan="2" style="font-size: 6px; font-weight: bold; color: red; text-align: center; padding: 0px 0px 0px 0px;"> + 绀惧唴瀵�:鍏徃鍐呴儴鍏紑</td></tr> </table> </td> - <td colspan="4" style="border-top-color: white;"> - <table width="100%" border="1" cellspacing="0"> - <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.Dectect_Picture2_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.Dectect_Picture2_URL__c))}" /></td></tr> - <tr><td style="height:40px;"></td></tr> - </table> - </td> - </tr> - <tr> - <td colspan="8" style="border-top-color: white;"> - <table width="100%" border="1" cellspacing="0"> - <tr><td class="title">OSH鍖荤枟鍝佽川淇濋殰閮ㄦ妧鏈娴嬪浘鐗�</td></tr> - </table> - </td> - </tr> - <tr> - <td colspan="4" style="border-top-color: white;"> - <table width="100%" border="1" cellspacing="0"> - <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.OSH_Dectect_Picture1_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.OSH_Dectect_Picture1_URL__c))}" /></td></tr> - <tr><td style="height:40px;"></td></tr> - </table> - </td> - <td colspan="4" style="border-left-color: white;"> - <table width="100%" border="1" cellspacing="0"> - <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.OSH_Dectect_Picture2_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.OSH_Dectect_Picture2_URL__c))}" /></td></tr> - <tr><td style="height:40px;"></td></tr> - </table> - </td> - </tr> - <tr> - <td colspan="4" style="border-top-color: white;"> - <table width="100%" border="1" cellspacing="0"> - <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.OSH_Dectect_Picture3_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.OSH_Dectect_Picture3_URL__c))}" /></td></tr> - <tr><td style="height:40px;"></td></tr> - </table> - </td> - <td colspan="4" style="border-left-color: white; border-top-color: white;"> - <table width="100%" border="1" cellspacing="0"> - <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.OSH_Dectect_Picture4_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.OSH_Dectect_Picture4_URL__c))}" /></td></tr> - <tr><td style="height:40px;"></td></tr> + <td style="text-align: center;"><span style="font-size: 14pt;">鍐嶄慨鐞嗚繑鍝佸垎鏋愭姤鍛�</span></td> + <td width="12%" style="text-align: right; vertical-align: bottom; font-size: 10pt;"> + <table width="100%" cellspacing="0"> + <tr> + <td style="font-size: 10px; text-align: left; padding: 0px 0px 0px 0px;">绠$悊鍙�:{!ra.Repair__r.Name}</td> + <td style="font-size: 10px; text-align: left; padding: 0px 0px 0px 0px;"></td> + </tr> </table> </td> </tr> </table> - </body> + <div style="height:3px;"></div> + <table width="100%" border="1" cellspacing="2" style="font-size: 8pt;"> + <tr> + <td style="border-top-color: white;"> + <apex:outputPanel layout="none" rendered="{!status>=2}"> + <table width="100%" border="1" cellspacing="0"> + <tr> + <td colspan="8" class="title">妫�娴嬪垎鏋愶紙OSH鍝佽川閮ㄩ棬濉啓锛�</td> + </tr> + <tr> + <td colspan="8" style="height:18px; padding-top: 0px; padding-bottom: 0px; padding-left: 10px; font-weight: bold">鎶�鏈娴�/鍒嗘瀽璇﹁堪</td> + </tr> + <tr> + <td colspan="8" class="left" style="height:20px; border-top-color: white; font-weight: bold; vertical-align: top; padding-left: 10px;">[瀹㈣瘔鏁呴殰鐜拌薄鐨勭‘璁ょ粨鏋淽锛� + <apex:outputPanel rendered="{!isFirst}"> + <apex:outputPanel layout="none" rendered="{!ra.Complaint_confirm__c == '鏈啀鐜�'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.Complaint_confirm__c <> '鏈啀鐜�'}">□</apex:outputPanel>鏈啀鐜� + + <apex:outputPanel layout="none" rendered="{!ra.Complaint_confirm__c == '鍐嶇幇'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.Complaint_confirm__c <> '鍐嶇幇'}">□</apex:outputPanel>鍐嶇幇 + </apex:outputPanel> + <apex:outputPanel rendered="{!!isFirst}"> + <apex:outputPanel layout="none" rendered="{!ra.Complaint_confirm2__c == '鏈啀鐜�'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.Complaint_confirm2__c <> '鏈啀鐜�'}">□</apex:outputPanel>鏈啀鐜� + + <apex:outputPanel layout="none" rendered="{!ra.Complaint_confirm2__c == '鍐嶇幇'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.Complaint_confirm2__c <> '鍐嶇幇'}">□</apex:outputPanel>鍐嶇幇 + </apex:outputPanel> + </td> + </tr> + <tr> + <td colspan="8" class="left" style="height:20px; border-top-color: white; font-weight: bold; vertical-align: top; padding-left: 10px;">[瀹㈣瘔鏁呴殰鐜拌薄浠ュ鐨勫叾浠栨晠闅滃唴瀹筣锛�<apex:outputPanel rendered="{!isFirst}">{!ra.Complaint_otherFault__c}</apex:outputPanel>{!ra.Complaint_otherFault2__c} + </td> + </tr> + <!-- <tr> + <td colspan="8" class="middle" style="height:50px; border-top-color: white; font-size:100%; font-weight: bold; vertical-align: top;"><c:PDFWbr rendered="{!isFirst}" targetStr="{!ra.AnalysisOSH__c}" /> <c:PDFWbr rendered="{!!isFirst}" targetStr="{!ra.AnalysisOSH2__c}" /></td> + </tr> --> + <tr> + <td colspan="8" style="height:50px;border-top-color: white; font-size:100%; font-weight: bold; vertical-align: top;"> + <apex:outputField value="{!ra.AnalysisOSH__c}"/> + </td> + </tr> + + <tr> + <td colspan="8" style="height:18px; padding-top: 0px; padding-bottom: 0px; padding-left: 10px;">鍘熷洜</td> + </tr> + <tr> + <td colspan="8" class="middle" style="height:50px; border-top-color: white; font-size:100%; font-weight: bold; vertical-align: top;"><c:PDFWbr rendered="{!isFirst}" targetStr="{!ra.AnalysisReasonOSH__c}" /><c:PDFWbr rendered="{!!isFirst}" targetStr="{!ra.AnalysisReasonOSH2__c}" /></td> + </tr> + + <tr> + <td colspan="8" class="left" style="height:20px; border-top-color: white; font-weight: bold; vertical-align: top; padding-left: 10px;"> 瀵瑰簲鎺柦锛�</td> + </tr> + <tr> + <td colspan="8" class="middle" style="height:50px; border-top-color: white; font-size:100%; font-weight: bold; vertical-align: top;"><c:PDFWbr rendered="{!isFirst}" targetStr="{!ra.Countermeasures__c}" /> <c:PDFWbr rendered="{!!isFirst}" targetStr="{!ra.Countermeasures2__c}" /></td> + </tr> + + <tr> + <td class="label">璐ㄩ噺鍒ゅ畾</td> + <td colspan="7" class="label"> + <apex:outputPanel rendered="{!isFirst}"> + <apex:outputPanel layout="none" rendered="{!ra.JudgementOSH__c == '璐ㄩ噺鍘熷洜'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.JudgementOSH__c <> '璐ㄩ噺鍘熷洜'}">□</apex:outputPanel>璐ㄩ噺鍘熷洜 + + <apex:outputPanel layout="none" rendered="{!ra.JudgementOSH__c == '闈炶川閲忓師鍥�'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.JudgementOSH__c <> '闈炶川閲忓師鍥�'}">□</apex:outputPanel>闈炶川閲忓師鍥� + + <apex:outputPanel layout="none" rendered="{!ra.JudgementOSH__c == '鏁呴殰鏈啀鐜�'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.JudgementOSH__c <> '鏁呴殰鏈啀鐜�'}">□</apex:outputPanel>鏁呴殰鏈啀鐜� + </apex:outputPanel> + <apex:outputPanel rendered="{! !isFirst}"> + <apex:outputPanel layout="none" rendered="{!ra.JudgementOSH2__c == '璐ㄩ噺鍘熷洜'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.JudgementOSH2__c <> '璐ㄩ噺鍘熷洜'}">□</apex:outputPanel>璐ㄩ噺鍘熷洜 + + <apex:outputPanel layout="none" rendered="{!ra.JudgementOSH2__c == '闈炶川閲忓師鍥�'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.JudgementOSH2__c <> '闈炶川閲忓師鍥�'}">□</apex:outputPanel>闈炶川閲忓師鍥� + + <apex:outputPanel layout="none" rendered="{!ra.JudgementOSH2__c == '鏁呴殰鏈啀鐜�'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.JudgementOSH2__c <> '鏁呴殰鏈啀鐜�'}">□</apex:outputPanel>鏁呴殰鏈啀鐜� + </apex:outputPanel> + </td> + </tr> + <tr> + <td class="label">鎶�鏈搴�</td> + <td colspan="7" class="label"> + <apex:outputPanel rendered="{!isFirst}"> + <apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c == '鏃犲伩缁翠慨'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c <> '鏃犲伩缁翠慨'}">□</apex:outputPanel>鏃犲伩缁翠慨 + + <apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c == '鏈夊伩缁翠慨'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c <> '鏈夊伩缁翠慨'}">□</apex:outputPanel>鏈夊伩缁翠慨 + + <apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c == '鏃犲伩+鏈夊伩'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c <> '鏃犲伩+鏈夊伩'}">□</apex:outputPanel>鏃犲伩+鏈夊伩 + + <apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c == '閫佸洖'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c <> '閫佸洖'}">□</apex:outputPanel>閫佸洖 + + <apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c == '缁х画瑙傚療'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOSH__c <> '缁х画瑙傚療'}">□</apex:outputPanel>缁х画瑙傚療 + </apex:outputPanel> + <apex:outputPanel rendered="{! !isFirst}"> + <apex:outputPanel layout="none" rendered="{!ra.ActionOSH2__c == '鏃犲伩缁翠慨'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOSH2__c <> '鏃犲伩缁翠慨'}">□</apex:outputPanel>鏃犲伩缁翠慨 + + <apex:outputPanel layout="none" rendered="{!ra.ActionOSH2__c == '鏈夊伩缁翠慨'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOSH2__c <> '鏈夊伩缁翠慨'}">□</apex:outputPanel>鏈夊伩缁翠慨 + + <apex:outputPanel layout="none" rendered="{!ra.ActionOSH2__c == '鏃犲伩+鏈夊伩'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOSH2__c <> '鏃犲伩+鏈夊伩'}">□</apex:outputPanel>鏃犲伩+鏈夊伩 + + <apex:outputPanel layout="none" rendered="{!ra.ActionOSH2__c == '閫佸洖'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOSH2__c <> '閫佸洖'}">□</apex:outputPanel>閫佸洖 + + <apex:outputPanel layout="none" rendered="{!ra.ActionOSH2__c == '缁х画瑙傚療'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOSH2__c <> '缁х画瑙傚療'}">□</apex:outputPanel>缁х画瑙傚療 + </apex:outputPanel> + </td> + </tr> + <tr> + <td width="10%" class="label">妫�娴嬭��</td> + <td width="15%" class="middle"><apex:outputPanel rendered="{!isFirst}">{!ra.OSH_Detector__r.Name}</apex:outputPanel>{!ra.OSH_Detector2__r.Name}</td> + <td width="10%" class="label">纭鑰�</td> + <td width="15%" class="middle"><apex:outputPanel rendered="{!isFirst}">{!ra.OSH_Confirmer__r.Name}</apex:outputPanel>{!ra.OSH_Confirmer2__r.Name}</td> + <td width="10%" class="label">纭鏃�</td> + <td width="15%" class="middle"><apex:outputField rendered="{!isFirst}" value="{!ra.OSH_Confirmation_Date__c}"/><apex:outputField rendered="{!!isFirst}" value="{!ra.OSH_Confirmation_Date2__c}"/></td> + <td width="10%" class="label">闄勫浘鐗�</td> + <td width="15%" class="label"> + <apex:outputPanel layout="none" rendered="{!ra.OSH_Dectect_Picture1_URL__c != null || ra.OSH_Dectect_Picture2_URL__c != null || ra.OSH_Dectect_Picture3_URL__c != null || ra.OSH_Dectect_Picture4_URL__c != null || ra.OSH_Dectect_Picture5_URL__c != null || ra.OSH_Dectect_Picture6_URL__c != null || ra.OSH_Dectect_Picture7_URL__c != null || ra.OSH_Dectect_Picture8_URL__c != null}">✔</apex:outputPanel> + <apex:outputPanel layout="none" rendered="{!ra.OSH_Dectect_Picture1_URL__c == null && ra.OSH_Dectect_Picture2_URL__c == null && ra.OSH_Dectect_Picture3_URL__c == null && ra.OSH_Dectect_Picture4_URL__c == null || ra.OSH_Dectect_Picture5_URL__c == null || ra.OSH_Dectect_Picture6_URL__c == null || ra.OSH_Dectect_Picture7_URL__c == null || ra.OSH_Dectect_Picture8_URL__c == null}">□</apex:outputPanel>鏈� + + <apex:outputPanel layout="none" rendered="{!ra.OSH_Dectect_Picture1_URL__c == null && ra.OSH_Dectect_Picture2_URL__c == null && ra.OSH_Dectect_Picture3_URL__c == null && ra.OSH_Dectect_Picture4_URL__c == null || ra.OSH_Dectect_Picture5_URL__c == null || ra.OSH_Dectect_Picture6_URL__c == null || ra.OSH_Dectect_Picture7_URL__c == null || ra.OSH_Dectect_Picture8_URL__c == null}">✔</apex:outputPanel> + <apex:outputPanel layout="none" rendered="{!ra.OSH_Dectect_Picture1_URL__c != null || ra.OSH_Dectect_Picture2_URL__c != null || ra.OSH_Dectect_Picture3_URL__c != null || ra.OSH_Dectect_Picture4_URL__c != null || ra.OSH_Dectect_Picture5_URL__c != null || ra.OSH_Dectect_Picture6_URL__c != null || ra.OSH_Dectect_Picture7_URL__c != null || ra.OSH_Dectect_Picture8_URL__c != null}">□</apex:outputPanel>鏃� + </td> + </tr> + <tr> + <td colspan="2" class="label">瀹℃牳鑰�</td> + <td colspan="2" class="middle"> <apex:outputPanel rendered="{!isFirst}">{!ra.OSH_Auditor__r.Name}</apex:outputPanel>{!ra.OSH_Auditor2__r.Name}</td> + <td colspan="2" class="label">瀹℃牳纭鏃�</td> + <td colspan="2" class="middle"> <apex:outputField rendered="{!isFirst}" value="{!ra.RepairAgainAn_Approve_Confirm__c}"/> <apex:outputField rendered="{!!isFirst}" value="{!ra.RepairAgainAn_Approve_Confirm2__c}"/></td> + </tr> + <apex:outputPanel layout="none" rendered="{!status>=2}"> + <tr> + <td colspan="8" style="border-top-color: white;"> + <table width="100%" border="1" cellspacing="0"> + <tr><td class="title">OSH鍝佽川閮ㄩ棬妫�娴嬪浘鐗�</td></tr> + </table> + </td> + </tr> + <tr> + <td colspan="4" style="border-top-color: white;"> + <table width="100%" border="1" cellspacing="0"> + <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.OSH_Dectect_Picture1_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.OSH_Dectect_Picture1_URL__c))}" /></td></tr> + <tr><td style="height:40px;"></td></tr> + </table> + </td> + <td colspan="4" style="border-left-color: white;"> + <table width="100%" border="1" cellspacing="0"> + <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.OSH_Dectect_Picture2_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.OSH_Dectect_Picture2_URL__c))}" /></td></tr> + <tr><td style="height:40px;"></td></tr> + </table> + </td> + </tr> + <tr> + <td colspan="4" style="border-top-color: white;"> + <table width="100%" border="1" cellspacing="0"> + <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.OSH_Dectect_Picture3_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.OSH_Dectect_Picture3_URL__c))}" /></td></tr> + <tr><td style="height:40px;"></td></tr> + </table> + </td> + <td colspan="4" style="border-left-color: white; border-top-color: white;"> + <table width="100%" border="1" cellspacing="0"> + <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.OSH_Dectect_Picture4_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.OSH_Dectect_Picture4_URL__c))}" /></td></tr> + <tr><td style="height:40px;"></td></tr> + </table> + </td> + </tr> + </apex:outputPanel> + </table> + </apex:outputPanel> + </td> + </tr> + </table> + </apex:outputPanel> + + <apex:outputPanel layout="none" rendered="{!status>=2 && (ra.OSH_Dectect_Picture5_URL__c != null || ra.OSH_Dectect_Picture6_URL__c != null || ra.OSH_Dectect_Picture7_URL__c != null || ra.OSH_Dectect_Picture8_URL__c != null)}"> + <div style="page-break-after: always;"></div> + <table width="100%" border="1" cellspacing="0"> + <tr> + <td colspan="4" style="border-top-color: white;"> + <table width="100%" border="1" cellspacing="0"> + <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.OSH_Dectect_Picture5_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.OSH_Dectect_Picture5_URL__c))}" /></td></tr> + <tr><td style="height:40px;"></td></tr> + </table> + </td> + <td colspan="4" style="border-left-color: white;"> + <table width="100%" border="1" cellspacing="0"> + <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.OSH_Dectect_Picture6_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.OSH_Dectect_Picture6_URL__c))}" /></td></tr> + <tr><td style="height:40px;"></td></tr> + </table> + </td> + </tr> + <tr> + <td colspan="4" style="border-top-color: white;"> + <table width="100%" border="1" cellspacing="0"> + <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.OSH_Dectect_Picture7_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.OSH_Dectect_Picture7_URL__c))}" /></td></tr> + <tr><td style="height:40px;"></td></tr> + </table> + </td> + <td colspan="4" style="border-left-color: white;"> + <table width="100%" border="1" cellspacing="0"> + <tr><td style="height:250px; text-align: center;"><apex:image value="{!ra.OSH_Dectect_Picture8_URL__c}" height="90%" width="80%" rendered="{!NOT(ISBLANK(ra.OSH_Dectect_Picture8_URL__c))}" /></td></tr> + <tr><td style="height:40px;"></td></tr> + </table> + </td> + </tr> + </table> + </apex:outputPanel> + + <!-- 鍦ㄥ厓绱犲悗鎻掑叆鍒嗛〉绗� --> + <apex:outputPanel layout="none" rendered="{!status>=3}"> + <div style="page-break-after: always;"></div> + <table width="100%" border="0"> + <tr> + <td width="20%"> + <table width="100%" border="1" cellspacing="0" style="border-color: red;"> + <tr><td colspan="2" style="font-size: 6px; font-weight: bold; color: red; text-align: center; padding: 0px 0px 0px 0px;">OLYMPUS</td></tr> + <tr> + <td style="font-size: 7px; color: red; text-align: center; padding: 0px 0px 0px 0px; border-color: red;" width="80%" >INTERNAL USER ONLY</td> + <td style="font-size: 7px; color: red; text-align: center; padding: 0px 0px 0px 0px; border-color: red;">绀惧绉�</td> + </tr> + </table> + <table width="100%" border="0" cellspacing="0" style="border-color: red;"> + <tr><td colspan="2" style="font-size: 6px; font-weight: bold; color: red; text-align: center; padding: 0px 0px 0px 0px;"> + 绀惧唴瀵�:鍏徃鍐呴儴鍏紑</td></tr> + </table> + </td> + <td style="text-align: center;"><span style="font-size: 14pt;">鍐嶄慨鐞嗚繑鍝佸垎鏋愭姤鍛�</span></td> + <td width="12%" style="text-align: right; vertical-align: bottom; font-size: 10pt;"> + <table width="100%" cellspacing="0"> + <tr> + <td style="font-size: 10px; text-align: left; padding: 0px 0px 0px 0px;">绠$悊鍙�:{!ra.Repair__r.Name}</td> + <td style="font-size: 10px; text-align: left; padding: 0px 0px 0px 0px;"></td> + </tr> + </table> + </td> + </tr> + </table> + + <div style="height:3px;"></div> + + <apex:outputPanel layout="none" rendered="{!status>=3}"> + <table width="100%" border="1" cellspacing="0" style="font-size: 8pt;"> + <tr> + <td colspan="6" class="title">瀹㈡埛瀵瑰簲锛圤CSM鏈嶅姟鏈儴濉啓锛�</td> + </tr> + <tr> + <td colspan="6" class="middle" style="height:92px; border-top-color: white; font-size:100%; font-weight: bold; verical-align: top;"><c:PDFWbr targetStr="{!ra.AnalysisOCM__c}" /></td> + </tr> + <tr> + <td class="label">瀹㈡埛瀵瑰簲</td> + <td colspan="5" class="label"> + <apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c == '鏃犲伩缁翠慨'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c <> '鏃犲伩缁翠慨'}">□</apex:outputPanel>鏃犲伩缁翠慨 + + <apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c == '鏈夊伩缁翠慨'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c <> '鏈夊伩缁翠慨'}">□</apex:outputPanel>鏈夊伩缁翠慨 + + <apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c == '閫佸洖'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c <> '閫佸洖'}">□</apex:outputPanel>閫佸洖 + + <apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c == '缁х画瑙傚療'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c <> '缁х画瑙傚療'}">□</apex:outputPanel>缁х画瑙傚療 + + <apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c == '鐗瑰埆瀵瑰簲'}">✔</apex:outputPanel><apex:outputPanel layout="none" rendered="{!ra.ActionOCM__c <> '鐗瑰埆瀵瑰簲'}">□</apex:outputPanel>鐗瑰埆瀵瑰簲 + </td> + </tr> + <tr> + <td width="10%" class="label" height="23px">鎶�鏈媴褰�</td> + <td width="15%" class="middle">{!ra.Technical_Responsibility__r.Name}</td> + <td width="10%" class="label">纭鑰�</td> + <td width="15%" class="middle">{!ra.OCM_Confirmer__r.Name}</td> + <td width="10%" class="label">纭鏃�</td> + <td width="40%" class="middle"><apex:outputField value="{!ra.OCM_Confirmation_Date__c}"/></td> + </tr> + </table> + </apex:outputPanel> + + </apex:outputPanel> + </body> </html> </apex:page> \ No newline at end of file -- Gitblit v1.9.1