| | |
| | | } |
| | | return res; |
| | | } |
| | | //新建OPD计划(科室) 客户上的按钮 |
| | | @AuraEnabled |
| | | public static Account initNewOPDButton(String recordId){ |
| | | Account res = new Account(); |
| | | try{ |
| | | res = [SELECT Id,Is_Active__c |
| | | FROM Account |
| | | WHERE Id=:recordId]; |
| | | return res; |
| | | } |
| | | catch(Exception e){ |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | return null; |
| | | } |
| | | } |
| | | //新建OPD计划(询价) 询价上的按钮 |
| | | @AuraEnabled |
| | | public static Opportunity initNewOPDButton2(String recordId){ |
| | | Opportunity res = new Opportunity(); |
| | | try{ |
| | | res = [SELECT Id,AccountId,Name ,StageName |
| | | FROM Opportunity |
| | | WHERE Id=:recordId]; |
| | | return res; |
| | | } |
| | | catch(Exception e){ |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | return null; |
| | | } |
| | | } |
| | | } |