| | |
| | | ]; |
| | | res.name = acc.Name; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(e.getMessage()); |
| | | } |
| | | return res; |
| | | } |
| | |
| | | res.hospitalId = acc.Hospital__r.Id; |
| | | res.hospitalOCMCategory = acc.Hospital__r.OCM_Category__c; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(e.getMessage()); |
| | | } |
| | | return res; |
| | | } |
| | |
| | | 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()); |
| | | System.debug(e.getMessage()); |
| | | } |
| | | return res; |
| | | } |
| | |
| | | res.recordTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_URO).getRecordTypeId(); |
| | | } |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(e.getMessage()); |
| | | } |
| | | return res; |
| | | |
| | |
| | | try{ |
| | | res.recordTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_CON).getRecordTypeId(); |
| | | }catch(Exception e){ |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(e.getMessage()); |
| | | } |
| | | return res; |
| | | } |
| | | class InitData{ |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String hospitalSalesdepartmentHP; |
| | | @AuraEnabled |