#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