| | |
| | | using DevExpress.Export; |
| | | using HStation.Dto; |
| | | using Mapster; |
| | | using Microsoft.VisualBasic; |
| | | using Mapster; |
| | | using Yw.Basic; |
| | | using Yw.Dto; |
| | | |
| | |
| | | public EditSysTypeDlg() |
| | | { |
| | | InitializeComponent(); |
| | | this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; |
| | | } |
| | | |
| | | public event Func<Yw.Dto.UpdateSysTypeInput, Task<bool>> ReloadDataEvent = null; |
| | | public event Func<Yw.Vmo.SysTypeVmo, Task<bool>> ReloadDataEvent = null; |
| | | |
| | | private UpdateSysTypeInput _UpdateSysTypeDto { get; set; } |
| | | private Yw.Vmo.SysTypeVmo _UpdateSysTypeDto { get; set; } |
| | | |
| | | public async void SetBindingData(long ID) |
| | | { |
| | | var dto = await new Yw.BLL.SysType().GetByID(ID); |
| | | _UpdateSysTypeDto = dto.Adapt<Yw.Dto.SysTypeDto, Yw.Dto.UpdateSysTypeInput>(); |
| | | _UpdateSysTypeDto = dto; |
| | | if (_UpdateSysTypeDto.ExtendType == eExtendType.None) |
| | | { |
| | | this.TextEditExType.SelectedIndex = 0; |
| | |
| | | } |
| | | this.TextEditName.Text = _UpdateSysTypeDto.Name; |
| | | this.TextEditDescription.Text = _UpdateSysTypeDto.Description; |
| | | this.TextEditCode.Text = _UpdateSysTypeDto.Code; |
| | | } |
| | | |
| | | //数据验证 |