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
30
31
32
33
34
35
36
37
package com.vci.client.uif.actions.client;
 
import com.vci.mw.ClientContextVariable;
 
/**
 * 刷新按钮
 * @author VCI-STGK006
 *
 */
public class RefreshAction extends DoseNotSelectDataAction{
    
    @Override
    public String getKey() {
        return REFRESH;
    }
 
    @Override
    public boolean doPost() {
        try {
            //得到上下文数据
            //Map<String, String> paramsMap = getButtonParams();
            //DataModelFactory factory = new DataModelFactory();
            //String type = paramsMap.get("type").toString();
            //String context = paramsMap.get("context").toString();
            //PLDefination defination = getDefination();
            
            //执行刷新事件
            getDataModel().refresh(getDataModel());
            return true;
        } catch (Exception e){
            UIFUtils.showErrorMessage(ClientContextVariable.getFrame(), 
                    "uifmodel.plm.uif.actions.refresherror", e);
            return false;
        }
    }
 
}