From 5835379ec30b1667c4e522db9d294c9b7bb8633a Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 26 四月 2022 12:00:31 +0800
Subject: [PATCH] SSBG Back up

---
 force-app/main/default/classes/QuotePDFController.cls |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/classes/QuotePDFController.cls b/force-app/main/default/classes/QuotePDFController.cls
index 9651bb6..1040798 100644
--- a/force-app/main/default/classes/QuotePDFController.cls
+++ b/force-app/main/default/classes/QuotePDFController.cls
@@ -83,9 +83,17 @@
         'ZZTT' => '100% TT IN ADVANCE'
     };
 
+    public String staticResourceOpportunity{get; private set; }// 20220221 PI鏀归�� by Bright
+    public String staticResourceContact{get; private set; }// 20220221 PI鏀归�� by Bright
+    public String staticResourceFile{get; private set; }// 20220221 PI鏀归�� by Bright
+    
+
     public QuotePDFController() {
         targetId = ApexPages.currentPage().getParameters().get('Id');
         isPrintPrice = ApexPages.currentPage().getParameters().get('printprice');
+        staticResourceOpportunity = JSON.serialize(PIHelper.getPIIntegrationInfo('Opportunity'));// 20220221 PI鏀归�� by Bright
+        staticResourceContact = JSON.serialize(PIHelper.getPIIntegrationInfo('Contact'));// 20220221 PI鏀归�� by Bright
+        staticResourceFile = JSON.serialize(PIHelper.getPIIntegrationInfo('Document'));// 20220221 PI鏀归�� by Bright
     }
 
     // 鐢婚潰鍒濆鍖�
@@ -118,6 +126,7 @@
                                       SetName16__c, SetQty16__c, SetName17__c, SetQty17__c, SetName18__c, SetQty18__c, SetName19__c, SetQty19__c, SetName20__c, SetQty20__c,
                                       SetName21__c, SetQty21__c, SetName22__c, SetQty22__c, SetName23__c, SetQty23__c, SetName24__c, SetQty24__c, SetName25__c, SetQty25__c,
                                       SetName26__c, SetQty26__c, SetName27__c, SetQty27__c, SetName28__c, SetQty28__c, SetName29__c, SetQty29__c, SetName30__c, SetQty30__c,
+                                      Opportunity.AWS_Data_Id__c,// 20220221 PI鏀归�� by Bright
                                       Custom_Price_Total__c, Custom_Price_Total_Text__c, Shipment_Term__c
                                  from Quote
                                 where Id = :targetId];
@@ -154,7 +163,9 @@
         }
         Contact con = new Contact();
         if (conid != null && conid.length() > 0) {
-            con = [select Id, Name, Phone, Email, Account.Name from Contact where Id = :conid];
+            con = [select Id, Name, Phone, Email, 
+            AWS_Data_Id__c,// 20220221 PI鏀归�� by Bright
+            Account.Name from Contact where Id = :conid];
         }
         // PDF鎶ヤ环淇℃伅
         quoteInfo = new QuoteInfo(quo, dealer, con);
@@ -215,6 +226,8 @@
         public String note5 {get; private set;}
         public String note6 {get; private set;}
         public String note7 {get; private set;}
+        public String conAwsDataId {get; private set;}
+        public String oppAwsDataId {get; private set;}
 
         public QuoteInfo(Quote quo, Account acc, Contact con) {
             printPrice = quo.PrintPrice__c;
@@ -251,6 +264,8 @@
             note5 = quo.Shipment_Term__c;
             note6 = quo.Opportunity.TradeType__c == 'Taxation' ? 'tax included' : 'tax exempted';
             note7 = quo.Opportunity.TradeType__c == 'Taxation' ? '鍚◣' : '鍏嶇◣';
+            conAwsDataId = con.aws_data_id__c; // 20220222 PI鏀归�� by Bright
+            oppAwsDataId = quo.Opportunity.aws_data_id__c;// 20220222 PI鏀归�� by Bright
         }
     }
 

--
Gitblit v1.9.1