| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- <UserControl x:Class="TeamAAS_VP.Views.Statistics.PhotoCaptureQuery"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels.Statistics"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:lex="http://wpflocalizeextension.codeplex.com"
- lex:LocalizeDictionary.DesignCulture="zh-CN"
- lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
- lex:ResxLocalizationProvider.DefaultDictionary="Lang"
- prism:ViewModelLocator.AutoWireViewModel="True"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- FontFamily="{DynamicResource DefaultFont}"
- mc:Ignorable="d"
- d:DataContext="{d:DesignInstance Type=vm:PhotoCaptureQueryViewModel}"
- d:Height="600"
- d:Width="1024"
- d:Background="White">
- <b:Interaction.Triggers>
- <b:EventTrigger EventName="Loaded">
- <b:InvokeCommandAction Command="{Binding LoadedCommand}" />
- </b:EventTrigger>
- </b:Interaction.Triggers>
- <Grid Margin="8">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <!--标题-->
- <TextBlock Text="拍照记录查询"
- FontSize="20"
- FontWeight="Bold"
- Margin="0,0,0,12" />
- <StackPanel Grid.Row="1"
- Orientation="Horizontal"
- Margin="0,0,0,8">
- <TextBlock Text="产品"
- VerticalAlignment="Center"
- Margin="0,0,8,0" />
- <ComboBox MinWidth="100"
- ItemsSource="{Binding AllProduct}"
- DisplayMemberPath="Name"
- SelectedItem="{Binding SelectedProduct}" />
- <TextBlock Text="相机"
- VerticalAlignment="Center"
- Margin="16,0,8,0" />
- <ComboBox MinWidth="100"
- ItemsSource="{Binding AllCamera}"
- DisplayMemberPath="CameraName"
- SelectedItem="{Binding SelectedCamera}" />
- <TextBlock Text="产品SN"
- VerticalAlignment="Center"
- Margin="16,0,8,0" />
- <TextBox Width="150"
- Text="{Binding ProductSN}" />
- <TextBlock Text="开始"
- VerticalAlignment="Center"
- Margin="16,0,8,0" />
- <DatePicker SelectedDate="{Binding StartDate}"
- MinWidth="100" />
- <TextBlock Text="结束"
- VerticalAlignment="Center"
- Margin="8,0,8,0" />
- <DatePicker SelectedDate="{Binding EndDate}"
- MinWidth="100" />
- <Button Content="查询"
- Command="{Binding SearchCommand}"
- Margin="12,0,0,0" />
- <Button Content="导出当前页"
- Command="{Binding ExportCommand}"
- Margin="6,0,0,0" />
- </StackPanel>
- <DataGrid Grid.Row="2"
- ItemsSource="{Binding Results}"
- AutoGenerateColumns="False"
- CanUserAddRows="False"
- IsReadOnly="True">
- <DataGrid.Columns>
- <DataGridTextColumn Header="CaptureTime"
- Binding="{Binding CaptureTime, StringFormat=yyyy-MM-dd HH:mm:ss}" />
- <DataGridTextColumn Header="RecipeName"
- Binding="{Binding RecipeName}" />
- <DataGridTextColumn Header="CameraName"
- Binding="{Binding CameraName}" />
- <DataGridTextColumn Header="ProductSN"
- Binding="{Binding ProductSN}" />
- <DataGridTextColumn Header="Result"
- Binding="{Binding Result}" />
- <DataGridTextColumn Header="ImagePath"
- Binding="{Binding ImagePath}" />
- </DataGrid.Columns>
- </DataGrid>
- <StackPanel Grid.Row="3"
- Orientation="Horizontal"
- HorizontalAlignment="Center"
- Margin="0,8,0,0">
- <Button Content="上一页"
- Command="{Binding PrevPageCommand}"
- Margin="4" />
- <TextBlock VerticalAlignment="Center"
- Margin="4">第</TextBlock>
- <TextBox Width="50"
- Text="{Binding PageIndex, UpdateSourceTrigger=PropertyChanged}"
- HorizontalContentAlignment="Center" />
- <TextBlock VerticalAlignment="Center"
- Margin="4">页 / 共</TextBlock>
- <TextBlock VerticalAlignment="Center"
- Text="{Binding TotalCount}"
- Margin="4" />
- <Button Content="下一页"
- Command="{Binding NextPageCommand}"
- Margin="4" />
- </StackPanel>
- <Button Margin="16"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Grid.RowSpan="3"
- Command="{x:Static materialDesign:Transitioner.MovePreviousCommand}"
- Style="{StaticResource MaterialDesignFloatingActionMiniButton}">
- <materialDesign:PackIcon Kind="StepBackward" />
- </Button>
- <Button Margin="16"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Grid.RowSpan="3"
- Command="{x:Static materialDesign:Transitioner.MoveNextCommand}"
- Style="{StaticResource MaterialDesignFloatingActionSecondaryButton}">
- <materialDesign:PackIcon Kind="StepForward" />
- </Button>
- </Grid>
- </UserControl>
|