private async void Details(object sender, bool showBatch = false) { SetBtnsEnabled(false); listView1.Items.Clear(); listView1.Tag = sender; if (showBatch) { btnBatchCommit.Visible = true; ckbAll.Visible = true; } else { btnBatchCommit.Visible = false; ckbAll.Visible = false; } ckbAll.Checked = false; var r = new Dictionary <string, object>(); r["action"] = Commons.NormalNumberStr(((Button)sender).Name); r["u-name"] = m_uName; var p = await CrmInvestor.GetInvestorByStatus(r); if (p.IsOk) { var dl = JArray.Parse(p.AsString).ToList(); foreach (var d in dl) { ListViewItem lvi = new ListViewItem(); lvi.Text = d["ciId"].ToStdString(); lvi.SubItems.Add(d["loginName"].ToStdString()); lvi.SubItems.Add(d["realName"].ToStdString()); lvi.SubItems.Add(d["mobile"].ToStdString()); lvi.SubItems.Add(CrmCommons.PrLevels.FindByValue(d["prLevel"].ToStdString())); listView1.Items.Add(lvi); } } else { Commons.ShowResultErrorBox(this, p); } SetBtnsEnabled(true); }