buli
2022-05-13 2f4492ee18f90274582fcc2bb06f5e9bf64136e8
force-app/main/default/classes/QuotePDFController.cls
@@ -83,17 +83,9 @@
        '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
    }
    // 画面初始化
@@ -126,7 +118,6 @@
                                      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];
@@ -163,9 +154,7 @@
        }
        Contact con = new Contact();
        if (conid != null && conid.length() > 0) {
            con = [select Id, Name, Phone, Email,
            AWS_Data_Id__c,// 20220221 PI改造 by Bright
            Account.Name from Contact where Id = :conid];
            con = [select Id, Name, Phone, Email, Account.Name from Contact where Id = :conid];
        }
        // PDF报价信息
        quoteInfo = new QuoteInfo(quo, dealer, con);
@@ -226,8 +215,6 @@
        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;
@@ -264,8 +251,6 @@
            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
        }
    }