| | |
| | | } |
| | | return res; |
| | | } |
| | | @AuraEnabled |
| | | public static InitData initForNewOnLineSurveyButton(String recordId){ |
| | | InitData res = new InitData(); |
| | | try { |
| | | Report__c re = [ |
| | | select |
| | | Date__c, |
| | | Practitioner1__c, |
| | | OwnerId |
| | | from Report__c where Id =: recordId |
| | | ]; |
| | | res.ownerId = re.OwnerId; |
| | | res.datec = re.Date__c; |
| | | res.practitioner1 = re.Practitioner1__c; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | return res; |
| | | } |
| | | |
| | | //给提交相应的js提供初始化数据 |
| | | @AuraEnabled |
| | |
| | | public String demoPurpose2; |
| | | @AuraEnabled |
| | | public String opdPlan; |
| | | @AuraEnabled |
| | | public Date datec; |
| | | @AuraEnabled |
| | | public String practitioner1; |
| | | } |
| | | } |