ltwork преди 1 година
родител
ревизия
6ace7957b5
променени са 2 файла, в които са добавени 32 реда и са изтрити 1 реда
  1. 28 0
      BlankApp1/BlankApp1/Models/SelectItemModel.cs
  2. 4 1
      BlankApp1/BlankApp1/ViewModels/BasicConfigViewModel/AddOrEditSchViewModel.cs

+ 28 - 0
BlankApp1/BlankApp1/Models/SelectItemModel.cs

@@ -37,7 +37,35 @@ namespace PLCTool.Models
             get { return item_type; }
             set { item_type = value; OnPropertyChanged(); }
         }
+        /// <summary>
+        /// 前置项描述
+        /// </summary>
+        private string beforeDetail { get; set; }
+        public string BeforeDetail
+        {
+            get { return beforeDetail; }
+            set { beforeDetail = value; OnPropertyChanged(); }
+        }
+
+        /// <summary>
+        /// 输入项描述
+        /// </summary>
+        private string inDetail { get; set; }
+        public string InDetail
+        {
+            get { return inDetail; }
+            set { inDetail = value; OnPropertyChanged(); }
+        }
 
+        /// <summary>
+        /// 输出项描述
+        /// </summary>
+        private string outDetail { get; set; }
+        public string OutDetail
+        {
+            get { return outDetail; }
+            set { outDetail = value; OnPropertyChanged(); }
+        }
         private bool isSelected { get; set; }
         public bool IsSelected
         {

+ 4 - 1
BlankApp1/BlankApp1/ViewModels/BasicConfigViewModel/AddOrEditSchViewModel.cs

@@ -319,7 +319,7 @@ namespace PLCTool.ViewModels.BasicConfigViewModel
             });
         }
         /// <summary>
-        /// 光标失去触发
+        /// 获取测试项
         /// </summary>
         private void GetExistSchs()
         {
@@ -353,6 +353,9 @@ namespace PLCTool.ViewModels.BasicConfigViewModel
                         SchDtlId = unit.scheme_dtl_id,
                         ItemName = unit.item_name,
                         ItemType = itemType,
+                        BeforeDetail=unit.precondition_describe,
+                        InDetail=unit.action_describe,
+                        OutDetail=unit.judgement_result_describe
                     }); 
 
                 }