沙世明
2022-09-13 bfca7a84bec815da594f1d12558535ed06d2490b
force-app/main/default/pages/MaintenanceProductData.page
@@ -139,6 +139,18 @@
                }
                ImportantProduct3(ImportantProduct33);
                ImportantProduct4(ImportantProduct44);
                // FY23修改 WLIG-CFV4AV 重点产品维护(新)start
                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 重点产品维护(新)end
                break;
            case 'GuranteeMain':
                var GuranteeMain11 = j$(escapeVfId('allPage:allForm:searchAndMoreUpdate0:GuranteeMain1')).value();
@@ -282,6 +294,25 @@
        }
    }
    //重点产品 end
    // FY23修改 WLIG-CFV4AV 重点产品维护(新)start
    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 重点产品维护(新)end
    //多年保主数据维护 start
    function GuranteeMain1(obj) {
        //var selectValue = j$(escapeVfId(obj.id)).value();
@@ -934,6 +965,21 @@
                    <td>
                        <input type="checkbox"   id="ImportantProduct4" />
                    </td>
                    <!-- FY23修改 WLIG-CFV4AV 重点产品维护(新)start -->
                    <!--<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 重点产品维护(新)end -->
                </tr>
                </apex:outputPanel>
                <!-- 主数据维护 -->