コード例 #1
0
 private void queryReject_StartQuery(object sender, NCS.UI.Controls.QueryEventArgs e)
 {
     e.Conditions.Conditions.Add(new NCS.DataAccess.QueryCondition()
     {
         Checked = true, Property = "AUDIT_STATE", Operator = NCS.DataAccess.QueryConditionOperator.Equal, Value = 4
     });
     ServiceReference2.Service1Client client = new ServiceReference2.Service1Client();
     client.GetRejectStudentCompleted += (se, de) =>
     {
         var list = de.Result.ConvertEntityAndCollection <System.Collections.ObjectModel.ObservableCollection <StudentPending>, StudentPending, ServiceReference2.StudentPending>();
         queryReject.FinishedQuery(list, de.recount);
     };
     client.GetRejectStudentAsync(e.Conditions);
 }