添加查看日志
parent
2e981a9d0b
commit
f08d3f4f92
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,134 @@
|
||||
<Window x:Class="XGL.Views.ViewLogWin"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:XGL.Views" xmlns:localDate="clr-namespace:XGL.Tools"
|
||||
mc:Ignorable="d"
|
||||
Title="ViewLogWin" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen" WindowStyle="None" WindowState="Maximized">
|
||||
<Window.Resources>
|
||||
<SolidColorBrush x:Key="EvenRowBackground" Color="#E0E0E0"/>
|
||||
<SolidColorBrush x:Key="OddRowBackground" Color="#FFFFFF"/>
|
||||
<Style x:Key="DataGridRowStyle" TargetType="DataGridRow">
|
||||
<Setter Property="Background" Value="{StaticResource EvenRowBackground}"/>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="ItemsControl.AlternationIndex" Value="1">
|
||||
<Setter Property="Background" Value="{StaticResource OddRowBackground}"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style x:Key="CustomCellStyle" TargetType="DataGridCell">
|
||||
<Setter Property="Foreground" Value="Black" />
|
||||
<Setter Property="TextBlock.TextAlignment" Value="Center" />
|
||||
<Setter Property="TextBlock.FontSize" Value="22" />
|
||||
</Style>
|
||||
<!--日历样式-->
|
||||
<Style TargetType="CalendarDayButton" x:Key="CalendarDayBtnStyle">
|
||||
<Setter Property="FontSize" Value="16"></Setter>
|
||||
</Style>
|
||||
<Style x:Key="calendarWithGotToTodayStyle"
|
||||
TargetType="{x:Type Calendar}">
|
||||
<Setter Property="CalendarDayButtonStyle"
|
||||
Value="{StaticResource CalendarDayBtnStyle}"></Setter>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Calendar}">
|
||||
<Border>
|
||||
<StackPanel Orientation="Vertical">
|
||||
<StackPanel x:Name="PART_Root"
|
||||
HorizontalAlignment="Center" Background="#FF878787">
|
||||
<CalendarItem x:Name="PART_CalendarItem"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Background="{TemplateBinding Background}"
|
||||
Style="{TemplateBinding CalendarItemStyle}"
|
||||
Height="{TemplateBinding Height}"
|
||||
/>
|
||||
<Grid VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="30"></RowDefinition>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="52"></ColumnDefinition>
|
||||
<ColumnDefinition Width="26"></ColumnDefinition>
|
||||
<ColumnDefinition Width="52"></ColumnDefinition>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock x:Name="PART_GoToday"
|
||||
Width="40" Height="20"
|
||||
Text="今天" FontSize="18" VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center" Cursor="Hand" Foreground="#FFFFFFFF" />
|
||||
<TextBlock Grid.Column="2" x:Name="PART_GoClear"
|
||||
Width="40" Height="20"
|
||||
Text="清空" FontSize="18" VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center" Cursor="Hand" Foreground="#FFFFFFFF" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="0.1*"/>
|
||||
<RowDefinition Height="0.9*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Orientation="Horizontal" Grid.Row="0" VerticalAlignment="Center">
|
||||
<Label Content="请选择日期:" VerticalContentAlignment="Center" FontSize="14" Margin="20"></Label>
|
||||
<localDate:UserDatePicker x:Name="dateStart" VerticalAlignment="Center" AlternativeCalendarStyle="{StaticResource calendarWithGotToTodayStyle}"
|
||||
Width="150" SelectedDateFormat="Short" IsTodayHighlighted="True">
|
||||
</localDate:UserDatePicker>
|
||||
|
||||
<Label Content="关键字:" VerticalContentAlignment="Center" FontSize="14" Margin="20"></Label>
|
||||
<TextBox x:Name="txtKey" Width="150" Height="30" FontSize="18" VerticalContentAlignment="Center"></TextBox>
|
||||
<Button x:Name="btnQueryLog" Content="查询" Foreground="White" Margin="20,0,0,0" FontSize="18" Background="#2B7EE6" Width="100" Height="30" Click="btnQueryLog_Click"/>
|
||||
|
||||
</StackPanel>
|
||||
<Button x:Name="btnClose" Content="关闭" Foreground="White" FontSize="18" Background="#2B7EE6" Width="100" Margin="20" Height="30" Click="btnClose_Click" HorizontalAlignment="Right"/>
|
||||
<DataGrid
|
||||
x:Name="dgLogInfo"
|
||||
Grid.Row="1"
|
||||
|
||||
|
||||
MinHeight="340"
|
||||
AlternatingRowBackground="{StaticResource OddRowBackground}"
|
||||
AlternationCount="2"
|
||||
RowStyle="{StaticResource DataGridRowStyle}"
|
||||
Margin="20,0,0,5"
|
||||
LoadingRow="dgLogInfo_LoadingRow"
|
||||
HeadersVisibility="Column"
|
||||
CellStyle="{StaticResource CustomCellStyle}"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top" IsReadOnly="True"
|
||||
AutoGenerateColumns="False" CanUserAddRows="False">
|
||||
<DataGrid.ColumnHeaderStyle >
|
||||
<Style TargetType="DataGridColumnHeader">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
<Setter Property="Height" Value="48" />
|
||||
<Setter Property="FontSize" Value="20" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
<Setter Property="Background" Value="#2B7EE6" />
|
||||
</Style>
|
||||
</DataGrid.ColumnHeaderStyle>
|
||||
<DataGrid.Columns>
|
||||
<DataGridTemplateColumn Header=" 序号" Width="80" MinWidth="10" IsReadOnly="True">
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type DataGridRow}}, Path=Header}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10,0,0,0"></TextBlock>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
<DataGridTextColumn Width="0.7*" Header="通讯内容" Binding="{Binding messsge}" />
|
||||
<DataGridTextColumn Width="0.1*" Header="日志时间" Binding="{Binding creter_time, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" />
|
||||
<!--<DataGridTextColumn Width="0.05*" Header="状态" Binding="{Binding reqcode}" > </DataGridTextColumn>-->
|
||||
<DataGridTextColumn Width="0.1*" Header="方法名" Binding="{Binding method}" />
|
||||
<DataGridTextColumn Width="0.1*" Header="备注" Binding="{Binding remark}" />
|
||||
|
||||
<!--<DataGridTextColumn Width="340" Header="流转码" Binding="{Binding work_batch_code}" />-->
|
||||
<!--<DataGridTextColumn Width="60" Header="出入" Binding="{Binding taskcode,Converter={StaticResource TaskCodeConverter}}"/>-->
|
||||
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
22be839cc0ed09734a65645827becca7206eacaf
|
||||
87f39467f535bf496adb97438a039b26400bb381
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue