public without sharing class TransferApplyController {
|
|
@AuraEnabled
|
public static list<TransferApplySummary__c> transferApplyPDF(string transferApplyId) {
|
|
try {
|
// var sql = "select Id from TransferApplySummary__c where TransferApply__c =
|
//'{!TransferApply__c.Id}' and ApprovalDetails__c > 0 and TAS_Status__c != '取消'";
|
list<TransferApplySummary__c> reports = [
|
select id from TransferApplySummary__c
|
where TransferApply__c = :transferApplyId
|
and ApprovalDetails__c > 0
|
and TAS_Status__c != '取消'];
|
return reports;
|
}catch ( Exception e) {
|
System.debug(LoggingLevel.ERROR,'TransferApplySummary__c TransferApplyPDF Error : ' + e);
|
}
|
return null;
|
|
}
|
|
@AuraEnabled
|
public static Boolean applyPermission()
|
{
|
Schema.DescribeSobjectResult schemaMap = Schema.describeSObjects(new String[]{'TransferApply__c'})[0];
|
return schemaMap.isCreateable();
|
}
|
|
}
|