//点击搜索按钮 private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } this.pagePara = new GetConfusedStoreAdjustRecordPagePara() { CostumeID = skinTextBox_costumeID.Text, ShopID = ValidateUtil.CheckEmptyValue(skinComboBoxShopID.SelectedValue), PageIndex = 0, PageSize = this.dataGridViewPagingSumCtrl.PageSize, }; ConfusedStoreAdjustRecordPage listPage = CommonGlobalCache.ServerProxy.GetConfusedStoreAdjustRecordPage(this.pagePara); dataGridViewPagingSumCtrl.OrderPara = pagePara; this.dataGridViewPagingSumCtrl.Initialize(listPage); this.BindingConfusedStoreAdjustRecordDateSource(listPage); } catch (Exception ee) { ShowError(ee); } finally { UnLockPage(); } }
private void Initialize() { this.pagePara = new GetConfusedStoreAdjustRecordPagePara(); this.dataGridViewPagingSumCtrl.Initialize(1); this.dataGridView1.DataSource = null; }