|
楼主 |
发表于 2016-7-10 15:07:23
|
显示全部楼层
本帖最后由 chenjim 于 2016-7-10 15:09 编辑
兄弟帮帮忙!!!! SQL2005 express savedata();无法更新数据,用mysql就可以更新。记账本account
代码 list.w
Model.prototype.addAccBtnClick = function(event){
this.comp("windowDialog1").open({
"data" : {
"operate" : "new"
}
});
};
Model.prototype.windowDialog1Received = function(event){
this.comp("accountData").saveData({onSuccess:function() {
justep.Util.hint("保存成功");
}});
};
detail.w
Model.prototype.modelParamsReceive = function(event){
var data = this.comp("accountData");
if(event.params.data.operate =="new"){
data.newData({
"defaultValues" : [ {
"fID" : justep.UUID.createUUID(),
"fCreateTime" : new Date(),
"fDate" : new Date(),
"fType" : "支出"
} ]
});
}
};
Model.prototype.okBtnClick = function(event){
this.owner.send(this.comp("accountData").getCurrentRow());
this.comp("window").close();
};
|
|