单据体过滤条件的设置
金蝶云社区-158xxxx3042Pv54T3
158xxxx3042Pv54T3
3人赞赏了该文章 2896次浏览 未经作者许可,禁止转载编辑于2018年01月12日 17:34:36
public override void EntityRowClick(EntityRowClickEventArgs e)
{
base.EntityRowClick(e);
if (e.Key == "FENTITY")
{
int entryCurrentRowIndex = this.Model.GetEntryCurrentRowIndex("FEntity");
DynamicObject dy = this.Model.GetValue("F_BAM_PurMaterial", entryCurrentRowIndex) as DynamicObject;
if (dy != null)
{
string F_BAM_Kind = dy["id"].ToString();
EntryGrid grid = this.View.GetControl("F_BAM_Entity");
grid.SetFilterString("[F_BAM_Kind]='" + F_BAM_Kind + "'"); //[F_BAM_Kind_id](基础资料)
this.View.UpdateView("F_BAM_Entity");
}
}
}
在单据体1触发行点击事件后 单据体2根据单据体1的字段来进行过滤数据。
执行后没有过滤出数据。