终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HardwareStatusView.xaml 32 KiB

пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  1. <UserControl
  2. x:Class="BPASmartClient.JXJFoodBigStation.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.JXJFoodBigStation.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.JXJFoodBigStation.ViewModel"
  11. d:DesignHeight="1080"
  12. d:DesignWidth="1920"
  13. mc:Ignorable="d">
  14. <UserControl.DataContext>
  15. <vm:HardwareStatusViewModel />
  16. </UserControl.DataContext>
  17. <UserControl.Resources>
  18. <PathGeometry x:Key="move" Figures="M 0,0 L 0,20"/>
  19. <Storyboard x:Key="Open" >
  20. <DoubleAnimationUsingPath Duration="0:0:1" PathGeometry="{StaticResource move}" RepeatBehavior="Forever" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(Y)" Source="Y"></DoubleAnimationUsingPath>
  21. </Storyboard>
  22. <SolidColorBrush x:Key="ListBox.Static.Background" Color="#FFFFFFFF"/>
  23. <SolidColorBrush x:Key="ListBox.Static.Border" Color="#FFABADB3"/>
  24. <SolidColorBrush x:Key="ListBox.Disabled.Background" Color="#FFFFFFFF"/>
  25. <SolidColorBrush x:Key="ListBox.Disabled.Border" Color="#FFD9D9D9"/>
  26. <Style x:Key="ListViewStyle1" TargetType="{x:Type ListView}">
  27. <Setter Property="Background" Value="{StaticResource ListBox.Static.Background}"/>
  28. <Setter Property="BorderBrush" Value="{StaticResource ListBox.Static.Border}"/>
  29. <Setter Property="BorderThickness" Value="1"/>
  30. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  31. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
  32. <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
  33. <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
  34. <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
  35. <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
  36. <Setter Property="VerticalContentAlignment" Value="Center"/>
  37. <Setter Property="Template">
  38. <Setter.Value>
  39. <ControlTemplate TargetType="{x:Type ListView}">
  40. <Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1" SnapsToDevicePixels="true">
  41. <ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}">
  42. <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
  43. </ScrollViewer>
  44. </Border>
  45. <ControlTemplate.Triggers>
  46. <Trigger Property="IsEnabled" Value="false">
  47. <Setter Property="Background" TargetName="Bd" Value="{StaticResource ListBox.Disabled.Background}"/>
  48. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource ListBox.Disabled.Border}"/>
  49. </Trigger>
  50. <MultiTrigger>
  51. <MultiTrigger.Conditions>
  52. <Condition Property="IsGrouping" Value="true"/>
  53. <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>
  54. </MultiTrigger.Conditions>
  55. <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
  56. </MultiTrigger>
  57. </ControlTemplate.Triggers>
  58. </ControlTemplate>
  59. </Setter.Value>
  60. </Setter>
  61. </Style>
  62. </UserControl.Resources>
  63. <!--<UserControl.Triggers>
  64. <EventTrigger RoutedEvent="Loaded">
  65. <BeginStoryboard Storyboard="{StaticResource Open}"></BeginStoryboard>
  66. </EventTrigger>
  67. </UserControl.Triggers>-->
  68. <!--<Grid>
  69. <ListView
  70. Height="150"
  71. VerticalAlignment="Center"
  72. Background="Transparent"
  73. BorderThickness="0"
  74. ItemsSource="{Binding TopDeviceCurrentStatuses}"
  75. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  76. <ListView.ItemsPanel>
  77. <ItemsPanelTemplate>
  78. <UniformGrid
  79. HorizontalAlignment="Center"
  80. VerticalAlignment="Center"
  81. Columns="10" />
  82. </ItemsPanelTemplate>
  83. </ListView.ItemsPanel>
  84. <ListView.ItemTemplate>
  85. <DataTemplate>
  86. <Border Background="Transparent">
  87. <Grid Height="100">
  88. <pry:MotorBottle
  89. Height="100"
  90. CurrentValue="{Binding Weight}"
  91. IsRun="{Binding RunStatus}"
  92. RenderTransformOrigin="0.5,0.5">
  93. <pry:MotorBottle.RenderTransform>
  94. <TransformGroup>
  95. <RotateTransform Angle="90" />
  96. </TransformGroup>
  97. </pry:MotorBottle.RenderTransform>
  98. </pry:MotorBottle>
  99. </Grid>
  100. </Border>
  101. </DataTemplate>
  102. </ListView.ItemTemplate>
  103. </ListView>
  104. <UniformGrid Columns="10" Visibility="Collapsed">
  105. <pry:MotorBottle
  106. Width="150"
  107. Height="100"
  108. CurrentValue="66"
  109. IsRun="True"
  110. RenderTransformOrigin="0.5,0.5">
  111. <pry:MotorBottle.RenderTransform>
  112. <TransformGroup>
  113. <RotateTransform Angle="90" />
  114. </TransformGroup>
  115. </pry:MotorBottle.RenderTransform>
  116. </pry:MotorBottle>
  117. <pry:MotorBottle
  118. Width="150"
  119. Height="100"
  120. CurrentValue="40"
  121. IsRun="True"
  122. RenderTransformOrigin="0.5,0.5">
  123. <pry:MotorBottle.RenderTransform>
  124. <TransformGroup>
  125. <RotateTransform Angle="90" />
  126. </TransformGroup>
  127. </pry:MotorBottle.RenderTransform>
  128. </pry:MotorBottle>
  129. <pry:MotorBottle
  130. Width="150"
  131. Height="100"
  132. CurrentValue="88"
  133. IsRun="True"
  134. RenderTransformOrigin="0.5,0.5">
  135. <pry:MotorBottle.RenderTransform>
  136. <TransformGroup>
  137. <RotateTransform Angle="90" />
  138. </TransformGroup>
  139. </pry:MotorBottle.RenderTransform>
  140. </pry:MotorBottle>
  141. <pry:MotorBottle
  142. Width="150"
  143. Height="100"
  144. CurrentValue="25"
  145. IsRun="True"
  146. RenderTransformOrigin="0.5,0.5">
  147. <pry:MotorBottle.RenderTransform>
  148. <TransformGroup>
  149. <RotateTransform Angle="90" />
  150. </TransformGroup>
  151. </pry:MotorBottle.RenderTransform>
  152. </pry:MotorBottle>
  153. <pry:MotorBottle
  154. Width="150"
  155. Height="100"
  156. CurrentValue="97"
  157. IsRun="True"
  158. RenderTransformOrigin="0.5,0.5">
  159. <pry:MotorBottle.RenderTransform>
  160. <TransformGroup>
  161. <RotateTransform Angle="90" />
  162. </TransformGroup>
  163. </pry:MotorBottle.RenderTransform>
  164. </pry:MotorBottle>
  165. <pry:MotorBottle
  166. Width="150"
  167. Height="100"
  168. CurrentValue="10"
  169. IsRun="True"
  170. RenderTransformOrigin="0.5,0.5">
  171. <pry:MotorBottle.RenderTransform>
  172. <TransformGroup>
  173. <RotateTransform Angle="90" />
  174. </TransformGroup>
  175. </pry:MotorBottle.RenderTransform>
  176. </pry:MotorBottle>
  177. <pry:MotorBottle
  178. Width="150"
  179. Height="100"
  180. CurrentValue="60"
  181. IsRun="True"
  182. RenderTransformOrigin="0.5,0.5">
  183. <pry:MotorBottle.RenderTransform>
  184. <TransformGroup>
  185. <RotateTransform Angle="90" />
  186. </TransformGroup>
  187. </pry:MotorBottle.RenderTransform>
  188. </pry:MotorBottle>
  189. <pry:MotorBottle
  190. Width="150"
  191. Height="100"
  192. CurrentValue="96"
  193. IsRun="True"
  194. RenderTransformOrigin="0.5,0.5">
  195. <pry:MotorBottle.RenderTransform>
  196. <TransformGroup>
  197. <RotateTransform Angle="90" />
  198. </TransformGroup>
  199. </pry:MotorBottle.RenderTransform>
  200. </pry:MotorBottle>
  201. </UniformGrid>
  202. <Grid x:Name="gr" Grid.Row="1">
  203. <pry:ConveyorBelt
  204. Grid.Row="1"
  205. Width="{Binding ElementName=gr, Path=ActualWidth}"
  206. Height="{Binding ElementName=gr, Path=ActualHeight}"
  207. Margin="0,0,400,0"
  208. ConveyorBeltWidth="70"
  209. Direction="1"
  210. StrokeBrush="Red"
  211. StrokeDashArray="1.5 1.5"
  212. StrokeFillBrush="Red"
  213. StrokeThickness="2" />
  214. </Grid>
  215. <UniformGrid Grid.Row="2" Columns="10">
  216. <pry:MotorBottle
  217. Width="150"
  218. Height="100"
  219. CurrentValue="89"
  220. IsRun="True"
  221. RenderTransformOrigin="0.5,0.5">
  222. <pry:MotorBottle.RenderTransform>
  223. <TransformGroup>
  224. <RotateTransform Angle="270" />
  225. <ScaleTransform ScaleX="-1" />
  226. </TransformGroup>
  227. </pry:MotorBottle.RenderTransform>
  228. </pry:MotorBottle>
  229. <pry:MotorBottle
  230. Width="150"
  231. Height="100"
  232. CurrentValue="13"
  233. IsRun="True"
  234. RenderTransformOrigin="0.5,0.5">
  235. <pry:MotorBottle.RenderTransform>
  236. <TransformGroup>
  237. <RotateTransform Angle="270" />
  238. <ScaleTransform ScaleX="-1" />
  239. </TransformGroup>
  240. </pry:MotorBottle.RenderTransform>
  241. </pry:MotorBottle>
  242. <pry:MotorBottle
  243. Width="150"
  244. Height="100"
  245. CurrentValue="31"
  246. IsRun="True"
  247. RenderTransformOrigin="0.5,0.5">
  248. <pry:MotorBottle.RenderTransform>
  249. <TransformGroup>
  250. <RotateTransform Angle="270" />
  251. <ScaleTransform ScaleX="-1" />
  252. </TransformGroup>
  253. </pry:MotorBottle.RenderTransform>
  254. </pry:MotorBottle>
  255. <pry:MotorBottle
  256. Width="150"
  257. Height="100"
  258. CurrentValue="96"
  259. IsRun="True"
  260. RenderTransformOrigin="0.5,0.5">
  261. <pry:MotorBottle.RenderTransform>
  262. <TransformGroup>
  263. <RotateTransform Angle="270" />
  264. <ScaleTransform ScaleX="-1" />
  265. </TransformGroup>
  266. </pry:MotorBottle.RenderTransform>
  267. </pry:MotorBottle>
  268. <pry:MotorBottle
  269. Width="150"
  270. Height="100"
  271. CurrentValue="80"
  272. IsRun="True"
  273. RenderTransformOrigin="0.5,0.5">
  274. <pry:MotorBottle.RenderTransform>
  275. <TransformGroup>
  276. <RotateTransform Angle="270" />
  277. <ScaleTransform ScaleX="-1" />
  278. </TransformGroup>
  279. </pry:MotorBottle.RenderTransform>
  280. </pry:MotorBottle>
  281. <pry:MotorBottle
  282. Width="150"
  283. Height="100"
  284. CurrentValue="26"
  285. IsRun="True"
  286. RenderTransformOrigin="0.5,0.5">
  287. <pry:MotorBottle.RenderTransform>
  288. <TransformGroup>
  289. <RotateTransform Angle="270" />
  290. <ScaleTransform ScaleX="-1" />
  291. </TransformGroup>
  292. </pry:MotorBottle.RenderTransform>
  293. </pry:MotorBottle>
  294. <pry:MotorBottle
  295. Width="150"
  296. Height="100"
  297. CurrentValue="20"
  298. IsRun="True"
  299. RenderTransformOrigin="0.5,0.5">
  300. <pry:MotorBottle.RenderTransform>
  301. <TransformGroup>
  302. <RotateTransform Angle="270" />
  303. <ScaleTransform ScaleX="-1" />
  304. </TransformGroup>
  305. </pry:MotorBottle.RenderTransform>
  306. </pry:MotorBottle>
  307. <pry:MotorBottle
  308. Width="150"
  309. Height="100"
  310. CurrentValue="100"
  311. IsRun="True"
  312. RenderTransformOrigin="0.5,0.5">
  313. <pry:MotorBottle.RenderTransform>
  314. <TransformGroup>
  315. <RotateTransform Angle="270" />
  316. <ScaleTransform ScaleX="-1" />
  317. </TransformGroup>
  318. </pry:MotorBottle.RenderTransform>
  319. </pry:MotorBottle>
  320. </UniformGrid>
  321. <Grid.RowDefinitions>
  322. <RowDefinition Height="0.5*" />
  323. <RowDefinition />
  324. <RowDefinition Height="0.5*" />
  325. </Grid.RowDefinitions>
  326. </Grid>-->
  327. <Grid>
  328. <Grid.RowDefinitions>
  329. <RowDefinition Height="0.5*" />
  330. <RowDefinition />
  331. <RowDefinition Height="0.5*" />
  332. </Grid.RowDefinitions>
  333. <!--#region 顶部料仓-->
  334. <Grid Name="TopGrid">
  335. <ListView Style="{DynamicResource ListViewStyle1}"
  336. x:Name="FListView"
  337. Height="{Binding ElementName=TopGrid, Path=ActualHeight}"
  338. VerticalAlignment="Center"
  339. Background="Transparent"
  340. BorderThickness="0"
  341. ItemsSource="{Binding TopDeviceCurrentStatuses}"
  342. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  343. <ListView.ItemsPanel>
  344. <ItemsPanelTemplate>
  345. <!--<WrapPanel Orientation="Horizontal" IsItemsHost="True"/>-->
  346. <UniformGrid
  347. HorizontalAlignment="Left"
  348. VerticalAlignment="Top"
  349. Columns="6"
  350. Rows="1" />
  351. </ItemsPanelTemplate>
  352. </ListView.ItemsPanel>
  353. <ListView.ItemTemplate>
  354. <DataTemplate>
  355. <Border Margin="5" Background="Transparent">
  356. <Grid Height="220">
  357. <Grid.RowDefinitions>
  358. <RowDefinition />
  359. <RowDefinition />
  360. <RowDefinition />
  361. <!--<RowDefinition Height="0.1*"/>-->
  362. </Grid.RowDefinitions>
  363. <!--<TextBox
  364. Margin="0,0,0,35"
  365. HorizontalAlignment="Center"
  366. VerticalAlignment="Bottom"
  367. FontSize="25"
  368. Text="{Binding DeviceName}">
  369. </TextBox>-->
  370. <TextBlock
  371. Margin="0,0,0,35"
  372. HorizontalAlignment="Center"
  373. VerticalAlignment="Bottom"
  374. FontSize="25"
  375. Foreground="#ffccd61f"
  376. Text="{Binding DeviceName}"
  377. />
  378. <StackPanel
  379. Grid.RowSpan="2"
  380. Panel.ZIndex="1"
  381. Margin="55,100,0,0"
  382. HorizontalAlignment="Center">
  383. <Path x:Name="path" Tag="{Binding DeviceName}" Visibility="Hidden" Data="M -15,8 L 17,17 C 17,17 19,18 17,19 L 17,19 L -15,28 C -15,28 -17,28.2 -16,26 L -16,26 L -5,18 L -16,10 C -16,10 -17,8.5 -15,8 Z">
  384. <Path.RenderTransform>
  385. <TransformGroup>
  386. <RotateTransform Angle="90"/>
  387. <TranslateTransform Y="0"/>
  388. </TransformGroup>
  389. </Path.RenderTransform>
  390. <Path.Fill>
  391. <LinearGradientBrush>
  392. <LinearGradientBrush.RelativeTransform>
  393. <RotateTransform Angle="-15"/>
  394. </LinearGradientBrush.RelativeTransform>
  395. <GradientStop Color="LightGreen" Offset="0"/>
  396. <GradientStop Color="LightSeaGreen" Offset="0.6"/>
  397. </LinearGradientBrush>
  398. </Path.Fill>
  399. </Path>
  400. </StackPanel>
  401. <StackPanel
  402. Grid.Row="1"
  403. Margin="0,5,0,0"
  404. HorizontalAlignment="Center"
  405. Orientation="Horizontal">
  406. <TextBlock
  407. FontSize="20"
  408. Foreground="#FF0084FF"
  409. Text="{Binding Weight}" />
  410. <TextBlock
  411. FontSize="20"
  412. Foreground="#FF0084FF"
  413. Text=" kg" />
  414. </StackPanel>
  415. <StackPanel
  416. Grid.Row="1"
  417. Margin="0,45,0,0"
  418. HorizontalAlignment="Center"
  419. Orientation="Horizontal">
  420. <TextBlock
  421. FontSize="20"
  422. Foreground="#FF0084FF"
  423. Text="{Binding DeviceNum}" />
  424. <TextBlock
  425. FontSize="20"
  426. Foreground="#FF0084FF"
  427. Text=" 号仓" />
  428. </StackPanel>
  429. <Button Grid.Row="2"
  430. Width="200"
  431. Height="40"
  432. Margin="5,0,5,0"
  433. Command="{Binding DataContext.UpdateRawMaterName, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListView}}"
  434. CommandParameter="{Binding DeviceName}"
  435. Content="修改原料名称"
  436. FontSize="20"
  437. Panel.ZIndex="0"
  438. Style="{StaticResource ImageButtonStyle}"></Button>
  439. <Image
  440. Grid.RowSpan="2"
  441. Source="/BPASmartClient.CustomResource;component/Image/光柱.png"
  442. Stretch="Fill" />
  443. <!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="2">
  444. <pry:IcoButton
  445. Width="80"
  446. Height="{Binding ElementName=gr, Path=ActualHeight}"
  447. Margin="5,0,10,0"
  448. HorizontalAlignment="Center"
  449. VerticalAlignment="Center"
  450. Background="#112AB2E7"
  451. BorderThickness="0"
  452. Command="{Binding DataContext.StartCommand, RelativeSource={RelativeSource AncestorType=ListBox, Mode=FindAncestor}}"
  453. CommandParameter="{Binding DeviceName}"
  454. Tag="{Binding DeviceName}"
  455. Content="启动"
  456. EnterBackground="#222AB2E7"
  457. Foreground="#FF2AB2E7"
  458. IcoText="&#xe636;"
  459. Style="{StaticResource IcoButtonStyle}"
  460. />
  461. <pry:IcoButton
  462. Width="80"
  463. Height="{Binding ElementName=gr, Path=ActualHeight}"
  464. HorizontalAlignment="Center"
  465. VerticalAlignment="Center"
  466. Background="#11F53F62"
  467. BorderThickness="0"
  468. Command="{Binding DataContext.StopCommand, RelativeSource={RelativeSource AncestorType=ListBox, Mode=FindAncestor}}"
  469. CommandParameter="{Binding DeviceName}"
  470. Tag="{Binding DeviceName}"
  471. Content="停止"
  472. EnterBackground="#22F53F62"
  473. Foreground="#FFF53F62"
  474. IcoText="&#xe68e;"
  475. Style="{StaticResource IcoButtonStyle}" />
  476. </StackPanel>-->
  477. </Grid>
  478. </Border>
  479. </DataTemplate>
  480. </ListView.ItemTemplate>
  481. </ListView>
  482. </Grid>
  483. <!--#endregion-->
  484. <Grid x:Name="gr" Grid.Row="1" Margin="0,50,0,0">
  485. <pry:ConveyorBelt
  486. Grid.Row="1"
  487. Width="{Binding ElementName=gr, Path=ActualWidth}"
  488. Height="{Binding ElementName=gr, Path=ActualHeight}"
  489. Margin="10,0,30,0"
  490. ConveyorBeltWidth="70"
  491. Direction="2"
  492. StrokeBrush="#00BEFA"
  493. StrokeDashArray="1.5 1.5"
  494. StrokeFillBrush="#00BEFA"
  495. StrokeThickness="2" />
  496. </Grid>
  497. <!--#region 底部料仓-->
  498. <Grid Grid.Row="2">
  499. <ListView
  500. Style="{DynamicResource ListViewStyle1}"
  501. x:Name="buttonListView"
  502. VerticalAlignment="Top"
  503. Background="Transparent"
  504. BorderThickness="0"
  505. ItemsSource="{Binding BottomDeviceCurrentStatuses}"
  506. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  507. <ListView.ItemsPanel>
  508. <ItemsPanelTemplate>
  509. <UniformGrid
  510. HorizontalAlignment="Left"
  511. VerticalAlignment="Top"
  512. Columns="6"
  513. Rows="1" />
  514. </ItemsPanelTemplate>
  515. </ListView.ItemsPanel>
  516. <ListView.ItemTemplate>
  517. <DataTemplate>
  518. <Border Margin="5" Background="Transparent">
  519. <Grid Height="220">
  520. <Grid.RowDefinitions>
  521. <RowDefinition/>
  522. <RowDefinition/>
  523. <RowDefinition/>
  524. <!--<RowDefinition Height="0.1*"/>-->
  525. </Grid.RowDefinitions>
  526. <TextBlock
  527. Margin="0,0,0,35"
  528. HorizontalAlignment="Center"
  529. VerticalAlignment="Bottom"
  530. FontSize="25"
  531. Foreground="#ffccd61f"
  532. Text="{Binding DeviceName}" />
  533. <StackPanel
  534. Grid.RowSpan="2"
  535. Panel.ZIndex="1"
  536. Margin="55,100,0,0"
  537. HorizontalAlignment="Center">
  538. <Path x:Name="path1" Tag="{Binding DeviceName}" Visibility="Collapsed" Data="M -15,8 L 17,17 C 17,17 19,18 17,19 L 17,19 L -15,28 C -15,28 -17,28.2 -16,26 L -16,26 L -5,18 L -16,10 C -16,10 -17,8.5 -15,8 Z">
  539. <Path.RenderTransform>
  540. <TransformGroup>
  541. <RotateTransform Angle="90"/>
  542. <TranslateTransform Y="0"/>
  543. </TransformGroup>
  544. </Path.RenderTransform>
  545. <Path.Fill>
  546. <LinearGradientBrush>
  547. <LinearGradientBrush.RelativeTransform>
  548. <RotateTransform Angle="-15"/>
  549. </LinearGradientBrush.RelativeTransform>
  550. <GradientStop Color="LightGreen" Offset="0"/>
  551. <GradientStop Color="LightSeaGreen" Offset="0.5"/>
  552. </LinearGradientBrush>
  553. </Path.Fill>
  554. </Path>
  555. </StackPanel>
  556. <StackPanel
  557. Grid.Row="1"
  558. Margin="0,5,0,0"
  559. HorizontalAlignment="Center"
  560. Orientation="Horizontal">
  561. <TextBlock
  562. FontSize="20"
  563. Foreground="#FF0084FF"
  564. Text="{Binding Weight}" />
  565. <TextBlock
  566. FontSize="20"
  567. Foreground="#FF0084FF"
  568. Text=" kg" />
  569. </StackPanel>
  570. <StackPanel
  571. Grid.Row="1"
  572. Margin="0,45,0,0"
  573. HorizontalAlignment="Center"
  574. Orientation="Horizontal">
  575. <TextBlock
  576. FontSize="20"
  577. Foreground="#FF0084FF"
  578. Text="{Binding DeviceNum}" />
  579. <TextBlock
  580. FontSize="20"
  581. Foreground="#FF0084FF"
  582. Text=" 号仓" />
  583. </StackPanel>
  584. <Button Grid.Row="2"
  585. Width="200"
  586. Height="40"
  587. Margin="5,0,5,0"
  588. Command="{Binding DataContext.UpdateRawMaterName, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListView}}"
  589. CommandParameter="{Binding DeviceName}"
  590. Content="修改原料名称"
  591. FontSize="20"
  592. Style="{StaticResource ImageButtonStyle}"></Button>
  593. <Image
  594. Grid.RowSpan="2"
  595. Source="/BPASmartClient.CustomResource;component/Image/光柱.png"
  596. Stretch="Fill" />
  597. <!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="2">
  598. <pry:IcoButton
  599. Width="80"
  600. Height="{Binding ElementName=gr, Path=ActualHeight}"
  601. Margin="5,0,10,0"
  602. HorizontalAlignment="Center"
  603. VerticalAlignment="Center"
  604. Background="#112AB2E7"
  605. BorderThickness="0"
  606. Command="{Binding DataContext.StartCommand, RelativeSource={RelativeSource AncestorType=ListBox, Mode=FindAncestor}}"
  607. CommandParameter="{Binding DeviceName}"
  608. Tag="{Binding DeviceName}"
  609. Content="启动"
  610. EnterBackground="#222AB2E7"
  611. Foreground="#FF2AB2E7"
  612. IcoText="&#xe636;"
  613. Style="{StaticResource IcoButtonStyle}"
  614. />
  615. <pry:IcoButton
  616. Width="80"
  617. Height="{Binding ElementName=gr, Path=ActualHeight}"
  618. HorizontalAlignment="Center"
  619. VerticalAlignment="Center"
  620. Background="#11F53F62"
  621. BorderThickness="0"
  622. Command="{Binding DataContext.StopCommand, RelativeSource={RelativeSource AncestorType=ListBox, Mode=FindAncestor}}"
  623. CommandParameter="{Binding DeviceName}"
  624. Tag="{Binding DeviceName}"
  625. Content="停止"
  626. EnterBackground="#22F53F62"
  627. Foreground="#FFF53F62"
  628. IcoText="&#xe68e;"
  629. Style="{StaticResource IcoButtonStyle}" />
  630. </StackPanel>-->
  631. </Grid>
  632. </Border>
  633. </DataTemplate>
  634. </ListView.ItemTemplate>
  635. </ListView>
  636. </Grid>
  637. <!--#endregion-->
  638. </Grid>
  639. </UserControl>