liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
public with sharing class CreateSolCloneController {
    public ApexPages.StandardController solController; 
    public Solution_Programme__c objsol {get;set;} 
    public CreateSolCloneController(ApexPages.StandardController stdController) 
    { 
        solController = stdController; 
        this.objsol = (Solution_Programme__c)stdController.getRecord(); 
    } 
    public PageReference checkRecordTypeEDIT() 
    { 
        PageReference page; 
        if(this.objsol.id != null) 
        { 
            page = new PageReference('/'+this.objsol.id+System.label.solClone_url+this.objsol.id); 
        } 
        return page; 
    } 
}