123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <UserControl x:Class="LogoForceTestApp.Modules.MainModule.Views.QualityTracing"
- 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:viewmodels="clr-namespace:LogoForceTestApp.Modules.MainModule.ViewModels"
- xmlns:hc="https://handyorg.github.io/handycontrol"
- d:DataContext="{d:DesignInstance Type=viewmodels:QualityTracingViewModel}"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <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}" />
- <TextBox Width="200"
- VerticalAlignment="Center"
- FontSize="20"
- Text="{Binding OperatorCode,UpdateSourceTrigger=PropertyChanged}"
- Margin="4,0"/>
- <Button Margin="4,0"
- VerticalAlignment="Center"
- Command="{Binding QueryCommand}"
- FontSize="14"
- Content="查询" />
- <TextBlock VerticalAlignment="Center"
- FontSize="20"
- Margin="4,0"
- Text="生产总数:" />
- <TextBlock Text="{Binding AllNumber}"
- FontSize="20"
- Margin="4,0"
- VerticalAlignment="Center" />
- <TextBlock Text="总用时:"
- FontSize="20"
- Margin="20,4,0,0"
- VerticalAlignment="Center" />
- <TextBlock Text="{Binding GeneralTime}"
- FontSize="20"
- Margin="4,0"
- VerticalAlignment="Center" />
- </StackPanel>
- <DataGrid Grid.Row="1"
- AutoGenerateColumns="False"
- IsReadOnly="True"
- ItemsSource="{Binding InfNew}">
- <DataGrid.Columns>
- <DataGridTextColumn Binding="{Binding CreateTime}"
- Header="日期" />
- <DataGridTextColumn Binding="{Binding ProCode}"
- Header="产品码" />
- <DataGridTextColumn Binding="{Binding OperatorCode}"
- Header="员工码" />
- <DataGridTextColumn Binding="{Binding SpendTime}"
- 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>
|