QualityTracing.xaml 11 KB

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