插件获取基础资料
金蝶云社区-135xxxx9107
135xxxx9107
1人赞赏了该文章 2,742次浏览 未经作者许可,禁止转载编辑于2015年12月08日 18:46:03

// 过滤条件中基础资料字段值
private string GetDataByKey(DynamicObject doFilter, string sKey)
{
string sReturnValue = string.Empty;
if (doFilter != null && doFilter[sKey] != null && !string.IsNullOrWhiteSpace(Convert.ToString(doFilter[sKey])))
{
sReturnValue = Convert.ToString(doFilter[sKey]);
}
return sReturnValue;
}
获得代码:this.GetBaseDataByKey(customFilter, "SaleDeptFrom", "Number"); 输出 GLBGW
获得名称:this.GetBaseDataByKey(customFilter, "SaleDeptFrom", "Name"); 输出 帮哥办公设备租赁有限公司
那如果我要获得唯一标识1怎么写?比如: