| | |
| | | <apex:page doctype="html-5.0" showquickactionvfheader="false" controller="eSignFormAttachmentController" showHeader="false" sidebar="false" action="{!init}" > |
| | | <apex:page doctype="html-5.0" showquickactionvfheader="false" controller="eSignFormAttachmentController" showHeader="false" sidebar="false" action="{!init}" lightningStylesheets="true"> |
| | | <!-- 隐藏原图 展示画布 旋转图片(4个90°)鼠标滚轮伸缩放大放小 (会失帧) --> |
| | | <head> |
| | | <apex:includescript value="{!URLFOR($Resource.jquery183minjs)}"> |
| | |
| | | </tr> |
| | | <apex:repeat value="{!acccData}" var="or" id="oppTable"> |
| | | <apex:variable value="{!1}" var="cnt"/> |
| | | <apex:variable value="trcnt" var="trcnt" rendered="{!IF(or.accessory.ContentType == '经销商', true, false)}"> |
| | | <tr style="cursor:pointer;" onclick="changeColor('{!or.accessory.Id}');onShowImge('{!or.accessory.Id}',this);" class="dataRow {!IF(MOD(cnt, 2)==0, 'odd', 'even')} {!IF(cnt==1, 'first', '')}" onmouseover="if (window.hiOn){hiOn(this);} " onmouseout="if (window.hiOff){hiOff(this);} " onblur="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}"> |
| | | <apex:variable value="trcnt" var="trcnt" rendered="{!IF(or.accessory.Description == '经销商', true, false)}"> |
| | | <tr style="cursor:pointer;" onclick="changeColor('{!or.accessory.ContentDocumentId}');onShowImge('{!or.accessory.ContentDocumentId}',this);" class="dataRow {!IF(MOD(cnt, 2)==0, 'odd', 'even')} {!IF(cnt==1, 'first', '')}" onmouseover="if (window.hiOn){hiOn(this);} " onmouseout="if (window.hiOff){hiOff(this);} " onblur="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}"> |
| | | <td align="center" id="" style="border-right-width:thin"> |
| | | <a href="#"><apex:outputText value="{!or.accessory.Name}" /></a> |
| | | <a href="#"><apex:outputText value="{!or.accessory.Title}.{!or.accessory.FileType}" /></a> |
| | | </td> |
| | | <td width="55px" align="center"> |
| | | <apex:outputText value="{!or.accessory.ContentType}" /> |
| | | <apex:outputText value="{!or.accessory.Description}" /> |
| | | </td> |
| | | <td style="display:none"> |
| | | <apex:outputText value="{!or.accessory.Id}"/> |
| | | <apex:outputText value="{!or.accessory.ContentDocumentId}"/> |
| | | </td> |
| | | </tr> |
| | | </apex:variable> |
| | |
| | | </apex:variable> |
| | | <apex:repeat value="{!acccData}" var="or" id="oppTable2"> |
| | | <apex:variable value="{!1}" var="cnt"/> |
| | | <apex:variable value="trcnt" var="trcnt" rendered="{!IF(or.accessory.ContentType == '医院', true, false)}"> |
| | | <tr style="cursor:pointer;" onclick="changeColor('{!or.accessory.Id}');onShowImge('{!or.accessory.Id}',this);" class="dataRow {!IF(MOD(cnt, 2)==0, 'odd', 'even')} {!IF(cnt==1, 'first', '')}" onmouseover="if (window.hiOn){hiOn(this);} " onmouseout="if (window.hiOff){hiOff(this);} " onblur="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}"> |
| | | <apex:variable value="trcnt" var="trcnt" rendered="{!IF(or.accessory.Description == '医院', true, false)}"> |
| | | <tr style="cursor:pointer;" onclick="changeColor('{!or.accessory.ContentDocumentId}');onShowImge('{!or.accessory.ContentDocumentId}',this);" class="dataRow {!IF(MOD(cnt, 2)==0, 'odd', 'even')} {!IF(cnt==1, 'first', '')}" onmouseover="if (window.hiOn){hiOn(this);} " onmouseout="if (window.hiOff){hiOff(this);} " onblur="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}"> |
| | | <td align="center" id="" style="border-right-width:thin"> |
| | | <a href="#"><apex:outputText value="{!or.accessory.Name}" /></a> |
| | | <a href="#"><apex:outputText value="{!or.accessory.Title}.{!or.accessory.FileType}" /></a> |
| | | </td> |
| | | <td width="55px" align="center"> |
| | | <apex:outputText value="{!or.accessory.ContentType}" /> |
| | | <apex:outputText value="{!or.accessory.Description}" /> |
| | | </td> |
| | | <td style="display:none"> |
| | | <apex:outputText value="{!or.accessory.Id}"/> |
| | | <apex:outputText value="{!or.accessory.ContentDocumentId}"/> |
| | | </td> |
| | | </tr> |
| | | </apex:variable> |
| | |
| | | </h1> |
| | | </div> |
| | | <div class="solution-item" id="imgeDiv"> |
| | | <div id="onCloseId" style="position: absolute;top:55px;padding-left:73%;cursor:pointer;display:none;"><a href="javascript:void(0)" onclick="closePop()" style="padding-rigth:13px;color:#fff;font-weight:bolder;font-size:15px;text-decoration: none;">关闭</a></div> |
| | | <div id="onCloseId" style="position: absolute;top:75px;padding-left:67%;cursor:pointer;display:none;"><a href="javascript:void(0)" onclick="closePop()" style="padding-rigth:13px;color:#fff;font-weight:bolder;font-size:15px;text-decoration: none;">关闭</a></div> |
| | | <!-- 增加pdf关闭按钮 精琢技术 thh 2021-09-27 start --> |
| | | <div class="PdfCss" id="fontpdf" style="display: none;"> |
| | | <h1 style="position:absolute;top:50%;margin:-4% 0 0 -10%;"> |
| | | <h1 style="position:absolute;top:50%;"> |
| | | <font face="verdana" style="font-size: 40px;">此页暂时只支持图片文件的预览</font> |
| | | </h1> |
| | | </div> |
| | |
| | | }else{ |
| | | //如果不是图片,那么下载文件 |
| | | //window.open('https://ocsm--stagefull--c.documentforce.com/servlet/servlet.FileDownload?file='+accId); |
| | | window.open('https://ocsm--c.ap0.content.force.com/servlet/servlet.FileDownload?file='+accId); |
| | | window.open('/sfc/servlet.shepherd/document/download/'+accId); |
| | | debugger |
| | | //右边的画布显示 |
| | | showPdf(); |
| | |
| | | } |
| | | //图片加载和canvas 画图 |
| | | function imgShow(accId,accContentType){ |
| | | var imageUrl = "/servlet/servlet.FileDownload?file="+accId; |
| | | // var imageUrl = "/servlet/servlet.FileDownload?file="+accId; |
| | | var imageUrl = "/sfc/servlet.shepherd/document/download/"+accId; |
| | | //js动态赋值 |
| | | document.getElementById("j_id0:testImg").src = imageUrl; |
| | | //js动态赋值 |