原理:
在标准表单插件中有2个全局变量(upDataList、downDataList)分别存着“对账单”和“流水账”的原始数据,我们只需要把这2个数据源进行筛选后,重新赋值到另外的2个全局变量(thisUpDataList、thisDownDataList)并且把数据绑定到页面的单据体上面即可实现筛选。
部署方法:继承并在bos ide中替换标准产品表单插件Kingdee.K3.FIN.CN.Business.PlugIn.BankAcntCheck.BankAcntCheck
筛选方法:
var list=this.downDataList.Where(d=>筛选条件).ToList();
this.thisDownDataList=list;
this.View.Model.DeleteEntryData(BankCheckConst.ENTITY_FBankTransList);//删除界面上数据
for (int i = 0; i < list.Count; i++)
{
this.BindDownEntryRow(i, list[i]);//重新绑定
}
this.View.UpdateView(BankCheckConst.ENTITY_FBankTransList);//更新
和
var list=this.upDataList.Where(d=>筛选条件).ToList();
this.thisUpDataList=list;
this.View.Model.DeleteEntryData(BankCheckConst.ENTITY_FBankStateEntity);
for (int i = 0; i < list.Count; i++)
{
this.BindUpEntryRow(i, list[i]);
}
this.View.UpdateView(BankCheckConst.ENTITY_FBankStateEntity);
推荐阅读