| | |
| | | using SqlSugar; |
| | | using Yw.Basic; |
| | | using Yw.Basic; |
| | | using Yw.Dto; |
| | | |
| | | namespace HStation.WinFrmUI.Basic |
| | |
| | | public AddSysTypeDlg() |
| | | { |
| | | InitializeComponent(); |
| | | this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; |
| | | } |
| | | |
| | | public event Func<Yw.Dto.AddSysTypeInput, Task<bool>> ReloadDataEvent = null; |
| | | public event Func<Yw.Vmo.SysTypeVmo, Task<bool>> ReloadDataEvent = null; |
| | | |
| | | private AddSysTypeInput _AddSysTypeDto { get; set; } |
| | | private Yw.Vmo.SysTypeVmo _AddSysTypeDto { get; set; } |
| | | |
| | | public void SetBindingData(long ID) |
| | | { |
| | | _AddSysTypeDto = new AddSysTypeInput(); |
| | | _AddSysTypeDto = new Yw.Vmo.SysTypeVmo(); |
| | | _AddSysTypeDto.ModuleID = ID; |
| | | } |
| | | |
| | |
| | | return; |
| | | _AddSysTypeDto.Name = TextEditName.Text.Trim(); |
| | | _AddSysTypeDto.Description = TextEditDescription.Text.Trim(); |
| | | _AddSysTypeDto.Code = TextEditCode.Text.Trim(); |
| | | if (this.TextEditExtendType.SelectedIndex == 0) |
| | | { |
| | | _AddSysTypeDto.ExtendType = eExtendType.Config; |