public with sharing class lexCreateJxsController {
|
public lexCreateJxsController() {
|
|
}
|
@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;
|
res.recordTypeId=res.recordTypeId.substring(0,15);
|
List<Account> aL=[SELECT Department_Class__c,Phone from account where id=:recordId ];
|
res.StrategicDeptClassC=aL.get(0).Department_Class__c;
|
res.Phone=aL.get(0).Phone;
|
} catch (Exception e) {
|
return res;
|
}
|
return res;
|
}
|
public class InitData{
|
@AuraEnabled public String recordTypeId;
|
@AuraEnabled public String StrategicDeptClassC;
|
@AuraEnabled public String Phone;
|
}
|
}
|