public void SearchDetailList(GetShopPriceRangeReportPara para) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } List <PriceRangeReport> listPage = GlobalCache.ServerProxy.GetShopPriceRangeReport(para); this.BindingDataSource(listPage); } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void dataGridView1_SelectionChanged(object sender, EventArgs e) { if (isAll) { this.skinSplitContainer1.Panel2Collapsed = false; DataGridView view = (DataGridView)sender; DataGridViewRow row = view.CurrentRow; if (row != null && row.Index != -1 && row != currRow) { DataRowView rowView = (DataRowView)row.DataBoundItem; // PriceRangeReport ranking = (PriceRangeReport)dataGridView1.CurrentRow.DataBoundItem; if (!String.IsNullOrEmpty(rowView["StartMoney"].ToString())) { GetShopPriceRangeReportPara searchPara = new GetShopPriceRangeReportPara(); ReflectionHelper.CopyProperty(pagePara, searchPara); searchPara.StartMoney = Convert.ToInt32(rowView["StartMoney"]); RowSelected?.Invoke(searchPara, this.skinSplitContainer1.Panel2); currRow = row; } } } }