销售订单手工行关闭,单据体行变色原创
金蝶云社区-烧麦
烧麦
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)#设置整行颜色

image.png

https://vip.kingdee.com/link/s/lwX9B

https://vip.kingdee.com/link/s/lOSc7

赞 16