COMPONENT ACDD
Mon Jan 10 2022 14:40:51 GMT+0000 (Coordinated Universal Time)
Saved by @coding
<!---------------------------------------------------------------------------------------------------------------------- Project : GNS Contract DB VF Component Name : GNS_antiCorruption_section ----------------------------------------------------------------------------------------------------------------------> <apex:component id="acddComp"> <apex:attribute name="Deal_Protocol__c" description="" type="Deal_Protocol__c" required="true"/> <apex:attribute name="editmode" description="" type="boolean" required="true"/> <apex:attribute name="reRenderAction" description="The reRenderAction method from the parent controller" type="ApexPages.Action" required="true"/> <apex:attribute name="disable" description="The reRenderAction method from the parent controller" type="ApexPages.Action" required="true"/> <div class="slds-panel__section" rendered="{!NOT(editmode)}"> <apex:pageblockSection title="Anti-Corruption:" columns="3" rendered="{!NOT(editmode)}"> <apex:outputField value="{!Deal_Protocol__c.ACDD_Status__c}"/> <apex:outputField value="{!Deal_Protocol__c.ACDD_Status_Date__c}"/> <apex:outputField value="{!Deal_Protocol__c.Next_ACDD_Completion_Date__c}"/> <apex:outputField value="{!Deal_Protocol__c.TypeofACDD__c}"/> <apex:outputField value="{!Deal_Protocol__c.HasRiskRankingChangedFromLastACDD__c}" rendered="{!if(Deal_Protocol__c.TypeofACDD__c!='New ACDD',true,false)}"/> <apex:outputText value=" " rendered="{!(Deal_Protocol__c.TypeofACDD__c=='New ACDD')}"/> <apex:outputText value=" " /> <apex:pageBlockSectionItem helpText="{!$ObjectType.Deal_Protocol__c.fields.Qualify_for_AEMP_10__c.InlineHelpText}"> <apex:outputLabel value="Does this contract qualify for AEMP-10 (Third Party Lifecycle Management)"/> <apex:outputField value="{!Deal_Protocol__c.Qualify_for_AEMP_10__c}"/> </apex:pageBlockSectionItem> <apex:outputField value="{!Deal_Protocol__c.TLM_Reference__c}"/> <apex:pageBlockSectionItem helpText="{!$ObjectType.Deal_Protocol__c.fields.RiskRankingAnswer__c.InlineHelpText}"> <apex:outputLabel value="Did you Answer 'Yes' to any Risk Ranking Question?"/> <apex:outputField value="{!Deal_Protocol__c.RiskRankingAnswer__c}"/> </apex:pageBlockSectionItem> <apex:outputField value="{!Deal_Protocol__c.Due_Diligence_Required__c}"/> <apex:pageBlockSectionItem helpText="{!$ObjectType.Deal_Protocol__c.fields.Partner_Certification_Statement_Complete__c.InlineHelpText}"> <apex:outputLabel value="Is the Partner Certification Statement Completed"/> <apex:outputField value="{!Deal_Protocol__c.Partner_Certification_Statement_Complete__c}"/> </apex:pageBlockSectionItem> <apex:outputField value="{!Deal_Protocol__c.Partner_Certification_Statement_Date__c}" /> <!--Only to add empty Space--> <span/> <apex:pageBlockSectionItem helpText="{!$ObjectType.Deal_Protocol__c.fields.PartnerAnswerYestoQuestionnaire__c.InlineHelpText}"> <apex:outputLabel value="Did the Partner Answer 'Yes' in any Section of the Questionnaire?"/> <apex:outputField value="{!Deal_Protocol__c.PartnerAnswerYestoQuestionnaire__c}"/> </apex:pageBlockSectionItem> <!--Only to add empty Space--> <span/> <apex:outputField value="{!Deal_Protocol__c.Seeking_an_Exception_to_Policy__c}"/> <!--Only to add empty Space--> <span/> <!--Only to add empty Space--> <apex:PageBlockSectionItem /> <apex:outputField value="{!Deal_Protocol__c.ICSComplianceDecision__c}" rendered="{!(Deal_Protocol__c.Seeking_an_Exception_to_Policy__c || Deal_Protocol__c.PartnerAnswerYestoQuestionnaire__c == 'Yes')}"/> <apex:outputField value="{!Deal_Protocol__c.ICS_Compliance_Decision_Date__c}" rendered="{!(Deal_Protocol__c.Seeking_an_Exception_to_Policy__c || Deal_Protocol__c.PartnerAnswerYestoQuestionnaire__c == 'Yes')}"/> <!--Only to add empty Space--> <span/> <apex:outputField value="{!Deal_Protocol__c.GlobalComplianceDecision__c}" rendered="{!(Deal_Protocol__c.Seeking_an_Exception_to_Policy__c || Deal_Protocol__c.PartnerAnswerYestoQuestionnaire__c == 'Yes')}"/> <apex:outputField value="{!Deal_Protocol__c.Global_Comp_Exception_Decision_Date__c}" label="Global Anti-Corruption Exception Decision Date" rendered="{!(Deal_Protocol__c.Seeking_an_Exception_to_Policy__c || Deal_Protocol__c.PartnerAnswerYestoQuestionnaire__c == 'Yes')}"/> <apex:outputField value="{!Deal_Protocol__c.ArcherExceptionId__c}" rendered="{!(Deal_Protocol__c.Seeking_an_Exception_to_Policy__c || Deal_Protocol__c.PartnerAnswerYestoQuestionnaire__c == 'Yes')}"/> </apex:pageblockSection> </div> <!--/////////////////edit mode --> <apex:pageblockSection id="antiCorrSection" title="Anti-Corruption:" columns="3" rendered="{!(editmode)}"> <apex:outputField value="{!Deal_Protocol__c.ACDD_Status__c}"/> <apex:outputField value="{!Deal_Protocol__c.ACDD_Status_Date__c}"/> <apex:inputField value="{!Deal_Protocol__c.Next_ACDD_Completion_Date__c}"/> <apex:outputField value="{!Deal_Protocol__c.TypeofACDD__c}" rendered="{!if(Deal_Protocol__c.TypeofACDD__c=='New ACDD',true,false)}"/> <apex:inputField value="{!Deal_Protocol__c.TypeofACDD__c}" rendered="{!if(Deal_Protocol__c.TypeofACDD__c!='New ACDD',true,false)}" id="typeOfACDD" required="true"> <script type="text/javascript"> (function(){ var e = document.querySelectorAll('[id$="typeOfACDD"]')[0]; console.log('e: '+e[0].value); for (var i=0; i<e.length; i++){ console.log('e.options[i].value: '+e.options[i].value); if (e.options[i].value == 'New ACDD'){ e.remove(i); } } })(); </script> </apex:inputField> <!--<apex:outputField value="{!Deal_Protocol__c.HasRiskRankingChangedFromLastACDD__c}" rendered="{!if(Deal_Protocol__c.TypeofACDD__c=='New ACDD',true,false)}"/> --> <apex:inputField value="{!Deal_Protocol__c.HasRiskRankingChangedFromLastACDD__c}" rendered="{!if(Deal_Protocol__c.TypeofACDD__c!='New ACDD',true,false)}"> <apex:actionSupport event="onchange" action="{!reRenderAction}" reRender="antiCorrSection"/> </apex:inputField> <!--Only to add empty Space--> <apex:outputText value=" " rendered="{!if(Deal_Protocol__c.TypeofACDD__c=='New ACDD',true,false)}" /> <span/> <apex:pageBlockSectionItem helpText="{!$ObjectType.Deal_Protocol__c.fields.Qualify_for_AEMP_10__c.InlineHelpText}"> <apex:outputLabel value="Does this contract qualify for AEMP-10 (Third Party Lifecycle Management)"/> <apex:inputField value="{!Deal_Protocol__c.Qualify_for_AEMP_10__c}" required="true" html-disabled="" > <apex:actionSupport event="onchange" action="{!reRenderAction}" reRender="antiCorrSection"/> </apex:inputField> </apex:pageBlockSectionItem> <apex:inputField value="{!Deal_Protocol__c.TLM_Reference__c}" id="tlmReference" rendered="{!Deal_Protocol__c.Qualify_for_AEMP_10__c == 'Yes'}" html-disabled="{!Deal_Protocol__c.isdisabled__c }"> <apex:actionSupport event="onchange" action="{!reRenderAction}" reRender="antiCorrSection"/> </apex:inputField> <apex:outputField value="{!Deal_Protocol__c.TLM_Reference__c}" rendered="{!Deal_Protocol__c.Qualify_for_AEMP_10__c != 'Yes'}"/> <apex:pageBlockSectionItem helpText="{!$ObjectType.Deal_Protocol__c.fields.RiskRankingAnswer__c.InlineHelpText}"> <apex:outputLabel value="Did you Answer 'Yes' to any Risk Ranking Question?"/> <apex:inputField value="{!Deal_Protocol__c.RiskRankingAnswer__c}" html-disabled="{!Deal_Protocol__c.isdisabled__c}" > <apex:actionSupport event="onchange" action="{!reRenderAction}" reRender="antiCorrSection"/> </apex:inputField> </apex:pageBlockSectionItem> <apex:outputField value="{!Deal_Protocol__c.Due_Diligence_Required__c}"/> <apex:pageBlockSectionItem helpText="{!$ObjectType.Deal_Protocol__c.fields.Partner_Certification_Statement_Complete__c.InlineHelpText}"> <apex:outputLabel value="Is the Partner Certification Statement Completed"/> <apex:inputField value="{!Deal_Protocol__c.Partner_Certification_Statement_Complete__c}" html-disabled="{!Deal_Protocol__c.isdisabled__c}"> <apex:actionSupport event="onchange" action="{!reRenderAction}" reRender="antiCorrSection"/> </apex:inputField> </apex:pageBlockSectionItem> <apex:inputField value="{!Deal_Protocol__c.Partner_Certification_Statement_Date__c}" html-disabled="{!Deal_Protocol__c.isdisabled__c}"/> <!--Only to add empty Space--> <span/> <apex:pageBlockSectionItem helpText="{!$ObjectType.Deal_Protocol__c.fields.PartnerAnswerYestoQuestionnaire__c.InlineHelpText}" id="partnerAnsPBSIId"> <apex:outputLabel value="Did the Partner Answer 'Yes' in any Section of the Questionnaire?"/> <apex:inputField value="{!Deal_Protocol__c.PartnerAnswerYestoQuestionnaire__c}" id="partnerAnsId" html-disabled="{!Deal_Protocol__c.isdisabled__c }"> <apex:actionSupport event="onchange" action="{!reRenderAction}" reRender="antiCorrSection"/> </apex:inputField> </apex:pageBlockSectionItem> <!--Only to add empty Space--> <span/> <apex:inputField value="{!Deal_Protocol__c.Seeking_an_Exception_to_Policy__c}" rendered="{!Deal_Protocol__c.Partner_Certification_Statement_Complete__c == 'No'}" html-disabled="{!Deal_Protocol__c.isdisabled__c }"> <apex:actionSupport event="onchange" action="{!reRenderAction}" reRender="antiCorrSection"/> </apex:inputField> <apex:outputField value="{!Deal_Protocol__c.Seeking_an_Exception_to_Policy__c}" rendered="{!Deal_Protocol__c.Partner_Certification_Statement_Complete__c != 'No'}" html-disabled="{!Deal_Protocol__c.isdisabled__c}"/> <!--Only to add empty Space--> <span/> <!--Only to add empty Space--> <apex:PageBlockSectionItem /> {!Deal_Protocol__c.isdisabled__c} <apex:inputField value="{!Deal_Protocol__c.ICSComplianceDecision__c}" rendered="{!(Deal_Protocol__c.Seeking_an_Exception_to_Policy__c || (Deal_Protocol__c.Partner_Certification_Statement_Complete__c == 'Yes' && Deal_Protocol__c.PartnerAnswerYestoQuestionnaire__c == 'Yes'))}" html-disabled="{!Deal_Protocol__c.isdisabled__c}"/> <apex:inputField value="{!Deal_Protocol__c.ICS_Compliance_Decision_Date__c}" rendered="{!(Deal_Protocol__c.Seeking_an_Exception_to_Policy__c || (Deal_Protocol__c.Partner_Certification_Statement_Complete__c == 'Yes' && Deal_Protocol__c.PartnerAnswerYestoQuestionnaire__c == 'Yes'))}" html-disabled="{!Deal_Protocol__c.isdisabled__c}"/> <!--Only to add empty Space--> <span/> <apex:inputField value="{!Deal_Protocol__c.GlobalComplianceDecision__c}" rendered="{!(Deal_Protocol__c.Seeking_an_Exception_to_Policy__c )}"/> <apex:pageBlockSectionItem helpText="{!$ObjectType.Deal_Protocol__c.fields.GlobalComplianceDecision__c.InlineHelpText}" rendered="{!(!Deal_Protocol__c.Seeking_an_Exception_to_Policy__c && (Deal_Protocol__c.Partner_Certification_Statement_Complete__c == 'Yes' && Deal_Protocol__c.PartnerAnswerYestoQuestionnaire__c == 'Yes'))}"> <apex:outputLabel value="{!$ObjectType.Deal_Protocol__c.Fields.GlobalComplianceDecision__c.Label}" /> <apex:outputText value="N/A"/> </apex:pageBlockSectionItem> <apex:inputField value="{!Deal_Protocol__c.Global_Comp_Exception_Decision_Date__c}" label="Global Anti-Corruption Exception Decision Date" rendered="{!(Deal_Protocol__c.Seeking_an_Exception_to_Policy__c)}"/> <apex:outputField value="{!Deal_Protocol__c.Global_Comp_Exception_Decision_Date__c}" label="Global Anti-Corruption Exception Decision Date" rendered="{!(!Deal_Protocol__c.Seeking_an_Exception_to_Policy__c && (Deal_Protocol__c.Partner_Certification_Statement_Complete__c == 'Yes' && Deal_Protocol__c.PartnerAnswerYestoQuestionnaire__c == 'Yes'))}"/> <apex:inputField value="{!Deal_Protocol__c.ArcherExceptionId__c}" rendered="{!(Deal_Protocol__c.Seeking_an_Exception_to_Policy__c )}"/> <apex:outputField value="{!Deal_Protocol__c.ArcherExceptionId__c}" rendered="{!(!Deal_Protocol__c.Seeking_an_Exception_to_Policy__c && (Deal_Protocol__c.Partner_Certification_Statement_Complete__c == 'Yes' && Deal_Protocol__c.PartnerAnswerYestoQuestionnaire__c == 'Yes'))}"/> </apex:pageblockSection> <!--Arshi US2220461 --> <apex:pageblockSection columns="1" > <apex:outputLabel value="*Please indicate below that you have uploaded a zip file with all Due Diligence evidence included. This must include evidence of any OFFLINE approvals (e.g. Market VP/Director sign off for the partner, Local Market Finance Approval, Local GCO sign off for draft contract) and ACDD Risk Ranking and if applicable, the completed ACDD Partner Questionnaire. "/> <apex:outputField value="{!Deal_Protocol__c.Zip_file_of_all_evidence_attached__c}" rendered="{!NOT(editmode)}"/> <apex:inputField value="{!Deal_Protocol__c.Zip_file_of_all_evidence_attached__c}" rendered="{!(editmode)}"/> </apex:pageblockSection> </apex:component>
Comments