From 69f942b58a5924e34e6c2bfdadefdcb8e6313edb Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期二, 15 十月 2024 14:34:45 +0800
Subject: [PATCH] 增加对泵属性的增加修改快捷方式

---
 WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/AddSysPropDlg.cs |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/AddSysPropDlg.cs b/WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/AddSysPropDlg.cs
index ff35bc2..ecf001d 100644
--- a/WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/AddSysPropDlg.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/AddSysPropDlg.cs
@@ -8,17 +8,18 @@
         public AddSysPropDlg()
         {
             InitializeComponent();
+            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
         }
 
-        public event Func<Yw.Dto.AddSysPropInput, Task<bool>> ReloadDataEvent = null;
+        public event Func<Yw.Vmo.SysPropVmo, Task<bool>> ReloadDataEvent = null;
 
-        private AddSysPropInput _AddPropDto { get; set; }
+        private Yw.Vmo.SysPropVmo _AddPropDto { get; set; }
 
         private long _TypeID;
 
         public async void SetBindingData(long GroupID, long TypeID)
         {
-            _AddPropDto = new AddSysPropInput();
+            _AddPropDto = new Yw.Vmo.SysPropVmo();
             _AddPropDto.GroupID = GroupID;
             _TypeID = TypeID;
         }
@@ -57,31 +58,31 @@
             // _AddPropDto.Format = TextEditFormat.Text.Trim();
             if (TextEditFormat.SelectedIndex == 0)
             {
-                _AddPropDto.Format = ePropFormat.Integer;
+                _AddPropDto.Format = (Yw.Basic.ePropFormat)ePropFormat.Integer;
             }
             else if (TextEditFormat.SelectedIndex == 1)
             {
-                _AddPropDto.Format = ePropFormat.Bigint;
+                _AddPropDto.Format = (Yw.Basic.ePropFormat)ePropFormat.Bigint;
             }
             else if (TextEditFormat.SelectedIndex == 2)
             {
-                _AddPropDto.Format = ePropFormat.Numeric;
+                _AddPropDto.Format = (Yw.Basic.ePropFormat)ePropFormat.Numeric;
             }
             else if (TextEditFormat.SelectedIndex == 3)
             {
-                _AddPropDto.Format = ePropFormat.Text;
+                _AddPropDto.Format = (Yw.Basic.ePropFormat)ePropFormat.Text;
             }
             else if (TextEditFormat.SelectedIndex == 4)
             {
-                _AddPropDto.Format = ePropFormat.MultiText;
+                _AddPropDto.Format = (Yw.Basic.ePropFormat)ePropFormat.MultiText;
             }
             else if (TextEditFormat.SelectedIndex == 5)
             {
-                _AddPropDto.Format = ePropFormat.Time;
+                _AddPropDto.Format = (Yw.Basic.ePropFormat)ePropFormat.Time;
             }
             else
             {
-                _AddPropDto.Format = ePropFormat.Boolen;
+                _AddPropDto.Format = (Yw.Basic.ePropFormat)ePropFormat.Boolen;
             }
             _AddPropDto.TypeID = _TypeID;
             if (await this.ReloadDataEvent.Invoke(_AddPropDto))

--
Gitblit v1.9.3