123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <UserControl x:Class="LogoForceTestApp.Modules.MainModule.Views.StatementPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:LogoForceTestApp.Modules.MainModule.Views"
- xmlns:oxy="http://oxyplot.org/wpf"
- xmlns:hc="https://handyorg.github.io/handycontrol"
- xmlns:viewmodels="clr-namespace:LogoForceTestApp.Modules.MainModule.ViewModels"
- d:DataContext="{d:DesignInstance Type=viewmodels:StatementPageViewModel}"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/LogoForceTestApp.Modules.MainModule;component/Dictionary/ButtonStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="auto" />
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal">
- <hc:DatePicker Margin="4,0"
- hc:InfoElement.Title="选择开始时间"
- SelectedDate="{Binding SelectedStartDate}" />
- <hc:DatePicker Margin="4,0"
- hc:InfoElement.Title="选择结束时间"
- SelectedDate="{Binding SelectedEndDate}" />
- <TextBlock Text="产品码:"
- Margin="5"
- FontSize="16"
- VerticalAlignment="Center" />
- <TextBox Width="300"
- VerticalAlignment="Center"
- FontSize="20"
- Text="{Binding ProCode,UpdateSourceTrigger=PropertyChanged}"
- Margin="4,0" />
- <Button Margin="4,0"
- VerticalAlignment="Center"
- Command="{Binding QueryCommand}"
- FontSize="14"
- Content="查询" />
- </StackPanel>
- <DataGrid Grid.Row="1"
- AutoGenerateColumns="False"
- IsReadOnly="True"
- ItemsSource="{Binding InfNew}">
- <DataGrid.Columns>
- <DataGridTextColumn Binding="{Binding CreateTime}"
- Header="日期" />
- <DataGridTextColumn Binding="{Binding OperatorCode}"
- Header="员工ID" />
- <DataGridTextColumn Binding="{Binding WorkDev}"
- Header="工作机台" />
- <DataGridTextColumn Binding="{Binding OrderNo}"
- Header="订单编号" />
- <DataGridTextColumn Binding="{Binding ProType}"
- Header="产品型号" />
- <DataGridTextColumn Binding="{Binding ProCode}"
- Header="产品码" />
- <DataGridTextColumn Binding="{Binding TestResult}"
- Header="检测结果" />
- <DataGridTextColumn Binding="{Binding SpendTime}"
- Header="用时(秒)" />
- <DataGridTextColumn Binding="{Binding ItemCode}"
- Header="物料码" />
- </DataGrid.Columns>
- </DataGrid>
- <hc:Pagination Grid.Row="2"
- HorizontalAlignment="Center"
- IsJumpEnabled="True"
- MaxPageCount="{Binding MaxCount}"
- PageIndex="{Binding PageIndex}">
- <hc:Interaction.Triggers>
- <hc:EventTrigger EventName="PageUpdated">
- <hc:EventToCommand Command="{Binding PageUpdatedCmd}"
- PassEventArgsToCommand="True" />
- </hc:EventTrigger>
- </hc:Interaction.Triggers>
- </hc:Pagination>
- </Grid>
- </UserControl>
|