我正在使用 AR303000 屏幕搜索客户。如果我添加多个过滤器,则仅应用第一个过滤器。此外,结果集不包括 GeneralInfoMainAddress 行。这可能是过滤器不工作的原因。
AR303000内容 AR303000 = context.AR303000GetSchema(); 上下文.AR303000Clear();
List<Command> cmds = new List<Command>();
cmds.Add(AR303000.CustomerSummary.ServiceCommands.EveryCustomerID);
cmds.Add(AR303000.CustomerSummary.CustomerID);
cmds.Add(AR303000.CustomerSummary.CustomerName);
cmds.Add(AR303000.GeneralInfoMainAddress.AddressLine1);
cmds.Add(AR303000.GeneralInfoMainAddress.City);
cmds.Add(AR303000.GeneralInfoMainAddress.State);
cmds.Add(AR303000.GeneralInfoMainAddress.PostalCode);
List<Filter> filters = new List<Filter>();
filters.Add(new Filter()
{
Field = new Field()
{
FieldName = AR303000.CustomerSummary.CustomerName.FieldName,
ObjectName = AR303000.CustomerSummary.CustomerName.ObjectName
},
Condition = FilterCondition.Contain,
Value = "DOE, JOHN",
Operator = FilterOperator.And
});
filters.Add(new Filter()
{
Field = new Field()
{
FieldName = AR303000.GeneralInfoMainAddress.AddressLine1.FieldName,
ObjectName = AR303000.GeneralInfoMainAddress.AddressLine1.ObjectName
},
Condition = FilterCondition.Contain,
Value = "255",
Operator = FilterOperator.And
});
var AR303000Export = context.AR303000Export(cmds.ToArray(), filters.ToArray(), 0, false, false);
return AR303000Export[0][0];