11
This commit is contained in:
@@ -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()+"条数据")
|
||||
|
||||
Reference in New Issue
Block a user