Python版本自由批量填充

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:2

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版本自由批量填充

def EntryBarItemClick(e): djzt=this.View.Model.GetValue("FDocumentStatus"); if djzt in ['B','C']:return; entity="FS...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息