private void LoadData() { int pageCount = 0; string filter = ""; //查询过滤条件 ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); //参数值 if (!string.IsNullOrEmpty(txtLicenseName.Text.Trim())) { 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()); } //if (CBLendState.SelectedIndex > 0) //{ // if (CBLendState.SelectedIndex == 1) // { // lendFlag = "0"; // } // if (CBLendState.SelectedIndex == 2) // { // lendFlag = "1"; // } //} SMT.SaaS.OA.UI.SmtOADocumentAdminService.LoginUserInfo loginUserInfo = new SMT.SaaS.OA.UI.SmtOADocumentAdminService.LoginUserInfo(); loginUserInfo.userID = Common.CurrentLoginUserInfo.EmployeeID; loginUserInfo.companyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; loadbar.Start(); client.GetBorrowAppListAsync(dataPager.PageIndex, dataPager.PageSize, "CREATEDATE descending", filter, paras, pageCount, lendFlag, loginUserInfo); }