private void GetDetailsQueryData() { try { this.Cursor = Cursors.WaitCursor; bool bResult = false; string strErr = string.Empty; GetQueryDetails(); ChensControl.DividPage clientPage = pageDetail.dDividPage; Common.Common_Func.GetServerPageFromClientPage(ref _serverDetailsPage, clientPage); bResult = Basic_Func.GetAreaListByPage(ref lstDetails, queryDetails, ref _serverDetailsPage, ref strErr); Common.Common_Func.GetClientPageFromServerPage(_serverDetailsPage, ref clientPage); pageDetail.ShowPage(); dgvDetail.DataSource = lstDetails; if (!bResult || !string.IsNullOrEmpty(strErr)) { Common.Common_Func.ErrorMessage(strErr, "查询失败"); } } catch (Exception ex) { Common.Common_Func.ErrorMessage(ex.Message, "查询失败"); } finally { this.Cursor = Cursors.Default; } }