From ac0d606acaa5844bc2c6ad2242d5502b60f9be3a Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期五, 30 六月 2023 17:25:39 +0800
Subject: [PATCH] 修改页面和按钮

---
 force-app/main/default/classes/lexAccountController.cls |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/force-app/main/default/classes/lexAccountController.cls b/force-app/main/default/classes/lexAccountController.cls
index 1cc2bfe..ac41d3b 100644
--- a/force-app/main/default/classes/lexAccountController.cls
+++ b/force-app/main/default/classes/lexAccountController.cls
@@ -19,6 +19,16 @@
         }
         return res;
     }
+    @AuraEnabled
+    public static InitData initForOTHCreateButton(String recordId){
+        InitData res = new InitData();
+        try {
+           res.recordTypeId = Schema.SObjectType.Account_Number_of_case__c.getRecordTypeInfosByDeveloperName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_OTHER).getRecordTypeId(); 
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+        return res;
+    }
     class InitData{
         @AuraEnabled
         public String hospitalSalesdepartmentHP;
@@ -26,5 +36,7 @@
         public String hospitalId;
         @AuraEnabled
         public String hospitalOCMCategory;
+        @AuraEnabled
+        public String recordTypeId;
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1