| | |
| | | res.departmentClassId = so.Department_Class__c; |
| | | res.productLeader = so.Product_Leader__c; |
| | | res.userId = UserInfo.getUserId(); |
| | | res.userName = UserInfo.getUserName(); |
| | | res.userName = [select Name from User where Id =: res.userId].Name; |
| | | maps.put('res', res); |
| | | } catch (Exception e) { |
| | | String message = e.getMessage(); |
| | |
| | | res.hospital = so.Hospital__c; |
| | | res.departmentClass = so.Department_Class__c; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return res; |
| | | } |
| | |
| | | res.profileId = UserInfo.getProfileId(); |
| | | res.m2ProfileId = [select Id from Profile where Name =: lexLightingButtonConstant.M2_PROFILE_NAME].Id; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return res; |
| | | } |
| | |
| | | update so; |
| | | return ''; |
| | | } catch (Exception e) { |
| | | return e.getMessage(); |
| | | if (e.getMessage().contains(':')) { |
| | | String eMessage = e.getMessage(); |
| | | Integer left = eMessage.indexOf(',') + 1; |
| | | Integer right = eMessage.lastIndexOf('。') + 1; |
| | | return eMessage.substring(left,right); |
| | | }else { |
| | | return e.getMessage(); |
| | | } |
| | | } |
| | | } |
| | | @AuraEnabled |
| | |
| | | update so; |
| | | return ''; |
| | | } catch (Exception e) { |
| | | return e.getMessage(); |
| | | if (e.getMessage().contains(',')) { |
| | | String eMessage = e.getMessage(); |
| | | Integer left = eMessage.indexOf(','); |
| | | Integer right = eMessage.length(); |
| | | return eMessage.substring(left + 1,right); |
| | | }else { |
| | | return e.getMessage(); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | ]; |
| | | |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return accList; |
| | | } |
| | |
| | | from Solution_Programme__c where SolutionProjectRequirements__c =: recordId and Scheme_Type__c = '结案' |
| | | ]; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return so; |
| | | } |
| | |
| | | select id,name from solutionClosingAttachment__c where Solution_Programme__c =: solprogrammeId |
| | | ]; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return so; |
| | | } |
| | | class InitData{ |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String status; |
| | | @AuraEnabled |