From c9e23fe4ab15bc4b648a553d2172d0a74e1e1a74 Mon Sep 17 00:00:00 2001 From: l <511036524@qq.com> Date: 星期五, 11 三月 2022 17:27:41 +0800 Subject: [PATCH] StateCityUtilTest --- force-app/main/default/pages/CampaignCreate.page | 96 ++++++++++++++++++++--------------------------- 1 files changed, 41 insertions(+), 55 deletions(-) diff --git a/force-app/main/default/pages/CampaignCreate.page b/force-app/main/default/pages/CampaignCreate.page index c37623c..8b9bdd9 100644 --- a/force-app/main/default/pages/CampaignCreate.page +++ b/force-app/main/default/pages/CampaignCreate.page @@ -7,61 +7,55 @@ <apex:includeScript value="{!URLFOR($Resource.connection20)}"/> <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> <script type="text/javascript"> - function skip() { -// var test = window.location.search; - var str = '/701/e?cpn1=*'; - if(getParam('RecordType') != null){ - str += '&RecordType='+getParam('RecordType'); + // function skipJS() { + // skipPage(); + // } + // function ReturnWindowJs(){ + // returnPage(); + // } + function displayDecisionThemeJS(){ + if(document.getElementById('j_id0:allForm:allBlock:Meeting_Approved_No').value != ''){ + var MeetingApprovedName = document.getElementById('j_id0:allForm:allBlock:Meeting_Approved_No').value; + displayDecisionTheme(MeetingApprovedName); } - if(getParam('CMRT') != null){ - str += '&CMRT='+getParam('CMRT'); - } - if(getParam('retURL') != null){ - str += '&retURL='+getParam('retURL'); - } - if(getParam('p8') != null){ - str += '&p8='+getParam('p8'); - } - if(getParam('CF00N10000002DIsr') != null){ - str += '&CF00N10000002DIsr='+getParam('CF00N10000002DIsr'); - } - if(getParam('ent') != null){ - str += '&ent='+getParam('ent'); - } - if(getParam('CF00N10000002DIsr_lkid') != null){ - str += '&CF00N10000002DIsr_lkid='+getParam('CF00N10000002DIsr_lkid'); - } - str += '&nooverride=1'; - window.open(str,'_self'); - } - function getParam(paramName) { - paramValue = "", isFound = !1; - if (this.location.search.indexOf("?") == 0 && this.location.search.indexOf("=") > 1) { - arrSource = unescape(this.location.search).substring(1, this.location.search.length).split("&"), i = 0; - while (i < arrSource.length && !isFound) arrSource[i].indexOf("=") > 0 && arrSource[i].split("=")[0].toLowerCase() == paramName.toLowerCase() && (paramValue = arrSource[i].split("=")[1], isFound = !0), i++ - } - return paramValue == "" && (paramValue = null), paramValue - } - function closeWindowJs(){ - window.location.href = 'https://ocsm--stagefull.my.salesforce.com/701/o'; + function changeCheckbox(){ + debugger + var as = j$(escapeVfId("j_id0:allForm:allBlock:isAdjudication")).value(); + if(as==""){ + changeCheckboxs('0'); + }else{ + changeCheckboxs('1'); + } } </script> <apex:form id="allForm"> + <apex:actionFunction name="returnPage" action="{!returnPage}" rerender="allForm,allPanel,allBlock,records"> + </apex:actionFunction> + <apex:actionFunction name="skipPage" action="{!skipPage}" rerender="allForm,allPanel,allBlock,records"> + </apex:actionFunction> + <apex:actionFunction name="displayDecisionTheme" action="{!displayDecisionTheme}" rerender="allForm,allPanel,allBlock,records"> + <apex:param name="firstParam" assignTo="{!MeetingApprovedName}" value="" /> + </apex:actionFunction> + <apex:actionFunction name="changeCheckboxs" action="{!changeCheckboxs}" rerender="allForm,allPanel,allBlock,records"> + <apex:param name="firstParam" assignTo="{!flag}" value="" /> + </apex:actionFunction> <apex:outputPanel id="allPanel"> <apex:pageBlock id="allBlock"> + <input type="hidden" id="hasError" value="{!hasError}"/> <apex:outputPanel id="message"> <apex:pageMessages /> </apex:outputPanel> - <table id="linetable" class="linetable" border="0" style="border-collapse: collapse;width:590px;table-layout:fixed;"> + <table id="linetable" class="linetable" border="0" style="border-collapse: collapse;width:1000px;table-layout:fixed;"> <colgroup> <col width="100px"/> <col width="300px"/> + <col width="350px"/> <col width="300px"/> </colgroup> - <apex:repeat value="{!AdjudicationDataList}" var="AdInfo" id="records"> + <!-- <apex:repeat value="{!AdjudicationDataList}" var="AdInfo" id="records"> --> <tr> - <td align="left" colspan="3"> + <td align="left" colspan="4"> <apex:outputLabel value="> 鍐宠淇℃伅" style="font-size:22px;font-weight:bold;"/> </td> </tr> @@ -69,34 +63,26 @@ <tr> <td style="text-align: center;"> </td> <td style="text-align: left;"> - <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="鏄惁鐢宠鍐宠"/> - <apex:inputCheckbox id="isAdjudication" value="{!AdInfo.isAdjudication}"/> + <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="鏄惁闇�瑕佺敵璇峰喅瑁�"/> + <apex:inputField id="isAdjudication" value="{!AdjudicationDataobj.cam.IF_Approved__c}" onchange="changeCheckbox();"/> </td> <td style="text-align: left;"> <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="浼氳鍐宠缂栫爜"/> - <apex:inputField id="Meeting_Approved_No" value="{!AdInfo.cam.Meeting_Approved_No__c}"/> - </td> - </tr> - <tr><td> </td></tr> - <tr> - <td style="text-align: center;"> </td> - <td style="text-align: left;"> - <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="浼氳鎶ュ憡"/> - <apex:inputField id="Meeting_Report" value="{!AdInfo.cam.Meeting_Report__c}"/> + <apex:inputField id="Meeting_Approved_No" value="{!AdjudicationDataobj.cam.Meeting_Approved_No__c}" onchange="displayDecisionThemeJS();"/> </td> <td style="text-align: left;"> - <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="浼氳鍐宠缂栫爜(鏂囨湰)"/> - <apex:inputField id="MeetingApprovedNo" value="{!AdInfo.cam.MeetingApprovedNo__c}"/> + <apex:outputLabel style="font-weight: bold; padding-right: 8px;" value="浼氳鍐宠涓婚锛�"/> + <apex:outputText id="DecisionTheme" value="{!CampaignTheme}"/> </td> </tr> <tr><td> </td></tr> <tr> <td align="center" colspan="3"> - <apex:commandButton immediate="true" onclick="skip();" value="纭" style="width:50px;margin-right: 10px;"/> - <apex:commandButton immediate="true" onclick="closeWindowJs();" value="鍙栨秷" style="width:50px"/> + <apex:commandButton immediate="true" action="{!skipPage}" value="纭" style="width:50px;margin-right: 10px;"/> + <apex:commandButton immediate="true" action="{!returnPage}" value="鍙栨秷" style="width:50px"/> </td> </tr> - </apex:repeat> + <!-- </apex:repeat> --> </table> </apex:pageBlock> </apex:outputPanel> -- Gitblit v1.9.1