添加插件后,在增加行的时候出现了索引超出范围的问题。
金蝶云社区-张豪杰BFQ1f6
张豪杰BFQ1f6
0人赞赏了该文章 1,340次浏览 未经作者许可,禁止转载编辑于2017年11月07日 15:47:22

this.Model.SetValue("FEntryNote", remark,e.Row);
Entity entity1 = this.Model.BusinessInfo.GetEntryEntity("FSaleOrderPlan");//单据体的标识
if (entity1 != null)
{
DynamicObjectCollection quotationObj1 = this.Model.GetEntityDataObject(entity1);
bool weightMode1 = Convert.ToBoolean(quotationObj1[e.Row]["NeedRecAdvance"]);
if (weightMode1 != false)
{
DynamicObjectCollection quotationObj2 = this.Model.GetEntityDataObject(entity1);
this.Model.SetValue("FReMark", materialModel,e.Row);

}
else
{
DynamicObjectCollection quotationObj2 = this.Model.GetEntityDataObject(entity1);

this.Model.SetValue("FReMark", materialModel2,e.Row);

}