| | |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | public event Func<Yw.Dto.AddSysPropInput, Task<bool>> ReloadDataEvent = null; |
| | | public event Func<Yw.Vmo.SysProp, Task<bool>> ReloadDataEvent = null; |
| | | |
| | | private AddSysPropInput _AddPropDto { get; set; } |
| | | private Yw.Vmo.SysProp _AddPropDto { get; set; } |
| | | |
| | | private long _TypeID; |
| | | |
| | | public async void SetBindingData(long GroupID, long TypeID) |
| | | { |
| | | _AddPropDto = new AddSysPropInput(); |
| | | _AddPropDto = new Yw.Vmo.SysProp(); |
| | | _AddPropDto.GroupID = GroupID; |
| | | _TypeID = TypeID; |
| | | } |
| | |
| | | // _AddPropDto.Format = TextEditFormat.Text.Trim(); |
| | | if (TextEditFormat.SelectedIndex == 0) |
| | | { |
| | | _AddPropDto.Format = ePropFormat.Integer; |
| | | _AddPropDto.Format = (Yw.Vmo.Core.ePropFormat)ePropFormat.Integer; |
| | | } |
| | | else if (TextEditFormat.SelectedIndex == 1) |
| | | { |
| | | _AddPropDto.Format = ePropFormat.Bigint; |
| | | _AddPropDto.Format = (Yw.Vmo.Core.ePropFormat)ePropFormat.Bigint; |
| | | } |
| | | else if (TextEditFormat.SelectedIndex == 2) |
| | | { |
| | | _AddPropDto.Format = ePropFormat.Numeric; |
| | | _AddPropDto.Format = (Yw.Vmo.Core.ePropFormat)ePropFormat.Numeric; |
| | | } |
| | | else if (TextEditFormat.SelectedIndex == 3) |
| | | { |
| | | _AddPropDto.Format = ePropFormat.Text; |
| | | _AddPropDto.Format = (Yw.Vmo.Core.ePropFormat)ePropFormat.Text; |
| | | } |
| | | else if (TextEditFormat.SelectedIndex == 4) |
| | | { |
| | | _AddPropDto.Format = ePropFormat.MultiText; |
| | | _AddPropDto.Format = (Yw.Vmo.Core.ePropFormat)ePropFormat.MultiText; |
| | | } |
| | | else if (TextEditFormat.SelectedIndex == 5) |
| | | { |
| | | _AddPropDto.Format = ePropFormat.Time; |
| | | _AddPropDto.Format = (Yw.Vmo.Core.ePropFormat)ePropFormat.Time; |
| | | } |
| | | else |
| | | { |
| | | _AddPropDto.Format = ePropFormat.Boolen; |
| | | _AddPropDto.Format = (Yw.Vmo.Core.ePropFormat)ePropFormat.Boolen; |
| | | } |
| | | _AddPropDto.TypeID = _TypeID; |
| | | if (await this.ReloadDataEvent.Invoke(_AddPropDto)) |