| | |
| | | res.schemeType = so.Scheme_Type__c; |
| | | res.confirmationResult = so.Confirmation_Result__c; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(e.getMessage()); |
| | | } |
| | | return res; |
| | | } |
| | |
| | | try { |
| | | so = [select id,name from solutionClosingAttachment__c where Solution_Programme__c =: Id]; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(e.getMessage()); |
| | | } |
| | | return so; |
| | | } |
| | |
| | | update so; |
| | | return ''; |
| | | } catch (Exception e) { |
| | | return e.getMessage(); |
| | | return e.getDmlMessage(0); |
| | | } |
| | | } |
| | | class InitData{ |
| | | //提交审批 |
| | | @AuraEnabled |
| | | public static String submitApproval(String recordId){ |
| | | Savepoint sp = Database.setSavepoint(); |
| | | try { |
| | | Approval.ProcessSubmitRequest req1 = new Approval.ProcessSubmitRequest(); |
| | | req1.setObjectId(recordId); |
| | | Approval.ProcessResult submitResult = Approval.process(req1); |
| | | return 'OK'; |
| | | } |
| | | catch (Exception e) { |
| | | Database.rollback(sp); |
| | | return e.getDmlMessage(0); |
| | | } |
| | | } |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String schemeType; |
| | | @AuraEnabled |