| | |
| | | |
| | | public String ProductSegment { get; set; } |
| | | |
| | | public String staticResource {get; set;} |
| | | |
| | | public String oppid {get; set;} |
| | | |
| | | public NewCrossHighOpportunityController() { |
| | | baseUrl = URL.getSalesforceBaseUrl().toExternalForm(); |
| | | String path = URL.getCurrentRequestUrl().getPath(); |
| | |
| | | |
| | | accId = System.currentPageReference().getParameters().get('accid'); |
| | | conId = System.currentPageReference().getParameters().get('conId'); |
| | | |
| | | staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Opportunity')); |
| | | |
| | | List<Account> accList = [select Id, Name, ProductSegment__c,OwnerID__c from Account where Id = :accId]; |
| | | if (accList.size() > 0) { |
| | |
| | | |
| | | hasError = false; |
| | | |
| | | oppid = opp.id; |
| | | // String url = baseUrl + '\\' + opp.Id; |
| | | // return new Pagereference(url); |
| | | return null; |
| | | String url = baseUrl + '\\' + opp.Id; |
| | | return new Pagereference(url); |
| | | } catch (Exception e) { |
| | | Database.rollback(sp); |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, e.getMessage())); |