|  |  | 
 |  |  | <apex:page action="{!init}" controller="AttachmentPreviewController" id="allPage" showheader="false" sidebar="false"> | 
 |  |  | <apex:page action="{!init}" controller="AttachmentPreviewController" id="allPage" showheader="false" sidebar="false" lightningStylesheets="true"> | 
 |  |  |     <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"> | 
 |  |  |     </apex:stylesheet> | 
 |  |  |     <apex:includescript value="{!URLFOR($Resource.jquery183minjs)}"> | 
 |  |  |     </apex:includescript> | 
 |  |  |     <apex:includescript value="{!URLFOR($Resource.PleaseWaitDialog)}"> | 
 |  |  |     </apex:includescript> | 
 |  |  |     <apex:includescript value="/soap/ajax/29.0/connection.js"> | 
 |  |  |     </apex:includescript> | 
 |  |  |     <apex:includescript value="/soap/ajax/29.0/apex.js"> | 
 |  |  |     </apex:includescript> | 
 |  |  |     <apex:includeScript value="{!URLFOR($Resource.connection20)}"/> | 
 |  |  |     <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> | 
 |  |  |     <style type="text/css"> | 
 |  |  |         body { | 
 |  |  |     margin: 0; | 
 |  |  | 
 |  |  |                         alert("IE浏览器不能打开后缀是bmp的文件,请使用其他浏览器!"); | 
 |  |  |                    } | 
 |  |  |                    else{ | 
 |  |  |                      window.location.href=' https://ocsm--stagefull--c.visualforce.com/apex/eSignFormAttachment?id='+id; | 
 |  |  |                     // window.location.href=' https://ocsm--c.ap0.visual.force.com/apex/eSignFormAttachment?id='+id; | 
 |  |  |                     // window.location.href=' https://ocsm--stagefull--c.visualforce.com/apex/eSignFormAttachment?id='+id; | 
 |  |  |                      window.location.href=' https://ocsm--c.ap0.visual.force.com/apex/eSignFormAttachment?id='+id; | 
 |  |  |                    }  | 
 |  |  |                 }else{ | 
 |  |  |                      window.location.href='https://ocsm--stagefull--c.documentforce.com/servlet/servlet.FileDownload?file='+id; | 
 |  |  |                     // window.location.href='https://ocsm--c.ap0.content.force.com/servlet/servlet.FileDownload?file='+id; | 
 |  |  |                     // window.location.href='https://ocsm--stagefull--c.documentforce.com/servlet/servlet.FileDownload?file='+id; | 
 |  |  |                      window.location.href='https://ocsm--c.ap0.content.force.com/servlet/servlet.FileDownload?file='+id; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |     | 
 |  |  | 
 |  |  |         // 返回按钮根据传id返回上一级操作 | 
 |  |  |         function test(){ | 
 |  |  |         var queryVal=GetQueryValue('parentId'); | 
 |  |  |          var url='https://ocsm--stagefull.my.salesforce.com/'+queryVal; | 
 |  |  |         // var url='https://ocsm.my.salesforce.com/'+queryVal; | 
 |  |  |         // var url='https://ocsm--stagefull.my.salesforce.com/'+queryVal; | 
 |  |  |          var url='https://ocsm.my.salesforce.com/'+queryVal; | 
 |  |  |          window.location.href=url; | 
 |  |  |     } | 
 |  |  |     // 20201224 liying end  |