KBWindow.xaml 60 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040
  1. <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:prism="http://prismlibrary.com/"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:LogoForceTestApp.Modules.MainModule.Views"
  7. xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF"
  8. xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  9. xmlns:viewmodels="clr-namespace:LogoForceTestApp.Modules.MainModule.ViewModels"
  10. xmlns:hc="https://handyorg.github.io/handycontrol"
  11. x:Class="LogoForceTestApp.Modules.MainModule.Views.KBWindow"
  12. prism:ViewModelLocator.AutoWireViewModel="True"
  13. Title="{Binding 数字工厂监控看板}"
  14. Height="700"
  15. Width="1150"
  16. WindowStyle="None"
  17. AllowsTransparency="True"
  18. WindowStartupLocation="CenterScreen"
  19. d:DataContext="{d:DesignInstance Type={x:Type viewmodels:KBWindowViewModel}}"
  20. FontWeight="ExtraLight"
  21. mc:Ignorable="d">
  22. <Window.Resources>
  23. <Style TargetType="{x:Type Button}"
  24. x:Key="ControlButtonStyle">
  25. <Setter Property="Width"
  26. Value="40" />
  27. <Setter Property="Background"
  28. Value="#11FFFFFF" />
  29. <Setter Property="Foreground"
  30. Value="White" />
  31. <Setter Property="FontFamily"
  32. Value="/Assets/#iconfont" />
  33. <Setter Property="Template">
  34. <Setter.Value>
  35. <ControlTemplate TargetType="{x:Type Button}">
  36. <Grid Background="{TemplateBinding Background}">
  37. <Border x:Name="root">
  38. <ContentPresenter VerticalAlignment="Center"
  39. HorizontalAlignment="Center" />
  40. </Border>
  41. </Grid>
  42. <ControlTemplate.Triggers>
  43. <Trigger Property="IsMouseOver"
  44. Value="True">
  45. <Setter TargetName="root"
  46. Property="Background"
  47. Value="#33FFFFFF" />
  48. </Trigger>
  49. </ControlTemplate.Triggers>
  50. </ControlTemplate>
  51. </Setter.Value>
  52. </Setter>
  53. </Style>
  54. <Style TargetType="{x:Type GroupBox}">
  55. <Setter Property="Margin"
  56. Value="0,5" />
  57. <Setter Property="Template">
  58. <Setter.Value>
  59. <ControlTemplate TargetType="{x:Type GroupBox}">
  60. <Grid>
  61. <Grid.RowDefinitions>
  62. <RowDefinition Height="auto" />
  63. <RowDefinition />
  64. </Grid.RowDefinitions>
  65. <StackPanel Orientation="Horizontal"
  66. VerticalAlignment="Center">
  67. <TextBlock Text="{TemplateBinding Header}"
  68. Foreground="#7D96C4"
  69. FontSize="22" />
  70. <TextBlock Text="{TemplateBinding Tag}"
  71. Foreground="#55FFFFFF"
  72. VerticalAlignment="Bottom"
  73. FontSize="15"
  74. Margin="15,0,0,0" />
  75. </StackPanel>
  76. <Border Grid.Row="1"
  77. BorderThickness="1"
  78. BorderBrush="#447D96C4"
  79. Margin="0,7,5,5">
  80. <ContentPresenter />
  81. </Border>
  82. <!--装饰-->
  83. <Grid Grid.Row="1"
  84. Margin="0,7,0,0">
  85. <Border BorderBrush="#447D96C4"
  86. BorderThickness="0,0,1,1"
  87. Margin="5,5,0,0" />
  88. <Line X1="0"
  89. Y1="0"
  90. X2="5"
  91. Y2="0"
  92. Stroke="#447D96C4"
  93. StrokeThickness="1"
  94. HorizontalAlignment="Right"
  95. VerticalAlignment="Top"
  96. Margin="0,5,0,0" />
  97. <Line X1="0"
  98. Y1="0"
  99. X2="0"
  100. Y2="5"
  101. Stroke="#447D96C4"
  102. StrokeThickness="1"
  103. HorizontalAlignment="Left"
  104. VerticalAlignment="Bottom"
  105. Margin="5,0,0,0" />
  106. <Polygon Points="5,0 0,0 0,5"
  107. Stroke="#7D96C4"
  108. VerticalAlignment="Top"
  109. HorizontalAlignment="Left" />
  110. <Polygon Points="0,0 5,0 5,5"
  111. Stroke="#7D96C4"
  112. VerticalAlignment="Top"
  113. HorizontalAlignment="Right"
  114. Margin="0,0,5,0" />
  115. <Polygon Points="0,5 5,5 5,0"
  116. Stroke="#FF7D96C4"
  117. VerticalAlignment="Bottom"
  118. HorizontalAlignment="Right"
  119. Grid.Row="1"
  120. Margin="0,0,5,5" />
  121. <Polygon Points="0,0 0,5 5,5"
  122. Stroke="#FF7D96C4"
  123. VerticalAlignment="Bottom"
  124. HorizontalAlignment="Left"
  125. Grid.Row="1"
  126. Margin="0,0,0,5" />
  127. </Grid>
  128. </Grid>
  129. </ControlTemplate>
  130. </Setter.Value>
  131. </Setter>
  132. </Style>
  133. </Window.Resources>
  134. <Window.Background>
  135. <RadialGradientBrush GradientOrigin="0.5,-0.8"
  136. Center="0.5,0"
  137. RadiusX="0.7"
  138. RadiusY="0.7">
  139. <GradientStop Color="#A02B40"
  140. Offset="0" />
  141. <GradientStop Color="#08113C"
  142. Offset="1" />
  143. </RadialGradientBrush>
  144. </Window.Background>
  145. <b:Interaction.Triggers>
  146. <b:EventTrigger EventName="Loaded">
  147. <b:InvokeCommandAction Command="{Binding LoadedCommand}" />
  148. </b:EventTrigger>
  149. </b:Interaction.Triggers>
  150. <Grid>
  151. <Grid.RowDefinitions>
  152. <RowDefinition Height="70" />
  153. <RowDefinition />
  154. </Grid.RowDefinitions>
  155. <Border Grid.RowSpan="2"
  156. VerticalAlignment="Top"
  157. Height="130"
  158. Margin="-3,-12,-3,0">
  159. <Border.Background>
  160. <VisualBrush Stretch="Fill">
  161. <VisualBrush.Visual>
  162. <Path Data="M0,0 L0,30 400,30 A15,10,0,0,1,414,35 L425,51 A10,10,0,0,0,434,55 L666,55 A10,10,0,0,0,675 51 L686,35 A15 10 0 0 1 700 30 L1100,30 1100,0 z"
  163. StrokeThickness="1"
  164. Stretch="Fill">
  165. <Path.Fill>
  166. <RadialGradientBrush RadiusX="0.6"
  167. RadiusY="1.8"
  168. Center="0.5,1.8"
  169. GradientOrigin="0.5,2">
  170. <GradientStop Color="#2BB6FE"
  171. Offset="0" />
  172. <GradientStop Color="#112BB6FE"
  173. Offset="1" />
  174. </RadialGradientBrush>
  175. </Path.Fill>
  176. <Path.Effect>
  177. <DropShadowEffect BlurRadius="10"
  178. ShadowDepth="5"
  179. Direction="270"
  180. Color="Black"
  181. Opacity="0.5" />
  182. </Path.Effect>
  183. <Path.Stroke>
  184. <LinearGradientBrush StartPoint="0,0"
  185. EndPoint="1,0">
  186. <GradientStop Color="Transparent"
  187. Offset="0" />
  188. <GradientStop Color="#2BB6FE"
  189. Offset="0.5" />
  190. <GradientStop Color="Transparent"
  191. Offset="1" />
  192. </LinearGradientBrush>
  193. </Path.Stroke>
  194. </Path>
  195. </VisualBrush.Visual>
  196. </VisualBrush>
  197. </Border.Background>
  198. </Border>
  199. <TextBlock Text="TEAM"
  200. Foreground="#2BB6FE"
  201. FontSize="20"
  202. Margin="20,0,0,0"
  203. FontWeight="Bold"
  204. HorizontalAlignment="Left"
  205. VerticalAlignment="Center" />
  206. <TextBlock Text="德盾智能锁生产流水线"
  207. HorizontalAlignment="Center"
  208. Foreground="White"
  209. VerticalAlignment="Bottom"
  210. FontSize="35" />
  211. <TextBlock Grid.Row="1"
  212. HorizontalAlignment="Center"
  213. VerticalAlignment="Top"
  214. FontSize="20"><Run Text="&#xE61D;"
  215. FontFamily="../Assets/#iconfont"
  216. Foreground="#2BB6FE" /><Run Text=" " /><Run Text="{Binding TimeNow}"
  217. Foreground="#55FFFFFF" /></TextBlock>
  218. <Border HorizontalAlignment="Right"
  219. VerticalAlignment="Top"
  220. WindowChrome.IsHitTestVisibleInChrome="True"
  221. Background="Transparent">
  222. <StackPanel Orientation="Horizontal"
  223. HorizontalAlignment="Right">
  224. <!--<Button Width="40"
  225. Height="40"
  226. Content="&#xe60d;"
  227. Style="{StaticResource ControlButtonStyle}"
  228. x:Name="btnMax"/>-->
  229. <Button Width="40"
  230. Height="40"
  231. Content="×"
  232. FontSize="35"
  233. Style="{StaticResource ControlButtonStyle}"
  234. x:Name="btnClose"
  235. Background="Transparent" />
  236. </StackPanel>
  237. </Border>
  238. <Grid Grid.Row="1">
  239. <Grid.ColumnDefinitions>
  240. <ColumnDefinition />
  241. <ColumnDefinition Width="1.5*" />
  242. <ColumnDefinition />
  243. </Grid.ColumnDefinitions>
  244. <Grid Grid.Column="0">
  245. <Grid.RowDefinitions>
  246. <RowDefinition Height="200"/>
  247. <RowDefinition Height="300" />
  248. <RowDefinition />
  249. </Grid.RowDefinitions>
  250. <GroupBox Header="实时产量"
  251. Margin="15"
  252. Grid.Row="0">
  253. <Grid>
  254. <Grid.ColumnDefinitions>
  255. <ColumnDefinition />
  256. <ColumnDefinition />
  257. <ColumnDefinition />
  258. </Grid.ColumnDefinitions>
  259. <Grid.RowDefinitions>
  260. <RowDefinition Height="1*"/>
  261. <RowDefinition Height="2*"/>
  262. </Grid.RowDefinitions>
  263. <TextBlock Text="【 今日总产量 】"
  264. FontSize="18"
  265. Foreground="#DD2BB6FE"
  266. Margin="5"
  267. Grid.Row="0"
  268. Grid.Column="0"
  269. VerticalAlignment="Bottom"
  270. HorizontalAlignment="Left"/>
  271. <TextBlock Text="{Binding TotalNum}"
  272. FontSize="22"
  273. Foreground="#FFAEC9"
  274. Margin="5"
  275. Grid.Row="1"
  276. Grid.Column="0"
  277. VerticalAlignment="Center"
  278. HorizontalAlignment="Center"
  279. FontFamily="Comic Sans MS" />
  280. <TextBlock Text="【 合格数 】"
  281. FontSize="18"
  282. Foreground="#DD2BB6FE"
  283. Margin="5"
  284. Grid.Row="0"
  285. Grid.Column="1"
  286. VerticalAlignment="Bottom"
  287. HorizontalAlignment="Left" />
  288. <TextBlock Text="{Binding PassNum}"
  289. FontSize="22"
  290. Foreground="#FFAEC9"
  291. Margin="5"
  292. Grid.Row="1"
  293. Grid.Column="1"
  294. VerticalAlignment="Center"
  295. HorizontalAlignment="Center"
  296. FontFamily="Comic Sans MS" />
  297. <TextBlock Text="【 合格率 】"
  298. FontSize="18"
  299. Foreground="#DD2BB6FE"
  300. Margin="5"
  301. Grid.Row="0"
  302. Grid.Column="2"
  303. VerticalAlignment="Bottom"
  304. HorizontalAlignment="Left" />
  305. <lvc:PieChart Series="{Binding Series}"
  306. InitialRotation="-225"
  307. MaxAngle="270"
  308. MinValue="0"
  309. MaxValue="100"
  310. Grid.Column="2"
  311. Grid.Row="1"/>
  312. </Grid>
  313. </GroupBox>
  314. <GroupBox Header="出勤信息"
  315. Margin="15"
  316. Grid.Row="1">
  317. <Grid>
  318. <Grid.ColumnDefinitions>
  319. <ColumnDefinition Width="1*" />
  320. <ColumnDefinition Width="1*" />
  321. </Grid.ColumnDefinitions>
  322. <lvc:PieChart Series="{Binding Series12}"
  323. InitialRotation="{Binding InitialRotation12}"
  324. MaxAngle="{Binding MaxAngle12}"
  325. MaxValue="{Binding GaugeTotal12}"
  326. Grid.Column="0" />
  327. <StackPanel Orientation="Vertical"
  328. Grid.Column="1"
  329. Margin="10,50,5,50">
  330. <TextBlock Text="{Binding TotalPer}"
  331. FontSize="18"
  332. Foreground="#DD2BB6FE"
  333. Margin="5"
  334. VerticalAlignment="Center"/>
  335. <TextBlock Text="{Binding ActualPer}"
  336. FontSize="18"
  337. Foreground="#DD2BB6FE"
  338. Margin="5"
  339. VerticalAlignment="Center"/>
  340. <TextBlock Text="{Binding FallIllPer}"
  341. FontSize="18"
  342. Foreground="#DD2BB6FE"
  343. Margin="5"
  344. VerticalAlignment="Center"/>
  345. <TextBlock Text="{Binding AbsenPer}"
  346. FontSize="18"
  347. Foreground="#DD2BB6FE"
  348. Margin="5"
  349. VerticalAlignment="Center"/>
  350. </StackPanel>
  351. </Grid>
  352. </GroupBox>
  353. <GroupBox Header="绩效管理"
  354. Margin="15"
  355. Grid.Row="2">
  356. <DataGrid x:Name="datagrid_person"
  357. AutoGenerateColumns="False"
  358. IsReadOnly="True"
  359. Margin="3"
  360. Background="Transparent"
  361. FontSize="20"
  362. BorderThickness="1"
  363. BorderBrush="#0000CD"
  364. Foreground="#afb4db"
  365. ItemsSource="{Binding PerManage}"
  366. LoadingRow="datagrid_person_LoadingRow">
  367. <DataGrid.RowStyle>
  368. <Style TargetType="{x:Type DataGridRow}">
  369. <Setter Property="Background"
  370. Value="Transparent" />
  371. </Style>
  372. </DataGrid.RowStyle>
  373. <DataGrid.Style>
  374. <Style TargetType="{x:Type DataGrid}">
  375. <!--网格线颜色-->
  376. <Setter Property="CanUserResizeColumns"
  377. Value="false" />
  378. <Setter Property="ScrollViewer.VerticalScrollBarVisibility"
  379. Value="Auto" />
  380. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility"
  381. Value="Auto" />
  382. <Setter Property="HeadersVisibility"
  383. Value="Column" />
  384. <Setter Property="HorizontalGridLinesBrush"
  385. Value="#0000CD" />
  386. <Setter Property="VerticalGridLinesBrush"
  387. Value="#0000CD" />
  388. </Style>
  389. </DataGrid.Style>
  390. <DataGrid.ColumnHeaderStyle>
  391. <Style TargetType="{x:Type DataGridColumnHeader}">
  392. <Setter Property="HorizontalContentAlignment"
  393. Value="Center" />
  394. <Setter Property="Background"
  395. Value="#001f55" />
  396. <Setter Property="Foreground"
  397. Value="#17acae" />
  398. <Setter Property="BorderThickness"
  399. Value="1" />
  400. <Setter Property="BorderBrush"
  401. Value="#0000CD" />
  402. </Style>
  403. </DataGrid.ColumnHeaderStyle>
  404. <DataGrid.Columns>
  405. <DataGridTemplateColumn Width="auto"
  406. Header="排序">
  407. <DataGridTemplateColumn.CellTemplate>
  408. <DataTemplate>
  409. <TextBlock Text="{Binding Header, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}, Mode=FindAncestor}}"
  410. HorizontalAlignment="Left"
  411. VerticalAlignment="Center"
  412. Margin="10,0,0,0" />
  413. </DataTemplate>
  414. </DataGridTemplateColumn.CellTemplate>
  415. </DataGridTemplateColumn>
  416. <DataGridTextColumn Width="*"
  417. Binding="{Binding EmployeeName}"
  418. Header="员工" />
  419. <DataGridTextColumn Width="*"
  420. Binding="{Binding ProProcess}"
  421. Header="生产工序" />
  422. <DataGridTextColumn Width="*"
  423. Binding="{Binding WorkTime}"
  424. Header="出勤时间" />
  425. <DataGridTextColumn Width="*"
  426. Binding="{Binding Yield}"
  427. Header="产量" />
  428. </DataGrid.Columns>
  429. </DataGrid>
  430. </GroupBox>
  431. </Grid>
  432. <Grid Grid.Column="1">
  433. <Grid.RowDefinitions>
  434. <RowDefinition Height="60" />
  435. <RowDefinition Height="auto" />
  436. <RowDefinition Height="auto" />
  437. <RowDefinition Height="1*" />
  438. <RowDefinition Height="1*" />
  439. </Grid.RowDefinitions>
  440. <Image Grid.ColumnSpan="2"
  441. Grid.Row="1"
  442. Margin="5"
  443. Source="/LogoForceTestApp.Modules.MainModule;component/Views/dev.png" />
  444. <GroupBox Margin="10,0,10,3"
  445. Grid.Row="2">
  446. <Grid>
  447. <Grid.ColumnDefinitions>
  448. <ColumnDefinition Width="3*" />
  449. <ColumnDefinition Width="2*" />
  450. </Grid.ColumnDefinitions>
  451. <Grid.RowDefinitions>
  452. <RowDefinition />
  453. <RowDefinition />
  454. <RowDefinition />
  455. </Grid.RowDefinitions>
  456. <StackPanel Orientation="Horizontal"
  457. Grid.Row="1"
  458. Grid.Column="0"
  459. Grid.ColumnSpan="3">
  460. <TextBlock Text="{Binding BillNo}"
  461. FontSize="22"
  462. Foreground="PaleVioletRed"
  463. Margin="5"
  464. VerticalAlignment="Center"
  465. FontFamily="Comic Sans MS" />
  466. <TextBlock Text="计划产量"
  467. FontSize="22"
  468. Foreground="#17acae"
  469. Margin="5"
  470. VerticalAlignment="Center" />
  471. <TextBlock Text="{Binding AuxQty}"
  472. FontSize="22"
  473. Foreground="#DD2BB6FE"
  474. Margin="5"
  475. VerticalAlignment="Center" />
  476. <TextBlock Text="已完成"
  477. FontSize="22"
  478. Foreground="#17acae"
  479. Margin="5"
  480. VerticalAlignment="Center" />
  481. <TextBlock Text="{Binding Finished}"
  482. FontSize="22"
  483. Foreground="#DD2BB6FE"
  484. Margin="5"
  485. VerticalAlignment="Center" />
  486. </StackPanel>
  487. <StackPanel Orientation="Horizontal"
  488. Grid.Row="1"
  489. Grid.Column="2">
  490. <TextBlock Text="完成度"
  491. FontSize="22"
  492. Foreground="#17acae"
  493. Margin="5"
  494. VerticalAlignment="Center" />
  495. <ProgressBar Width="200"
  496. Height="20"
  497. Minimum="0"
  498. Maximum="100"
  499. Value="{Binding FinishRate}"
  500. Background="#803338AE" />
  501. </StackPanel>
  502. </Grid>
  503. </GroupBox>
  504. <GroupBox Header="生产进度"
  505. Margin="15"
  506. Grid.Row="3">
  507. <lvc:CartesianChart Series="{Binding SeriesLine}"
  508. DrawMarginFrame="{Binding DrawMarginFrame}"
  509. XAxes="{Binding XAxesLine}"
  510. YAxes="{Binding YAxesLine}"
  511. Title="{Binding PcTitle}"
  512. Grid.Row="1" />
  513. </GroupBox>
  514. <GroupBox Header="质量保证"
  515. Margin="15"
  516. Grid.Row="4">
  517. <Grid>
  518. <Grid.RowDefinitions>
  519. <RowDefinition Height="25"/>
  520. <RowDefinition />
  521. </Grid.RowDefinitions>
  522. <Grid.ColumnDefinitions>
  523. <ColumnDefinition />
  524. <ColumnDefinition />
  525. <ColumnDefinition />
  526. </Grid.ColumnDefinitions>
  527. <TextBlock Text="生产问题汇总"
  528. Margin="3"
  529. FontSize="14"
  530. Foreground="#2F98FF"
  531. VerticalAlignment="Center"
  532. HorizontalAlignment="Center"
  533. Grid.Row="0"
  534. Grid.Column="0"/>
  535. <lvc:CartesianChart Series="{Binding SeriesQuality1}"
  536. XAxes="{Binding XAxes1}"
  537. YAxes="{Binding YAxes1}"
  538. Grid.Row="1"
  539. Grid.Column="0"/>
  540. <TextBlock Text="工艺问题汇总"
  541. Margin="3"
  542. FontSize="14"
  543. Foreground="#2F98FF"
  544. VerticalAlignment="Center"
  545. HorizontalAlignment="Center"
  546. Grid.Row="0"
  547. Grid.Column="1" />
  548. <lvc:CartesianChart Series="{Binding SeriesQuality2}"
  549. XAxes="{Binding XAxes2}"
  550. YAxes="{Binding YAxes2}"
  551. Grid.Row="1"
  552. Grid.Column="1" />
  553. <TextBlock Text="物料问题汇总"
  554. Margin="3"
  555. FontSize="14"
  556. Foreground="#2F98FF"
  557. VerticalAlignment="Center"
  558. HorizontalAlignment="Center"
  559. Grid.Row="0"
  560. Grid.Column="2" />
  561. <lvc:CartesianChart Series="{Binding SeriesQuality3}"
  562. XAxes="{Binding XAxes3}"
  563. YAxes="{Binding YAxes3}"
  564. Grid.Row="1"
  565. Grid.Column="2" />
  566. </Grid>
  567. </GroupBox>
  568. </Grid>
  569. <Grid Grid.Column="2">
  570. <Grid.RowDefinitions>
  571. <RowDefinition Height="3*" />
  572. <RowDefinition Height="4*" />
  573. </Grid.RowDefinitions>
  574. <GroupBox Header="线边仓管理"
  575. Margin="15"
  576. Grid.Row="0">
  577. <Grid>
  578. <Grid.RowDefinitions>
  579. <RowDefinition />
  580. <RowDefinition Height="67" />
  581. </Grid.RowDefinitions>
  582. <lvc:PieChart Series="{Binding Series13}"
  583. InitialRotation="{Binding InitialRotation13}"
  584. MaxAngle="{Binding MaxAngle13}"
  585. MaxValue="{Binding GaugeTotal13}" />
  586. <DataGrid AutoGenerateColumns="False"
  587. IsReadOnly="True"
  588. Margin="3"
  589. Background="Transparent"
  590. FontSize="20"
  591. BorderThickness="1"
  592. BorderBrush="#0000CD"
  593. Foreground="#afb4db"
  594. ItemsSource="{Binding MyHouse}"
  595. Grid.Row="1">
  596. <DataGrid.RowStyle>
  597. <Style TargetType="{x:Type DataGridRow}">
  598. <Setter Property="Background"
  599. Value="Transparent" />
  600. </Style>
  601. </DataGrid.RowStyle>
  602. <DataGrid.Style>
  603. <Style TargetType="{x:Type DataGrid}">
  604. <!--网格线颜色-->
  605. <Setter Property="CanUserResizeColumns"
  606. Value="false" />
  607. <Setter Property="ScrollViewer.VerticalScrollBarVisibility"
  608. Value="Auto" />
  609. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility"
  610. Value="Auto" />
  611. <Setter Property="HeadersVisibility"
  612. Value="Column" />
  613. <Setter Property="HorizontalGridLinesBrush"
  614. Value="#0000CD" />
  615. <Setter Property="VerticalGridLinesBrush"
  616. Value="#0000CD" />
  617. </Style>
  618. </DataGrid.Style>
  619. <DataGrid.ColumnHeaderStyle>
  620. <Style TargetType="{x:Type DataGridColumnHeader}">
  621. <Setter Property="HorizontalContentAlignment"
  622. Value="Center" />
  623. <Setter Property="Background"
  624. Value="#001f55" />
  625. <Setter Property="Foreground"
  626. Value="#17acae" />
  627. <Setter Property="BorderThickness"
  628. Value="1" />
  629. <Setter Property="BorderBrush"
  630. Value="#0000CD" />
  631. </Style>
  632. </DataGrid.ColumnHeaderStyle>
  633. <DataGrid.Columns>
  634. <DataGridTextColumn Width="*"
  635. Binding="{Binding DateH}"
  636. Header="日期" />
  637. <DataGridTextColumn Width="*"
  638. Binding="{Binding TotalH}"
  639. Header="当日订单" />
  640. <DataGridTextColumn Width="*"
  641. Binding="{Binding UsedH}"
  642. Header="已领料订单" />
  643. <DataGridTextColumn Width="*"
  644. Binding="{Binding LackH}"
  645. Header="缺料订单" />
  646. </DataGrid.Columns>
  647. </DataGrid>
  648. </Grid>
  649. </GroupBox>
  650. <GroupBox Header="设备监控"
  651. Margin="15"
  652. Grid.Row="1">
  653. <Grid>
  654. <Grid.RowDefinitions>
  655. <RowDefinition Height="35" />
  656. <RowDefinition Height="5*"/>
  657. <RowDefinition Height="6*"/>
  658. </Grid.RowDefinitions>
  659. <StackPanel Orientation="Horizontal"
  660. VerticalAlignment="Center"
  661. HorizontalAlignment="Center"
  662. Margin="5">
  663. <Image Source="/LogoForceTestApp.Modules.MainModule;component/Views/绿灯.png"
  664. Margin="5" />
  665. <TextBlock Text="正常 "
  666. FontSize="16"
  667. Foreground="#44FFFFFF"
  668. Margin="3" />
  669. <Image Source="/LogoForceTestApp.Modules.MainModule;component/Views/黄灯.png"
  670. Margin="5" />
  671. <TextBlock Text="缺料 "
  672. FontSize="16"
  673. Foreground="#44FFFFFF"
  674. Margin="3" />
  675. <Image Source="/LogoForceTestApp.Modules.MainModule;component/Views/红灯.png"
  676. Margin="5" />
  677. <TextBlock Text="报警 "
  678. FontSize="16"
  679. Foreground="#44FFFFFF"
  680. Margin="3" />
  681. </StackPanel>
  682. <Grid Grid.Row="1">
  683. <Border BorderBrush="#22FFFFFF"
  684. BorderThickness="0,0,0,1"
  685. VerticalAlignment="Top">
  686. <Grid>
  687. <Grid.ColumnDefinitions>
  688. <ColumnDefinition />
  689. <ColumnDefinition />
  690. <ColumnDefinition />
  691. <ColumnDefinition />
  692. <ColumnDefinition />
  693. </Grid.ColumnDefinitions>
  694. <Border BorderBrush="#22FFFFFF"
  695. BorderThickness="0,1,1,0"
  696. Grid.Column="0">
  697. <Grid>
  698. <Grid.RowDefinitions>
  699. <RowDefinition />
  700. <RowDefinition />
  701. <RowDefinition />
  702. <RowDefinition />
  703. <RowDefinition />
  704. <RowDefinition />
  705. </Grid.RowDefinitions>
  706. <StackPanel Grid.Row="0"
  707. Orientation="Horizontal">
  708. <TextBlock Text="螺丝机1"
  709. FontSize="15"
  710. Foreground="#85A5EB"
  711. Margin="5"
  712. VerticalAlignment="Center" />
  713. <Image Source="{Binding ImgLight15}"
  714. Height="20"
  715. Width="20" />
  716. </StackPanel>
  717. <StackPanel Grid.Row="1"
  718. Orientation="Horizontal">
  719. <TextBlock Text="螺丝机2"
  720. FontSize="15"
  721. Foreground="#85A5EB"
  722. Margin="5"
  723. VerticalAlignment="Center" />
  724. <Image Source="{Binding ImgLight16}"
  725. Height="20"
  726. Width="20" />
  727. </StackPanel>
  728. <StackPanel Grid.Row="2"
  729. Orientation="Horizontal">
  730. <TextBlock Text="螺丝机3"
  731. FontSize="15"
  732. Foreground="#85A5EB"
  733. Margin="5"
  734. VerticalAlignment="Center" />
  735. <Image Source="{Binding ImgLight17}"
  736. Height="20"
  737. Width="20" />
  738. </StackPanel>
  739. <StackPanel Grid.Row="3"
  740. Orientation="Horizontal">
  741. <TextBlock Text="螺丝机4"
  742. FontSize="15"
  743. Foreground="#85A5EB"
  744. Margin="5"
  745. VerticalAlignment="Center" />
  746. <Image Source="{Binding ImgLight18}"
  747. Height="20"
  748. Width="20" />
  749. </StackPanel>
  750. <StackPanel Grid.Row="4"
  751. Orientation="Horizontal">
  752. <TextBlock Text="螺丝机5"
  753. FontSize="15"
  754. Foreground="#85A5EB"
  755. Margin="5"
  756. VerticalAlignment="Center" />
  757. <Image Source="{Binding ImgLight19}"
  758. Height="20"
  759. Width="20" />
  760. </StackPanel>
  761. <StackPanel Grid.Row="5"
  762. Orientation="Horizontal">
  763. <TextBlock Text="螺丝机6"
  764. FontSize="15"
  765. Foreground="#85A5EB"
  766. Margin="5"
  767. VerticalAlignment="Center" />
  768. <Image Source="{Binding ImgLight20}"
  769. Height="20"
  770. Width="20" />
  771. </StackPanel>
  772. </Grid>
  773. </Border>
  774. <Border BorderBrush="#22FFFFFF"
  775. BorderThickness="0,1,1,0"
  776. Grid.Column="1">
  777. <Grid>
  778. <Grid.RowDefinitions>
  779. <RowDefinition />
  780. <RowDefinition />
  781. <RowDefinition />
  782. <RowDefinition />
  783. <RowDefinition />
  784. <RowDefinition />
  785. </Grid.RowDefinitions>
  786. <StackPanel Grid.Row="0"
  787. Orientation="Horizontal">
  788. <TextBlock Text="1号机"
  789. FontSize="15"
  790. Foreground="#85A5EB"
  791. Margin="5"
  792. VerticalAlignment="Center" />
  793. <Image Source="{Binding ImgLight1}"
  794. Height="20"
  795. Width="20" />
  796. </StackPanel>
  797. <StackPanel Grid.Row="1"
  798. Orientation="Horizontal">
  799. <TextBlock Text="2号机"
  800. FontSize="15"
  801. Foreground="#85A5EB"
  802. Margin="5"
  803. VerticalAlignment="Center" />
  804. <Image Source="{Binding ImgLight2}"
  805. Height="20"
  806. Width="20" />
  807. </StackPanel>
  808. <StackPanel Grid.Row="2"
  809. Orientation="Horizontal">
  810. <TextBlock Text="3号机"
  811. FontSize="15"
  812. Foreground="#85A5EB"
  813. Margin="5"
  814. VerticalAlignment="Center" />
  815. <Image Source="{Binding ImgLight3}"
  816. Height="20"
  817. Width="20" />
  818. </StackPanel>
  819. <StackPanel Grid.Row="3"
  820. Orientation="Horizontal">
  821. <TextBlock Text="4号机"
  822. FontSize="15"
  823. Foreground="#85A5EB"
  824. Margin="5"
  825. VerticalAlignment="Center" />
  826. <Image Source="{Binding ImgLight4}"
  827. Height="20"
  828. Width="20" />
  829. </StackPanel>
  830. <StackPanel Grid.Row="4"
  831. Orientation="Horizontal">
  832. <TextBlock Text="5号机"
  833. FontSize="15"
  834. Foreground="#85A5EB"
  835. Margin="5"
  836. VerticalAlignment="Center" />
  837. <Image Source="{Binding ImgLight5}"
  838. Height="20"
  839. Width="20" />
  840. </StackPanel>
  841. </Grid>
  842. </Border>
  843. <Border BorderBrush="#22FFFFFF"
  844. BorderThickness="0,1,1,0"
  845. Grid.Column="2">
  846. <Grid>
  847. <Grid.RowDefinitions>
  848. <RowDefinition />
  849. <RowDefinition />
  850. <RowDefinition />
  851. <RowDefinition />
  852. <RowDefinition />
  853. <RowDefinition />
  854. </Grid.RowDefinitions>
  855. <StackPanel Grid.Row="0"
  856. Orientation="Horizontal">
  857. <TextBlock Text="6号机"
  858. FontSize="15"
  859. Foreground="#85A5EB"
  860. Margin="5"
  861. VerticalAlignment="Center" />
  862. <Image Source="{Binding ImgLight6}"
  863. Height="20"
  864. Width="20" />
  865. </StackPanel>
  866. <StackPanel Grid.Row="1"
  867. Orientation="Horizontal">
  868. <TextBlock Text="7号机"
  869. FontSize="15"
  870. Foreground="#85A5EB"
  871. Margin="5"
  872. VerticalAlignment="Center" />
  873. <Image Source="{Binding ImgLight7}"
  874. Height="20"
  875. Width="20" />
  876. </StackPanel>
  877. <StackPanel Grid.Row="2"
  878. Orientation="Horizontal">
  879. <TextBlock Text="8号机"
  880. FontSize="15"
  881. Foreground="#85A5EB"
  882. Margin="5"
  883. VerticalAlignment="Center" />
  884. <Image Source="{Binding ImgLight8}"
  885. Height="20"
  886. Width="20" />
  887. </StackPanel>
  888. <StackPanel Grid.Row="3"
  889. Orientation="Horizontal">
  890. <TextBlock Text="9号机"
  891. FontSize="15"
  892. Foreground="#85A5EB"
  893. Margin="5"
  894. VerticalAlignment="Center" />
  895. <Image Source="{Binding ImgLight9}"
  896. Height="20"
  897. Width="20" />
  898. </StackPanel>
  899. <StackPanel Grid.Row="4"
  900. Orientation="Horizontal">
  901. <TextBlock Text="10号机"
  902. FontSize="15"
  903. Foreground="#85A5EB"
  904. Margin="5"
  905. VerticalAlignment="Center" />
  906. <Image Source="{Binding ImgLight10}"
  907. Height="20"
  908. Width="20" />
  909. </StackPanel>
  910. </Grid>
  911. </Border>
  912. <Border BorderBrush="#22FFFFFF"
  913. BorderThickness="0,1,1,0"
  914. Grid.Column="3">
  915. <Grid>
  916. <Grid.RowDefinitions>
  917. <RowDefinition />
  918. <RowDefinition />
  919. <RowDefinition />
  920. <RowDefinition />
  921. <RowDefinition />
  922. <RowDefinition />
  923. </Grid.RowDefinitions>
  924. <StackPanel Grid.Row="0"
  925. Orientation="Horizontal">
  926. <TextBlock Text="11号机"
  927. FontSize="15"
  928. Foreground="#85A5EB"
  929. Margin="5"
  930. VerticalAlignment="Center" />
  931. <Image Source="{Binding ImgLight11}"
  932. Height="20"
  933. Width="20" />
  934. </StackPanel>
  935. <StackPanel Grid.Row="1"
  936. Orientation="Horizontal">
  937. <TextBlock Text="12号机"
  938. FontSize="15"
  939. Foreground="#85A5EB"
  940. Margin="5"
  941. VerticalAlignment="Center" />
  942. <Image Source="{Binding ImgLight12}"
  943. Height="20"
  944. Width="20" />
  945. </StackPanel>
  946. <StackPanel Grid.Row="2"
  947. Orientation="Horizontal">
  948. <TextBlock Text="13号机"
  949. FontSize="15"
  950. Foreground="#85A5EB"
  951. Margin="5"
  952. VerticalAlignment="Center" />
  953. <Image Source="{Binding ImgLight13}"
  954. Height="20"
  955. Width="20" />
  956. </StackPanel>
  957. <StackPanel Grid.Row="3"
  958. Orientation="Horizontal">
  959. <TextBlock Text="14号机"
  960. FontSize="15"
  961. Foreground="#85A5EB"
  962. Margin="5"
  963. VerticalAlignment="Center" />
  964. <Image Source="{Binding ImgLight14}"
  965. Height="20"
  966. Width="20" />
  967. </StackPanel>
  968. </Grid>
  969. </Border>
  970. <Border BorderBrush="#22FFFFFF"
  971. BorderThickness="0,1,0,0"
  972. Grid.Column="4">
  973. <Grid>
  974. <Grid.RowDefinitions>
  975. <RowDefinition />
  976. <RowDefinition />
  977. <RowDefinition />
  978. <RowDefinition />
  979. <RowDefinition />
  980. <RowDefinition />
  981. </Grid.RowDefinitions>
  982. <StackPanel Grid.Row="0"
  983. Orientation="Horizontal">
  984. <TextBlock Text="提升机"
  985. FontSize="15"
  986. Foreground="#85A5EB"
  987. Margin="5"
  988. VerticalAlignment="Center" />
  989. <Image Source="{Binding ImgLight21}"
  990. Height="20"
  991. Width="20" />
  992. </StackPanel>
  993. <StackPanel Grid.Row="1"
  994. Orientation="Horizontal">
  995. <TextBlock Text="检测机"
  996. FontSize="15"
  997. Foreground="#85A5EB"
  998. Margin="5"
  999. VerticalAlignment="Center" />
  1000. <Image Source="{Binding ImgLight22}"
  1001. Height="20"
  1002. Width="20" />
  1003. </StackPanel>
  1004. <StackPanel Grid.Row="2"
  1005. Orientation="Horizontal">
  1006. <TextBlock Text="返修机"
  1007. FontSize="15"
  1008. Foreground="#85A5EB"
  1009. Margin="5"
  1010. VerticalAlignment="Center" />
  1011. <Image Source="{Binding ImgLight23}"
  1012. Height="20"
  1013. Width="20" />
  1014. </StackPanel>
  1015. </Grid>
  1016. </Border>
  1017. </Grid>
  1018. </Border>
  1019. </Grid>
  1020. <Grid Grid.Row="2">
  1021. </Grid>
  1022. </Grid>
  1023. </GroupBox>
  1024. </Grid>
  1025. </Grid>
  1026. </Grid>
  1027. </Window>