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;
|
}
|
}
|
|
}
|