From ca1c0956ec5d16a44bd0a2c10e0e49db37c0fb32 Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期三, 08 三月 2023 09:35:52 +0800
Subject: [PATCH] 20230307询价2期Batch增加入Schedule

---
 force-app/main/default/objects/QIS_Report__c/webLinks/SendQISToEtQ.webLink-meta.xml |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/force-app/main/default/objects/QIS_Report__c/webLinks/SendQISToEtQ.webLink-meta.xml b/force-app/main/default/objects/QIS_Report__c/webLinks/SendQISToEtQ.webLink-meta.xml
index eb4cc96..e8fccbc 100644
--- a/force-app/main/default/objects/QIS_Report__c/webLinks/SendQISToEtQ.webLink-meta.xml
+++ b/force-app/main/default/objects/QIS_Report__c/webLinks/SendQISToEtQ.webLink-meta.xml
@@ -9,7 +9,7 @@
     <protected>false</protected>
     <url>{!REQUIRESCRIPT(&quot;/soap/ajax/51.0/connection.js&quot;)}; 
 {!REQUIRESCRIPT(&quot;/soap/ajax/51.0/apex.js&quot;)}; 
-//2021-10-21 gwy 鐗堟湰鏇存敼涓�51.0
+
 var myDate = function(){ 
 let messageNumber = &apos;&apos;; 
 let today = new Date(); 
@@ -22,10 +22,10 @@
 var QId = &quot;{!QIS_Report__c.Id}&quot;; 
 var uid = &apos;{! $User.Id}&apos;; 
 // 20201117 add by gzw 
-if(&quot;{!$Profile.Id}&quot; != &quot;00e10000000xnoO&quot; &amp;&amp; &quot;{!$Profile.Id}&quot; != &quot;00e10000000hl7w&quot;){ 
-alert(&quot;鎮ㄦ病鏈夊彂閫佷慨鐞嗗埌EtQ鐨勬潈闄愩��&quot;); 
-return; 
-} 
+if(&quot;{!$Profile.Id}&quot; != &quot;00e10000000xnoO&quot; &amp;&amp; &quot;{!$Profile.Id}&quot; != &quot;00e10000000hl7w&quot;){
+alert(&quot;鎮ㄦ病鏈夊彂閫丵IS鍒癊tQ鐨勬潈闄愩��&quot;);
+return;
+}
 // 20201117 add by gzw 
 if (&quot;{!QIS_Report__c.PAE_Determine__c}&quot;==&quot;&quot;){ 
 alert(&quot;OCSM QARA鐨凱AE鍒ゅ畾鏄┖鐨勬椂鍊欙紝涓嶅彲浠ュ彂閫佸埌EtQ銆�&quot;); 
@@ -43,7 +43,7 @@
 } 
 } 
 
-var statu; 
+var statu = &apos;&apos;; // 20220909 ljh WLIG-CHMATN update 
 // alert(&quot;AE鍒ゅ畾:&quot;+&quot;{!QIS_Report__c.AE_DetermineResult__c}&quot;); 
 // alert(&quot;OCSM QARA鐨凱AE鍒ゅ畾:&quot;+&quot;{!QIS_Report__c.PAE_Determine__c}&quot;); 
 // alert(&quot;OCSM Coding鐨凱AE鍒ゅ畾:&quot;+ &quot;{!QIS_Report__c.PAE_DetermineAC__c}&quot;); 
@@ -95,12 +95,16 @@
 
 //涓�涓嬩唬鐮佷粠鏇存柊qis鍓嶇Щ鍔ㄥ埌鏇存柊qis鍚� 鈫撯啌 start 2021-04-23 
 // alert(&apos;batchId&apos;+result[0].id) 
-var qisreports = new Array() 
-qisreports[0] = &quot;{!QIS_Report__c.Id}&quot;; 
+ var qisreports = new Array() 
+ qisreports[0] = &quot;{!QIS_Report__c.Id}&quot;; 
 
 // result = sforce.apex.execute(&quot;NFM401Controller1&quot;,&quot;sendToETQ&quot;,{&quot;iflog_Id&quot;:null,&quot;rowDataSFDC&quot;:null,&quot;repairIds&quot;:qisreports,&quot;statu&quot;:statu}); 
-result = sforce.apex.execute(&quot;NFM401WebService&quot;,&quot;sendToETQ&quot;,{&quot;iflog_Id&quot;:null,&quot;rowDataSFDC&quot;:null,&quot;repairIds&quot;:qisreports,&quot;statu&quot;:statu}); 
-// alert(&apos;result++&apos;+result) 
+// 20220909 ljh WLIG-CHMATN update start
+var statuArr = new Array();
+statuArr.push(statu) ;
+//result = sforce.apex.execute(&quot;NFM401WebService&quot;,&quot;sendToETQ&quot;,{&quot;iflog_Id&quot;:null,&quot;rowDataSFDC&quot;:null,&quot;repairIds&quot;:qisreports,&quot;statu&quot;:statu}); 
+result = sforce.apex.execute(&quot;NFM401WebService&quot;,&quot;sendToETQ&quot;,{&quot;iflog_Id&quot;:&quot;&quot;,&quot;rowDataSFDC&quot;:&quot;&quot;,&quot;repairIds&quot;:qisreports,&quot;statu&quot;:statuArr[0]}); 
+// 20220909 ljh WLIG-CHMATN update end
 //浠ヤ笂浠g爜浠庢洿鏂皅is鍓嶇Щ鍔ㄥ埌qis鍚� 鈫戔啈 2021-04-23 end 
 
 alert(&quot;鍙戦�佹垚鍔�!&quot;) 

--
Gitblit v1.9.1