예제 #1
0
        private async void DeleteBorPer(IList <long> idArray)
        {
            var ss = idArray.JoinSome();

            if (Commons.ShowConfirmBox(this, "删除以下借款人:" + ss + " 此操作不可恢复!确认吗?"))
            {
                foreach (var id in idArray)
                {
                    var p = await Projects.BorrowPerDel(m_pId, id);

                    if (p.IsOk)
                    {
                        myGridViewBinding3.BindTo(p, Commons.BindFlag.Delete, "bpmpId");
                    }
                    else
                    {
                        Commons.ShowResultErrorBox(this, p);
                    }
                }
                Commons.ShowInfoBox(this, "借款人:" + ss + " 已被删除。");
            }
        }