终端一体化运控平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

386 linhas
14 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.DosingSystem.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.DosingSystem.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.DosingSystem.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. <!--#region 测试-->
  19. <!--<ListView
  20. Height="150"
  21. VerticalAlignment="Center"
  22. Background="Transparent"
  23. BorderThickness="0"
  24. ItemsSource="{Binding TopDeviceCurrentStatuses}"
  25. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  26. <ListView.ItemsPanel>
  27. <ItemsPanelTemplate>
  28. <UniformGrid
  29. HorizontalAlignment="Center"
  30. VerticalAlignment="Center"
  31. Columns="10" />
  32. </ItemsPanelTemplate>
  33. </ListView.ItemsPanel>
  34. <ListView.ItemTemplate>
  35. <DataTemplate>
  36. <Border Background="Transparent">
  37. <Grid Height="100">
  38. <pry:MotorBottle
  39. Height="100"
  40. CurrentValue="{Binding Weight}"
  41. IsRun="{Binding RunStatus}"
  42. RenderTransformOrigin="0.5,0.5">
  43. <pry:MotorBottle.RenderTransform>
  44. <TransformGroup>
  45. <RotateTransform Angle="90" />
  46. </TransformGroup>
  47. </pry:MotorBottle.RenderTransform>
  48. </pry:MotorBottle>
  49. </Grid>
  50. </Border>
  51. </DataTemplate>
  52. </ListView.ItemTemplate>
  53. </ListView>-->
  54. <!--#endregion-->
  55. <UniformGrid Columns="10">
  56. <Grid>
  57. <Grid.RowDefinitions>
  58. <RowDefinition />
  59. <RowDefinition />
  60. </Grid.RowDefinitions>
  61. <TextBlock
  62. HorizontalAlignment="Center"
  63. VerticalAlignment="Bottom"
  64. Margin="0 0 0 35"
  65. FontSize="25"
  66. Foreground="#FFCCD61F"
  67. Text="香料剂" />
  68. <TextBlock
  69. Grid.Row="1"
  70. Margin="0,25,0,0"
  71. HorizontalAlignment="Center"
  72. FontSize="20"
  73. Foreground="#FF0084FF"
  74. Text="25.53 kg" />
  75. <TextBlock
  76. Grid.Row="1"
  77. Margin="0,70,0,0"
  78. HorizontalAlignment="Center"
  79. FontSize="20"
  80. Foreground="#FF0084FF"
  81. Text="1 号仓" />
  82. <Image
  83. Grid.RowSpan="2"
  84. Source="/BPASmartClient.CustomResource;component/Image/光柱.png"
  85. Stretch="Fill" />
  86. </Grid>
  87. <Image Source="/BPASmartClient.CustomResource;component/Image/光柱.png" />
  88. <Image Source="/BPASmartClient.CustomResource;component/Image/光柱.png" />
  89. <Image Source="/BPASmartClient.CustomResource;component/Image/光柱.png" />
  90. <Image Source="/BPASmartClient.CustomResource;component/Image/光柱.png" />
  91. <Image Source="/BPASmartClient.CustomResource;component/Image/光柱.png" />
  92. <Image Source="/BPASmartClient.CustomResource;component/Image/光柱.png" />
  93. <Image Source="/BPASmartClient.CustomResource;component/Image/光柱.png" />
  94. <Image Source="/BPASmartClient.CustomResource;component/Image/光柱.png" />
  95. <Image Source="/BPASmartClient.CustomResource;component/Image/光柱.png" />
  96. <!--<pry:BatchingMachine Margin="56,35,-112,10"/>
  97. <pry:BatchingMachine Margin="56,35,-112,10"/>
  98. <pry:BatchingMachine Margin="56,35,-112,10"/>
  99. <pry:BatchingMachine Margin="56,35,-112,10"/>
  100. <pry:BatchingMachine Margin="56,35,-112,10"/>
  101. <pry:BatchingMachine Margin="56,35,-112,10"/>
  102. <pry:BatchingMachine Margin="56,35,-112,10"/>
  103. <pry:BatchingMachine Margin="56,35,-112,10"/>
  104. <pry:BatchingMachine Margin="56,35,-112,10"/>-->
  105. </UniformGrid>
  106. <UniformGrid Grid.Row="2" Columns="10">
  107. <pry:BatchingMachine Margin="56,35,-112,10" />
  108. <pry:BatchingMachine Margin="56,35,-112,10" />
  109. <pry:BatchingMachine Margin="56,35,-112,10" />
  110. <pry:BatchingMachine Margin="56,35,-112,10" />
  111. <pry:BatchingMachine Margin="56,35,-112,10" />
  112. <pry:BatchingMachine Margin="56,35,-112,10" />
  113. <pry:BatchingMachine Margin="56,35,-112,10" />
  114. <pry:BatchingMachine Margin="56,35,-112,10" />
  115. <pry:BatchingMachine Margin="56,35,-112,10" />
  116. </UniformGrid>
  117. <!--<UniformGrid Columns="10" Visibility="Collapsed">
  118. <pry:MotorBottle
  119. Width="150"
  120. Height="100"
  121. CurrentValue="66"
  122. IsRun="True"
  123. RenderTransformOrigin="0.5,0.5">
  124. <pry:MotorBottle.RenderTransform>
  125. <TransformGroup>
  126. <RotateTransform Angle="90" />
  127. </TransformGroup>
  128. </pry:MotorBottle.RenderTransform>
  129. </pry:MotorBottle>
  130. <pry:MotorBottle
  131. Width="150"
  132. Height="100"
  133. CurrentValue="40"
  134. IsRun="True"
  135. RenderTransformOrigin="0.5,0.5">
  136. <pry:MotorBottle.RenderTransform>
  137. <TransformGroup>
  138. <RotateTransform Angle="90" />
  139. </TransformGroup>
  140. </pry:MotorBottle.RenderTransform>
  141. </pry:MotorBottle>
  142. <pry:MotorBottle
  143. Width="150"
  144. Height="100"
  145. CurrentValue="88"
  146. IsRun="True"
  147. RenderTransformOrigin="0.5,0.5">
  148. <pry:MotorBottle.RenderTransform>
  149. <TransformGroup>
  150. <RotateTransform Angle="90" />
  151. </TransformGroup>
  152. </pry:MotorBottle.RenderTransform>
  153. </pry:MotorBottle>
  154. <pry:MotorBottle
  155. Width="150"
  156. Height="100"
  157. CurrentValue="25"
  158. IsRun="True"
  159. RenderTransformOrigin="0.5,0.5">
  160. <pry:MotorBottle.RenderTransform>
  161. <TransformGroup>
  162. <RotateTransform Angle="90" />
  163. </TransformGroup>
  164. </pry:MotorBottle.RenderTransform>
  165. </pry:MotorBottle>
  166. <pry:MotorBottle
  167. Width="150"
  168. Height="100"
  169. CurrentValue="97"
  170. IsRun="True"
  171. RenderTransformOrigin="0.5,0.5">
  172. <pry:MotorBottle.RenderTransform>
  173. <TransformGroup>
  174. <RotateTransform Angle="90" />
  175. </TransformGroup>
  176. </pry:MotorBottle.RenderTransform>
  177. </pry:MotorBottle>
  178. <pry:MotorBottle
  179. Width="150"
  180. Height="100"
  181. CurrentValue="10"
  182. IsRun="True"
  183. RenderTransformOrigin="0.5,0.5">
  184. <pry:MotorBottle.RenderTransform>
  185. <TransformGroup>
  186. <RotateTransform Angle="90" />
  187. </TransformGroup>
  188. </pry:MotorBottle.RenderTransform>
  189. </pry:MotorBottle>
  190. <pry:MotorBottle
  191. Width="150"
  192. Height="100"
  193. CurrentValue="60"
  194. IsRun="True"
  195. RenderTransformOrigin="0.5,0.5">
  196. <pry:MotorBottle.RenderTransform>
  197. <TransformGroup>
  198. <RotateTransform Angle="90" />
  199. </TransformGroup>
  200. </pry:MotorBottle.RenderTransform>
  201. </pry:MotorBottle>
  202. <pry:MotorBottle
  203. Width="150"
  204. Height="100"
  205. CurrentValue="96"
  206. IsRun="True"
  207. RenderTransformOrigin="0.5,0.5">
  208. <pry:MotorBottle.RenderTransform>
  209. <TransformGroup>
  210. <RotateTransform Angle="90" />
  211. </TransformGroup>
  212. </pry:MotorBottle.RenderTransform>
  213. </pry:MotorBottle>
  214. </UniformGrid>-->
  215. <Grid x:Name="gr" Grid.Row="1">
  216. <pry:ConveyorBelt
  217. Grid.Row="1"
  218. Width="{Binding ElementName=gr, Path=ActualWidth}"
  219. Height="{Binding ElementName=gr, Path=ActualHeight}"
  220. Margin="10,0,400,0"
  221. ConveyorBeltWidth="70"
  222. Direction="0"
  223. StrokeBrush="#00BEFA"
  224. StrokeDashArray="1.5 1.5"
  225. StrokeFillBrush="#00BEFA"
  226. StrokeThickness="2" />
  227. <!--<pry:Pipeline CapRadius="30" Height="30"/>-->
  228. </Grid>
  229. <!--<UniformGrid Grid.Row="2" Columns="10">
  230. <pry:MotorBottle
  231. Width="150"
  232. Height="100"
  233. CurrentValue="89"
  234. IsRun="True"
  235. RenderTransformOrigin="0.5,0.5">
  236. <pry:MotorBottle.RenderTransform>
  237. <TransformGroup>
  238. <RotateTransform Angle="270" />
  239. <ScaleTransform ScaleX="-1" />
  240. </TransformGroup>
  241. </pry:MotorBottle.RenderTransform>
  242. </pry:MotorBottle>
  243. <pry:MotorBottle
  244. Width="150"
  245. Height="100"
  246. CurrentValue="13"
  247. IsRun="True"
  248. RenderTransformOrigin="0.5,0.5">
  249. <pry:MotorBottle.RenderTransform>
  250. <TransformGroup>
  251. <RotateTransform Angle="270" />
  252. <ScaleTransform ScaleX="-1" />
  253. </TransformGroup>
  254. </pry:MotorBottle.RenderTransform>
  255. </pry:MotorBottle>
  256. <pry:MotorBottle
  257. Width="150"
  258. Height="100"
  259. CurrentValue="31"
  260. IsRun="True"
  261. RenderTransformOrigin="0.5,0.5">
  262. <pry:MotorBottle.RenderTransform>
  263. <TransformGroup>
  264. <RotateTransform Angle="270" />
  265. <ScaleTransform ScaleX="-1" />
  266. </TransformGroup>
  267. </pry:MotorBottle.RenderTransform>
  268. </pry:MotorBottle>
  269. <pry:MotorBottle
  270. Width="150"
  271. Height="100"
  272. CurrentValue="96"
  273. IsRun="True"
  274. RenderTransformOrigin="0.5,0.5">
  275. <pry:MotorBottle.RenderTransform>
  276. <TransformGroup>
  277. <RotateTransform Angle="270" />
  278. <ScaleTransform ScaleX="-1" />
  279. </TransformGroup>
  280. </pry:MotorBottle.RenderTransform>
  281. </pry:MotorBottle>
  282. <pry:MotorBottle
  283. Width="150"
  284. Height="100"
  285. CurrentValue="80"
  286. IsRun="True"
  287. RenderTransformOrigin="0.5,0.5">
  288. <pry:MotorBottle.RenderTransform>
  289. <TransformGroup>
  290. <RotateTransform Angle="270" />
  291. <ScaleTransform ScaleX="-1" />
  292. </TransformGroup>
  293. </pry:MotorBottle.RenderTransform>
  294. </pry:MotorBottle>
  295. <pry:MotorBottle
  296. Width="150"
  297. Height="100"
  298. CurrentValue="26"
  299. IsRun="True"
  300. RenderTransformOrigin="0.5,0.5">
  301. <pry:MotorBottle.RenderTransform>
  302. <TransformGroup>
  303. <RotateTransform Angle="270" />
  304. <ScaleTransform ScaleX="-1" />
  305. </TransformGroup>
  306. </pry:MotorBottle.RenderTransform>
  307. </pry:MotorBottle>
  308. <pry:MotorBottle
  309. Width="150"
  310. Height="100"
  311. CurrentValue="20"
  312. IsRun="True"
  313. RenderTransformOrigin="0.5,0.5">
  314. <pry:MotorBottle.RenderTransform>
  315. <TransformGroup>
  316. <RotateTransform Angle="270" />
  317. <ScaleTransform ScaleX="-1" />
  318. </TransformGroup>
  319. </pry:MotorBottle.RenderTransform>
  320. </pry:MotorBottle>
  321. <pry:MotorBottle
  322. Width="150"
  323. Height="100"
  324. CurrentValue="100"
  325. IsRun="True"
  326. RenderTransformOrigin="0.5,0.5">
  327. <pry:MotorBottle.RenderTransform>
  328. <TransformGroup>
  329. <RotateTransform Angle="270" />
  330. <ScaleTransform ScaleX="-1" />
  331. </TransformGroup>
  332. </pry:MotorBottle.RenderTransform>
  333. </pry:MotorBottle>
  334. </UniformGrid>-->
  335. <Grid.RowDefinitions>
  336. <RowDefinition Height="0.5*" />
  337. <RowDefinition />
  338. <RowDefinition Height="0.5*" />
  339. </Grid.RowDefinitions>
  340. </Grid>
  341. </UserControl>