From cc7487a59bd4b0fa5bed1dd59f6d0565ace81b8b Mon Sep 17 00:00:00 2001 From: 李金换 <lijinhuan@prec-tech.com> Date: 星期五, 21 四月 2023 09:48:22 +0800 Subject: [PATCH] opd计划Cl3 --- force-app/main/default/pages/NewPaymentPlanLoad.page | 55 ++++++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 46 insertions(+), 9 deletions(-) diff --git a/force-app/main/default/pages/NewPaymentPlanLoad.page b/force-app/main/default/pages/NewPaymentPlanLoad.page index 9263739..ab7b9d7 100644 --- a/force-app/main/default/pages/NewPaymentPlanLoad.page +++ b/force-app/main/default/pages/NewPaymentPlanLoad.page @@ -75,6 +75,16 @@ j$(escapeVfId('allPage:allForm:allBlock:Second_Party_Contract_Number__c')).attr("disabled", true); j$(escapeVfId('allPage:allForm:allBlock:Negotiate_Mean__c')).attr("disabled", true); } + //XLIU-CEP8WW LY 20220905 start + var saveBT = '{!PageMCEElement.old_Is_RecognitionModel__c}'; + var payment = j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Term_Of_Payment__c')).val(); + if (saveBT =='true' && payment=='澶氭浠樻'){ + j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("disabled", true); + j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("class", true); + j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("disabled", true); + j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("class", true); + } + //XLIU-CEP8WW LY 20220905 end } @@ -206,6 +216,22 @@ function ChangeTermofPaymentPlanJS(){ + //XLIU-CEP8WW LY 20220905 start + var saveBT = '{!PageMCEElement.old_Is_RecognitionModel__c}'; + var payment = j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Term_Of_Payment__c')).val(); + if (saveBT =='true' && payment=='澶氭浠樻'){ + j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("disabled", true); + j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("class", true); + j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("disabled", true); + j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("class", true); + } + if (saveBT =='true' && payment=='涓�娆℃�т粯娆�') { + j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("disabled", false); + j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("class", false); + j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("disabled", false); + j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("class", false); + } + //XLIU-CEP8WW LY 20220905 end ChangeTermofPaymentPlan(); } @@ -237,6 +263,7 @@ Allchecks = parseInt((ContractAllMonth * checks)/12+1); }else{ Allchecks = parseInt((ContractAllMonth * checks)/12); + // alert(Allchecks); } } // alert(Allchecks); @@ -466,7 +493,9 @@ <apex:selectList style="margin-right:3px" size="1" id="Small_Repair_Time__c" value="{!PageMCEElement.Small_Repair_Time__c}"> <apex:selectOptions value="{!Small_Repair_Time}"/> </apex:selectList> - 灏忔椂 + <!-- XLIU-CEP8WW 銆愬鎵樸�戝悎鍚屾枃鏈洿鏂�/鏂板 LY 20220524 start--> + 宸ヤ綔鏃� + <!-- XLIU-CEP8WW 銆愬鎵樸�戝悎鍚屾枃鏈洿鏂�/鏂板 LY 20220524 end--> </td> <td style ="text-align: left;"> @@ -486,7 +515,10 @@ </td> <td style ="text-align: left;"> <apex:selectList style="margin-right:3px" size="1" id="Live_Technical_Support_Time__c" value="{!PageMCEElement.Live_Technical_Support_Time__c}"> - <apex:selectOptions value="{!Small_Repair_Time}"/> + <!-- XLIU-CEP8WW 銆愬鎵樸�戝悎鍚屾枃鏈洿鏂�/鏂板 LY 20220524 start--> + <!--<apex:selectOptions value="{!Small_Repair_Time}"/>--> + <apex:selectOptions value="{!Live_Technical_Support_Time}"/> + <!-- XLIU-CEP8WW 銆愬鎵樸�戝悎鍚屾枃鏈洿鏂�/鏂板 LY 20220524 end--> </apex:selectList> 灏忔椂 </td> @@ -581,14 +613,13 @@ </div> </apex:outputPanel> </apex:pageBlockSection> - <apex:pageBlockButtons > + <apex:pageBlockButtons id="allButtons"> <apex:outputPanel rendered="{!IF(PageMCEElement.Status__c != '寮曞悎涓�', 'true', 'false')}"> <apex:commandButton disabled="true" id="SaveButton1" value="淇濆瓨" action="{!save}" onclick="blockme();" reRender="hiddenInput,Messages" oncomplete="CloseJs();"/> <apex:commandButton disabled="true" id="CancelButton1" value="鍙栨秷" onclick="CloseJs(); return false;"/> <apex:commandButton disabled="true" id="PrintButton1" value="鎵撳嵃" action="{!print}" onclick="blockme();" rerender="hiddenInput,Messages,pdfPrint" oncomplete="PrintJs();" /> </apex:outputPanel> - <apex:outputPanel rendered="{!IF(PageMCEElement.Status__c == '寮曞悎涓�', 'true', 'false')}"> - + <apex:outputPanel id="bottom" rendered="{!IF(PageMCEElement.Status__c == '寮曞悎涓�', 'true', 'false')}"> <apex:commandButton id="SaveButton" value="淇濆瓨" action="{!save}" onclick="blockme();" reRender="hiddenInput,Messages" oncomplete="CloseJs();"/> <apex:commandButton id="CancelButton" value="鍙栨秷" onclick="CloseJs(); return false;"/> <apex:commandButton id="PrintButton" value="鎵撳嵃" action="{!print}" onclick="blockme();" rerender="hiddenInput,Messages,pdfPrint" oncomplete="PrintJs();" /> @@ -608,7 +639,7 @@ if ('{!printContract}' == 'true') { //HWAG-BHT7XX 2019/11/26 START if('{!agreeUpperLimit}' == 'true'){ - // 鎵撳嵃鍖婚櫌鍚堝悓閰嶇疆 + // 鎵撳嵃鍖婚櫌闄愭鍚堝悓閰嶇疆 window.open('/apex/NewMCHPDFLimit?id={!PageMCEElement.id}', 'MCHLimitPDF'); window.close(); }else{ @@ -618,9 +649,15 @@ } //HWAG-BHT7XX 2019/11/26 END }else if ('{!printAgent}' == 'true') { - //鎵撳嵃缁忛攢鍟嗗悎鍚� - window.open('/apex/NewMCAgentPDF?id={!PageMCEElement.id}', 'MCHPDF'); - window.close(); + if('{!agreeUpperLimit}' == 'true'){ + //鎵撳嵃缁忛攢鍟嗛檺娆″悎鍚� + window.open('/apex/NewMCAgentPDFLimit?id={!PageMCEElement.id}', 'MCAgentLimitPDF'); + window.close() + }else{ + //鎵撳嵃缁忛攢鍟嗗悎鍚� + window.open('/apex/NewMCAgentPDF?id={!PageMCEElement.id}', 'MCHPDF'); + window.close(); + } }else { alert('1'); } -- Gitblit v1.9.1