private void LoadData() { int pageCount = 0; string filter = ""; //查询过滤条件 ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); //参数值 if (!string.IsNullOrEmpty(txtOrgCode.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "ORGCODE ^@" + paras.Count().ToString(); paras.Add(txtOrgCode.Text.Trim()); } if (!string.IsNullOrEmpty(txtOrgName.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "ORGNAME ^@" + paras.Count().ToString(); paras.Add(txtOrgName.Text.Trim()); } SMT.SaaS.OA.UI.SmtOADocumentAdminService.LoginUserInfo loginUserInfo = new SMT.SaaS.OA.UI.SmtOADocumentAdminService.LoginUserInfo(); loginUserInfo.companyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; loginUserInfo.userID = Common.CurrentLoginUserInfo.EmployeeID; loadbar.Start(); client.GetOrganListAsync(dataPager.PageIndex, dataPager.PageSize, "CREATEDATE descending", filter, paras, pageCount, checkState, loginUserInfo); }