1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| public with sharing class LexOPDPostPoneController {
| @AuraEnabled
| public static OPDPlan__c init(String recordId){
| OPDPlan__c res = new OPDPlan__c();
| try{
| res = [Select Id,Status__c,Name from OPDPlan__c WHERE Id=:recordId];
|
| }
| catch(Exception e){
| System.debug(LoggingLevel.INFO, '*** e: ' + e);
| }
| return res;
| }
|
| @AuraEnabled
| public static List<RecordType> findRecordId(){
| try{
| List<RecordType> RecordTypes = [Select Id from RecordType where Name = '改期' limit 1];
|
| return RecordTypes;
| }
| catch (Exception e) {
| System.debug(LoggingLevel.INFO, '*** e: ' + e);
| }
| return null;
| }
| }
|
|