private void queryExamine_StartQuery(object sender, NCS.UI.Controls.QueryEventArgs e) { e.Conditions.Conditions.Add(new NCS.DataAccess.QueryCondition() { Checked = true, Operator = NCS.DataAccess.QueryConditionOperator.Equal, Property = "AUDIT_STATE", Value = 2 }); //e.Conditions.Conditions.AddRange(new NCS.DataAccess.QueryCondition[] { // new NCS.DataAccess.QueryCondition() { // Checked=true, // Property="AUDIT_STATE", // Operator=NCS.DataAccess.QueryConditionOperator.NotEqual, // Value=3 //},new NCS.DataAccess.QueryCondition() { // Checked=true, // Property="AUDIT_STATE", // Operator=NCS.DataAccess.QueryConditionOperator.NotEqual, // Value =4 //} //}); ServiceReference2.Service1Client client = new ServiceReference2.Service1Client(); client.GetStudentPendingsCompleted += (se, de) => { var list = de.Result.ConvertEntityAndCollection <System.Collections.ObjectModel.ObservableCollection <StudentPending>, StudentPending, ServiceReference2.StudentPending>(); queryExamine.FinishedQuery(list, de.recount); }; client.GetStudentPendingsAsync(e.Conditions); }