var F_JNXM_CFSplitEntry = DataEntity["F_JNXM_CFSplitEntry"] as DynamicObjectCollection;//拆单明细
var matchEntrys = F_JNXM_CFSplitEntry.Where(p => p["F_JNXM_MaterialCategory"].GetStringJNXM().Contains("五金"));//过滤五金分录行
if (matchEntrys != null && matchEntrys.Count() > 0)
{
foreach (var matchEntry in matchEntrys)
{
F_JNXM_CFSplitEntry.Remove(matchEntry);//先移除拆单明细中原有的五金明细行
}
}
标签:CFSplitEntry,元素,Remove,var,JNXM,matchEntrys,集合,五金 From: https://www.cnblogs.com/zouhuaxin/p/17720577.html