单据转换时给多选基础资料赋值,报错列被标记为只读
金蝶云社区-时向宇
时向宇
1人赞赏了该文章 2,004次浏览 未经作者许可,禁止转载编辑于2015年12月01日 15:25:53

单据转换时给多选基础资料赋值,报错列被标记为只读,哪位大神帮看下{:3_65:},感激不尽~

if (settleorg != null)
{
string strSql0 = string.Format(@" select u.fuserid from t_Sec_User u
left join t_sec_userorg uo on uo.fuserid=u.fuserid
left join t_sec_userrolemap ur on ur.fentityid=uo.fentityid where ur.froleid=1002922 and uo.forgid={0} and u.ftype='1'", settleorg["Id"]);
DynamicObjectCollection collections0 = DBServiceHelper.ExecuteDynamicObject(this.Context, strSql0);
Array ids = collections0.Select(p => p["fuserid"]).ToArray();
if (collections0.IsEmpty() == false)
{
billEntity.DataEntity["FUSER"] = ids;
}
}