|
|
|
@ -12,9 +12,10 @@
|
|
|
|
|
<RowDefinition Height="14*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Border Grid.Row="0" BorderBrush="#EBF4FD" BorderThickness="2" CornerRadius="10" Background="#EBF4FD" Margin="10,10">
|
|
|
|
|
|
|
|
|
|
<StackPanel Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal">
|
|
|
|
|
|
|
|
|
|
<TextBlock Text="日志类型" FontSize="18" Foreground="#31446E" Margin="10,3"/>
|
|
|
|
|
<TextBlock Text="日志类型" FontSize="18" Foreground="#31446E" Margin="10,3,5,3"/>
|
|
|
|
|
<ComboBox SelectedItem="{Binding LogType}" FontSize="16" Grid.Row="1" Width="180" Height="30" VerticalContentAlignment="Center" HorizontalAlignment="Center" Padding="5">
|
|
|
|
|
<ComboBoxItem>包裹数据</ComboBoxItem>
|
|
|
|
|
<ComboBoxItem>设备监控</ComboBoxItem>
|
|
|
|
@ -22,7 +23,7 @@
|
|
|
|
|
<ComboBoxItem IsSelected="True">所有</ComboBoxItem>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
|
|
|
|
|
<TextBlock Text="日志级别" FontSize="18" Foreground="#31446E" Margin="10,3"/>
|
|
|
|
|
<TextBlock Text="日志级别" FontSize="18" Foreground="#31446E" Margin="5,3"/>
|
|
|
|
|
<ComboBox SelectedItem="{Binding LogLevel}" FontSize="16" Grid.Row="1" Width="180" Height="30" VerticalContentAlignment="Center" HorizontalAlignment="Center" Padding="5">
|
|
|
|
|
<ComboBoxItem>Info</ComboBoxItem>
|
|
|
|
|
<ComboBoxItem>Warn</ComboBoxItem>
|
|
|
|
@ -30,7 +31,7 @@
|
|
|
|
|
<ComboBoxItem IsSelected="True">所有</ComboBoxItem>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
|
|
|
|
|
<TextBlock Text="日志时间" FontSize="18" Foreground="#31446E" Margin="20,3,10,0"/>
|
|
|
|
|
<TextBlock Text="日志时间" FontSize="18" Foreground="#31446E" Margin="5,3,5,0"/>
|
|
|
|
|
<DatePicker x:Name="BeginTimeDatePicker" SelectedDate="{Binding BeginTime}" FontSize="14" Width="180" Height="30" VerticalContentAlignment="Center" HorizontalAlignment="Center" Padding="5" Margin="0,0,5,0"/>
|
|
|
|
|
<TextBlock Text="-" FontSize="18" Foreground="#31446E" Margin="10,3"/>
|
|
|
|
|
<DatePicker x:Name="EndTimeDatePicker" SelectedDate="{Binding EndTime}" FontSize="14" Width="180" Height="30" VerticalContentAlignment="Center" HorizontalAlignment="Center" Padding="5" Margin="0,0,5,0"/>
|
|
|
|
@ -44,29 +45,29 @@
|
|
|
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding ScanItems}" Background="Transparent"
|
|
|
|
|
FontSize="18" ColumnHeaderHeight="35"
|
|
|
|
|
RowHeight="150" AutoGenerateColumns="False" RowHeaderWidth="0"
|
|
|
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False" HorizontalAlignment="Center"
|
|
|
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Visible"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Visible" BorderThickness="0" CanUserAddRows="False" HorizontalAlignment="Center"
|
|
|
|
|
Foreground="#31446E" x:Name="dataGrid" Margin="0,10,0,0" >
|
|
|
|
|
<!--resourceStyle 399行修改选中字体颜色-->
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Id}" Header="序号" Width="1*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding LogType}" Header="日志类型" Width="1*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding LogLevel}" Header="日志级别" Width="1*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Content}" Header="日志内容" Width="3*" IsReadOnly="True">
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Content}" Header="日志内容" Width="4*" IsReadOnly="True">
|
|
|
|
|
<DataGridTextColumn.ElementStyle>
|
|
|
|
|
<Style TargetType="TextBlock">
|
|
|
|
|
<Setter Property="TextWrapping" Value="Wrap"/>
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGridTextColumn.ElementStyle>
|
|
|
|
|
</DataGridTextColumn>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ErrMsg}" Header="异常日志" Width="3*" IsReadOnly="True">
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ErrMsg}" Header="异常日志" Width="4*" IsReadOnly="True">
|
|
|
|
|
<DataGridTextColumn.ElementStyle>
|
|
|
|
|
<Style TargetType="TextBlock">
|
|
|
|
|
<Setter Property="TextWrapping" Value="Wrap"/>
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGridTextColumn.ElementStyle>
|
|
|
|
|
</DataGridTextColumn>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding CreateTime ,StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}" Header="记录时间" Width="1.5*" IsReadOnly="True"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding CreateTime ,StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}" Header="记录时间" Width="2*" IsReadOnly="True"/>
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
</Border>
|
|
|
|
|