public with sharing class otherButtonPreparationReportController {
|
public otherButtonPreparationReportController() {
|
|
}
|
@AuraEnabled
|
public static InitData init(String recordId){
|
InitData res = new initData();
|
try{
|
Maintenance_Contract__c report = [SELECT Id,RecordType_DeveloperName__c,Estimate_Target__c FROM Maintenance_Contract__c WHERE Id =: recordId LIMIT 1];
|
System.debug(LoggingLevel.INFO, '*** opp: ' + report);
|
res.Id = report.Id;
|
res.RecordTypeDeveloperNameC = report.RecordType_DeveloperName__c;
|
res.EstimateTargetC = report.Estimate_Target__c;
|
|
System.debug(LoggingLevel.INFO, '*** res: ' + res);
|
}catch(Exception e){
|
System.debug(LoggingLevel.INFO, '*** e: ' + e);
|
}
|
return res;
|
}
|
|
public class InitData{
|
@AuraEnabled
|
public String Id;
|
@AuraEnabled
|
public String RecordTypeDeveloperNameC;
|
@AuraEnabled
|
public String EstimateTargetC;
|
}
|
}
|