QualityTracing.xaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <UserControl x:Class="LogoForceTestApp.Modules.MainModule.Views.QualityTracing"
  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:viewmodels="clr-namespace:LogoForceTestApp.Modules.MainModule.ViewModels"
  8. xmlns:hc="https://handyorg.github.io/handycontrol"
  9. d:DataContext="{d:DesignInstance Type=viewmodels:QualityTracingViewModel}"
  10. mc:Ignorable="d"
  11. d:DesignHeight="450" d:DesignWidth="800">
  12. <Grid>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="auto" />
  15. <RowDefinition Height="auto" />
  16. <RowDefinition Height="auto" />
  17. <RowDefinition Height="*" />
  18. <RowDefinition Height="auto" />
  19. </Grid.RowDefinitions>
  20. <StackPanel Orientation="Horizontal">
  21. <hc:DatePicker Margin="4,0"
  22. hc:InfoElement.Title="选择开始时间"
  23. SelectedDate="{Binding SelectedStartDate}" />
  24. <hc:DatePicker Margin="4,0"
  25. hc:InfoElement.Title="选择结束时间"
  26. SelectedDate="{Binding SelectedEndDate}" />
  27. <TextBox Width="200"
  28. VerticalAlignment="Center"
  29. FontSize="20"
  30. Text="{Binding OperatorCode,UpdateSourceTrigger=PropertyChanged}"
  31. Margin="4,0"/>
  32. <Button Margin="4,0"
  33. VerticalAlignment="Center"
  34. Command="{Binding QueryCommand}"
  35. FontSize="14"
  36. Content="查询" />
  37. </StackPanel>
  38. <GroupBox Header="产品单价(元/个)"
  39. Grid.Row="1">
  40. <StackPanel Orientation="Horizontal"
  41. VerticalAlignment="Center">
  42. <TextBlock VerticalAlignment="Center"
  43. FontSize="16"
  44. Margin="3"
  45. Text="P60:" />
  46. <TextBox Text="{Binding P60_Price,UpdateSourceTrigger=PropertyChanged}"
  47. Width="100"
  48. Height="30" />
  49. <TextBlock VerticalAlignment="Center"
  50. FontSize="16"
  51. Margin="3"
  52. Text="P70:" />
  53. <TextBox Text="{Binding P70_Price,UpdateSourceTrigger=PropertyChanged}"
  54. Width="100"
  55. Height="30" />
  56. <TextBlock VerticalAlignment="Center"
  57. FontSize="16"
  58. Margin="3"
  59. Text="P80:" />
  60. <TextBox Text="{Binding P80_Price,UpdateSourceTrigger=PropertyChanged}"
  61. Width="100"
  62. Height="30" />
  63. <TextBlock VerticalAlignment="Center"
  64. FontSize="16"
  65. Margin="3"
  66. Text="P90:" />
  67. <TextBox Text="{Binding P90_Price,UpdateSourceTrigger=PropertyChanged}"
  68. Width="100"
  69. Height="30" />
  70. <TextBlock VerticalAlignment="Center"
  71. FontSize="16"
  72. Margin="3"
  73. Text="T29:" />
  74. <TextBox Text="{Binding T29_Price,UpdateSourceTrigger=PropertyChanged}"
  75. Width="100"
  76. Height="30" />
  77. <TextBlock VerticalAlignment="Center"
  78. FontSize="16"
  79. Margin="3"
  80. Text="DH-88:" />
  81. <TextBox Text="{Binding DH88_Price,UpdateSourceTrigger=PropertyChanged}"
  82. Width="100"
  83. Height="30" />
  84. <TextBlock VerticalAlignment="Center"
  85. FontSize="16"
  86. Margin="3"
  87. Text="QL-1:" />
  88. <TextBox Text="{Binding QL1_Price,UpdateSourceTrigger=PropertyChanged}"
  89. Width="100"
  90. Height="30" />
  91. </StackPanel>
  92. </GroupBox>
  93. <GroupBox Header="信息显示"
  94. Grid.Row="2">
  95. <Grid>
  96. <Grid.ColumnDefinitions>
  97. <ColumnDefinition />
  98. <ColumnDefinition Width="300"/>
  99. </Grid.ColumnDefinitions>
  100. <StackPanel Orientation="Horizontal"
  101. VerticalAlignment="Center">
  102. <TextBlock VerticalAlignment="Center"
  103. FontSize="16"
  104. Margin="3"
  105. Text="生产总数:" />
  106. <TextBlock Text="{Binding AllNumber}"
  107. FontSize="16"
  108. Margin="3"
  109. VerticalAlignment="Center" />
  110. <TextBlock Text="总用时(秒):"
  111. FontSize="16"
  112. Margin="20,3,0,3"
  113. VerticalAlignment="Center" />
  114. <TextBlock Text="{Binding GeneralTime}"
  115. FontSize="16"
  116. Margin="3"
  117. VerticalAlignment="Center" />
  118. <TextBlock Text="P60:"
  119. FontSize="16"
  120. Margin="20,3,0,3"
  121. VerticalAlignment="Center" />
  122. <TextBlock Text="{Binding P60Num}"
  123. FontSize="16"
  124. Margin="3"
  125. VerticalAlignment="Center" />
  126. <TextBlock Text="P70:"
  127. FontSize="16"
  128. Margin="20,3,0,3"
  129. VerticalAlignment="Center" />
  130. <TextBlock Text="{Binding P70Num}"
  131. FontSize="16"
  132. Margin="3"
  133. VerticalAlignment="Center" />
  134. <TextBlock Text="P80:"
  135. FontSize="16"
  136. Margin="20,3,0,3"
  137. VerticalAlignment="Center" />
  138. <TextBlock Text="{Binding P80Num}"
  139. FontSize="16"
  140. Margin="3"
  141. VerticalAlignment="Center" />
  142. <TextBlock Text="P90:"
  143. FontSize="16"
  144. Margin="20,3,0,3"
  145. VerticalAlignment="Center" />
  146. <TextBlock Text="{Binding P90Num}"
  147. FontSize="16"
  148. Margin="3"
  149. VerticalAlignment="Center" />
  150. <TextBlock Text="T29:"
  151. FontSize="16"
  152. Margin="20,3,0,3"
  153. VerticalAlignment="Center" />
  154. <TextBlock Text="{Binding T29Num}"
  155. FontSize="16"
  156. Margin="3"
  157. VerticalAlignment="Center" />
  158. <TextBlock Text="DH-88:"
  159. FontSize="16"
  160. Margin="20,3,0,3"
  161. VerticalAlignment="Center" />
  162. <TextBlock Text="{Binding DH88Num}"
  163. FontSize="16"
  164. Margin="3"
  165. VerticalAlignment="Center" />
  166. <TextBlock Text="QL-1:"
  167. FontSize="16"
  168. Margin="20,3,0,3"
  169. VerticalAlignment="Center" />
  170. <TextBlock Text="{Binding QL1Num}"
  171. FontSize="16"
  172. Margin="3"
  173. VerticalAlignment="Center" />
  174. </StackPanel>
  175. <StackPanel Grid.Column="1"
  176. Orientation="Horizontal">
  177. <Button Margin="4,0"
  178. VerticalAlignment="Center"
  179. Command="{Binding ShowMoneyCommand}"
  180. FontSize="14"
  181. Content="显示工资" />
  182. <TextBlock Text="{Binding Money}"
  183. FontSize="16"
  184. Margin="3"
  185. VerticalAlignment="Center" />
  186. </StackPanel>
  187. </Grid>
  188. </GroupBox>
  189. <DataGrid Grid.Row="3"
  190. AutoGenerateColumns="False"
  191. IsReadOnly="True"
  192. ItemsSource="{Binding InfNew}">
  193. <DataGrid.Columns>
  194. <DataGridTextColumn Binding="{Binding CreateTime}"
  195. Header="日期" />
  196. <DataGridTextColumn Binding="{Binding OperatorCode}"
  197. Header="员工码" />
  198. <DataGridTextColumn Binding="{Binding OrderNo}"
  199. Header="订单编号" />
  200. <DataGridTextColumn Binding="{Binding ProType}"
  201. Header="产品型号" />
  202. <DataGridTextColumn Binding="{Binding ProCode}"
  203. Header="产品码" />
  204. <DataGridTextColumn Binding="{Binding ProNo}"
  205. Header="产品编号" />
  206. <DataGridTextColumn Binding="{Binding TestResult}"
  207. Header="检测结果" />
  208. <DataGridTextColumn Binding="{Binding SpendTime}"
  209. Header="用时(秒)" />
  210. <DataGridTextColumn Binding="{Binding ItemCode}"
  211. Header="物料码" />
  212. </DataGrid.Columns>
  213. </DataGrid>
  214. <hc:Pagination Grid.Row="4"
  215. HorizontalAlignment="Center"
  216. IsJumpEnabled="True"
  217. MaxPageCount="{Binding MaxCount}"
  218. PageIndex="{Binding PageIndex}">
  219. <hc:Interaction.Triggers>
  220. <hc:EventTrigger EventName="PageUpdated">
  221. <hc:EventToCommand Command="{Binding PageUpdatedCmd}"
  222. PassEventArgsToCommand="True" />
  223. </hc:EventTrigger>
  224. </hc:Interaction.Triggers>
  225. </hc:Pagination>
  226. </Grid>
  227. </UserControl>