首页 > 编程语言 >Python脚本实现单据体背景色及字段前景色设置

Python脚本实现单据体背景色及字段前景色设置

时间:2023-03-15 11:32:46浏览次数:57  
标签:Core Key Python BOS 及字段 Kingdee 背景色 grid 设置


#PythonEntitySetColor
clr.AddReference('Kingdee.BOS.Core')
from Kingdee.BOS.Core.DynamicForm.PlugIn.ControlModel import *

def AfterEntryBarItemClick(e):
grid = this.View.GetControl[EntryGrid]("FSaleOrderEntry")#需要设置的单据体标识Key
grid.SetRowBackcolor("#FFFF00", 0)#设置整行背景颜色
grid.SetForecolor("FMaterialName","#FF0000", 0)#需要设置字段标识Key


标签:Core,Key,Python,BOS,及字段,Kingdee,背景色,grid,设置
From: https://blog.51cto.com/u_3189688/6122542

相关文章