public override void BarItemClick(BarItemClickEventArgs e)
{
String eString = e.BarItemKey.ToUpperInvariant();
switch (eString)
{
case "TBSPLITSAVE":
this.View.UpdateView("FEntity");
EntryGrid grid = this.View.GetControl
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);
}
推荐阅读