| | |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <!-- 20220217 Li Jun for PIPL start --> |
| | | <apex:includeScript value="{!URLFOR($Resource.AWSService, 'AWSService.js') }" /> |
| | | <script src="../../soap/ajax/53.0/connection.js" type="text/javascript"></script> |
| | | <apex:includeScript value="{!URLFOR($Resource.connection20)}"/> |
| | | <!-- 20220217 Li Jun for PIPL End --> |
| | | <script type="text/javascript"> |
| | | AWSService.sfSessionId = '{!GETSESSIONID()}'; |
| | |
| | | createDiv.style.marginLeft='20px'; |
| | | createDiv.style.marginTop='-40px'; |
| | | createDiv.style.height='80px'; |
| | | createDiv.style.width='120px'; |
| | | createDiv.style.width='120px'; |
| | | createDiv.style.background = "#dddddd"; |
| | | createDiv.style.position = "absolute"; |
| | | parentNode.appendChild(createDiv); |
| | | parentNode.style.position = "relative"; |
| | | } |
| | | } |
| | | |
| | | |
| | | function showPITR(obj){ |
| | | var awsDataId = obj.childNodes[1].childNodes[2].value; |
| | | if(awsDataId.length == 1){ |
| | | let sfId = j$(escapeVfId('Page:mainForm:idSearchVisitor:idAddVisitor:' + awsDataId + ':idAddHiddenId')).val() |
| | | awsDataId = sfIdToAWSIdMapValue.get(sfId); |
| | | } |
| | | if(contactInfo[awsDataId]){ |
| | | document.getElementById(obj.childNodes[1].childNodes[0].id).innerText = contactInfo[awsDataId].lastName; |
| | | document.getElementById(obj.childNodes[3].childNodes[0].id).innerText = contactInfo[awsDataId].doctorDivision1; |
| | | document.getElementById(obj.childNodes[4].childNodes[0].id).innerText = contactInfo[awsDataId].phone; |
| | | } |
| | | } |
| | | |
| | | function hidePIDiv(obj){ |
| | |
| | | let moduleName = AWSService.insertModule; |
| | | if (selectedAwsDataId) { |
| | | moduleName = AWSService.updateModule; |
| | | url = staticResources.updateUrl |
| | | url = staticResources.updateUrl |
| | | } |
| | | console.log('Payload for AWS:'+payloadForNewPI + ' Module Name:'+moduleName); |
| | | AWSService.postAWS(url,moduleName, payloadForNewPI, function(result){ |
| | |
| | | <tr> |
| | | <td> |
| | | <div id="iframelike"> |
| | | <apex:pageBlockTable id="idRezultVisitor" value="{!scwl}" var="scw" border="1" columns="8" columnsWidth="47px,90px,,90px,180x,90px,40px,200px"> |
| | | <apex:pageBlockTable id="idRezultVisitor" value="{!scwl}" var="scw" onRowMouseOver="showPITR(this)" border="1" columns="8" columnsWidth="47px,90px,,90px,180x,90px,40px,200px"> |
| | | <apex:column > |
| | | <apex:facet name="header">{!$Label.Selected}</apex:facet> |
| | | <input type="button" id="idSlt" value="{!$Label.Selected}" onclick="sltContact('{!scw.index}');" class="btn" style="width:40px"/> |
| | |
| | | <apex:facet name="header">{!$Label.Visitor_Name}</apex:facet> |
| | | <apex:outputLink onmouseover="showPIDiv('{!scw.con.AWS_Data_Id__c}',this)" onmouseout="hidePIDiv(this)" value="/{!scw.con.Id}" id="idName" target="_blank">{!scw.con.Name}</apex:outputLink> |
| | | <apex:inputText id="idHiddenId" value="{!scw.conid}" style="display:none" /> |
| | | <apex:inputText id="AWSDataId" value="{!scw.con.AWS_Data_Id__c}" style="display:none" /> |
| | | </apex:column> |
| | | <apex:column > |
| | | <apex:facet name="header">{!$Label.Department_Name}</apex:facet> |
| | |
| | | <tr> |
| | | <td> |
| | | <div id="iframelike2"> |
| | | <apex:pageBlockTable id="idAddVisitor" value="{!acwl}" var="acw" border="1" columns="7" columnsWidth="47px,90px,,90px,180x,90px,40px"> |
| | | <apex:pageBlockTable id="idAddVisitor" value="{!acwl}" var="acw" border="1" columns="7" onRowMouseOver="showPITR(this)" columnsWidth="47px,90px,,90px,180x,90px,40px"> |
| | | <apex:column > |
| | | <apex:facet name="header">{!$Label.Back}</apex:facet> |
| | | <input type="button" id="idDel" value="{!$Label.Back}" onclick="delContact('{!acw.index}');" class="btn" style="width:40px"/> |
| | |
| | | <!-- <apex:outputText id="idAddName" value="{!IF(acw.con.Name==null,' ',acw.con.Name)}" /> --> |
| | | <apex:outputLink onmouseover="showPIDiv('{!acw.index}',this)" onmouseout="hidePIDiv(this)" value="/{!acw.conid}" id="idAddName" target="_blank">{!IF(acw.con.Name==null,' ',acw.con.Name)}</apex:outputLink> |
| | | <apex:inputText id="idAddHiddenId" value="{!acw.conid}" style="display:none" /> |
| | | <apex:inputText id="AWSDataId" value="{!acw.index}" style="display:none" /> |
| | | </apex:column> |
| | | <apex:column > |
| | | <apex:facet name="header">{!$Label.Department_Name}</apex:facet> |