wangting
2024-09-27 a3e87f78ee262ca9bb7d9b0c997639d5f3295890
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
package com.vci.client.uif.engine.client.tableArea.editable;
 
import com.vci.client.portal.utility.UITools;
import com.vci.corba.common.VCIError;
import com.vci.corba.portal.data.PLUILayout;
 
 
public class GetContextDefinationInterfaceImp implements GetContextDefinationInterface {
    @Override
    public PLUILayout getContextDefinationInterface(String btmName , String contextCode) {
        PLUILayout plpagelayoutdefination = null;
        try {
            //获得业务类型中所有的上下并循环查找与contextCode对应的上下文
            PLUILayout[] plpagelayoutdefinations = UITools.getService().getPLUILayoutsByRelatedType(btmName);
            if(plpagelayoutdefinations != null){
                int length = plpagelayoutdefinations.length;
                for(int i=0; i<length; i++){
                    if(plpagelayoutdefinations[i].plCode.equalsIgnoreCase(contextCode)){
                        plpagelayoutdefination = plpagelayoutdefinations[i];
                        break;
                    }
                }
            }
        } catch (VCIError e) {
            e.printStackTrace();
        }
        return plpagelayoutdefination;
    }
}