From bc11d6edd670912d12da2435d696ff69656ec359 Mon Sep 17 00:00:00 2001
From: KKbes <1620284052@qq.com>
Date: 星期五, 28 七月 2023 17:59:45 +0800
Subject: [PATCH] button
---
force-app/main/default/classes/LexOPDSupplementaryController.cls | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/LexOPDSupplementaryController.cls b/force-app/main/default/classes/LexOPDSupplementaryController.cls
index efd40d3..9de7a6a 100644
--- a/force-app/main/default/classes/LexOPDSupplementaryController.cls
+++ b/force-app/main/default/classes/LexOPDSupplementaryController.cls
@@ -96,4 +96,34 @@
}
return res;
}
+ //鏂板缓OPD璁″垝锛堢瀹わ級 瀹㈡埛涓婄殑鎸夐挳
+ @AuraEnabled
+ public static Account initNewOPDButton(String recordId){
+ Account res = new Account();
+ try{
+ res = [SELECT Id,Is_Active__c
+ FROM Account
+ WHERE Id=:recordId];
+ return res;
+ }
+ catch(Exception e){
+ System.debug(LoggingLevel.INFO, '*** e: ' + e);
+ return null;
+ }
+ }
+ //鏂板缓OPD璁″垝锛堣浠凤級 璇环涓婄殑鎸夐挳
+ @AuraEnabled
+ public static Opportunity initNewOPDButton2(String recordId){
+ Opportunity res = new Opportunity();
+ try{
+ res = [SELECT Id,AccountId,Name ,StageName
+ FROM Opportunity
+ WHERE Id=:recordId];
+ return res;
+ }
+ catch(Exception e){
+ System.debug(LoggingLevel.INFO, '*** e: ' + e);
+ return null;
+ }
+ }
}
\ No newline at end of file
--
Gitblit v1.9.1