| | |
| | | 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; |