| | |
| | | res.recordTypeId1 = Schema.SObjectType.Report__c.getRecordTypeInfosByName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_SIS_ENG).getRecordTypeId(); |
| | | res.recordTypeId = Schema.SObjectType.Report__c.getRecordTypeInfosByName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_SIS_ET).getRecordTypeId(); |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return res; |
| | | } |
| | |
| | | res.opdPlan = rent.OPDPlan__c; |
| | | res.recordTypeId = Schema.SObjectType.Report__c.getRecordTypeInfosByName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_OPD).getRecordTypeId(); |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return res; |
| | | } |
| | |
| | | try { |
| | | res = new InitData(); |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return res; |
| | | } |
| | |
| | | res.datec = re.Date__c; |
| | | res.practitioner1 = re.Practitioner1__c; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return res; |
| | | } |
| | |
| | | }else { |
| | | return e.getMessage(); |
| | | } |
| | | // return e.getDmlMessage(0); |
| | | } |
| | | } |
| | | //OPDtoSIS操作更新相应数据 |
| | |
| | | }else { |
| | | return e.getMessage(); |
| | | } |
| | | // return e.getDmlMessage(0); |
| | | } |
| | | } |
| | | |
| | |
| | | }else { |
| | | return e.getMessage(); |
| | | } |
| | | // return e.getDmlMessage(0); |
| | | } |
| | | } |
| | | //完毕操作更新相应数据 |
| | |
| | | }else { |
| | | return e.getMessage(); |
| | | } |
| | | // return e.getDmlMessage(0); |
| | | } |
| | | } |
| | | //OCSM要报告操作更新相应数据 |
| | |
| | | }else { |
| | | return e.getMessage(); |
| | | } |
| | | // return e.getDmlMessage(0); |
| | | } |
| | | } |
| | | |
| | |
| | | }else { |
| | | return e.getMessage(); |
| | | } |
| | | // return e.getDmlMessage(0); |
| | | } |
| | | } |
| | | //DispatchOCSMQARA操作更新相应数据 |
| | |
| | | }else { |
| | | return e.getMessage(); |
| | | } |
| | | // return e.getDmlMessage(0); |
| | | } |
| | | } |
| | | //OCSM不要报告操作更新相应数据 |
| | |
| | | }else { |
| | | return e.getMessage(); |
| | | } |
| | | // return e.getDmlMessage(0); |
| | | } |
| | | } |
| | | |
| | |
| | | }else { |
| | | return e.getMessage(); |
| | | } |
| | | // return e.getDmlMessage(0); |
| | | } |
| | | } |
| | | |
| | |
| | | }else { |
| | | return e.getMessage(); |
| | | } |
| | | // return e.getDmlMessage(0); |
| | | } |
| | | } |
| | | |
| | |
| | | }else { |
| | | return e.getMessage(); |
| | | } |
| | | // return e.getDmlMessage(0); |
| | | } |
| | | } |
| | | |
| | |
| | | }else { |
| | | return e.getMessage(); |
| | | } |
| | | // return e.getDmlMessage(0); |
| | | } |
| | | } |
| | | //VOC回答更新相应数据 |
| | |
| | | }else { |
| | | return e.getMessage(); |
| | | } |
| | | // return e.getDmlMessage(0); |
| | | } |
| | | } |
| | | //VOC判定更新相应数据 |
| | |
| | | } |
| | | return null; |
| | | } catch (Exception e) { |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | String exc = e.getMessage(); |
| | | return exc; |
| | | return e.getMessage(); |
| | | } |
| | | } |
| | | //VOC完毕操作更新相应数据 |
| | |
| | | update report; |
| | | return null; |
| | | } catch (Exception e) { |
| | | // return e.getDmlMessage(0); |
| | | if (e.getMessage().contains(',')) { |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | String exc = '' + e.getMessage(); |
| | |
| | | try { |
| | | user = [select Id from User where Name =:name]; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return user.Id; |
| | | } |
| | |
| | | try { |
| | | profile = [select Id from Profile where Name =:name]; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | System.debug(LoggingLevel.INFO, '*** e: ' + e); |
| | | } |
| | | return profile.Id; |
| | | } |
| | | |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String status; |