终端一体化运控平台
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

230 líneas
10 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.FoodStationTest.View.HardwareStatusView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:control="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:BPASmartClient.FoodStationTest.View"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  10. xmlns:vm="clr-namespace:BPASmartClient.FoodStationTest.ViewModel"
  11. d:DesignHeight="1080"
  12. d:DesignWidth="1920"
  13. mc:Ignorable="d">
  14. <UserControl.DataContext>
  15. <vm:HardwareStatusViewModel />
  16. </UserControl.DataContext>
  17. <Grid>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="0.5*" />
  20. <RowDefinition />
  21. <RowDefinition Height="0.5*" />
  22. </Grid.RowDefinitions>
  23. <!--#region 顶部料仓-->
  24. <Grid Name="TopGrid">
  25. <ListView
  26. Height="{Binding ElementName=TopGrid, Path=ActualHeight}"
  27. VerticalAlignment="Center"
  28. Background="Transparent"
  29. BorderThickness="0"
  30. ItemsSource="{Binding TopDeviceCurrentStatuses}"
  31. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  32. <ListView.ItemsPanel>
  33. <ItemsPanelTemplate>
  34. <!--<WrapPanel Orientation="Horizontal" IsItemsHost="True"/>-->
  35. <UniformGrid
  36. HorizontalAlignment="Left"
  37. VerticalAlignment="Top"
  38. Columns="8"
  39. Rows="1" />
  40. </ItemsPanelTemplate>
  41. </ListView.ItemsPanel>
  42. <ListView.ItemTemplate>
  43. <DataTemplate>
  44. <Border Margin="5" Background="Transparent">
  45. <Grid Height="220">
  46. <Grid.RowDefinitions>
  47. <RowDefinition />
  48. <RowDefinition />
  49. </Grid.RowDefinitions>
  50. <TextBlock
  51. Margin="0,0,0,35"
  52. HorizontalAlignment="Center"
  53. VerticalAlignment="Bottom"
  54. FontSize="25"
  55. Foreground="#ffccd61f"
  56. Text="{Binding DeviceName}" />
  57. <StackPanel
  58. Grid.Row="1"
  59. Margin="0,10,0,0"
  60. HorizontalAlignment="Center"
  61. Orientation="Horizontal">
  62. <TextBlock
  63. FontSize="20"
  64. Foreground="#FF0084FF"
  65. Text="{Binding Weight}" />
  66. <TextBlock
  67. FontSize="20"
  68. Foreground="#FF0084FF"
  69. Text=" kg" />
  70. </StackPanel>
  71. <StackPanel
  72. Grid.Row="1"
  73. Margin="0,40,0,0"
  74. HorizontalAlignment="Center"
  75. Orientation="Horizontal">
  76. <TextBlock
  77. FontSize="20"
  78. Foreground="#FF0084FF"
  79. Text="{Binding DeviceNum}" />
  80. <TextBlock
  81. FontSize="20"
  82. Foreground="#FF0084FF"
  83. Text=" 号仓" />
  84. </StackPanel>
  85. <StackPanel
  86. Grid.Row="1"
  87. Margin="0,70,0,0"
  88. HorizontalAlignment="Center"
  89. Orientation="Horizontal">
  90. <TextBlock
  91. FontSize="20"
  92. Foreground="#FF0084FF"
  93. Text="运行状态:" />
  94. <TextBlock
  95. FontSize="20"
  96. Foreground="#FF0084FF"
  97. Text="{Binding RunStatus}" />
  98. </StackPanel>
  99. <Image
  100. Grid.RowSpan="2"
  101. Source="/BPASmartClient.CustomResource;component/Image/光柱.png"
  102. Stretch="Fill" />
  103. </Grid>
  104. </Border>
  105. </DataTemplate>
  106. </ListView.ItemTemplate>
  107. </ListView>
  108. </Grid>
  109. <!--#endregion-->
  110. <Grid x:Name="gr" Grid.Row="1">
  111. <pry:ConveyBelt2
  112. BeltDashOffset="100"
  113. BeltDashThickess="62"
  114. BeltDirection="0"
  115. BeltHeight="70"
  116. Margin="0,150,0,0"
  117. BeltWidth="{Binding ElementName=gr, Path=ActualWidth}"
  118. IsRun="True" />
  119. </Grid>
  120. <!--#region 底部料仓-->
  121. <Grid Grid.Row="2">
  122. <ListView
  123. VerticalAlignment="Center"
  124. Background="Transparent"
  125. BorderThickness="0"
  126. ItemsSource="{Binding BottomDeviceCurrentStatuses}"
  127. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  128. <ListView.ItemsPanel>
  129. <ItemsPanelTemplate>
  130. <UniformGrid
  131. HorizontalAlignment="Left"
  132. VerticalAlignment="Top"
  133. Columns="8"
  134. Rows="1" />
  135. </ItemsPanelTemplate>
  136. </ListView.ItemsPanel>
  137. <ListView.ItemTemplate>
  138. <DataTemplate>
  139. <Border Margin="5" Background="Transparent">
  140. <Grid Height="220">
  141. <Grid.RowDefinitions>
  142. <RowDefinition />
  143. <RowDefinition />
  144. </Grid.RowDefinitions>
  145. <TextBlock
  146. Margin="0,0,0,35"
  147. HorizontalAlignment="Center"
  148. VerticalAlignment="Bottom"
  149. FontSize="25"
  150. Foreground="#ffccd61f"
  151. Text="{Binding DeviceName}" />
  152. <StackPanel
  153. Grid.Row="1"
  154. Margin="0,10,0,0"
  155. HorizontalAlignment="Center"
  156. Orientation="Horizontal">
  157. <TextBlock
  158. FontSize="20"
  159. Foreground="#FF0084FF"
  160. Text="{Binding Weight}" />
  161. <TextBlock
  162. FontSize="20"
  163. Foreground="#FF0084FF"
  164. Text=" kg" />
  165. </StackPanel>
  166. <StackPanel
  167. Grid.Row="1"
  168. Margin="0,40,0,0"
  169. HorizontalAlignment="Center"
  170. Orientation="Horizontal">
  171. <TextBlock
  172. FontSize="20"
  173. Foreground="#FF0084FF"
  174. Text="{Binding DeviceNum}" />
  175. <TextBlock
  176. FontSize="20"
  177. Foreground="#FF0084FF"
  178. Text=" 号仓" />
  179. </StackPanel>
  180. <StackPanel
  181. Grid.Row="1"
  182. Margin="0,70,0,0"
  183. HorizontalAlignment="Center"
  184. Orientation="Horizontal">
  185. <TextBlock
  186. FontSize="20"
  187. Foreground="#FF0084FF"
  188. Text="运行状态:" />
  189. <TextBlock
  190. FontSize="20"
  191. Foreground="#FF0084FF"
  192. Text="{Binding RunStatus}" />
  193. </StackPanel>
  194. <Image
  195. Grid.RowSpan="2"
  196. Source="/BPASmartClient.CustomResource;component/Image/光柱.png"
  197. Stretch="Fill" />
  198. </Grid>
  199. </Border>
  200. </DataTemplate>
  201. </ListView.ItemTemplate>
  202. </ListView>
  203. </Grid>
  204. <!--#endregion-->
  205. </Grid>
  206. </UserControl>