156 lines
7.2 KiB
XML
156 lines
7.2 KiB
XML
<UserControl
|
|
x:Class="CapMachine.Wpf.Views.ActionLogView"
|
|
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:local="clr-namespace:CapMachine.Wpf.Views"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
Width="1920"
|
|
Height="980"
|
|
prism:ViewModelLocator.AutoWireViewModel="True">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="220" />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<GroupBox Margin="5,10,5,10" Header="日志查询条件">
|
|
<StackPanel Margin="0,0,0,0" Orientation="Vertical">
|
|
<StackPanel.Resources>
|
|
<Style TargetType="StackPanel">
|
|
<Setter Property="Orientation" Value="Horizontal" />
|
|
<Setter Property="Margin" Value="0,0,0,4" />
|
|
</Style>
|
|
<Style BasedOn="{StaticResource {x:Type Label}}" TargetType="Label">
|
|
<Setter Property="Width" Value="120" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
</Style>
|
|
<Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
|
|
<Setter Property="Padding" Value="0,3" />
|
|
</Style>
|
|
<Style BasedOn="{StaticResource {x:Type RadioButton}}" TargetType="RadioButton">
|
|
<Setter Property="Padding" Value="0,3" />
|
|
</Style>
|
|
</StackPanel.Resources>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="9*" />
|
|
<RowDefinition Height="3*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel
|
|
Grid.Column="0"
|
|
Margin="0,0,0,20"
|
|
HorizontalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<StackPanel
|
|
Margin="20"
|
|
HorizontalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Label
|
|
HorizontalAlignment="Center"
|
|
HorizontalContentAlignment="Center"
|
|
Content="分类:" />
|
|
<DockPanel x:Name="Combbox1">
|
|
<StackPanel>
|
|
<!--<ComboBox Width="200" HorizontalAlignment="Left" ItemsSource="{Binding CombboxList}" SelectedItem="{Binding CombboxItem}" DisplayMemberPath="Text" SelectedValuePath="Key" ></ComboBox>-->
|
|
<ComboBox
|
|
Width="120"
|
|
materialDesign:HintAssist.Hint="分类"
|
|
DisplayMemberPath="Text"
|
|
ItemsSource="{Binding CategoryComboBoxList}"
|
|
SelectedValue="{Binding SearchCategory}"
|
|
SelectedValuePath="Text" />
|
|
</StackPanel>
|
|
</DockPanel>
|
|
</StackPanel>
|
|
<StackPanel Margin="20">
|
|
<Label HorizontalContentAlignment="Center" Content="创建时间:" />
|
|
<DatePicker
|
|
Width="120"
|
|
Margin="0,0,10,0"
|
|
materialDesign:HintAssist.Hint="开始时间"
|
|
Language="zh-CN"
|
|
SelectedDate="{Binding SearchStartDate, Mode=TwoWay}"
|
|
Style="{StaticResource MaterialDesignFloatingHintDatePicker}" />
|
|
<DatePicker
|
|
Width="120"
|
|
Margin="10,0,10,0"
|
|
materialDesign:HintAssist.Hint="结束时间"
|
|
Language="zh-CN"
|
|
SelectedDate="{Binding SearchEndDate, Mode=TwoWay}"
|
|
Style="{StaticResource MaterialDesignFloatingHintDatePicker}" />
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
Background=" AliceBlue"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
Width="120"
|
|
Height="30"
|
|
Margin="10,10,10,10"
|
|
HorizontalAlignment="Center"
|
|
Background="Green"
|
|
Command="{Binding SearchCmd}"
|
|
Content="搜索"
|
|
Foreground="White" />
|
|
<Button
|
|
Width="120"
|
|
Height="30"
|
|
Margin="10,10,10,10"
|
|
HorizontalAlignment="Center"
|
|
Background="Orange"
|
|
Command="{Binding OutputDataCmd}"
|
|
Content="导出数据"
|
|
Foreground="White" />
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
</StackPanel>
|
|
</GroupBox>
|
|
<Grid Grid.Row="1" Margin="8">
|
|
<DataGrid
|
|
x:Name="dg1"
|
|
Grid.ColumnSpan="2"
|
|
AutoGenerateColumns="False"
|
|
IsReadOnly="True"
|
|
ItemsSource="{Binding ListModelDto}"
|
|
SelectionMode="Single"
|
|
SelectionUnit="Cell">
|
|
<!--<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
<i:InvokeCommandAction Command="{Binding SelectedItemsCmd}" CommandParameter="{Binding ElementName=dg1}" />
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>-->
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTextColumn
|
|
Width="100"
|
|
Binding="{Binding Level}"
|
|
Header="等级" />
|
|
|
|
|
|
<DataGridTextColumn
|
|
Width="200"
|
|
Binding="{Binding Category}"
|
|
Header="分类" />
|
|
|
|
<DataGridTextColumn
|
|
Width="1200"
|
|
Binding="{Binding Content}"
|
|
Header="内容" />
|
|
|
|
<DataGridTextColumn
|
|
Width="180"
|
|
Binding="{Binding CreateTime, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}"
|
|
Header="创建时间" />
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
</Grid>
|
|
|
|
</Grid>
|
|
</UserControl>
|