private void LoadData() { int pageCount = 0; string filter = ""; //查询过滤条件 ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); //参数值 //filter += "licenseUser.CREATEUSERID==@" + paras.Count().ToString(); //paras.Add(Common.CurrentLoginUserInfo.EmployeeID); if (!string.IsNullOrEmpty(txtLicenseName.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "T_OA_LICENSEMASTER.LICENSENAME ^@" + paras.Count().ToString(); paras.Add(txtLicenseName.Text.Trim()); } if (!string.IsNullOrEmpty(txtContent.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "CONTENT ^@" + paras.Count().ToString(); paras.Add(txtContent.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.GetLicenseBorrowListAsync(dataPager.PageIndex, dataPager.PageSize, "CREATEDATE descending", filter, paras, pageCount, checkState, loginUserInfo); }