| | |
| | | <td><apex:outputField value="{!aa.mpded[c[0]]}"/></td> |
| | | </apex:repeat> |
| | | </tr> |
| | | |
| | | </apex:variable> |
| | | </apex:repeat> |
| | | </table> |
| | | <input type="hidden" id="ProductCnt1" value="{!mpdDetailsRecords}"/> |
| | | |
| | | </apex:outputLabel> |
| | | </apex:pageblocksection> |
| | | <!-- !(RecordTypeName='GuranteeMain'&&mpd.Status__c='服务填写') --> |
| | |
| | | </td> |
| | | </apex:repeat> |
| | | </tr> |
| | | |
| | | </apex:repeat> |
| | | |
| | | </table> |
| | |
| | | var SelectObj = 'Product2'; |
| | | var SelectFld = 'Name'; |
| | | console.log('xxx'); |
| | | console.log('2344'); |
| | | var cnt = j$(escapeVfId('ProductCnt1')).val(); |
| | | cnt = cnt.length; |
| | | for (var i = 0; i < cnt; i++) { |
| | | inputFieldId = 'allPage:allForm:allBlock:edmpdDetails:bb:'+ i +':edtheRepeat:4:edvariable:edtheValue'; |
| | | inputFieldId_lktp = 'allPage:allForm:allBlock:edmpdDetails:bb:'+ i +':edtheRepeat:4:edvariable:edtheValue_lktp'; |
| | | baseURL = '/apex/SearchContactPageLWC?ObjectType=' + ObjectType + '&QueryFieldApiName=' + QueryFieldApiName +'&QueryFieldApiName=' + QueryFieldApiName +'&ObjectType=' + ObjectType +'&inputFieldId=' + inputFieldId +'&SelectObj=' + SelectObj +'&SelectFld=' + SelectFld; |
| | | var obj = document.getElementById('allPage:allForm:allBlock:edmpdDetails:bb:' + i + ':edtheRepeat:4:edvariable:edtheValue_lkwgt'); |
| | | if (obj != null) { |
| | | obj.setAttribute('href', 'javascript:%20openLookup%28%27' + baseURL + '%26lktp%3D%27%20%2B%20getElementByIdCS%28%27' + inputFieldId_lktp + '%27%29.value%2C670%2C%271%27%2C%27%26lksrch%3D%27%20%2B%20escapeUTF%28getElementByIdCS%28%27' + inputFieldId + '%27%29.value.substring%280%2C%2080%29%29%29'); |
| | | } |
| | | } |
| | | // 复杂组件 end |
| | | } |
| | | |
| | | function refreshinput4(){ |
| | | // 复杂组件 start |
| | | var baseURL = ''; |
| | | var ObjectType = 'Maintenance_Product_Data_Details__c'; |
| | | var QueryFieldApiName = 'Default_Fixture_Arrival_Product__c'; |
| | | var ObjectType = 'Maintenance_Product_Data_Details__c'; |
| | | var inputFieldId = ''; |
| | | var inputFieldId_lktp = ''; |
| | | var SelectObj = 'Product2'; |
| | | var SelectFld = 'Name'; |
| | | console.log('xxx'); |
| | | console.log('123'); |
| | | var cnt = j$(escapeVfId('ProductCnt')).val(); |
| | | console.log('count=' + cnt); |
| | |
| | | } |
| | | // 复杂组件 end |
| | | } |
| | | |
| | | function refreshinput5(){ |
| | | // 复杂组件 start |
| | | var baseURL = ''; |
| | | var ObjectType = 'Maintenance_Product_Data_Details__c'; |
| | | var QueryFieldApiName = 'Service_Category6__c'; |
| | | var ObjectType = 'Maintenance_Product_Data_Details__c'; |
| | | var inputFieldId = ''; |
| | | var inputFieldId_lktp = ''; |
| | | var SelectObj = 'Service_Category6__c'; |
| | | var SelectFld = 'Name'; |
| | | var cnt = j$(escapeVfId('ProductCnt1')).val(); |
| | | |
| | | cnt = cnt.length; |
| | | for (var i = 0; i < cnt; i++) { |
| | | inputFieldId = 'allPage:allForm:allBlock:edmpdDetails:bb:'+ i +':edtheRepeat:13:edvariable:edtheValue'; |
| | | inputFieldId_lktp = 'allPage:allForm:allBlock:edmpdDetails:bb:'+ i +':edtheRepeat:13:edvariable:edtheValue_lktp'; |
| | | baseURL = '/apex/SearchContactPageLWC?ObjectType=' + ObjectType + '&QueryFieldApiName=' + QueryFieldApiName +'&QueryFieldApiName=' + QueryFieldApiName +'&ObjectType=' + ObjectType +'&inputFieldId=' + inputFieldId +'&SelectObj=' + SelectObj +'&SelectFld=' + SelectFld; |
| | | var obj = document.getElementById('allPage:allForm:allBlock:edmpdDetails:bb:' + i + ':edtheRepeat:13:edvariable:edtheValue_lkwgt'); |
| | | if (obj != null) { |
| | | obj.setAttribute('href', 'javascript:%20openLookup%28%27' + baseURL + '%26lktp%3D%27%20%2B%20getElementByIdCS%28%27' + inputFieldId_lktp + '%27%29.value%2C670%2C%271%27%2C%27%26lksrch%3D%27%20%2B%20escapeUTF%28getElementByIdCS%28%27' + inputFieldId + '%27%29.value.substring%280%2C%2080%29%29%29'); |
| | | } |
| | | } |
| | | // 复杂组件 end |
| | | } |
| | | function refreshinput6(){ |
| | | // 复杂组件 start |
| | | var baseURL = ''; |
| | | var ObjectType = 'Maintenance_Product_Data_Details__c'; |
| | | var QueryFieldApiName = 'Service_Category7__c'; |
| | | var ObjectType = 'Maintenance_Product_Data_Details__c'; |
| | | var inputFieldId = ''; |
| | | var inputFieldId_lktp = ''; |
| | | var SelectObj = 'Service_Category7__c'; |
| | | var SelectFld = 'Name'; |
| | | var cnt = j$(escapeVfId('ProductCnt1')).val(); |
| | | cnt = cnt.length; |
| | | for (var i = 0; i < cnt; i++) { |
| | | inputFieldId = 'allPage:allForm:allBlock:edmpdDetails:bb:'+ i +':edtheRepeat:14:edvariable:edtheValue'; |
| | | inputFieldId_lktp = 'allPage:allForm:allBlock:edmpdDetails:bb:'+ i +':edtheRepeat:14:edvariable:edtheValue_lktp'; |
| | | baseURL = '/apex/SearchContactPageLWC?ObjectType=' + ObjectType + '&QueryFieldApiName=' + QueryFieldApiName +'&QueryFieldApiName=' + QueryFieldApiName +'&ObjectType=' + ObjectType +'&inputFieldId=' + inputFieldId +'&SelectObj=' + SelectObj +'&SelectFld=' + SelectFld; |
| | | var obj = document.getElementById('allPage:allForm:allBlock:edmpdDetails:bb:' + i + ':edtheRepeat:14:edvariable:edtheValue_lkwgt'); |
| | | if (obj != null) { |
| | | obj.setAttribute('href', 'javascript:%20openLookup%28%27' + baseURL + '%26lktp%3D%27%20%2B%20getElementByIdCS%28%27' + inputFieldId_lktp + '%27%29.value%2C670%2C%271%27%2C%27%26lksrch%3D%27%20%2B%20escapeUTF%28getElementByIdCS%28%27' + inputFieldId + '%27%29.value.substring%280%2C%2080%29%29%29'); |
| | | } |
| | | } |
| | | // 复杂组件 end |
| | | } |
| | | refreshinput1(); |
| | | refreshinput2(); |
| | | refreshinput3(); |
| | | refreshinput4(); |
| | | refreshinput5(); |
| | | refreshinput6(); |
| | | </script> |
| | | </apex:pageBlock> |
| | | </apex:pageBlock> |