/// <summary> /// 查询 /// </summary> private void Search(int currentPage) { int recordCount = bCompany.GetRecordCount(GetConduction()); if (recordCount < 0) { MessageBox.Show("查询的信息不存在!", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); } //分页标签初始化 this.pgControl.init(GetTotalPage(recordCount), currentPage); //数据绑定 BindData(currentPage); //初始化工具条 this.MasterToolBar.SetMasterToolsBar(GetDataTabelRowsCount(_currentDt)); }