|
|
@@ -2413,85 +2413,159 @@
|
|
|
</StackPanel>
|
|
|
</Button>
|
|
|
</Grid>
|
|
|
-
|
|
|
- <!--刷卡参数配置-->
|
|
|
- <GroupBox Grid.Row="5"
|
|
|
- Grid.ColumnSpan="2"
|
|
|
+ <StackPanel Grid.Row="5" Margin="0,12,0,0" Orientation="Horizontal" >
|
|
|
+ <!--刷卡参数配置-->
|
|
|
+ <GroupBox
|
|
|
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:"
|
|
|
+ Width="300"
|
|
|
+ Margin="0,0,50,0"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ >
|
|
|
+ <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}"
|
|
|
+ <TextBox Text="{Binding CardReaderConfig.PortName,Mode=TwoWay}"
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="1"
|
|
|
Margin="6,0" />
|
|
|
- <TextBlock Text="BaudRate:"
|
|
|
+ <TextBlock Text="BaudRate:"
|
|
|
Grid.Row="1"
|
|
|
Grid.Column="0"
|
|
|
HorizontalAlignment="Right" />
|
|
|
- <TextBox Text="{Binding CardReaderConfig.BaudRate,Mode=TwoWay}"
|
|
|
+ <TextBox Text="{Binding CardReaderConfig.BaudRate,Mode=TwoWay}"
|
|
|
Grid.Row="1"
|
|
|
Grid.Column="1"
|
|
|
Margin="6,0" />
|
|
|
- <TextBlock Text="Parity:"
|
|
|
+ <TextBlock Text="Parity:"
|
|
|
Grid.Row="2"
|
|
|
Grid.Column="0"
|
|
|
HorizontalAlignment="Right" />
|
|
|
- <ComboBox Grid.Row="2"
|
|
|
+ <ComboBox Grid.Row="2"
|
|
|
Grid.Column="1"
|
|
|
SelectedItem="{Binding CardReaderConfig.Parity,Mode=TwoWay}"
|
|
|
ItemsSource="{Binding Source={StaticResource Parity}}" />
|
|
|
- <TextBlock Text="StopBits:"
|
|
|
+ <TextBlock Text="StopBits:"
|
|
|
Grid.Row="3"
|
|
|
Grid.Column="0"
|
|
|
HorizontalAlignment="Right" />
|
|
|
- <ComboBox Grid.Row="3"
|
|
|
+ <ComboBox Grid.Row="3"
|
|
|
Grid.Column="1"
|
|
|
SelectedItem="{Binding CardReaderConfig.StopBits,Mode=TwoWay}"
|
|
|
ItemsSource="{Binding Source={StaticResource StopBits}}" />
|
|
|
- <TextBlock Text="DataBits:"
|
|
|
+ <TextBlock Text="DataBits:"
|
|
|
Grid.Row="4"
|
|
|
Grid.Column="0"
|
|
|
HorizontalAlignment="Right" />
|
|
|
- <TextBox Text="{Binding CardReaderConfig.DataBits,Mode=TwoWay}"
|
|
|
+ <TextBox Text="{Binding CardReaderConfig.DataBits,Mode=TwoWay}"
|
|
|
Grid.Row="4"
|
|
|
Grid.Column="1"
|
|
|
Margin="6,0" />
|
|
|
|
|
|
- <Button Grid.Row="5"
|
|
|
+ <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"
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
HorizontalAlignment="Center">
|
|
|
- <materialDesign:PackIcon Kind="ContentSaveCheck"
|
|
|
+ <materialDesign:PackIcon Kind="ContentSaveCheck"
|
|
|
Margin="0,0,6,0" />
|
|
|
- <TextBlock VerticalAlignment="Center"
|
|
|
+ <TextBlock VerticalAlignment="Center"
|
|
|
Text="保存刷卡器配置" />
|
|
|
- </StackPanel>
|
|
|
- </Button>
|
|
|
- </Grid>
|
|
|
- </GroupBox>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </Grid>
|
|
|
+ </GroupBox>
|
|
|
+
|
|
|
+ <GroupBox Header="电批配置" Width="300">
|
|
|
+ <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 TorqueReadConfig.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 TorqueReadConfig.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 TorqueReadConfig.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 TorqueReadConfig.StopBits,Mode=TwoWay}"
|
|
|
+ ItemsSource="{Binding Source={StaticResource StopBits}}" />
|
|
|
+ <TextBlock Text="DataBits:"
|
|
|
+ Grid.Row="4"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Right" />
|
|
|
+ <TextBox Text="{Binding TorqueReadConfig.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 SaveTorqueReaderConfigCommand}">
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ HorizontalAlignment="Center">
|
|
|
+ <materialDesign:PackIcon Kind="ContentSaveCheck"
|
|
|
+ Margin="0,0,6,0" />
|
|
|
+ <TextBlock VerticalAlignment="Center"
|
|
|
+ Text="保存电批配置" />
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </Grid>
|
|
|
+ </GroupBox>
|
|
|
+ </StackPanel>
|
|
|
</StackPanel>
|
|
|
</TabItem>
|
|
|
|