终端一体化运控平台
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

729 Zeilen
33 KiB

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