| | |
| | | } |
| | | 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; |
| | |
| | | public String hospitalId; |
| | | @AuraEnabled |
| | | public String hospitalOCMCategory; |
| | | @AuraEnabled |
| | | public String recordTypeId; |
| | | } |
| | | } |