文章目录
- 采购订单列表根据条件设置行背景色
- Python实现
- Bos配置实现-列表条件格式化
采购订单列表根据条件设置行背景色
Python实现
python脚本
import clr
clr.AddReference('System')
clr.AddReference('Kingdee.BOS')
clr.AddReference('Kingdee.BOS.Core')
clr.AddReference('System.Drawing')
clr.AddReference('System.Collections')from System import *
from System.Collections import *
from System.Collections.Generic import *
from Kingdee.BOS import *
from Kingdee.BOS.Core import *
from Kingdee.BOS.Core.Metadata import FormatCondition
from System.Drawing import *def OnFormatRowConditions(args):if(args.DataRow.ColumnContains('F_Krystal_PriceStatus') and args.DataRow['F_Krystal_PriceStatus'] is not None):if(args.DataRow['F_Krystal_PriceStatus']!='B'):fc = FormatCondition()fc.ApplayRow = Truefc.BackColor = "#FF0000"args.FormatConditions.Add(fc)
Bos配置实现-列表条件格式化
重启开发环境