| | |
| | | <apex:page id="Page" showHeader="false" sidebar="false" controller="OFSInsReportLayoutController" applyBodyTag="false" applyHtmlTag="false" action="{!init}"> |
| | | <apex:page id="Page" showHeader="false" sidebar="false" controller="OFSInsReportLayoutController" applyBodyTag="false" applyHtmlTag="false" action="{!init}" lightningStylesheets="true"> |
| | | <!-- <apex:page id="Page" showHeader="false" sidebar="false" standardcontroller="Inspection_Item__c" extensions="OFSInsReportLayoutController" applyBodyTag="false" applyHtmlTag="false" action="{!init}"> --> |
| | | <html> |
| | | <head> |
| | |
| | | sortTablefunc(key); |
| | | } |
| | | |
| | | function exchangeAssetJs() { |
| | | blockme(); |
| | | exchangeAssetfunc(); |
| | | } |
| | | |
| | | function saveByRepairJs(aid, an, ahid, ahn, adid, adn, aaid, aan, rstr) { |
| | | tmpaid = aid; |
| | | tmpan = an; |
| | |
| | | blockme(); |
| | | //callback();return; |
| | | //<input type="hidden" value="{!ir.Id}" id="IrId"/> |
| | | |
| | | //<input type="hidden" value="{!ir.Responsible_Person_Encrypted__c}" id="Responsible_Person_Encrypted__c"/> |
| | | //<input type="hidden" value="{!ir.phone_Encrypted__c}" id="phone_Encrypted__c"/> |
| | | let e_id = document.getElementById("IrId"); |
| | | let url = staticResource.newUrl; |
| | | |
| | |
| | | |
| | | document.getElementById("Page:Form:Block:AWS_Data_Id__c").value = aws_data1.dataId; |
| | | j$("[field-api='phone__c']").val(aws_data1.phone); |
| | | document.getElementById("Page:Form:Block:phone_Encrypted__c").value = aws_data1.phoneEncrypt; |
| | | j$("[field-api='Responsible_Person__c']").val(aws_data1.responsiblePerson); |
| | | document.getElementById("Page:Form:Block:Responsible_Person_Encrypted__c").value = aws_data1.responsiblePersonEncrypt; |
| | | |
| | | if (callback) { |
| | | callback(); |
| | |
| | | let divs = j$(e).find("div.message"); |
| | | for (let i = 0; i < divs.length; i++) { |
| | | for (let j = 0; j < divs[i].classList.length; j++) { |
| | | for(let cls of divs[i].classList){ |
| | | if (cls.indexOf('error')>-1) { |
| | | for(let clsi in divs[i].classList){let cls=divs[i].classList[clsi]; |
| | | if (typeof cls == 'string' && cls.indexOf('error')>-1) { |
| | | return true; |
| | | } |
| | | } |
| | |
| | | |
| | | </script> |
| | | <apex:actionFunction name="searchfunc" action="{!searchBtn}" rerender="Form,Block,UnCheckSection" onComplete="unblockUI();"></apex:actionFunction> |
| | | |
| | | <apex:actionFunction name="exchangeAssetfunc" action="{!exchangeAsset}" rerender="Form" onComplete="unblockUI();"></apex:actionFunction> |
| | | |
| | | <apex:actionFunction name="sortTablefunc" action="{!sortTable}" rerender="Form" onComplete="unblockUI();"> |
| | | <apex:param name="firstParam" assignTo="{!sortKey}" value="" /> |
| | |
| | | </div> |
| | | <div style="position: relative;top:0;height:700px;overflow:hidden;overflow-y:auto;-webkit-overflow-scrolling: touch;"> |
| | | <input type="hidden" value="{!ir.Id}" id="IrId"/> |
| | | <apex:inputHidden value="{!ir.Responsible_Person_Encrypted__c}" id="Responsible_Person_Encrypted__c"/> |
| | | <apex:inputHidden value="{!ir.phone_Encrypted__c}" id="phone_Encrypted__c"/> |
| | | <apex:inputHidden value="{!ir.AWS_Data_Id__c}" id="AWS_Data_Id__c"/> |
| | | |
| | | |
| | |
| | | <td> |
| | | <apex:commandButton value="行追加" action="{!addNewRows}" disabled="{!Not($ObjectType.Inspection_Item__c.createable)}" |
| | | style="margin-left:10px;float:left;" onclick="blockme();" oncomplete="unblockUI();" rerender="Form" /> |
| | | <apex:commandButton value="刷新选中的保有设备" action="{!exchangeAsset}" onclick="blockme();" oncomplete="unblockUI();" rerender="Form" /> |
| | | <apex:commandButton value="刷新选中的保有设备" onclick="exchangeAssetJs();return false;" rerender="dummy"/> |
| | | <!-- <apex:commandButton value="刷新选中的保有设备" action="{!exchangeAsset}" onclick="blockme();" oncomplete="unblockUI();" rerender="Form" /> --> |
| | | <!-- <apex:commandButton value="刷新医院下的全部保有设备" action="{!getAssetFromHp}" onclick="blockme();" oncomplete="unblockUI();" rerender="Form" /> --> |
| | | </td> |
| | | </tr> |
| | |
| | | <td style="width:95px" align="left"><apex:inputText value="{!val1}" id="val1" style="width:100px"/></td> |
| | | <td align="left"> |
| | | |
| | | <apex:commandButton value="检索" onclick="searchJs();" style="width:130px" rerender="dummy"/> |
| | | <apex:commandButton value="检索" onclick="searchJs();return false;" style="width:130px" rerender="dummy"/> |
| | | |
| | | <apex:commandButton value="清除条件" onclick="clearAndSearch();" style="width:130px" rerender="dummy"/> |
| | | |