| | |
| | | String PIPL_Input_Account_Error_Msg = label.PIPL_Input_Account_Error_Msg; |
| | | Map<string,string> mso = (Map<string,string>)JSON.deserialize(urlStr, Map<string,string>.class); |
| | | system.debug('mso='+mso); |
| | | if (recordId != null) { |
| | | res.recordTypeId = [SELECT Id,RecordTypeId FROM Repair__c WHERE Id = :recordId].RecordTypeId; |
| | | res.status = true; |
| | | } |
| | | String RepairSubOrderAWSDataId; |
| | | // AssignValueFromUrl(mso,controller.getRecord()); |
| | | //通过id查 问题 |
| | |
| | | } |
| | | |
| | | } |
| | | PIHelper.PIIntegration piIntegration = PIHelper.getPIIntegrationInfo('Repair__c'); |
| | | PIHelper.PIIntegration piIntegrationAddress = PIHelper.getPIIntegrationInfo('Address__c'); |
| | | PIHelper.PIIntegration piIntegrationContact = PIHelper.getPIIntegrationInfo('Contact'); |
| | | PIHelper.PIIntegration piIntegrationRepairSubOrder = PIHelper.getPIIntegrationInfo('RepairSubOrder__c'); |
| | | String staticResource = JSON.serialize(piIntegration); |
| | | //zhj MEBG新方案改造 2022-11-29 start |
| | | String staticResourceV2 = JSON.serialize(PIHelper.getPIIntegrationInfo('Repair__cV2')); |
| | | //zhj MEBG新方案改造 2022-11-29 end |
| | | String staticResourceAddress = JSON.serialize(piIntegrationAddress); |
| | | String staticResourceContact = JSON.serialize(piIntegrationContact); |
| | | String staticResourceRepairSubOrder = JSON.serialize(piIntegrationRepairSubOrder); |
| | | List<String> encryptedAPIList = piIntegration.PIFields; |
| | | String sobjectPrefix = piIntegration.sobjectPrefix; |
| | | //2023/04/23 lwc的保存并新建 保存后刷新页面 |
| | | // PIHelper.PIIntegration piIntegration = PIHelper.getPIIntegrationInfo('Repair__c'); |
| | | // PIHelper.PIIntegration piIntegrationAddress = PIHelper.getPIIntegrationInfo('Address__c'); |
| | | // PIHelper.PIIntegration piIntegrationContact = PIHelper.getPIIntegrationInfo('Contact'); |
| | | // PIHelper.PIIntegration piIntegrationRepairSubOrder = PIHelper.getPIIntegrationInfo('RepairSubOrder__c'); |
| | | // String staticResource = JSON.serialize(piIntegration); |
| | | // //zhj MEBG新方案改造 2022-11-29 start |
| | | // String staticResourceV2 = JSON.serialize(PIHelper.getPIIntegrationInfo('Repair__cV2')); |
| | | // //zhj MEBG新方案改造 2022-11-29 end |
| | | // String staticResourceAddress = JSON.serialize(piIntegrationAddress); |
| | | // String staticResourceContact = JSON.serialize(piIntegrationContact); |
| | | // String staticResourceRepairSubOrder = JSON.serialize(piIntegrationRepairSubOrder); |
| | | // List<String> encryptedAPIList = piIntegration.PIFields; |
| | | // String sobjectPrefix = piIntegration.sobjectPrefix; |
| | | |
| | | //save and new url |
| | | String newUrl = '/setup/ui/recordtypeselect.jsp?ent=' + sobjectId + '&retURL=/' + sobjectPrefix + '/o&save_new_url=/' + sobjectPrefix + '/e?retURL=%2F' + sobjectPrefix + '%2Fo'; |
| | | res.newUrl = newUrl; |
| | | //save and new url page处保存并新建跳转地址:new?recordTypeId=01210000000QmS9&additionalParams=retURL%3D%252Fa0J%252Fo%26&count=1 |
| | | // String newUrl = '/setup/ui/recordtypeselect.jsp?ent=' + sobjectId + '&retURL=/' + sobjectPrefix + '/o&save_new_url=/' + sobjectPrefix + '/e?retURL=%2F' + sobjectPrefix + '%2Fo'; |
| | | // res.newUrl = newUrl; |
| | | |
| | | return res; |
| | | } |
| | | |
| | | public static String getAllFieldNames(String objName){ |
| | | Map <String, Schema.SObjectType> schemaMap = Schema.getGlobalDescribe(); |
| | | List<Schema.sObjectField> fields = schemaMap.get(objName).getDescribe().fields.getMap().values(); |
| | | |
| | | String fieldString = ''; |
| | | for( Schema.sObjectField field : fields ){ |
| | | fieldString += field + ','; |
| | | } |
| | | fieldString = fieldString.removeEnd(','); |
| | | |
| | | return fieldString; |
| | | } |
| | | |
| | | // @AuraEnabled |
| | | public static List <LayoutDescriberHelper.LayoutSection > init1(String recordId,String urlStr) { |
| | | String sobjectId = [SELECT CustomObjectId,CustomObjectName FROM CustomObjectUserLicenseMetrics where CustomObjectName ='Repair' limit 1].CustomObjectId; |
| | |
| | | //判断是否有Repair的默认值 |
| | | @AuraEnabled |
| | | public Boolean status; |
| | | // @AuraEnabled |
| | | // public Repair__c repair; |
| | | //todo 报修人 |
| | | @AuraEnabled |
| | | public String AWS_Data_Id; |
| | |
| | | @AuraEnabled |
| | | public String Rental_Apply_Equipment_Set_Detail; |
| | | @AuraEnabled |
| | | public String newUrl; |
| | | public String recordTypeId; |
| | | // @AuraEnabled |
| | | // public String newUrl; |
| | | |
| | | public ReturnData(){ |
| | | this.status = false; |