duheng
2024-08-12 1a12ef2743134f7fdea6d0abbfec34543b85bdb5
WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/EditSysPropGrouoDlg.cs
@@ -1,5 +1,4 @@
using Mapster;
using Yw.Basic;
using Yw.Dto;
namespace HStation.WinFrmUI.Basic
@@ -11,14 +10,13 @@
            InitializeComponent();
        }
        public event Func<Yw.Dto.UpdateSysPropGroupInput, Task<bool>> ReloadDataEvent = null;
        public event Func<Yw.Vmo.SysPropGroup, Task<bool>> ReloadDataEvent = null;
        private UpdateSysPropGroupInput _UpdatePropGroupDto { get; set; }
        private Yw.Vmo.SysPropGroup _UpdatePropGroupDto { get; set; }
        public async void SetBindingData(long ID)
        {
            var model = await new Yw.BLL.SysPropGroup().GetByID(ID);
            _UpdatePropGroupDto = model.Adapt<UpdateSysPropGroupInput>();
            this.TextEditName.Text = model.Name;
            this.TextEditDescription.Text = model.Description;
            this.TextEditCode.Text = model.Code;