Example #1
0
        private async void ChangeLevel()
        {
            var level = Commons.ShowComboboxInputDialog(this, INVESTOR_LEVEL, "请选择账户级别:",
                                                        string.Format("修改级别-{0}", m_auId), INVESTOR_LEVEL.FindByText(tbInvestorLevel.Text), 300);

            if (level == "-1")
            {
                return;
            }

            var d = new Dictionary <string, object>();

            d["au-id"] = m_auId;
            d["lev"]   = level;

            var p = await InvestPersons.UpdateLevel(d);

            if (p.IsOk)
            {
                UpdateTable();
                Commons.ShowInfoBox(this, "修改成功");
            }
            else
            {
                Commons.ShowResultErrorBox(this, p);
            }
        }