| | |
| | | public String rtUrl { get; set; } |
| | | |
| | | public String ProductSegment { get; set; } |
| | | public String staticResource {get; set;} |
| | | public String opportunityAWSDataId{get; set;} |
| | | |
| | | public NewReplacementOpportunityController() { |
| | | baseUrl = URL.getSalesforceBaseUrl().toExternalForm(); |
| | |
| | | opp.AccountId = acc.Id; |
| | | opp.Account = acc; |
| | | opp.ProductSegment__c = acc.ProductSegment__c; |
| | | opp.Type = 'Not Traget'; |
| | | opp.Type = '非目标'; |
| | | opp.SalesChannel__c = 'dealer'; |
| | | opp.NewInquiryDate__c = Date.today(); |
| | | opp.StageName = 'Prospect Created'; |
| | |
| | | if (UserInfo.getUserType() == 'PowerPartner' && acc.ProductSegment__c != 'BS') { |
| | | opp.Dealer__c = dealerId; |
| | | } |
| | | staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Opportunity')); |
| | | |
| | | return null; |
| | | } |
| | | |