|
楼主 |
发表于 2013-11-11 21:18:14
|
显示全部楼层
我修改以后代码:
1)主窗口
mainActivity.listGridRowDblClick = function(event){
var data = justep.xbl('masterData');
var id = data.getCurrentRowId();
if (!!id)
mainActivity.openDetail("view", id);
};
2) 弹出窗口:
mainActivityDetail.windowReceiverReceive = function(event){
var operator = event.data.operator;
var data = justep.xbl('masterData');
if (operator == "new") {
data.newData();
}
else if (operator == "edit") {
var id = event.data.id;
data.filters.setFilter("idFilter", data.getConceptAliasName() + "='" + id + "'");
data.refreshData();
}
else if (operator == "view") {
var id = event.data.id;
data.filters.setFilter("idFilter", data.getConceptAliasName() + "='" + id + "'");
data.setReadonly(true);
data.refreshData();
}
}
希望官方提供的向导,能改进有关的生成代码,以支持 只读的查看方式!!!!!!!!!!!!!!!! |
|