多选基础资料赋值
第一种:表单插件
//操作工
DynamicObjectCollection FOperation = dynamicObject["OperatorId"] as DynamicObjectCollection;
//获取单据体操作工id集合
DynamicObjectCollection entryOp =this.View.Model.GetValue("FOperatorId") as DynamicObjectCollection;
if (FOperation.Count > 0)
{
//多选基础资料主键集合
MulBaseDataField mulField = this.View.BusinessInfo.GetField("FOperatorId") as MulBaseDataField;
string[] pkValues = FOperation.Select(p => p[mulField.RefIDDynamicProperty.Name].ToString()).Distinct().ToArray();
////给单据上面的多选基础资料字段B赋值
//this.View.Model.SetValue("FMulBaseB", pkValues, e.Row);
//获取单据体行数
int row_count = this.View.Model.GetEntryRowCount("FEntity");
for (int i = 0; i < row_count; i++)
{
this.View.Model.SetValue("FOperatorId", pkValues, i);
this.View.Model.SetValue("FOperatornumber", FOperation[0]["OperatorId_Id"], i);
}
}
有服务插件多选基础资料赋值的分享吗?谢谢!
学习
多选基础资料赋值
本文2024-09-16 18:42:41发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-23907.html