【已解决】这样设置背景颜色红色怎么没有效果?
金蝶云社区-XJDM
XJDM
0人赞赏了该文章 2,112次浏览 未经作者许可,禁止转载编辑于2015年03月23日 11:57:03

public override void BarItemClick(BarItemClickEventArgs e)
{
String eString = e.BarItemKey.ToUpperInvariant();
switch (eString)
{
case "TBSPLITSAVE":
this.View.UpdateView("FEntity");
EntryGrid grid = this.View.GetControl("FEntity");
EntryEntity entryEntity = this.View.BusinessInfo.GetEntryEntity("FEntity");
DynamicObjectCollection entityContactIds = this.View.Model.GetEntityDataObject(entryEntity);

int j = 0;
foreach (DynamicObject contract in entityContactIds)
{
if (false.Equals(this.View.Model.GetValue("F_DM_IsWorkTime", j)))
{
grid.SetBackcolor("FSeq", "#FF0000", j); grid.SetBackcolor("F_DM_Date", "#FF0000", j);
grid.SetBackcolor("F_DM_DateType", "#FF0000", j);
grid.SetBackcolor("F_DM_IsWorkTime", "#FF0000", j);
grid.SetBackcolor("F_DM_Class", "#FF0000", j);
}