From e3c02c03dd2de442bbced87236f60a13a1cd154e Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期四, 02 三月 2023 17:51:57 +0800
Subject: [PATCH] gzw 正式环境最新代码更新

---
 force-app/main/default/pages/ChangeDealerApproval.page |  196 ++++++++++++++++++++++++------------------------
 1 files changed, 98 insertions(+), 98 deletions(-)

diff --git a/force-app/main/default/pages/ChangeDealerApproval.page b/force-app/main/default/pages/ChangeDealerApproval.page
index 7769c36..9c07d8c 100644
--- a/force-app/main/default/pages/ChangeDealerApproval.page
+++ b/force-app/main/default/pages/ChangeDealerApproval.page
@@ -1,119 +1,119 @@
 <apex:page controller="ChangeDealerApprovalController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="鍙樻洿鎶ヤ环鎻愪氦瀵硅薄鐢宠">
-	<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
+    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
     <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
     <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
-    <apex:includeScript value="/soap/ajax/29.0/connection.js"/>
-    <apex:includeScript value="/soap/ajax/29.0/apex.js"/>
+    <apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
+    <apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
 
     <script type="text/javascript">
-    	window.onload = function initCheckValue() {
-    		resetDealer();
-    	}
+        window.onload = function initCheckValue() {
+            resetDealer();
+        }
 
         function resetDealer() {
-		    var target = j$(escapeVfId('allPage:allForm:changedInput:estimateTarget')).val();
-		    var obj = document.getElementById('allPage:allForm:changedInput:changedDealer');
-		    var obj_lkwgt = document.getElementById('allPage:allForm:changedInput:changedDealer_lkwgt');
-		    var lbObj = document.getElementById('changedLabel');
-		    if (target == '鍖婚櫌') {
-		        obj.style.display = "none";
-		        obj_lkwgt.style.display = "none";
-		        lbObj.style.display = "none";
-		    } else {
-		        obj.style.display = "block";
-		        obj_lkwgt.style.display = "block";
-		        lbObj.style.display = "block";
-		    }
-		}
+            var target = j$(escapeVfId('allPage:allForm:changedInput:estimateTarget')).val();
+            var obj = document.getElementById('allPage:allForm:changedInput:changedDealer');
+            var obj_lkwgt = document.getElementById('allPage:allForm:changedInput:changedDealer_lkwgt');
+            var lbObj = document.getElementById('changedLabel');
+            if (target == '鍖婚櫌') {
+                obj.style.display = "none";
+                obj_lkwgt.style.display = "none";
+                lbObj.style.display = "none";
+            } else {
+                obj.style.display = "block";
+                obj_lkwgt.style.display = "block";
+                lbObj.style.display = "block";
+            }
+        }
 
-		function requiredCheck() {
-			var target = j$(escapeVfId('allPage:allForm:changedInput:estimateTarget')).val();
-			var etTarget = j$(escapeVfId('allPage:allForm:etTarget')).val();
-			var dealer = j$(escapeVfId('allPage:allForm:dealer')).val();
-			if (target != '鍖婚櫌') {
-				var obj = j$(escapeVfId('allPage:allForm:changedInput:changedDealer')).val();
-				if (obj == null || obj == '') {
-					alert('璇疯緭鍏ュ彉鏇村悗缁忛攢鍟嗗悕');
-					return false;
-				}
-				if (etTarget == target && obj == dealer) {
-					alert('鎶ヤ环鎻愪氦瀵硅薄娌℃湁鍙樻洿锛�');
-					return false;
-				}
-			} else {
-				if (etTarget == '鍖婚櫌') {
-					alert('鎶ヤ环鎻愪氦瀵硅薄娌℃湁鍙樻洿锛�');
-					return false;
-				}
-			}
-			if (confirm('涓�鏃︽彁浜ゆ璁板綍锛屾偍灏嗕笉鑳藉啀缂栬緫鎴栬皟鍥烇紝璇风‘璁ゆ槸鍚︾户缁紵')) {
-				submitApproval();
-			} else {
-				return false;
-			}
-		}
+        function requiredCheck() {
+            var target = j$(escapeVfId('allPage:allForm:changedInput:estimateTarget')).val();
+            var etTarget = j$(escapeVfId('allPage:allForm:etTarget')).val();
+            var dealer = j$(escapeVfId('allPage:allForm:dealer')).val();
+            if (target != '鍖婚櫌') {
+                var obj = j$(escapeVfId('allPage:allForm:changedInput:changedDealer')).val();
+                if (obj == null || obj == '') {
+                    alert('璇疯緭鍏ュ彉鏇村悗缁忛攢鍟嗗悕');
+                    return false;
+                }
+                if (etTarget == target && obj == dealer) {
+                    alert('鎶ヤ环鎻愪氦瀵硅薄娌℃湁鍙樻洿锛�');
+                    return false;
+                }
+            } else {
+                if (etTarget == '鍖婚櫌') {
+                    alert('鎶ヤ环鎻愪氦瀵硅薄娌℃湁鍙樻洿锛�');
+                    return false;
+                }
+            }
+            if (confirm('涓�鏃︽彁浜ゆ璁板綍锛屾偍灏嗕笉鑳藉啀缂栬緫鎴栬皟鍥烇紝璇风‘璁ゆ槸鍚︾户缁紵')) {
+                submitApproval();
+            } else {
+                return false;
+            }
+        }
 
