From cc266a1e4080bb3ecc47ea4a202dd549545111e1 Mon Sep 17 00:00:00 2001
From: 游畅 <youchang@prec-tech.com>
Date: 星期六, 29 四月 2023 16:10:52 +0800
Subject: [PATCH] 贸易合规20230429
---
force-app/main/default/classes/SelectAssetEstimateURFController.cls | 35 +++++++++++++++++++++++++++++++++--
1 files changed, 33 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/classes/SelectAssetEstimateURFController.cls b/force-app/main/default/classes/SelectAssetEstimateURFController.cls
index 8b0bb45..98faa81 100644
--- a/force-app/main/default/classes/SelectAssetEstimateURFController.cls
+++ b/force-app/main/default/classes/SelectAssetEstimateURFController.cls
@@ -1532,6 +1532,12 @@
,URF_LastMContract1_NO__c,URF_LastMContract2_NO__c,URF_LastMContract3_NO__c,URF_LastMContract4_NO__c,URF_LastMContract5_NO__c
,URF_LastMContract1_ConCount__c,URF_LastMContract2_ConCount__c,URF_LastMContract3_ConCount__c,URF_LastMContract4_ConCount__c,URF_LastMContract5_ConCount__c
// URF闄愭鍚堝悓2鏈� LY 20220811 end
+ //璐告槗鍚堣 you start
+ ,Maintenance_Contract__r.AccDealerBlacklist__c
+ ,Maintenance_Contract__r.Hospital__r.Name
+ ,Maintenance_Contract__r.Dealer__r.Name
+ ,CreatedById
+ //璐告槗鍚堣 you end
FROM Maintenance_Contract_Estimate__c WHERE Id = :this.targetEstimateId];
//HWAG-B399Q8 2018/08/20 娣诲姞涓�棰濆瀛楁 IS_Clone_After_Decide__c end
decimal PriceSum = (this.estimate.Maintenance_Contract__r.Payment_Plan_Sum_First__c == null ? 0 : this.estimate.Maintenance_Contract__r.Payment_Plan_Sum_First__c) +
@@ -3413,6 +3419,29 @@
return new PageReference('/' + this.targetEstimateId + '/e?completion=4');
}
+ //璐告槗鍚堣 you start
+ public PageReference interceptsend(){
+ //String BuchangApprovalManager = this.estimate.BuchangApprovalManager__c;
+ //String JingliApprovalManager = this.estimate.JingliApprovalManager__c;
+ String fseid = this.estimate.CreatedById;
+ String AccDealerBlacklist = this.estimate.Maintenance_Contract__r.AccDealerBlacklist__c;
+ String accname = this.estimate.Maintenance_Contract__r.Hospital__r.Name;
+ String deaname = this.estimate.Maintenance_Contract__r.Dealer__r.Name;
+ //FSE棰嗗
+ String[] FSEStr = new String[] {};
+ //if(String.isNotBlank(BuchangApprovalManager)){
+ // FSEStr.add(BuchangApprovalManager);
+ //}
+ //if(String.isNotBlank(JingliApprovalManager)){
+ // FSEStr.add(JingliApprovalManager);
+ //}
+ FSEStr.add(fseid);
+ system.debug('==jinlaile====='+FSEStr);
+ Boolean reflag = OpportunityWebService.accSendEmailFW(AccDealerBlacklist,accname,deaname,this.targetEstimateId,'decide_con',FSEStr);
+ system.debug('==fawanle====='+FSEStr);
+ return null;
+ }
+ //璐告槗鍚堣 you end
/**
* Process鐢ㄣ伄銉︺兗銈躲兗鎯呭牨銈掋偦銉冦儓銆佹柊瑕忚绌嶃倐銈婃檪鐢�
@@ -4170,7 +4199,8 @@
// 2021-02-07 gzw add LJPH-BWY5QB start
private void setEndUserType(String id) {
- this.contract = [SELECT Id, Name, Status__c, Decided_Estimation__c, Service_Contract_Staff__c,
+ //璐告槗鍚堣 you 20230414 鍔犳煡璇ccDealerBlacklist__c
+ this.contract = [SELECT Id, Name,AccDealerBlacklist__c, Status__c, Decided_Estimation__c, Service_Contract_Staff__c,
Estimate_Num__c, Management_Code__c, Hospital__c,
Hospital__r.MaintenanceContractUserType__c,
Contract_Start_Date__c, Contract_End_Date__c
@@ -4183,7 +4213,8 @@
// 2021-02-07 gzw add LJPH-BWY5QB end
private void setContractInfo(String id) {
- this.contract = [SELECT Id, Name, Status__c, Decided_Estimation__c, Service_Contract_Staff__c,
+ //璐告槗鍚堣 you 20230414 鍔犳煡璇ccDealerBlacklist__c
+ this.contract = [SELECT Id, Name,AccDealerBlacklist__c, Status__c, Decided_Estimation__c, Service_Contract_Staff__c,
Estimate_Num__c, Management_Code__c, Hospital__c,
//2021-01-18 mzy add LJPH-BWY5QB 瀹㈡埛涓婄殑 缁翠慨鍚堝悓鐢ㄦ埛绫诲瀷 涓簍rue /false,鎶ヤ环 鐢ㄦ埛绫诲瀷涓� 鏃㈡湁鐢ㄦ埛 / 鏂扮敤鎴�
// Hospital__r.MaintenanceContractUserType__c,
--
Gitblit v1.9.1