| | |
| | | namespace HStation.WinFrmUI.Assets |
| | | { |
| | | public partial class AddAssetsNozzleSeriesDlg : DevExpress.XtraEditors.XtraForm |
| | | public partial class AddAssetsSprinklerSeriesDlg : DevExpress.XtraEditors.XtraForm |
| | | { |
| | | public AddAssetsNozzleSeriesDlg() |
| | | public AddAssetsSprinklerSeriesDlg() |
| | | { |
| | | InitializeComponent(); |
| | | this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; |
| | | } |
| | | |
| | | public event Func<Vmo.AssetsNozzleSeriesVmo, Task<bool>> ReloadDataEvent = null; |
| | | public event Func<Vmo.AssetsSprinklerSeriesVmo, Task<bool>> ReloadDataEvent = null; |
| | | |
| | | //数据验证 |
| | | private bool Valid() |
| | |
| | | { |
| | | if (!Valid()) |
| | | return; |
| | | var model = new Vmo.AssetsNozzleSeriesVmo(); |
| | | var model = new Vmo.AssetsSprinklerSeriesVmo(); |
| | | model.Name = NameTextEdit.Text; |
| | | model.TagName = TagNameTextEdit.Text; |
| | | model.Description = DescriptionTextEdit.Text; |