liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
public with sharing class ISO_DemandOperAndDemonsJumpController {
    
    public String lid { get; private set; }
    public IS_Opportunity_Demand__c isid;
 
    public ISO_DemandOperAndDemonsJumpController(IS_Opportunity_Demand__c iso){
        this.isid = iso;
    }
    public ISO_DemandOperAndDemonsJumpController(ApexPages.StandardController controller){
        this.isid = (IS_Opportunity_Demand__c)controller.getRecord();
    }
    public void init() {
        // String eid = ApexPages.currentPage().getParameters().get('id');
        
        IS_Opportunity_Demand__c isod = [select Id, Operating_Room_Count__c,Opportunity_ID__c,Demonstration_Number__c from IS_Opportunity_Demand__c where Id = :isid.Id];
        if(isod.Demonstration_Number__c == null && isod.Operating_Room_Count__c == null){
            lid = 'ISO_DemandOperAndDemons?Id='+isod.Id+'&OppoerID='+isod.Opportunity_ID__c;
        }else{
            lid = 'ISO_DemandOperAndDemonsNew?id='+isod.Id+'&OppoerID='+isod.Opportunity_ID__c;
        }
        Integer i = 0;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
        i++;
    }
}