From 278e94cb1b045288d1205f36b67f60cb5224754c Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期三, 06 十一月 2024 11:50:19 +0800
Subject: [PATCH] 属性调整

---
 WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/AddThreeLinkMainDlg.cs |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/AddThreeLinkMainDlg.cs b/WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/AddThreeLinkMainDlg.cs
index 5bb903b..d191c0e 100644
--- a/WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/AddThreeLinkMainDlg.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/AddThreeLinkMainDlg.cs
@@ -2,19 +2,19 @@
 
 namespace HStation.WinFrmUI.Assets
 {
-    public partial class AddThreeLinkMainDlg : DevExpress.XtraEditors.XtraForm
+    public partial class AddAssetsThreelinkMainDlg : DevExpress.XtraEditors.XtraForm
     {
-        public AddThreeLinkMainDlg()
+        public AddAssetsThreelinkMainDlg()
         {
             InitializeComponent();
             this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
         }
 
-        private Vmo.ThreeLinkMainVmo _ThreeLinkVmo = null;
+        private Vmo.AssetsThreelinkMainVmo _ThreeLinkVmo = null;
 
         public async void SetBindingData(long SeriesID)
         {
-            _ThreeLinkVmo = new Vmo.ThreeLinkMainVmo();
+            _ThreeLinkVmo = new Vmo.AssetsThreelinkMainVmo();
             _ThreeLinkVmo.SeriesID = SeriesID;
             var allCaliber = await new Yw.BLL.SysDictData().GetByTypeCode("1");
             if (allCaliber != null)
@@ -38,7 +38,7 @@
             TextEditMaterial.SelectedIndex = 0;
         }
 
-        public event Func<Vmo.ThreeLinkMainVmo, Task<bool>> ReloadDataEvent = null;
+        public event Func<Vmo.AssetsThreelinkMainVmo, Task<bool>> ReloadDataEvent = null;
 
         //鏁版嵁楠岃瘉
         private bool Valid()
@@ -74,9 +74,17 @@
             {
                 _ThreeLinkVmo.Caliber = caliber;
             }
-            if (double.TryParse(TextEditCoefficient.Text, out double Coefficient))
+            if (double.TryParse(TextEditCoefficient.Text, out double coefficient))
             {
-                _ThreeLinkVmo.Coefficient = Coefficient;
+                _ThreeLinkVmo.Coefficient = coefficient;
+            }
+            if (double.TryParse(textEditRunThroughCoefficient.Text, out double runThrough))
+            {
+                _ThreeLinkVmo.Coefficient = runThrough;
+            }
+            if (double.TryParse(textEditBranchThroughCoefficient.Text, out double branchThough))
+            {
+                _ThreeLinkVmo.Coefficient = branchThough;
             }
             if (await this.ReloadDataEvent.Invoke(_ThreeLinkVmo))
             {

--
Gitblit v1.9.3