-		function closedWin(isClosed) {
-			
-			if (isClosed == 1) {
-				if (!confirm("璇风‘璁ゆ槸鍚﹀彇娑堜慨鏀癸紵")) {
-					return false;
-				}
-				window.opener.closeWin(1);
-			} else {
-				var errMsg = '{!submitErrorMsg}';
-				if (errMsg == 'false') {
-					if (!confirm("宸茬粡鎻愪氦寰呭鎵癸紝鏄惁鍏抽棴锛�")) {
-						return false;
-					}
-					window.opener.closeWin(2);
-				} else {
-					return false;
-				}
-			}
-		}
+        function closedWin(isClosed) {
+            
+            if (isClosed == 1) {
+                if (!confirm("璇风‘璁ゆ槸鍚﹀彇娑堜慨鏀癸紵")) {
+                    return false;
+                }
+                window.opener.closeWin(1);
+            } else {
+                var errMsg = '{!submitErrorMsg}';
+                if (errMsg == 'false') {
+                    if (!confirm("宸茬粡鎻愪氦寰呭鎵癸紝鏄惁鍏抽棴锛�")) {
+                        return false;
+                    }
+                    window.opener.closeWin(2);
+                } else {
+                    return false;
+                }
+            }
+        }
     </script>
 
     <apex:form id="allForm">
-    	<apex:inputHidden id="etTarget" value="{!estimate.Estimate_Target__c}"/>
-    	<apex:inputHidden id="dealer" value="{!estimate.Dealer__c}"/>
-    	<apex:actionFunction name="submitApproval" action="{!submitApproval}" rerender="allForm" oncomplete="closedWin();"/>
-    	<apex:pageBlock id="changedInput" title="" mode="edit" >
-    		<apex:pageMessages id="submitErrorMsg"/>
-	        <apex:pageBlockButtons >
-	        	<!-- 鍙栧紩銇枊濮� -->
-	            <apex:commandButton value="鎻愪氦寰呭鎵�" onclick="requiredCheck(); return false;" disabled="{!ApprovalButDisabled}"/>
-	            <!-- 銈儯銉炽偦銉� -->
-	            <apex:commandButton value="鍙栨秷" onclick="closedWin(1); return false;" />
-	        </apex:pageBlockButtons>
-	        <div class="pbSubheader first tertiaryPalette">
+        <apex:inputHidden id="etTarget" value="{!estimate.Estimate_Target__c}"/>
+        <apex:inputHidden id="dealer" value="{!estimate.Dealer__c}"/>
+        <apex:actionFunction name="submitApproval" action="{!submitApproval}" rerender="allForm" oncomplete="closedWin();"/>
+        <apex:pageBlock id="changedInput" title="" mode="edit" >
+            <apex:pageMessages id="submitErrorMsg"/>
+            <apex:pageBlockButtons >
+                <!-- 鍙栧紩銇枊濮� -->
+                <apex:commandButton value="鎻愪氦寰呭鎵�" onclick="requiredCheck(); return false;" disabled="{!ApprovalButDisabled}"/>
+                <!-- 銈儯銉炽偦銉� -->
+                <apex:commandButton value="鍙栨秷" onclick="closedWin(1); return false;" />
+            </apex:pageBlockButtons>
+            <div class="pbSubheader first tertiaryPalette">
                 <h3>鎶ヤ环鎻愪氦瀵硅薄鍙樻洿</h3>
             </div>
             <table style="padding-top:10px" width="100%">
-            	<tr>
-            		<td width="5%"></td>
-            		<td width="15%" style="text-align: right;">
-            			<label>鎶ヤ环鎻愪氦瀵硅薄</label>
-            		</td>
-            		<td width="80%" style="text-align: left;">
-            			<apex:selectList value="{!estimate.Changed_Estimate_Target__c}" multiselect="false" size="1" id="estimateTarget" onchange="resetDealer()" style="margin-left:15px;">
-		                	<apex:selectOptions value="{!etSelectOptions}" ></apex:selectOptions>
-			                <!-- <apex:actionSupport event="onchange" onsubmit="" onbeforedomupdate="" action="{!depChange}" rerender="idCon">
-			                    <apex:param name="sltD" value="{!sltDep}"/>
-			                </apex:actionSupport> -->
-			            </apex:selectList>
-	                </td>
+                <tr>
+                    <td width="5%"></td>
+                    <td width="15%" style="text-align: right;">
+                        <label>鎶ヤ环鎻愪氦瀵硅薄</label>
+                    </td>
+                    <td width="80%" style="text-align: left;">
+                        <apex:selectList value="{!estimate.Changed_Estimate_Target__c}" multiselect="false" size="1" id="estimateTarget" onchange="resetDealer()" style="margin-left:15px;">
+                            <apex:selectOptions value="{!etSelectOptions}" ></apex:selectOptions>
+                            <!-- <apex:actionSupport event="onchange" onsubmit="" onbeforedomupdate="" action="{!depChange}" rerender="idCon">
+                                <apex:param name="sltD" value="{!sltDep}"/>
+                            </apex:actionSupport> -->
+                        </apex:selectList>
+                    </td>
                 </tr>
                 <tr>
-                	<td width="5%"></td>
-                	<td width="15%" style="text-align: right;">
-                		<div id="changedLabel">缁忛攢鍟嗗悕</div>
-                	</td>
-                	<td width="80%" style="text-align: left;">
-                		<apex:inputField value="{!estimate.Changed_Dealer__c}" id="changedDealer" style="margin-left:15px;"/>
-			        </td>
+                    <td width="5%"></td>
+                    <td width="15%" style="text-align: right;">
+                        <div id="changedLabel">缁忛攢鍟嗗悕</div>
+                    </td>
+                    <td width="80%" style="text-align: left;">
+                        <apex:inputField value="{!estimate.Changed_Dealer__c}" id="changedDealer" style="margin-left:15px;"/>
+                    </td>
                 </tr>
             </table>
         </apex:pageBlock>
-    </apex:form>	
+    </apex:form>    
 </apex:page>
\ No newline at end of file

--
Gitblit v1.9.1