Пример #1
0
        private async void DeleteBorOrg(IList <long> idArray)
        {
            btnBorOrgDel.Enabled = false;
            var ss = idArray.JoinSome();

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

                    if (p.IsOk)
                    {
                        myGridViewBinding4.BindTo(p, Commons.BindFlag.Delete, "bpmoId");
                    }
                    else
                    {
                        Commons.ShowResultErrorBox(this, p);
                    }
                }
                Commons.ShowInfoBox(this, "借款机构:" + ss + " 已被删除。");
            }
            btnBorOrgDel.Enabled = true;
        }