|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
|
|
|
|
|
xmlns:local="clr-namespace:SocketExample"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
Title="RFID读写器多终端监控软件v1.08" Height="680" Width="1180"
|
|
|
|
|
Title="RFID读写器多终端监控软件v1.091" Height="680" Width="1180"
|
|
|
|
|
Background="Transparent" AllowsTransparency="True" WindowStyle="None" WindowStartupLocation="CenterScreen">
|
|
|
|
|
|
|
|
|
|
<Window.Resources>
|
|
|
|
@ -88,37 +88,44 @@
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Border Grid.Row="0" CornerRadius="20" Background="{StaticResource PrimaryBrush}" Margin="10">
|
|
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="400"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<StackPanel Grid.Column="0" Orientation="Horizontal" Margin="10 0 0 0" VerticalAlignment="Center">
|
|
|
|
|
<TextBlock Text="监控终端生成数量:" VerticalAlignment="Center" Margin="0,0,10,0" Foreground="White" FontSize="15" FontWeight="SemiBold"/>
|
|
|
|
|
<TextBox x:Name="CountTextBox" Width="100" Margin="0,0,10,0" VerticalAlignment="Center" FontSize="15" FontWeight="SemiBold"/>
|
|
|
|
|
<Button Content="生成" Click="GenerateButton_Click" Height="40" Width="50" Margin="10 0 0 0" Style="{StaticResource FlatButton}"/>
|
|
|
|
|
<Button Content="清空" Click="ClearButton_Click" Height="40" Width="50" Margin="10 0 0 0" Style="{StaticResource FlatButton}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
|
|
|
|
|
<TextBlock Text="RFID设备监控平台" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" FontSize="25" FontWeight="SemiBold"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Grid Grid.Column="2" HorizontalAlignment="Right" Margin="0 0 10 0" VerticalAlignment="Center">
|
|
|
|
|
<TextBlock Text="RFID设备监控平台" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" FontSize="38" FontWeight="SemiBold"/>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
<ColumnDefinition Width="400"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Button x:Name="Minimize_Button" Grid.Column="0" Height="40" Width="50" Style="{StaticResource FlatButton}" Margin="0 0 0 0" Click="Minimize_Button_Click">
|
|
|
|
|
<Image Source="/减号.png" />
|
|
|
|
|
</Button>
|
|
|
|
|
<Button x:Name="Maxmize_Button" Grid.Column="1" Height="40" Width="50" Style="{StaticResource FlatButton}" Margin="0 0 0 0" Click="Maxmize_Button_Click">
|
|
|
|
|
<Image x:Name="MaxMinImage" Source="/全屏.png"/>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button x:Name="Shutdown_Button" Grid.Column="2" Height="40" Width="50" Style="{StaticResource FlatButton}" Click="Shutdown_Button_Click">
|
|
|
|
|
<Image Source="/关闭.png"/>
|
|
|
|
|
</Button>
|
|
|
|
|
<Grid Grid.Column="0" >
|
|
|
|
|
<StackPanel x:Name="Welcome_StackPanel" Orientation="Horizontal" Visibility="Hidden">
|
|
|
|
|
<Button x:Name="CreateTerminal_Button" Height="40" Width="50" Margin="10 0 0 0" Style="{StaticResource FlatButton}" Click="CreateTerminal_Button_Click">
|
|
|
|
|
<Image Source="/新增.png"/>
|
|
|
|
|
</Button>
|
|
|
|
|
<Image Source="/海威图标-横.png" Margin="2 14 14 13"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel x:Name="NewTerminal_StackPanel" Orientation="Horizontal" Margin="10 0 0 0" VerticalAlignment="Center">
|
|
|
|
|
<TextBlock Text="监控终端生成数量:" VerticalAlignment="Center" Margin="0,0,10,0" Foreground="White" FontSize="15" FontWeight="SemiBold"/>
|
|
|
|
|
<TextBox x:Name="CountTextBox" Width="100" Margin="0,0,10,0" VerticalAlignment="Center" FontSize="15" FontWeight="SemiBold"/>
|
|
|
|
|
<Button Content="生成" Click="GenerateButton_Click" Height="40" Width="50" Margin="10 0 0 0" Style="{StaticResource FlatButton}"/>
|
|
|
|
|
<Button Content="清空" Click="ClearButton_Click" Height="40" Width="50" Margin="10 0 0 0" Style="{StaticResource FlatButton}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Grid Grid.Column="1" HorizontalAlignment="Right" Margin="0 0 10 0" VerticalAlignment="Center">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Button x:Name="Minimize_Button" Grid.Column="0" Height="40" Width="50" Style="{StaticResource FlatButton}" Margin="0 0 0 0" Click="Minimize_Button_Click">
|
|
|
|
|
<Image Source="/减号.png" />
|
|
|
|
|
</Button>
|
|
|
|
|
<Button x:Name="Maxmize_Button" Grid.Column="1" Height="40" Width="50" Style="{StaticResource FlatButton}" Margin="0 0 0 0" Click="Maxmize_Button_Click">
|
|
|
|
|
<Image x:Name="MaxMinImage" Source="/全屏.png"/>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button x:Name="Shutdown_Button" Grid.Column="2" Height="40" Width="50" Style="{StaticResource FlatButton}" Click="Shutdown_Button_Click">
|
|
|
|
|
<Image Source="/关闭.png"/>
|
|
|
|
|
</Button>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
@ -192,37 +199,32 @@
|
|
|
|
|
<Border BorderThickness="0.5" CornerRadius="10" BorderBrush="Black" Padding="2.5 3 2.5 3" Margin="0.5 1 0.5 1">
|
|
|
|
|
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Hidden">
|
|
|
|
|
<Grid Margin="0.5">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal">
|
|
|
|
|
<Label Content="接收消息:"/>
|
|
|
|
|
<TextBlock Text="{Binding OriginMessage}" VerticalAlignment="Center"></TextBlock>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<StackPanel Grid.Column="0" Orientation="Horizontal" Margin="0 0 5 0">
|
|
|
|
|
<Label Content="标签:" FontWeight="Bold"/>
|
|
|
|
|
<TextBlock Text="{Binding EPCinfo}" FontSize="15" FontWeight="Bold" Foreground="{Binding InfoColor}" VerticalAlignment="Center" FontFamily="Tahoma"></TextBlock>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
|
|
|
|
<Label Content="标签:"/>
|
|
|
|
|
<TextBlock Text="{Binding EPCinfo}" FontSize="15" FontWeight="Bold" Foreground="{Binding InfoColor}" VerticalAlignment="Center"></TextBlock>
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal" Margin="0 0 5 0">
|
|
|
|
|
<Label Content="HEX:" FontWeight="Bold"/>
|
|
|
|
|
<TextBlock Text="{Binding EPCASC}" VerticalAlignment="Center" FontFamily="Tahoma"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal">
|
|
|
|
|
<Label Content="HEX:"/>
|
|
|
|
|
<TextBlock Text="{Binding EPCASC}" VerticalAlignment="Center"></TextBlock>
|
|
|
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal" Margin="0 0 5 0">
|
|
|
|
|
<Label Content="RSSI:" FontWeight="Bold"/>
|
|
|
|
|
<TextBlock Text="{Binding RSSIinfo}" VerticalAlignment="Center" FontFamily="Tahoma"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Row="3" Orientation="Horizontal">
|
|
|
|
|
<StackPanel Grid.Column="0" Orientation="Horizontal">
|
|
|
|
|
<Label Content="RSSI:"/>
|
|
|
|
|
<TextBlock Text="{Binding RSSIinfo}" VerticalAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal">
|
|
|
|
|
<Label Margin="5 0 0 0" Content="Count:"/>
|
|
|
|
|
<TextBlock Text="{Binding Countinfo}" VerticalAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal">
|
|
|
|
|
<Label Margin="5 0 0 0" Content="Time:"/>
|
|
|
|
|
<TextBlock Text="{Binding Timeinfo}" VerticalAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="3" Orientation="Horizontal" Margin="0 0 5 0">
|
|
|
|
|
<Label Margin="5 0 0 0" Content="Count:" FontWeight="Bold"/>
|
|
|
|
|
<TextBlock Text="{Binding Countinfo}" VerticalAlignment="Center" FontFamily="Tahoma"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Column="4" Orientation="Horizontal">
|
|
|
|
|
<Label Margin="5 0 0 0" Content="Time:" FontWeight="Bold"/>
|
|
|
|
|
<TextBlock Text="{Binding Timeinfo}" VerticalAlignment="Center" FontFamily="Tahoma"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</ScrollViewer>
|
|
|
|
@ -514,10 +516,10 @@
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Label Grid.Column="0" Content="模块型号:" HorizontalAlignment="Left" FontSize="14" />
|
|
|
|
|
<Label Grid.Column="1" Content="{Binding moduleInfo}"></Label>
|
|
|
|
|
<Label Grid.Column="2" Content="主板固件号:" HorizontalAlignment="Left" FontSize="14" />
|
|
|
|
|
<Label Grid.Column="3" Content="{Binding motherboardFirmware}"></Label>
|
|
|
|
|
<Label Grid.Column="0" Content="模块型号:" HorizontalAlignment="Left" FontSize="13" FontWeight="Bold"/>
|
|
|
|
|
<Label Grid.Column="1" Content="{Binding moduleInfo}" VerticalContentAlignment="Center"></Label>
|
|
|
|
|
<Label Grid.Column="2" Content="主板固件号:" HorizontalAlignment="Left" FontSize="13" FontWeight="Bold"/>
|
|
|
|
|
<Label Grid.Column="3" Content="{Binding motherboardFirmware}" VerticalContentAlignment="Center"></Label>
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|