|

楼主 |
发表于 2017-3-23 10:56:24
|
显示全部楼层
没有modelonload
Model.prototype.modelModelConstruct = function(event){
var tit = this.comp("titleBar1");
tit.set({"title":justep.Shell.userName.latestValue});
var appData = this.comp("baasData2");
appData.filters.setVar("pucode", justep.Shell.userCode.latestValue);
appData.filters.setVar("pstate", 0);
appData.refreshData();
};
Model.prototype.modelActive = function(event){
var appData = this.comp("baasData2");
appData.filters.setVar("pucode", justep.Shell.userCode.latestValue);
appData.filters.setVar("pstate", 0);
appData.refreshData();
};
Model.prototype.baasData2AfterRefresh = function(event){
var housecode = event.source.getValue("housecode", event.source.first());
var houseData = this.comp("baasData1");
houseData.filters.setVar("pcode",housecode);
houseData.refreshData();
}; |
|