예제 #1
0
        private async void AssUpper()
        {
            var uname    = treeView1.SelectedNode.Text;
            var newUName = Commons.ShowInputDialog(this, string.Format("为客户经理 {0} 指定新的上级:", uname), "指定上级", 300).Trim();

            if (newUName == "")
            {
                return;
            }
            var d = new Dictionary <string, object>();

            d["p-name"] = newUName;
            d["u-name"] = uname;

            var p = await CrmInvestor.MoveManager(d);

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