报表客户过滤插件
private void FilterParameter(IRptParams filter)
{
DynamicObject dyobject = filter.FilterParameter.CustomFilter;
if (filter.FilterParameter.CustomFilter != null)
{
#region
CustIds = string.Empty;
CustIdsName = string.Empty;
CustIdsNum = string.Empty;
DynamicObjectCollection CustIds1 = dyobject["CustIds"] as DynamicObjectCollection;//客户多选
if (CustIds1.Count > 0)
{
for (int i = 0; i < CustIds1.Count; i++)
{
DynamicObject Cust = CustIds1[i]["CustIds"] as DynamicObject;
if (Cust != null)
{
CustIds = CustIds + "'" + Convert.ToInt64(Cust["ID"]) + "',";//id
CustIdsName = CustIdsName + Convert.ToString(Cust["Number"]) + ":" + Convert.ToString(Cust["Name"]) + ";";
}
}
if (!string.IsNullOrWhiteSpace(CustIds))
{
CustIds = CustIds.Substring(0, CustIds.Length - 1);
}
}
报表客户过滤插件
本文2024-09-16 18:13:36发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-20768.html