Shuxia Ning
2024-10-14 196635474fdbad173316b0dbeb30e4443b61297b
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);