StatementPage.xaml 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <UserControl x:Class="LogoForceTestApp.Modules.MainModule.Views.StatementPage"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:LogoForceTestApp.Modules.MainModule.Views"
  7. xmlns:oxy="http://oxyplot.org/wpf"
  8. xmlns:hc="https://handyorg.github.io/handycontrol"
  9. xmlns:viewmodels="clr-namespace:LogoForceTestApp.Modules.MainModule.ViewModels"
  10. d:DataContext="{d:DesignInstance Type=viewmodels:StatementPageViewModel}"
  11. mc:Ignorable="d"
  12. d:DesignHeight="450" d:DesignWidth="800">
  13. <UserControl.Resources>
  14. <ResourceDictionary>
  15. <ResourceDictionary.MergedDictionaries>
  16. <ResourceDictionary Source="/LogoForceTestApp.Modules.MainModule;component/Dictionary/ButtonStyle.xaml" />
  17. </ResourceDictionary.MergedDictionaries>
  18. </ResourceDictionary>
  19. </UserControl.Resources>
  20. <Grid>
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="auto" />
  23. <RowDefinition Height="*" />
  24. <RowDefinition Height="auto" />
  25. </Grid.RowDefinitions>
  26. <StackPanel Orientation="Horizontal">
  27. <hc:DatePicker Margin="4,0"
  28. hc:InfoElement.Title="选择开始时间"
  29. SelectedDate="{Binding SelectedStartDate}" />
  30. <hc:DatePicker Margin="4,0"
  31. hc:InfoElement.Title="选择结束时间"
  32. SelectedDate="{Binding SelectedEndDate}" />
  33. <TextBox Width="200"
  34. VerticalAlignment="Center"
  35. FontSize="20"
  36. Text="{Binding ProCode,UpdateSourceTrigger=PropertyChanged}"
  37. Margin="4,0" />
  38. <Button Margin="4,0"
  39. VerticalAlignment="Center"
  40. Command="{Binding QueryCommand}"
  41. FontSize="14"
  42. Content="查询" />
  43. </StackPanel>
  44. <DataGrid Grid.Row="1"
  45. AutoGenerateColumns="False"
  46. IsReadOnly="True"
  47. ItemsSource="{Binding InfNew}">
  48. <DataGrid.Columns>
  49. <DataGridTextColumn Binding="{Binding CreateTime}"
  50. Header="日期" />
  51. <DataGridTextColumn Binding="{Binding OrderNo}"
  52. Header="订单编号" />
  53. <DataGridTextColumn Binding="{Binding ProType}"
  54. Header="产品型号" />
  55. <DataGridTextColumn Binding="{Binding ProCode}"
  56. Header="产品码" />
  57. <DataGridTextColumn Binding="{Binding ProNo}"
  58. Header="产品编号" />
  59. <DataGridTextColumn Binding="{Binding TestResult}"
  60. Header="检测结果" />
  61. <DataGridTextColumn Binding="{Binding OperatorCode}"
  62. Header="员工码" />
  63. <DataGridTextColumn Binding="{Binding SpendTime}"
  64. Header="用时(秒)" />
  65. <DataGridTextColumn Binding="{Binding ItemCode}"
  66. Header="物料码" />
  67. </DataGrid.Columns>
  68. </DataGrid>
  69. <hc:Pagination Grid.Row="2"
  70. HorizontalAlignment="Center"
  71. IsJumpEnabled="True"
  72. MaxPageCount="{Binding MaxCount}"
  73. PageIndex="{Binding PageIndex}">
  74. <hc:Interaction.Triggers>
  75. <hc:EventTrigger EventName="PageUpdated">
  76. <hc:EventToCommand Command="{Binding PageUpdatedCmd}"
  77. PassEventArgsToCommand="True" />
  78. </hc:EventTrigger>
  79. </hc:Interaction.Triggers>
  80. </hc:Pagination>
  81. </Grid>
  82. </UserControl>