想实现文本字体变大和背景色,文本颜色;效果图如下:
这是两个分组标题和两个标签控件实现的,先在BOS里面增加两个标签控件,因为显示数据是数字型的,所以默认为0.00;然后加了两个分组标题放在上面;插件代码如下:
def AfterBindData(e):
this.View.GetControl("F_ora_Lable").SetCustomPropertyValue("BackColor", "#000000");
this.View.GetControl("F_ora_Lable1").SetCustomPropertyValue("BackColor", "#000000");
def DataChanged(e):
fldKey=e.Field.Key.ToUpperInvariant();#字段标识大写
if(fldKey=="F_ora_Combo".ToUpperInvariant()):
newValue1=this.View.Model.GetValue("F_ora_Decimal6");
newValue2=this.View.Model.GetValue("F_ora_Decimal7");
#newValue1=e.F_ora_Decimal6;
#newValue2=e.F_ora_Decimal7;
this.View.GetControl("F_ora_Lable").SetValue(newValue1);
this.View.GetControl("F_ora_Lable1").SetValue(newValue2);