From 666c757b7ec18a501c50aa740507ab5db5fea16d Mon Sep 17 00:00:00 2001 From: 李金换 <lijinhuan@prec-tech.com> Date: 星期五, 25 三月 2022 18:14:04 +0800 Subject: [PATCH] LJPH-C8FB4P【委托】配合PBI设备覆盖率的数据准备 --- force-app/main/default/pages/SelectAssetEstimateVM.page | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/force-app/main/default/pages/SelectAssetEstimateVM.page b/force-app/main/default/pages/SelectAssetEstimateVM.page index 8b338c9..6ddfe74 100644 --- a/force-app/main/default/pages/SelectAssetEstimateVM.page +++ b/force-app/main/default/pages/SelectAssetEstimateVM.page @@ -331,7 +331,7 @@ } function refreshAsset(cnt) { - //alert('1111111111'); + // alert(cnt); // 鎻愪氦鍚庡氨椤甸潰涓嶈绠椾簡 var isDisabled = {!PageDisabled}; // 鍚堝悓鎬荤悊 @@ -411,6 +411,8 @@ strMoney = month * strMoney + month2 * strMoney; } var b = j$(escapeVfId('allPage:allForm:allBlock:assetSection:assetTable:' + i + ':Contract_No')).value(); + var IsRenewal = j$(escapeVfId('allPage:allForm:allBlock:assetSection:assetTable:' + i + ':IsRenewal')).value(); + // 20220325 ljh add IsRenewal LJPH-C8FB4P銆愬鎵樸�戦厤鍚圥BI璁惧瑕嗙洊鐜囩殑鏁版嵁鍑嗗 start var LastMContractRecord = j$(escapeVfId('allPage:allForm:allBlock:assetSection:assetTable:' + i + ':LastMContractRecord')).value(); if(b != ''){ conCCount ++; @@ -429,7 +431,10 @@ } //鏈�鍚庣粨鏉熸棩+1骞� lastendDate.setMonth(lastendDate.getMonth() + 12); - if (Date.parse(contractStartDate) > Date.parse(lastendDate)) { + // 20220325 ljh update IsRenewal 銆愬鎵樸�戦厤鍚圥BI璁惧瑕嗙洊鐜囩殑鏁版嵁鍑嗗 start + // if (Date.parse(contractStartDate) > Date.parse(lastendDate) ) { + if (Date.parse(contractStartDate) > Date.parse(lastendDate) && IsRenewal = true) { + // 20220325 ljh update IsRenewal 銆愬鎵樸�戦厤鍚圥BI璁惧瑕嗙洊鐜囩殑鏁版嵁鍑嗗 end oyearCount ++; } // 鍙栬仈鍔ㄤ环鏍� @@ -516,6 +521,8 @@ strMoney = month * strMoney + month2 * strMoney; } var b = j$(escapeVfId('allPage:allForm:allBlock:assetSection:assetTable:' + i + ':Contract_No')).value(); + var IsRenewal = j$(escapeVfId('allPage:allForm:allBlock:assetSection:assetTable:' + i + ':IsRenewal')).value(); + // 20220325 ljh add IsRenewal LJPH-C8FB4P銆愬鎵樸�戦厤鍚圥BI璁惧瑕嗙洊鐜囩殑鏁版嵁鍑嗗 var LastMContractRecord = j$(escapeVfId('allPage:allForm:allBlock:assetSection:assetTable:' + i + ':LastMContractRecord')).value(); if(b != ''){ conCCount ++; @@ -533,7 +540,10 @@ } //鏈�鍚庣粨鏉熸棩+1骞� lastendDate.setMonth(lastendDate.getMonth() + 12); - if (Date.parse(contractStartDate) > Date.parse(lastendDate)) { + // 20220325 ljh update IsRenewal LJPH-C8FB4P銆愬鎵樸�戦厤鍚圥BI璁惧瑕嗙洊鐜囩殑鏁版嵁鍑嗗 start + // if (Date.parse(contractStartDate) > Date.parse(lastendDate)) + if (Date.parse(contractStartDate) > Date.parse(lastendDate) && IsRenewal = true) { + // 20220325 ljh update IsRenewal LJPH-C8FB4P銆愬鎵樸�戦厤鍚圥BI璁惧瑕嗙洊鐜囩殑鏁版嵁鍑嗗 end oyearCount ++; } // 鍙栬仈鍔ㄤ环鏍� @@ -1536,6 +1546,9 @@ <td class="dataCell" width="70px"> <apex:outputField value="{!ar.rec.CurrentContract_F__r.Maintenance_Contract_No_F__c}" rendered="{!Not(ar.IsManual)}" id="Contract_No"/> + <!-- 20220325 ljh add LJPH-C8FB4P銆愬鎵樸�戦厤鍚圥BI璁惧瑕嗙洊鐜囩殑鏁版嵁鍑嗗 start --> + <apex:inputHidden value="{!ar.rec.CurrentContract_F__r.Is_Renewal__c}" id="IsRenewal"/> + <!-- 20220325 ljh add start LJPH-C8FB4P銆愬鎵樸�戦厤鍚圥BI璁惧瑕嗙洊鐜囩殑鏁版嵁鍑嗗 end --> <apex:inputHidden value="{!ar.rec.CurrentContract_F__r.RecordType_DeveloperName__c}" id="LastMContractRecord"/> <apex:inputField value="{!ar.rec.CurrentContract_F_asset__r.endDateGurantee_Text__c}" id="endDateGurantee_Text" style="display: none" showDatePicker="false"/> <apex:inputHidden value="{!ar.rec.CurrentContract_F__c}" id="LastMContractID"/> -- Gitblit v1.9.1