

表单插件赋值批号,按批号录入模式要分两种情况:
1、批号录入模式为:仅批号主档
this.View.Model.SetValue("FLot", lotId, i);
lotId为批号主档内码Id,至于批号内码关联表,顺便也说一下,关联这两个表查T_BD_LOTMASTER、T_BD_LOTMASTER_L
2、批号录入模式为:批号主档与文本、仅文本
this.View.Model.SetValue("FLot", lotText, i);
lotText为批号文本
ok,讲完!
哦,对了,还有数据包赋值的方式也说一下吧
···
//得到单据体实体
Entity entity = this.View.BillBusinessInfo.GetEntity("FEntity");
//得到单据体实体数据包
DynamicObjectCollection entityRows = (DynamicObjectCollection)this.View.Model.GetEntityDataObject(entity);
for (int j = 0; j < dt_M.Rows.Count; j++)
{
DynamicObject dyo = new Dyna