简单帐表中什么获取值
金蝶云社区-tianxia1140
tianxia1140
0人赞赏了该文章 1,518次浏览 未经作者许可,禁止转载编辑于2014年06月27日 15:14:12

简单帐表做好后,什么获取选中行的值。
public override void AfterBarItemClick(AfterBarItemClickEventArgs e)
{
switch (e.BarItemKey.ToUpper())
{
case "TBDATA_BTN":
int row = this.View.Model.GetEntryCurrentRowIndex("FList");
DynamicObject entryDatas =
this.View.Model.GetEntityDataObject(this.View.Model.BillBusinessInfo.GetEntity("FList"), row);
object a = this.View.Model.GetValue("FDEPTID", row);
break;
}
}
int row = this.View.Model.GetEntryCurrentRowIndex("FList"); 这样可以取到选中行。但是
object a = this.View.Model.GetValue("FDEPTID", row); 这样取不到值,为Null。
DynamicObject entryDatas =
this.View.Model.GetEntityDataObject(this.View.Model.BillBusinessInfo.GetEntity("FList"), row);
这样的值也为null