Python版本自由批量填充
def EntryBarItemClick(e): djzt=this.View.Model.GetValue("FDocumentStatus"); if djzt in ['B','C']:return; entity="FSaleOrderEntry"; rowindex=this.View.Model.GetEntryCurrentRowIndex(entity); if e.BarItemKey=="xdtj": field=this.View.GetControl(entity).GetFocusField() data=this.View.Model.GetValue(field,rowindex) objs=this.View.Model.GetEntityDataObject(this.View.BusinessInfo.GetEntity(entity)) checkRows = [x for x in objs if bool(x["F_CheckBox"])] for item in checkRows: r=objs.IndexOf(item) this.View.Model.SetValue(field,data,r) this.View.InvokeFieldUpdateService(field,r) this.View.UpdateView(field,r) field="F_CheckBox" allRows= [x for x in objs] for item in allRows: r=objs.IndexOf(item) this.View.Model.SetValue(field,data,r) this.View.InvokeFieldUpdateService(field,r) this.View.UpdateView(field,r)
Python版本自由批量填充
本文2024-09-16 17:43:06发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-17509.html