From 559771a80cf779dc13a84ecd2f178e6ca5a8353a Mon Sep 17 00:00:00 2001 From: FUYU <fuyu@prec-tech.com> Date: 星期五, 19 五月 2023 15:52:16 +0800 Subject: [PATCH] 备份省目标录入 --- force-app/main/default/pages/MaintenanceProductData.page | 66 +++++++++++++++++++++++++++++++++ 1 files changed, 66 insertions(+), 0 deletions(-) diff --git a/force-app/main/default/pages/MaintenanceProductData.page b/force-app/main/default/pages/MaintenanceProductData.page index 7cfc445..62eb550 100644 --- a/force-app/main/default/pages/MaintenanceProductData.page +++ b/force-app/main/default/pages/MaintenanceProductData.page @@ -131,6 +131,8 @@ var ImportantProduct22 = j$(escapeVfId('allPage:allForm:searchAndMoreUpdate0:ImportantProduct2')).value(); var ImportantProduct33 = j$(escapeVfId('ImportantProduct3')).attr('checked')=='checked'?true:false; var ImportantProduct44 = j$(escapeVfId('ImportantProduct4')).attr('checked')=='checked'?true:false; + var ImportantProduct55 = j$(escapeVfId('ImportantProduct5')).value(); + // 20221020 ljh SWAG-CJ98AJ console.log(ImportantProduct11); //ImportantProduct0(ImportantProduct00); ImportantProduct1(ImportantProduct11); @@ -139,6 +141,21 @@ } ImportantProduct3(ImportantProduct33); ImportantProduct4(ImportantProduct44); + + // FY23淇敼 WLIG-CFV4AV 閲嶇偣浜у搧缁存姢锛堟柊锛塻tart + var ImportantProduct155P = j$(escapeVfId('allPage:allForm:searchAndMoreUpdate0:ImportantProduct155')).value(); + if(ImportantProduct155P !='x'){ + ImportantProduct155(ImportantProduct155P); + } + + var CelonProductP = j$(escapeVfId('allPage:allForm:searchAndMoreUpdate0:CelonProduct')).value(); + if(CelonProductP !='x'){ + CelonProductSel(CelonProductP); + } + // FY23淇敼 WLIG-CFV4AV 閲嶇偣浜у搧缁存姢锛堟柊锛塭nd + // 20221020 ljh SWAG-CJ98AJ start + ImportantProduct5(ImportantProduct55); + // 20221020 ljh SWAG-CJ98AJ end break; case 'GuranteeMain': var GuranteeMain11 = j$(escapeVfId('allPage:allForm:searchAndMoreUpdate0:GuranteeMain1')).value(); @@ -281,7 +298,36 @@ } } } + //20221020 ljh 20221020 ljh SWAG-CJ98AJ + function ImportantProduct5(obj) { + //var val = obj.checked; + var productCount = j$(escapeVfId('allPage:allForm:allBlock:mpdDetailsSection:mpdDetailsRecordsViewCount')).value(); + for (var i = 0; i < productCount; i++) { + if(j$(escapeVfId('allPage:allForm:allBlock:mpdDetailsSection:save:maintenanceProductDatadetailsTable:' + i + ':variableinfo:productCountproRowCheckbox')).attr('checked')=='checked' ){ + j$(escapeVfId('allPage:allForm:allBlock:mpdDetailsSection:save:maintenanceProductDatadetailsTable:' + i + ':theRepeat:6:variable:theValue')).val(obj); + } + } + } //閲嶇偣浜у搧 end + // FY23淇敼 WLIG-CFV4AV 閲嶇偣浜у搧缁存姢锛堟柊锛塻tart + function ImportantProduct155(obj) { + var productCount = j$(escapeVfId('allPage:allForm:allBlock:mpdDetailsSection:mpdDetailsRecordsViewCount')).value(); + for (var i = 0; i < productCount; i++) { + if(j$(escapeVfId('allPage:allForm:allBlock:mpdDetailsSection:save:maintenanceProductDatadetailsTable:' + i + ':variableinfo:productCountproRowCheckbox')).attr('checked')=='checked' ){ + j$(escapeVfId('allPage:allForm:allBlock:mpdDetailsSection:save:maintenanceProductDatadetailsTable:' + i + ':theRepeat:4:variable:theValue')).val(obj); + } + } + } + + function CelonProductSel(obj) { + var productCount = j$(escapeVfId('allPage:allForm:allBlock:mpdDetailsSection:mpdDetailsRecordsViewCount')).value(); + for (var i = 0; i < productCount; i++) { + if(j$(escapeVfId('allPage:allForm:allBlock:mpdDetailsSection:save:maintenanceProductDatadetailsTable:' + i + ':variableinfo:productCountproRowCheckbox')).attr('checked')=='checked' ){ + j$(escapeVfId('allPage:allForm:allBlock:mpdDetailsSection:save:maintenanceProductDatadetailsTable:' + i + ':theRepeat:5:variable:theValue')).val(obj); + } + } + } + // FY23淇敼 WLIG-CFV4AV 閲嶇偣浜у搧缁存姢锛堟柊锛塭nd //澶氬勾淇濅富鏁版嵁缁存姢 start function GuranteeMain1(obj) { //var selectValue = j$(escapeVfId(obj.id)).value(); @@ -934,6 +980,26 @@ <td> <input type="checkbox" id="ImportantProduct4" /> </td> + <!-- FY23淇敼 WLIG-CFV4AV 閲嶇偣浜у搧缁存姢锛堟柊锛塻tart --> + <!--<td> + <input id="ImportantProduct0" type="text" size="20" /> + </td>--> + <td> + <apex:selectList id="ImportantProduct155" size="1"> + <apex:selectOptions value="{!KeyProduct155POps}"/> + </apex:selectList> + </td> + <td> + <apex:selectList id="CelonProduct" size="1"> + <apex:selectOptions value="{!CelonProductOps}"/> + </apex:selectList> + </td> + <!-- FY23淇敼 WLIG-CFV4AV 閲嶇偣浜у搧缁存姢锛堟柊锛塭nd --> + <!-- 20221020 ljh SWAG-CJ98AJ start--> + <td> + <input name="suitDepartment" id="ImportantProduct5" size="20" type="text" value=""/> + </td> + <!-- 20221020 ljh SWAG-CJ98AJ end--> </tr> </apex:outputPanel> <!-- 涓绘暟鎹淮鎶� --> -- Gitblit v1.9.1