private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } this.pagePara = new GetRetailSummaryPara() { StartDate = new CJBasic.Date(this.dateTimePicker_Start.Value), EndDate = new CJBasic.Date(this.dateTimePicker_End.Value), ShopID = this.skinComboBoxShopID.SelectedValue.ToString(), }; RetailSummary listPage = GlobalCache.ServerProxy.GetRetailSummary(this.pagePara); this.BindingReturnOrderSource(listPage); } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void BindingReturnOrderSource(RetailSummary listPage) { // this.dataGridViewPagingSumCtrl.BindingDataSource(listPage?.RetailSummaryInfos); dataGridViewPagingSumCtrl.BindingDataSource(DataGridViewUtil.ListToBindingList(listPage?.RetailSummaryInfos)); this.skinSplitContainer1.Panel2Collapsed = true; }