两行代码根据不同条件设置字段颜色
from Kingdee.BOS.Core.Bill import * from Kingdee.BOS.Core.DynamicForm.PlugIn import * from Kingdee.BOS.Core.DynamicForm.PlugIn.ControlModel import * from System import * from System.Data import * from Kingdee.BOS.App.Data import * from System.Collections.Generic import List from Kingdee.BOS.ServiceHelper import * from Kingdee.BOS.Core.DynamicForm import * from Kingdee.BOS.Core.Metadata.EntityElement import * from Kingdee.BOS.Core.Metadata.FieldElement import * from Kingdee.BOS.Orm.DataEntity import * def DataChanged(e): if(e.Field.Key=="FCONTACTUNITTYPE"): sd=this.Model.GetValue("FCONTACTUNITTYPE",0) if(sd=="BD_Customer"): this.View.GetControl("FCausa").SetCustomPropertyValue("ForeColor", "#FF3300") else: this.View.GetControl("FCausa").SetCustomPropertyValue("ForeColor", "#FF66FF")
两行代码根据不同条件设置字段颜色
from Kingdee.BOS.Core.Bill import *from Kingdee.BOS.Core.DynamicForm.PlugIn import *from Kingdee.BOS.Core.DynamicForm.PlugIn.Contr...
点击下载文档
本文2024-09-16 17:46:09发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-17812.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章