Beispiel #1
0
        private async void ChangeMobile()
        {
            var phone = Commons.ShowInputDialog(this, "请输入新手机号:", "修改手机号", 300,
                                                new Regex("^((11)|(12)|(13)|(14)|(15)|(16)|(17)|(18)|(19))\\d{9}$")).Trim();

            if (phone == "")
            {
                return;
            }

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

            d["ci-id"]  = m_ciId;
            d["mobile"] = phone;

            var p = await CrmInvestor.ChangeMobile(d);

            if (p.IsOk)
            {
                UpdateTable();
            }
            else
            {
                Commons.ShowResultErrorBox(this, p);
            }
        }