From 4661adc43f549036f4e6e44debe92521c5793083 Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期二, 06 六月 2023 11:06:36 +0800
Subject: [PATCH] 修改页面以及按钮
---
force-app/main/default/classes/OpportunityLightingButtonController.cls | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/classes/OpportunityLightingButtonController.cls b/force-app/main/default/classes/OpportunityLightingButtonController.cls
index fbdcf8a..0f25b22 100644
--- a/force-app/main/default/classes/OpportunityLightingButtonController.cls
+++ b/force-app/main/default/classes/OpportunityLightingButtonController.cls
@@ -4,7 +4,7 @@
* @Author: chen jing wu
* @Date: 2023-04-12 11:16:07
* @LastEditors: chen jing wu
- * @LastEditTime: 2023-05-31 17:32:51
+ * @LastEditTime: 2023-06-05 13:59:58
*/
public with sharing class OpportunityLightingButtonController {
@AuraEnabled
@@ -184,6 +184,7 @@
res.systemProfileId = getProfileIdByName(lexLightingButtonConstant.SYSTEM_PROFILE_NAME);
res.s1ProfileId = getProfileIdByName(lexLightingButtonConstant.S1_PROFILE_NAME);
res.s4ProfileId = getProfileIdByName(lexLightingButtonConstant.S4_PROFILE_NAME);
+ res.recordTypeId = Schema.SObjectType.Request_tedner_doc__c.getRecordTypeInfosByName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_AUTHORIZATION_REQUEST).getRecordTypeId();
} catch (Exception e) {
System.debug('e:****' + e);
}
@@ -305,7 +306,11 @@
CurrencyIsoCode
from Opportunity where Id =: recordId
];
+ Report cnyReport = [SELECT Id FROM Report WHERE Name = :lexLightingButtonConstant.REPORT_NAME_FOR_CNY limit 1];
+ Report usdReport = [SELECT Id FROM Report WHERE Name = :lexLightingButtonConstant.REPORT_NAME_FOR_USD limit 1];
res.currencyIsoCode = opportunity.CurrencyIsoCode;
+ res.reportForCNYId = cnyReport.Id;
+ res.reportForUSDId = usdReport.Id;
} catch (Exception e) {
throw new AuraHandledException(e.getMessage());
}
@@ -426,6 +431,7 @@
res.accountId = opp.AccountId;
res.accountName = acc.Name;
res.name = opp.Name;
+ res.recordTypeId = Schema.SObjectType.Task.getRecordTypeInfosByName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_INQUIRY_FOLLOW_UP).getRecordTypeId();
} catch (Exception e) {
throw new AuraHandledException(e.getMessage());
}
@@ -836,5 +842,9 @@
public String accountName;
@AuraEnabled
public String recordTypeId;
+ @AuraEnabled
+ public String reportForCNYId;
+ @AuraEnabled
+ public String reportForUSDId;
}
}
\ No newline at end of file
--
Gitblit v1.9.1