| | |
| | | </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> |
| | |
| | | }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动态赋值 |