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

    #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

posted @ 2016-06-29 11:53  范永强  阅读(209)  评论(0编辑  收藏  举报