销售订单手工行关闭,单据体行变色原创
16人赞赏了该文章
171次浏览
编辑于2024年06月24日 13:16:40
销售订单,手工行关闭单据体颜色改变
import clr clr.AddReference('mscorlib') from System import * def AfterBindData(e): SetBackColor() def DataChanged(e): #是否手工行关闭标识 if e.Field.Key == "FManualRowClose": SetBackColor() def SetBackColor(): #单据体标识 entity = this.View.BusinessInfo.GetEntity("FSaleOrderEntry") entrys = this.View.Model.GetEntityDataObject(entity) grid = this.View.GetControl(entity.Key) for entry in entrys: rowIndex = this.View.Model.GetRowIndex(entity, entry) if entry["ManualRowClose"] == 1:#去掉F grid.SetRowBackcolor("#FFFF00",rowIndex)#设置整行颜色
https://vip.kingdee.com/link/s/lwX9B
https://vip.kingdee.com/link/s/lOSc7
推荐阅读