public with sharing class lexCreateContactController {
|
public lexCreateContactController() {
|
|
}
|
@AuraEnabled
|
public static InitData init(String recordId){
|
InitData res = new InitData();
|
try {
|
List<RecordType> rL=[SELECT id from recordType where name='医師' and SObjectType='Contact'];
|
res.recordTypeId=rL.get(0).Id;
|
List<Account> aL=[SELECT Department_Class__c from account where id=:recordId ];
|
res.StrategicDeptClassC=aL.get(0).Department_Class__c;
|
} catch (Exception e) {
|
return res;
|
}
|
return res;
|
}
|
public class InitData{
|
@AuraEnabled public String recordTypeId;
|
@AuraEnabled public String StrategicDeptClassC;
|
}
|
}
|