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);
}
}
推荐阅读