Explorar o código

修改设备名称为类型

ltwork hai 1 ano
pai
achega
c2fe72dfab

+ 5 - 5
BlankApp1/BlankApp1/ViewModels/BusinessManageViewModel/TestResultDetailViewModel.cs

@@ -100,7 +100,7 @@ namespace PLCTool.ViewModels.BusinessManageViewModel
                             if (findSch != null)
                             {
                                 ScheduleName = findSch.scheme_name;
-                                DeviceName = findSch.devicekind_name;
+                                DeviceKindName = findSch.devicekind_name;
 
                             }
                             TestName = findresult.ItemName;
@@ -328,11 +328,11 @@ namespace PLCTool.ViewModels.BusinessManageViewModel
         /// <summary>
         /// 设备名称
         /// </summary>
-        private string deviceName;
-        public string DeviceName
+        private string deviceKindName;
+        public string DeviceKindName
         {
-            get { return deviceName; }
-            set { deviceName = value; RaisePropertyChanged(); }
+            get { return deviceKindName; }
+            set { deviceKindName = value; RaisePropertyChanged(); }
         }
         /// <summary>
         /// 测试项名称

+ 2 - 2
BlankApp1/BlankApp1/Views/BusinessManageView/TestResultDetailView.xaml

@@ -34,8 +34,8 @@
                 <TextBox  Height="28" Width="120" Text="{Binding ScheduleName}" IsReadOnly="True" />
             </StackPanel>
             <StackPanel Orientation="Horizontal">
-                <TextBlock Text="设备名称:"  Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
-                <TextBox  Height="28" Width="120" Text="{Binding DeviceName}" IsReadOnly="True"/>
+                <TextBlock Text="设备类型:"  Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
+                <TextBox  Height="28" Width="120" Text="{Binding DeviceKindName}" IsReadOnly="True"/>
             </StackPanel>
             <StackPanel Orientation="Horizontal" >
                 <TextBlock Text="测试项类型:"  Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>