dangsn
2024-12-26 4e9ff2ce6a830bb2340d7c8612c72eea0c5a553e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.vci.client.framework.rightConfig.functiontree;
 
import com.vci.client.LogonApplication;
import com.vci.client.framework.delegate.FunctionClientDelegate;
import com.vci.client.framework.rightConfig.object.FunctionObject;
import com.vci.client.ui.exception.VCIException;
 
public class FunctionHelper {
    private static FunctionClientDelegate funcDelegate = null;
    
    public static int getChildType(FunctionObject func) {
        if (funcDelegate == null) {
            funcDelegate = new FunctionClientDelegate(LogonApplication.getUserEntityObject());
        }
        
        try {
            return funcDelegate.checkChildObject(func.getId());
        } catch (VCIException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return 0;
    }
}