|
|
@@ -2174,218 +2174,14 @@
|
|
|
HorizontalAlignment="Stretch" />
|
|
|
</StackPanel>
|
|
|
</TabItem.Header>
|
|
|
- <StackPanel Orientation="Vertical"
|
|
|
- Margin="20">
|
|
|
- <Grid>
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="auto" />
|
|
|
- <ColumnDefinition Width="200" />
|
|
|
- <ColumnDefinition Width="*" />
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
- <RowDefinition Height="Auto" />
|
|
|
- <RowDefinition Height="40" />
|
|
|
- </Grid.RowDefinitions>
|
|
|
-
|
|
|
- <!-- 相机拍照次数 -->
|
|
|
- <TextBlock Grid.Row="0"
|
|
|
- Grid.Column="0"
|
|
|
- Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
- VerticalAlignment="Center"
|
|
|
- HorizontalAlignment="Right"
|
|
|
- Margin="0,6,10,6"
|
|
|
- Text="下相机拍照次数:" />
|
|
|
- <mah:NumericUpDown Grid.Row="0"
|
|
|
- Grid.Column="1"
|
|
|
- Margin="0,6"
|
|
|
- Value="{Binding DowmCameraNum,Mode=TwoWay}"
|
|
|
- Minimum="0"
|
|
|
- Maximum="100"
|
|
|
- FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
-
|
|
|
- <!-- 上相机取料拍照次数 -->
|
|
|
- <TextBlock Grid.Row="1"
|
|
|
- Grid.Column="0"
|
|
|
- Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
- VerticalAlignment="Center"
|
|
|
- HorizontalAlignment="Right"
|
|
|
- Margin="0,6,10,6"
|
|
|
- Text="上相机取料拍照次数:" />
|
|
|
- <mah:NumericUpDown Grid.Row="1"
|
|
|
- Grid.Column="1"
|
|
|
- Margin="0,6"
|
|
|
- Value="{Binding UpCameraPickNum,Mode=TwoWay}"
|
|
|
- Minimum="0"
|
|
|
- Maximum="100"
|
|
|
- FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
-
|
|
|
- <!-- 上相机放料拍照次数 -->
|
|
|
- <TextBlock Grid.Row="2"
|
|
|
- Grid.Column="0"
|
|
|
- Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
- VerticalAlignment="Center"
|
|
|
- HorizontalAlignment="Right"
|
|
|
- Margin="0,6,10,6"
|
|
|
- Text="上相机放料拍照次数:" />
|
|
|
- <mah:NumericUpDown Grid.Row="2"
|
|
|
- Grid.Column="1"
|
|
|
- Margin="0,6"
|
|
|
- Value="{Binding UpCameraPutNum,Mode=TwoWay}"
|
|
|
- Minimum="0"
|
|
|
- Maximum="100"
|
|
|
- FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
-
|
|
|
- <!-- 上相机锁附/组装次数 -->
|
|
|
- <TextBlock Grid.Row="3"
|
|
|
- Grid.Column="0"
|
|
|
- Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
- VerticalAlignment="Center"
|
|
|
- HorizontalAlignment="Right"
|
|
|
- Margin="0,6,10,6"
|
|
|
- Text="上相机锁附/组装次数:" />
|
|
|
- <mah:NumericUpDown Grid.Row="3"
|
|
|
- Grid.Column="1"
|
|
|
- Margin="0,6"
|
|
|
- Value="{Binding UPCameracheckNum,Mode=TwoWay}"
|
|
|
- Minimum="0"
|
|
|
- Maximum="100"
|
|
|
- FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
-
|
|
|
- <!-- 取料固定位置拍产品相机数量 -->
|
|
|
- <TextBlock Grid.Row="4"
|
|
|
- Grid.Column="0"
|
|
|
- Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
- VerticalAlignment="Center"
|
|
|
- HorizontalAlignment="Right"
|
|
|
- Margin="0,6,10,6"
|
|
|
- Text="取料固定位置拍产品相机数量:" />
|
|
|
- <mah:NumericUpDown Grid.Row="4"
|
|
|
- Grid.Column="1"
|
|
|
- Margin="0,6"
|
|
|
- Value="{Binding FixedCameraPickNum,Mode=TwoWay}"
|
|
|
- Minimum="0"
|
|
|
- Maximum="10"
|
|
|
- FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
-
|
|
|
- <!-- 锁附/组装固定位置拍产品相机数量 -->
|
|
|
- <TextBlock Grid.Row="5"
|
|
|
- Grid.Column="0"
|
|
|
- Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
- VerticalAlignment="Center"
|
|
|
- HorizontalAlignment="Right"
|
|
|
- Margin="0,6,10,6"
|
|
|
- Text="锁附/组装固定位置拍产品相机数量:" />
|
|
|
- <mah:NumericUpDown Grid.Row="5"
|
|
|
- Grid.Column="1"
|
|
|
- Margin="0,6"
|
|
|
- Value="{Binding FixedCameraPutNum,Mode=TwoWay}"
|
|
|
- Minimum="0"
|
|
|
- Maximum="10"
|
|
|
- FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
-
|
|
|
- <!-- 固定相机检测锁附/组装次数 -->
|
|
|
- <TextBlock Grid.Row="6"
|
|
|
- Grid.Column="0"
|
|
|
- Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
- VerticalAlignment="Center"
|
|
|
- HorizontalAlignment="Right"
|
|
|
- Margin="0,6,10,6"
|
|
|
- Text="固定相机检测锁附/组装次数:" />
|
|
|
- <mah:NumericUpDown Grid.Row="6"
|
|
|
- Grid.Column="1"
|
|
|
- Margin="0,6"
|
|
|
- Value="{Binding FixedCameracheckNum,Mode=TwoWay}"
|
|
|
- Minimum="0"
|
|
|
- Maximum="100"
|
|
|
- FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
- <!-- 工作模式 -->
|
|
|
- <TextBlock Grid.Row="7"
|
|
|
- Grid.Column="0"
|
|
|
- Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
- VerticalAlignment="Center"
|
|
|
- HorizontalAlignment="Right"
|
|
|
- Margin="0,6,10,6"
|
|
|
- Text="工作模式 :" />
|
|
|
- <mah:NumericUpDown Grid.Row="7"
|
|
|
- Grid.Column="1"
|
|
|
- Margin="0,6"
|
|
|
- Value="{Binding WorkMode,Mode=TwoWay}"
|
|
|
- Minimum="0"
|
|
|
- Maximum="100"
|
|
|
- FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
-
|
|
|
- <!-- 取料位置 -->
|
|
|
- <TextBlock Grid.Row="8"
|
|
|
- Grid.Column="0"
|
|
|
- Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
- VerticalAlignment="Center"
|
|
|
- HorizontalAlignment="Right"
|
|
|
- Margin="0,6,10,6"
|
|
|
- Text="取料位置:" />
|
|
|
- <mah:NumericUpDown Grid.Row="8"
|
|
|
- Grid.Column="1"
|
|
|
- Margin="0,6"
|
|
|
- Value="{Binding PickPointNum,Mode=TwoWay}"
|
|
|
- Minimum="0"
|
|
|
- Maximum="100"
|
|
|
- FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
- <!-- 披头矫正的模式 -->
|
|
|
- <TextBlock Grid.Row="9"
|
|
|
- Grid.Column="0"
|
|
|
- Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
- VerticalAlignment="Center"
|
|
|
- HorizontalAlignment="Right"
|
|
|
- Margin="0,6,10,6"
|
|
|
- Text="披头矫正的模式:" />
|
|
|
- <mah:NumericUpDown Grid.Row="9"
|
|
|
- Grid.Column="1"
|
|
|
- Margin="0,6"
|
|
|
- Value="{Binding ScrewTeachNum,Mode=TwoWay}"
|
|
|
- Minimum="0"
|
|
|
- Maximum="100"
|
|
|
- FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
-
|
|
|
- <!-- 保存按钮 -->
|
|
|
- <StackPanel Grid.Row="10"
|
|
|
- Grid.ColumnSpan="3"
|
|
|
- Orientation="Horizontal"
|
|
|
- HorizontalAlignment="Right"
|
|
|
- VerticalAlignment="Center"
|
|
|
- Margin="0,10,0,0">
|
|
|
- <Button Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
- MinWidth="120"
|
|
|
- Command="{Binding SaveSystemParametersCommand}"
|
|
|
- IsEnabled="{Binding IsAllowEdit}">
|
|
|
- <StackPanel Orientation="Horizontal"
|
|
|
- HorizontalAlignment="Center">
|
|
|
- <materialDesign:PackIcon Kind="ContentSaveCheck"
|
|
|
- Margin="0,0,6,0" />
|
|
|
- <TextBlock VerticalAlignment="Center"
|
|
|
- Text="保存系统参数" />
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
- <!--刷卡参数配置-->
|
|
|
- <GroupBox Grid.Row="5"
|
|
|
- Grid.ColumnSpan="2"
|
|
|
- Header="刷卡器配置"
|
|
|
- HorizontalAlignment="Left"
|
|
|
- MinWidth="400"
|
|
|
- Margin="0,12,0,0">
|
|
|
- <Grid Margin="10">
|
|
|
+ <ScrollViewer HorizontalScrollBarVisibility="Auto"
|
|
|
+ VerticalScrollBarVisibility="Auto">
|
|
|
+ <StackPanel Orientation="Vertical"
|
|
|
+ Margin="20">
|
|
|
+ <Grid>
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="auto" />
|
|
|
+ <ColumnDefinition Width="200" />
|
|
|
<ColumnDefinition Width="*" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
<Grid.RowDefinitions>
|
|
|
@@ -2395,66 +2191,396 @@
|
|
|
<RowDefinition Height="Auto" />
|
|
|
<RowDefinition Height="Auto" />
|
|
|
<RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
</Grid.RowDefinitions>
|
|
|
- <TextBlock Text="PortName:"
|
|
|
- Grid.Row="0"
|
|
|
+
|
|
|
+ <!-- 相机拍照次数 -->
|
|
|
+ <TextBlock Grid.Row="0"
|
|
|
Grid.Column="0"
|
|
|
- HorizontalAlignment="Right" />
|
|
|
- <TextBox Text="{Binding CardReaderConfig.PortName,Mode=TwoWay}"
|
|
|
- Grid.Row="0"
|
|
|
- Grid.Column="1"
|
|
|
- Margin="6,0" />
|
|
|
- <TextBlock Text="BaudRate:"
|
|
|
- Grid.Row="1"
|
|
|
+ Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Margin="0,6,10,6"
|
|
|
+ Text="下相机拍照次数:" />
|
|
|
+ <mah:NumericUpDown Grid.Row="0"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,6"
|
|
|
+ Value="{Binding DowmCameraNum,Mode=TwoWay}"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="100"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
+
|
|
|
+ <!-- 上相机取料拍照次数 -->
|
|
|
+ <TextBlock Grid.Row="1"
|
|
|
Grid.Column="0"
|
|
|
- HorizontalAlignment="Right" />
|
|
|
- <TextBox Text="{Binding CardReaderConfig.BaudRate,Mode=TwoWay}"
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="1"
|
|
|
- Margin="6,0" />
|
|
|
- <TextBlock Text="Parity:"
|
|
|
- Grid.Row="2"
|
|
|
+ Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Margin="0,6,10,6"
|
|
|
+ Text="上相机取料拍照次数:" />
|
|
|
+ <mah:NumericUpDown Grid.Row="1"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,6"
|
|
|
+ Value="{Binding UpCameraPickNum,Mode=TwoWay}"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="100"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
+
|
|
|
+ <!-- 上相机放料拍照次数 -->
|
|
|
+ <TextBlock Grid.Row="2"
|
|
|
Grid.Column="0"
|
|
|
- HorizontalAlignment="Right" />
|
|
|
- <ComboBox Grid.Row="2"
|
|
|
- Grid.Column="1"
|
|
|
- SelectedItem="{Binding CardReaderConfig.Parity,Mode=TwoWay}"
|
|
|
- ItemsSource="{Binding Source={StaticResource Parity}}" />
|
|
|
- <TextBlock Text="StopBits:"
|
|
|
- Grid.Row="3"
|
|
|
+ Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Margin="0,6,10,6"
|
|
|
+ Text="上相机放料拍照次数:" />
|
|
|
+ <mah:NumericUpDown Grid.Row="2"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,6"
|
|
|
+ Value="{Binding UpCameraPutNum,Mode=TwoWay}"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="100"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
+
|
|
|
+ <!-- 上相机锁附/组装次数 -->
|
|
|
+ <TextBlock Grid.Row="3"
|
|
|
Grid.Column="0"
|
|
|
- HorizontalAlignment="Right" />
|
|
|
- <ComboBox Grid.Row="3"
|
|
|
- Grid.Column="1"
|
|
|
- SelectedItem="{Binding CardReaderConfig.StopBits,Mode=TwoWay}"
|
|
|
- ItemsSource="{Binding Source={StaticResource StopBits}}" />
|
|
|
- <TextBlock Text="DataBits:"
|
|
|
- Grid.Row="4"
|
|
|
+ Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Margin="0,6,10,6"
|
|
|
+ Text="上相机锁附/组装次数:" />
|
|
|
+ <mah:NumericUpDown Grid.Row="3"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,6"
|
|
|
+ Value="{Binding UPCameracheckNum,Mode=TwoWay}"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="100"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
+
|
|
|
+ <!-- 取料固定位置拍产品相机数量 -->
|
|
|
+ <TextBlock Grid.Row="4"
|
|
|
Grid.Column="0"
|
|
|
- HorizontalAlignment="Right" />
|
|
|
- <TextBox Text="{Binding CardReaderConfig.DataBits,Mode=TwoWay}"
|
|
|
- Grid.Row="4"
|
|
|
- Grid.Column="1"
|
|
|
- Margin="6,0" />
|
|
|
-
|
|
|
- <Button Grid.Row="5"
|
|
|
- Grid.Column="1"
|
|
|
- Margin="0,6"
|
|
|
- Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
- materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
- MinWidth="120"
|
|
|
- Command="{Binding SaveCardReaderConfigCommand}">
|
|
|
- <StackPanel Orientation="Horizontal"
|
|
|
- HorizontalAlignment="Center">
|
|
|
- <materialDesign:PackIcon Kind="ContentSaveCheck"
|
|
|
- Margin="0,0,6,0" />
|
|
|
- <TextBlock VerticalAlignment="Center"
|
|
|
- Text="保存刷卡器配置" />
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
+ Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Margin="0,6,10,6"
|
|
|
+ Text="取料固定位置拍产品相机数量:" />
|
|
|
+ <mah:NumericUpDown Grid.Row="4"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,6"
|
|
|
+ Value="{Binding FixedCameraPickNum,Mode=TwoWay}"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="10"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
+
|
|
|
+ <!-- 锁附/组装固定位置拍产品相机数量 -->
|
|
|
+ <TextBlock Grid.Row="5"
|
|
|
+ Grid.Column="0"
|
|
|
+ Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Margin="0,6,10,6"
|
|
|
+ Text="锁附/组装固定位置拍产品相机数量:" />
|
|
|
+ <mah:NumericUpDown Grid.Row="5"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,6"
|
|
|
+ Value="{Binding FixedCameraPutNum,Mode=TwoWay}"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="10"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
+
|
|
|
+ <!-- 固定相机检测锁附/组装次数 -->
|
|
|
+ <TextBlock Grid.Row="6"
|
|
|
+ Grid.Column="0"
|
|
|
+ Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Margin="0,6,10,6"
|
|
|
+ Text="固定相机检测锁附/组装次数:" />
|
|
|
+ <mah:NumericUpDown Grid.Row="6"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,6"
|
|
|
+ Value="{Binding FixedCameracheckNum,Mode=TwoWay}"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="100"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
+ <!-- 工作模式 -->
|
|
|
+ <TextBlock Grid.Row="7"
|
|
|
+ Grid.Column="0"
|
|
|
+ Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Margin="0,6,10,6"
|
|
|
+ Text="工作模式 :" />
|
|
|
+ <mah:NumericUpDown Grid.Row="7"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,6"
|
|
|
+ Value="{Binding WorkMode,Mode=TwoWay}"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="100"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
+
|
|
|
+ <!-- 取料位置 -->
|
|
|
+ <TextBlock Grid.Row="8"
|
|
|
+ Grid.Column="0"
|
|
|
+ Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Margin="0,6,10,6"
|
|
|
+ Text="取料位置:" />
|
|
|
+ <mah:NumericUpDown Grid.Row="8"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,6"
|
|
|
+ Value="{Binding PickPointNum,Mode=TwoWay}"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="100"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
+ <!-- 披头矫正的模式 -->
|
|
|
+ <TextBlock Grid.Row="9"
|
|
|
+ Grid.Column="0"
|
|
|
+ Style="{StaticResource MaterialDesignSubtitle1TextBlock}"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Margin="0,6,10,6"
|
|
|
+ Text="披头矫正的模式:" />
|
|
|
+ <mah:NumericUpDown Grid.Row="9"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,6"
|
|
|
+ Value="{Binding ScrewTeachNum,Mode=TwoWay}"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="100"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
+
|
|
|
+ <!-- 压力传感器配置: 插入于 Row=10 -->
|
|
|
+ <GroupBox Grid.Row="10"
|
|
|
+ Grid.ColumnSpan="3"
|
|
|
+ Header="压力传感器配置"
|
|
|
+ Margin="0,8,0,8">
|
|
|
+ <GroupBox.Resources>
|
|
|
+ <!-- 压力单位列表 -->
|
|
|
+ <x:Array x:Key="PressureUnits"
|
|
|
+ Type="sys:String">
|
|
|
+ <sys:String>kPa</sys:String>
|
|
|
+ <sys:String>Pa</sys:String>
|
|
|
+ <sys:String>Bar</sys:String>
|
|
|
+ <sys:String>psi</sys:String>
|
|
|
+ </x:Array>
|
|
|
+ </GroupBox.Resources>
|
|
|
+
|
|
|
+ <Grid Margin="10">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="*" />
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+
|
|
|
+ <!-- 列标题 -->
|
|
|
+ <Grid Grid.Row="1"
|
|
|
+ Margin="0,0,0,6">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="30" />
|
|
|
+ <ColumnDefinition Width="120" />
|
|
|
+ <ColumnDefinition Width="120" />
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ <ColumnDefinition Width="30" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <TextBlock Grid.Column="0"
|
|
|
+ Text="#"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ TextTrimming="CharacterEllipsis"
|
|
|
+ FontWeight="Bold" />
|
|
|
+ <TextBlock Grid.Column="1"
|
|
|
+ Text="压力传感器的名称"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontWeight="Bold"
|
|
|
+ TextTrimming="CharacterEllipsis" />
|
|
|
+ <TextBlock Grid.Column="2"
|
|
|
+ Text="是否保存压力曲线图"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ FontWeight="Bold"
|
|
|
+ TextTrimming="CharacterEllipsis" />
|
|
|
+ <TextBlock Grid.Column="3"
|
|
|
+ Text="压力曲线图保存路径"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ FontWeight="Bold"
|
|
|
+ TextTrimming="CharacterEllipsis" />
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <!-- 传感器列表 -->
|
|
|
+ <ScrollViewer Grid.Row="2"
|
|
|
+ VerticalScrollBarVisibility="Auto"
|
|
|
+ HorizontalScrollBarVisibility="Disabled">
|
|
|
+ <ItemsControl ItemsSource="{Binding PressureSensorConfig}">
|
|
|
+ <ItemsControl.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <Border BorderBrush="#DDD"
|
|
|
+ BorderThickness="1"
|
|
|
+ CornerRadius="4"
|
|
|
+ Padding="6"
|
|
|
+ Margin="0,4">
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="30" />
|
|
|
+ <ColumnDefinition Width="120" />
|
|
|
+ <ColumnDefinition Width="120" />
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ <ColumnDefinition Width="30" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <!-- 索引:尝试使用 LocalIndex 或 在 ViewModel 中提供 -->
|
|
|
+ <TextBlock Grid.Column="0"
|
|
|
+ Text="{Binding SensorId}"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Center" />
|
|
|
+
|
|
|
+ <!-- 名称 -->
|
|
|
+ <TextBox Grid.Column="1"
|
|
|
+ Text="{Binding SensorName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Margin="6,0"
|
|
|
+ MinWidth="120" />
|
|
|
+
|
|
|
+ <!-- 是否保存压力曲线图 -->
|
|
|
+ <CheckBox Grid.Column="2"
|
|
|
+ IsChecked="{Binding IsSavePressureCurve, Mode=TwoWay}"
|
|
|
+ Margin="6,0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}" />
|
|
|
+
|
|
|
+ <!-- 压力曲线图保存路径 -->
|
|
|
+ <TextBox Grid.Column="3"
|
|
|
+ Text="{Binding PressureCurvePath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ Margin="6,0"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
+
|
|
|
+ <!-- 选择路径按钮 -->
|
|
|
+ <Button Grid.Column="4"
|
|
|
+ Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
+ Command="{Binding DataContext.BrowsePressureCurvePathCommand, RelativeSource={RelativeSource AncestorType=ItemsControl}}"
|
|
|
+ CommandParameter="{Binding}">
|
|
|
+ <materialDesign:PackIcon Kind="FolderOpen" />
|
|
|
+ </Button>
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+ </DataTemplate>
|
|
|
+ </ItemsControl.ItemTemplate>
|
|
|
+ </ItemsControl>
|
|
|
+ </ScrollViewer>
|
|
|
+ </Grid>
|
|
|
+ </GroupBox>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 保存按钮 -->
|
|
|
+ <StackPanel Grid.Row="11"
|
|
|
+ Grid.ColumnSpan="3"
|
|
|
+ Orientation="Horizontal"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Margin="0,10,0,0">
|
|
|
+ <Button Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
+ materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
+ MinWidth="120"
|
|
|
+ Command="{Binding SaveSystemParametersCommand}"
|
|
|
+ IsEnabled="{Binding IsAllowEdit}">
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ HorizontalAlignment="Center">
|
|
|
+ <materialDesign:PackIcon Kind="ContentSaveCheck"
|
|
|
+ Margin="0,0,6,0" />
|
|
|
+ <TextBlock VerticalAlignment="Center"
|
|
|
+ Text="保存系统参数" />
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
</Grid>
|
|
|
- </GroupBox>
|
|
|
- </StackPanel>
|
|
|
+ <!--刷卡参数配置-->
|
|
|
+ <GroupBox Grid.Row="5"
|
|
|
+ Grid.ColumnSpan="2"
|
|
|
+ Header="刷卡器配置"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ MinWidth="400"
|
|
|
+ Margin="0,12,0,0">
|
|
|
+ <Grid Margin="10">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="auto" />
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <TextBlock Text="PortName:"
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Right" />
|
|
|
+ <TextBox Text="{Binding CardReaderConfig.PortName,Mode=TwoWay}"
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="6,0" />
|
|
|
+ <TextBlock Text="BaudRate:"
|
|
|
+ Grid.Row="1"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Right" />
|
|
|
+ <TextBox Text="{Binding CardReaderConfig.BaudRate,Mode=TwoWay}"
|
|
|
+ Grid.Row="1"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="6,0" />
|
|
|
+ <TextBlock Text="Parity:"
|
|
|
+ Grid.Row="2"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Right" />
|
|
|
+ <ComboBox Grid.Row="2"
|
|
|
+ Grid.Column="1"
|
|
|
+ SelectedItem="{Binding CardReaderConfig.Parity,Mode=TwoWay}"
|
|
|
+ ItemsSource="{Binding Source={StaticResource Parity}}" />
|
|
|
+ <TextBlock Text="StopBits:"
|
|
|
+ Grid.Row="3"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Right" />
|
|
|
+ <ComboBox Grid.Row="3"
|
|
|
+ Grid.Column="1"
|
|
|
+ SelectedItem="{Binding CardReaderConfig.StopBits,Mode=TwoWay}"
|
|
|
+ ItemsSource="{Binding Source={StaticResource StopBits}}" />
|
|
|
+ <TextBlock Text="DataBits:"
|
|
|
+ Grid.Row="4"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Right" />
|
|
|
+ <TextBox Text="{Binding CardReaderConfig.DataBits,Mode=TwoWay}"
|
|
|
+ Grid.Row="4"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="6,0" />
|
|
|
+
|
|
|
+ <Button Grid.Row="5"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,6"
|
|
|
+ Style="{StaticResource MaterialDesignRaisedButton}"
|
|
|
+ materialDesign:ButtonAssist.CornerRadius="10"
|
|
|
+ MinWidth="120"
|
|
|
+ Command="{Binding SaveCardReaderConfigCommand}">
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ HorizontalAlignment="Center">
|
|
|
+ <materialDesign:PackIcon Kind="ContentSaveCheck"
|
|
|
+ Margin="0,0,6,0" />
|
|
|
+ <TextBlock VerticalAlignment="Center"
|
|
|
+ Text="保存刷卡器配置" />
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </Grid>
|
|
|
+ </GroupBox>
|
|
|
+ </StackPanel>
|
|
|
+ </ScrollViewer>
|
|
|
</TabItem>
|
|
|
|
|
|
<!--生产排班-->
|