lixiaojun
2024-09-26 158292021eb0b31e494b5fdc26a31c58af0bf01b
WinFrmUI/HStation.WinFrmUI.Basic/00-SysTypeManage/SysModuleListBoxCtrl.cs
@@ -1,4 +1,5 @@
using DevExpress.XtraEditors;
using Yw;
namespace HStation.WinFrmUI.Basic
{
@@ -136,12 +137,9 @@
            }
            if (MessageBoxHelper.IsClickOk("确认删除数据行?", "提示"))
                return;
            if (await _bll.IsExistByModuleID(currentVm.ID))
            {
                MessageBoxHelper.ShowWarning("存在系统类型,不可删除!");
                return;
            }
            var result = await _bll.DeleteByID(currentVm.ID);
            var result = await BLLFactory<Yw.BLL.SysModule>.Instance.DeleteByID(currentVm.ID);
            if (result)
            {
                _allBindingList.Remove(currentVm);