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/create_repair.webLink-meta.xml |   49 ++++++++++++++++++++++++-------------------------
 1 files changed, 24 insertions(+), 25 deletions(-)

diff --git a/force-app/main/default/objects/QIS_Report__c/webLinks/create_repair.webLink-meta.xml b/force-app/main/default/objects/QIS_Report__c/webLinks/create_repair.webLink-meta.xml
index 8cc9542..101cd9b 100644
--- a/force-app/main/default/objects/QIS_Report__c/webLinks/create_repair.webLink-meta.xml
+++ b/force-app/main/default/objects/QIS_Report__c/webLinks/create_repair.webLink-meta.xml
@@ -9,7 +9,6 @@
     <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 typeflag = false;
 if (&apos;{!QIS_Report__c.RecordType_ID__c}&apos; != &apos;01210000000RLWc&apos; &amp;&amp; &apos;{!QIS_Report__c.RecordType_ID__c}&apos; != &apos;01210000000RLWh&apos;) {
 typeflag = true;
@@ -18,7 +17,7 @@
 //LJPH-BSLCA4 &lt;濮旀墭&gt;淇悊鐢婚潰鈥滀慨鐞嗗搧杩旈�佸湴鈥濋棶棰樿皟鏌� 绮剧悽鎶�鏈� wql 20200819 start
 //LJPH-BYZ4JT 銆愬鎵樸�戜慨鐞嗙敾闈⑩�滀慨鐞嗗搧杩旈�佸湴鈥濋棶棰樿皟鏌�-鍚庣画 绮剧悽鎶�鏈� wql 20210311 start
 //妫�绱㈠鎴�
-var sql = &quot;SELECT id,ParentId,Parent.RecordTypeId, Parent.Parent.FSE_GI_Main_Leader__c,Parent.Parent.FSE_SP_Main_Leader__c,Parent.Parent.FSE_GI_Main_Leader__r.Work_Location__c,Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c FROM Account WHERE Name= &apos;{!QIS_Report__c.Hospital_Department__c }&apos; &quot;;
+var sql = &quot;SELECT id,ParentId,Parent.RecordTypeId, Parent.Parent.FSE_GI_Main_Leader__c,Parent.Parent.FSE_SP_Main_Leader__c,Parent.Parent.FSE_GI_Main_Leader__r.Work_Location__c,Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c  FROM Account WHERE Name= &apos;{!QIS_Report__c.Hospital_Department__c	}&apos; &quot;;
 
 var accountResult = sforce.connection.query(sql);
 var account = accountResult.getArray(&quot;records&quot;);
@@ -26,20 +25,20 @@
 var Work_Location=&apos;&apos; ;
 if(account[0].ParentId!=null){
 if(account[0].Parent.RecordTypeId!=null || account[0].Parent.RecordTypeId!=&apos;&apos;){
-var recordId = account[0].Parent.RecordTypeId.substring(0,15);
-//鎴樼暐绉戝鍙栨秷鍖栫銆佸懠鍚哥銆丒T 鍙朑I涓绘媴褰�
-if(recordId==&apos;01210000000QemL&apos;||recordId==&apos;01210000000QezZ&apos;||recordId==&apos;01210000000QemQ&apos;){
-if(account[0].Parent.Parent.FSE_GI_Main_Leader__c != null){
-Work_Location = account[0].Parent.Parent.FSE_GI_Main_Leader__r.Work_Location__c;
-}
-}
-//鎴樼暐绉戝鍙栨櫘澶栫銆佹硨灏跨銆佽�抽蓟鍠夌銆佸绉戙�佸叾瀹� 鍙朣P涓绘媴褰�
-else if(recordId==&apos;01210000000Qeze&apos;||recordId==&apos;01210000000Qezj&apos;||recordId==&apos;01210000000Qezt&apos;||recordId==&apos;01210000000Qezo&apos;||recordId==&apos;01210000000Qezy&apos;){
-if(account[0].Parent.Parent.FSE_SP_Main_Leader__c !=null){
-Work_Location = account[0].Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c;
-}
-
-}
+	var recordId = account[0].Parent.RecordTypeId.substring(0,15);
+	//鎴樼暐绉戝鍙栨秷鍖栫銆佸懠鍚哥銆丒T 鍙朑I涓绘媴褰�
+	if(recordId==&apos;01210000000QemL&apos;||recordId==&apos;01210000000QezZ&apos;||recordId==&apos;01210000000QemQ&apos;){
+		if(account[0].Parent.Parent.FSE_GI_Main_Leader__c != null){
+			Work_Location = account[0].Parent.Parent.FSE_GI_Main_Leader__r.Work_Location__c;
+		}
+	}
+	//鎴樼暐绉戝鍙栨櫘澶栫銆佹硨灏跨銆佽�抽蓟鍠夌銆佸绉戙�佸叾瀹�  鍙朣P涓绘媴褰�
+	else if(recordId==&apos;01210000000Qeze&apos;||recordId==&apos;01210000000Qezj&apos;||recordId==&apos;01210000000Qezt&apos;||recordId==&apos;01210000000Qezo&apos;||recordId==&apos;01210000000Qezy&apos;){
+		if(account[0].Parent.Parent.FSE_SP_Main_Leader__c !=null){
+			Work_Location = account[0].Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c;
+		}
+		
+	}
 }
 }
 //LJPH-BYZ4JT 銆愬鎵樸�戜慨鐞嗙敾闈⑩�滀慨鐞嗗搧杩旈�佸湴鈥濋棶棰樿皟鏌�-鍚庣画 绮剧悽鎶�鏈� wql 20210311 end
@@ -61,7 +60,7 @@
 //鑾峰彇 qis 鐨� 鏄惁鐢ㄨ浜у搧瀹屾垚浜嗘墜鏈�/妫�鏌�
 var Is_Used_For_The_Opera = &apos;{!QIS_Report__c.Is_Used_For_The_Opera__c}&apos;;
 //鐢ㄤ簬鏈�鍚庡甫鍒颁慨鐞嗕笂鐨勫��
-var UseFailProductFinish;
+var UseFailProductFinish = &apos;&apos;;// 20220812 ljh XLIU-CH8CGV
 if(Is_Used_For_The_Opera == &apos;YES&apos;){
 UseFailProductFinish = &apos;鏄�&apos;;
 }else if(Is_Used_For_The_Opera == &apos;NO-鐢ㄦ浛浠e搧瀹屾垚浜�&apos;){
@@ -73,12 +72,12 @@
 }
 //LJPH-BSG8P3 淇悊椤甸潰甯﹀�� 绮剧悽鎶�鏈� wql 20200814 end
 
-// LJPH-C4JC7N 銆愬鎵樸�慟IS杞慨鐞嗙晫闈㈠彂鐢熸姤閿�  绮剧悽鎶�鏈�   mzy  20210705  start
- var FailuerSituation = &apos;{!Text(QIS_Report__c.failuer_situation__c)}&apos;;
- if(&apos;浣跨敤鍓嶅噯澶�&apos; == FailuerSituation){
-    FailuerSituation = &apos;浣跨敤鍓嶅噯澶�-鎮h�呮湭楹婚唹&apos;;
- }
-// LJPH-C4JC7N 銆愬鎵樸�慟IS杞慨鐞嗙晫闈㈠彂鐢熸姤閿�  绮剧悽鎶�鏈�   mzy  20210705  end
+// LJPH-C4JC7N 銆愬鎵樸�慟IS杞慨鐞嗙晫闈㈠彂鐢熸姤閿� 绮剧悽鎶�鏈� mzy 20210705 start
+var FailuerSituation = &apos;{!Text(QIS_Report__c.failuer_situation__c)}&apos;;
+if(&apos;浣跨敤鍓嶅噯澶�&apos; == FailuerSituation){
+FailuerSituation = &apos;浣跨敤鍓嶅噯澶�-鎮h�呮湭楹婚唹&apos;;
+}
+// LJPH-C4JC7N 銆愬鎵樸�慟IS杞慨鐞嗙晫闈㈠彂鐢熸姤閿� 绮剧悽鎶�鏈� mzy 20210705 end
 
 window.open(&quot;/a0J/e?&quot; +
 &quot;CF00N10000002FIJU_lkid={!HTMLENCODE(QIS_Report__c.Source_OnCallId__c)}&amp;&quot; +
@@ -111,9 +110,9 @@
 &quot;00N10000008rsVR={!HTMLENCODE(Text(QIS_Report__c.Delay15Min__c))}&amp;&quot;+
 &quot;00N10000008rsVZ={!HTMLENCODE(Text(QIS_Report__c.InformationFrom__c))}&amp;&quot;+
 &quot;00N10000008rsVT={!HTMLENCODE(QIS_Report__c.FailureQInHospital__c)}&amp;&quot; +
-// LJPH-C4JC7N 銆愬鎵樸�慟IS杞慨鐞嗙晫闈㈠彂鐢熸姤閿�  绮剧悽鎶�鏈�   mzy  20210705  start
+// LJPH-C4JC7N 銆愬鎵樸�慟IS杞慨鐞嗙晫闈㈠彂鐢熸姤閿� 绮剧悽鎶�鏈� mzy 20210705 start
 &quot;00N10000008rsVv=&quot;+encodeURIComponent(FailuerSituation)+&quot;&amp;&quot;+
-//  LJPH-C4JC7N 銆愬鎵樸�慟IS杞慨鐞嗙晫闈㈠彂鐢熸姤閿�  绮剧悽鎶�鏈�   mzy  20210705  end
+// LJPH-C4JC7N 銆愬鎵樸�慟IS杞慨鐞嗙晫闈㈠彂鐢熸姤閿� 绮剧悽鎶�鏈� mzy 20210705 end
 //LJPH-BSG8P3 淇悊椤甸潰甯﹀�� 绮剧悽鎶�鏈� wql 20200814 start
 &quot;00N10000008rsW5=&quot;+encodeURI(UseFailProductFinish)+ &quot;&amp;&quot; +
 //LJPH-BSG8P3 淇悊椤甸潰甯﹀�� 绮剧悽鎶�鏈� wql 20200814 end

--
Gitblit v1.9.1