This commit is contained in:
2025-07-26 18:31:01 +08:00
parent 74dd275168
commit 1e85ccf537
4 changed files with 33 additions and 6 deletions

View File

@@ -26,6 +26,9 @@ def BarItemClick(e):
if (e.BarItemKey == "YTKJ_chongzhi"):
SelectRows = this.View.SelectedDataRows
Rowidlist = []
if(SelectRows==None):
this.View.ShowMessage("请先选择数据行")
return
for item in SelectRows:
Rowid = "'"+item["主键"].ToString()+"'"
Rowidlist.append(Rowid)
@@ -34,4 +37,4 @@ def BarItemClick(e):
res=DBUtils.Execute(this.Context, sql)
if res>0:
this.View.InvokeFormOperation("Refresh")
this.View.ShowMessage("重置了"+res.ToString()+"条数据")
this.View.ShowMessage("重置了"+res.ToString()+"条数据")