KBWindow.xaml 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153
  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">
  215. <Run Text="&#xE61D;"
  216. FontFamily="../Assets/#iconfont"
  217. Foreground="#2BB6FE" />
  218. <Run Text=" " />
  219. <Run Text="{Binding TimeNow}"
  220. Foreground="#55FFFFFF" />
  221. </TextBlock>
  222. <Border HorizontalAlignment="Right"
  223. VerticalAlignment="Top"
  224. WindowChrome.IsHitTestVisibleInChrome="True"
  225. Background="Transparent">
  226. <StackPanel Orientation="Horizontal"
  227. HorizontalAlignment="Right">
  228. <!--<Button Width="40"
  229. Height="40"
  230. Content="&#xe60d;"
  231. Style="{StaticResource ControlButtonStyle}"
  232. x:Name="btnMax"/>-->
  233. <Button Width="40"
  234. Height="40"
  235. Content="×"
  236. FontSize="35"
  237. Style="{StaticResource ControlButtonStyle}"
  238. x:Name="btnClose"
  239. Background="Transparent" />
  240. </StackPanel>
  241. </Border>
  242. <Grid Grid.Row="1">
  243. <Grid.ColumnDefinitions>
  244. <ColumnDefinition />
  245. <ColumnDefinition Width="1.5*" />
  246. <ColumnDefinition />
  247. </Grid.ColumnDefinitions>
  248. <Grid Grid.Column="0">
  249. <Grid.RowDefinitions>
  250. <RowDefinition Height="300" />
  251. <RowDefinition Height="200"/>
  252. <RowDefinition Height="*"/>
  253. </Grid.RowDefinitions>
  254. <GroupBox Header="出勤信息"
  255. Margin="15"
  256. Grid.Row="0">
  257. <Grid>
  258. <Grid.ColumnDefinitions>
  259. <ColumnDefinition Width="1*" />
  260. <ColumnDefinition Width="1*" />
  261. </Grid.ColumnDefinitions>
  262. <lvc:PieChart Series="{Binding Series12}"
  263. InitialRotation="{Binding InitialRotation12}"
  264. MaxAngle="{Binding MaxAngle12}"
  265. MaxValue="{Binding GaugeTotal12}"
  266. Grid.Column="0" />
  267. <StackPanel Orientation="Vertical"
  268. Grid.Column="1"
  269. Margin="10,50,5,50">
  270. <TextBlock Text="{Binding TotalPer}"
  271. FontSize="18"
  272. Foreground="#DD2BB6FE"
  273. Margin="5"
  274. VerticalAlignment="Center"/>
  275. <TextBlock Text="{Binding ActualPer}"
  276. FontSize="18"
  277. Foreground="#DD2BB6FE"
  278. Margin="5"
  279. VerticalAlignment="Center"/>
  280. <TextBlock Text="{Binding FallIllPer}"
  281. FontSize="18"
  282. Foreground="#DD2BB6FE"
  283. Margin="5"
  284. VerticalAlignment="Center"/>
  285. <TextBlock Text="{Binding AbsenPer}"
  286. FontSize="18"
  287. Foreground="#DD2BB6FE"
  288. Margin="5"
  289. VerticalAlignment="Center"/>
  290. </StackPanel>
  291. </Grid>
  292. </GroupBox>
  293. <GroupBox Header="优秀员工"
  294. Margin="15"
  295. Grid.Row="1">
  296. <Grid>
  297. <Grid.ColumnDefinitions>
  298. <ColumnDefinition />
  299. <ColumnDefinition />
  300. <ColumnDefinition />
  301. </Grid.ColumnDefinitions>
  302. <Grid.RowDefinitions>
  303. <RowDefinition />
  304. <RowDefinition />
  305. <RowDefinition />
  306. </Grid.RowDefinitions>
  307. <Image Grid.RowSpan="3"
  308. Grid.Column="0"
  309. Margin="5"
  310. Source="/LogoForceTestApp.Modules.MainModule;component/Views/persons.png" />
  311. <Border BorderBrush="#22FFFFFF"
  312. BorderThickness="0,0,0,1"
  313. Grid.Column="1"
  314. Grid.Row="0">
  315. <TextBlock FontSize="18"
  316. VerticalAlignment="Center"
  317. HorizontalAlignment="Center"
  318. Foreground="#E6B2DE">
  319. <Run Text="&#xe7af;"
  320. FontFamily="../Assets/#iconfont"
  321. Foreground="Yellow" />
  322. <Run Text=" 第一名" />
  323. </TextBlock>
  324. </Border>
  325. <Border BorderBrush="#22FFFFFF"
  326. BorderThickness="0,0,0,1"
  327. Grid.Column="2"
  328. Grid.Row="0">
  329. <TextBlock Text="{Binding FirstName}"
  330. FontSize="18"
  331. VerticalAlignment="Center"
  332. HorizontalAlignment="Center"
  333. Foreground="#C3C498" />
  334. </Border>
  335. <Border BorderBrush="#22FFFFFF"
  336. BorderThickness="0,0,0,1"
  337. Grid.Column="1"
  338. Grid.Row="1">
  339. <TextBlock Text="【 第二名 】"
  340. FontSize="18"
  341. VerticalAlignment="Center"
  342. HorizontalAlignment="Center"
  343. Foreground="#AB93FF"/>
  344. </Border>
  345. <Border BorderBrush="#22FFFFFF"
  346. BorderThickness="0,0,0,1"
  347. Grid.Column="2"
  348. Grid.Row="1">
  349. <TextBlock Text="{Binding SecondName}"
  350. Grid.Column="2"
  351. Grid.Row="1"
  352. FontSize="18"
  353. VerticalAlignment="Center"
  354. HorizontalAlignment="Center"
  355. Foreground="#C3C498" />
  356. </Border>
  357. <TextBlock Text="【 第三名 】"
  358. Grid.Column="1"
  359. Grid.Row="2"
  360. FontSize="18"
  361. VerticalAlignment="Center"
  362. HorizontalAlignment="Center"
  363. Foreground="#AB93FF" />
  364. <TextBlock Text="{Binding ThirdName}"
  365. Grid.Column="2"
  366. Grid.Row="2"
  367. FontSize="18"
  368. VerticalAlignment="Center"
  369. HorizontalAlignment="Center"
  370. Foreground="#C3C498" />
  371. </Grid>
  372. </GroupBox>
  373. <GroupBox Header="绩效管理"
  374. Margin="15"
  375. Grid.Row="2">
  376. <DataGrid x:Name="datagrid_person"
  377. AutoGenerateColumns="False"
  378. IsReadOnly="True"
  379. Margin="3"
  380. Background="Transparent"
  381. FontSize="20"
  382. BorderThickness="1"
  383. BorderBrush="#0000CD"
  384. Foreground="#afb4db"
  385. ItemsSource="{Binding PerManage}"
  386. LoadingRow="datagrid_person_LoadingRow">
  387. <DataGrid.RowStyle>
  388. <Style TargetType="{x:Type DataGridRow}">
  389. <Setter Property="Background"
  390. Value="Transparent" />
  391. </Style>
  392. </DataGrid.RowStyle>
  393. <DataGrid.Style>
  394. <Style TargetType="{x:Type DataGrid}">
  395. <Setter Property="CanUserResizeColumns"
  396. Value="false" />
  397. <Setter Property="ScrollViewer.VerticalScrollBarVisibility"
  398. Value="Auto" />
  399. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility"
  400. Value="Auto" />
  401. <Setter Property="HeadersVisibility"
  402. Value="Column" />
  403. <Setter Property="HorizontalGridLinesBrush"
  404. Value="#0000CD" />
  405. <Setter Property="VerticalGridLinesBrush"
  406. Value="#0000CD" />
  407. </Style>
  408. </DataGrid.Style>
  409. <DataGrid.ColumnHeaderStyle>
  410. <Style TargetType="{x:Type DataGridColumnHeader}">
  411. <Setter Property="HorizontalContentAlignment"
  412. Value="Center" />
  413. <Setter Property="Background"
  414. Value="#001f55" />
  415. <Setter Property="Foreground"
  416. Value="#17acae" />
  417. <Setter Property="BorderThickness"
  418. Value="1" />
  419. <Setter Property="BorderBrush"
  420. Value="#0000CD" />
  421. </Style>
  422. </DataGrid.ColumnHeaderStyle>
  423. <DataGrid.Columns>
  424. <DataGridTemplateColumn Width="auto"
  425. Header="排序">
  426. <DataGridTemplateColumn.CellTemplate>
  427. <DataTemplate>
  428. <TextBlock Text="{Binding Header, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}, Mode=FindAncestor}}"
  429. HorizontalAlignment="Left"
  430. VerticalAlignment="Center"
  431. Margin="10,0,0,0" />
  432. </DataTemplate>
  433. </DataGridTemplateColumn.CellTemplate>
  434. </DataGridTemplateColumn>
  435. <DataGridTextColumn Width="*"
  436. Binding="{Binding EmployeeName}"
  437. Header="员工" />
  438. <DataGridTextColumn Width="*"
  439. Binding="{Binding Yield}"
  440. Header="产量" />
  441. </DataGrid.Columns>
  442. </DataGrid>
  443. </GroupBox>
  444. </Grid>
  445. <Grid Grid.Column="1">
  446. <Grid.RowDefinitions>
  447. <RowDefinition Height="60" />
  448. <RowDefinition Height="auto" />
  449. <RowDefinition Height="auto" />
  450. <RowDefinition Height="2*" />
  451. <RowDefinition Height="3*" />
  452. </Grid.RowDefinitions>
  453. <Image Grid.ColumnSpan="2"
  454. Grid.Row="1"
  455. Margin="5"
  456. Source="/LogoForceTestApp.Modules.MainModule;component/Views/dev.png" />
  457. <GroupBox Margin="10,0,10,3"
  458. Grid.Row="2">
  459. <Grid>
  460. <Grid.ColumnDefinitions>
  461. <ColumnDefinition Width="3*" />
  462. <ColumnDefinition Width="2*" />
  463. </Grid.ColumnDefinitions>
  464. <Grid.RowDefinitions>
  465. <RowDefinition />
  466. <RowDefinition />
  467. <RowDefinition />
  468. </Grid.RowDefinitions>
  469. <StackPanel Orientation="Horizontal"
  470. Grid.Row="1"
  471. Grid.Column="0"
  472. Grid.ColumnSpan="3">
  473. <TextBlock Text="{Binding BillNo}"
  474. FontSize="20"
  475. Foreground="PaleVioletRed"
  476. Margin="5"
  477. VerticalAlignment="Center"
  478. FontFamily="Comic Sans MS" />
  479. <TextBlock Text="计划产量"
  480. FontSize="20"
  481. Foreground="#17acae"
  482. Margin="5"
  483. VerticalAlignment="Center" />
  484. <TextBlock Text="{Binding AuxQty}"
  485. FontSize="20"
  486. Foreground="#DD2BB6FE"
  487. Margin="5"
  488. VerticalAlignment="Center" />
  489. <TextBlock Text="已完成"
  490. FontSize="20"
  491. Foreground="#17acae"
  492. Margin="5"
  493. VerticalAlignment="Center" />
  494. <TextBlock Text="{Binding Finished}"
  495. FontSize="20"
  496. Foreground="#DD2BB6FE"
  497. Margin="5"
  498. VerticalAlignment="Center" />
  499. </StackPanel>
  500. <StackPanel Orientation="Horizontal"
  501. Grid.Row="1"
  502. Grid.Column="2">
  503. <TextBlock Text="完成度"
  504. FontSize="20"
  505. Foreground="#17acae"
  506. Margin="5"
  507. VerticalAlignment="Center" />
  508. <ProgressBar Width="200"
  509. Height="20"
  510. Minimum="0"
  511. Maximum="100"
  512. Value="{Binding FinishRate}"
  513. Background="#803338AE" />
  514. </StackPanel>
  515. </Grid>
  516. </GroupBox>
  517. <GroupBox Header="生产进度"
  518. Margin="15"
  519. Grid.Row="3">
  520. <Grid>
  521. <Grid.RowDefinitions>
  522. <RowDefinition Height="auto"/>
  523. <RowDefinition Height="auto" />
  524. <RowDefinition Height="*"/>
  525. </Grid.RowDefinitions>
  526. <TextBlock VerticalAlignment="Center"
  527. HorizontalAlignment="Center"
  528. Text="近一周产量趋势"
  529. FontSize="16"
  530. Foreground="#2780D6"
  531. Margin="3"/>
  532. <StackPanel Orientation="Horizontal"
  533. VerticalAlignment="Top"
  534. HorizontalAlignment="Right"
  535. Margin="3"
  536. Grid.Row="1">
  537. <Border Width="10"
  538. Height="10"
  539. Background="#AFD179"
  540. Margin="5,0" />
  541. <TextBlock Text="产量"
  542. FontSize="10"
  543. Foreground="#44FFFFFF" />
  544. <Border Width="10"
  545. Height="10"
  546. Background="#D17DCB"
  547. Margin="5,0" />
  548. <TextBlock Text="合格率(%)"
  549. FontSize="10"
  550. Foreground="#44FFFFFF" />
  551. </StackPanel>
  552. <lvc:CartesianChart Series="{Binding SeriesLine}"
  553. DrawMarginFrame="{Binding DrawMarginFrame}"
  554. XAxes="{Binding XAxesLine}"
  555. YAxes="{Binding YAxesLine}"
  556. Grid.Row="2" />
  557. </Grid>
  558. </GroupBox>
  559. <GroupBox Header="质量保证"
  560. Margin="15"
  561. Grid.Row="4">
  562. <Grid>
  563. <Grid.RowDefinitions>
  564. <RowDefinition Height="25"/>
  565. <RowDefinition />
  566. </Grid.RowDefinitions>
  567. <Grid.ColumnDefinitions>
  568. <ColumnDefinition />
  569. <ColumnDefinition />
  570. <ColumnDefinition />
  571. </Grid.ColumnDefinitions>
  572. <TextBlock Text="生产问题汇总"
  573. Margin="3"
  574. FontSize="14"
  575. Foreground="#2F98FF"
  576. VerticalAlignment="Center"
  577. HorizontalAlignment="Center"
  578. Grid.Row="0"
  579. Grid.Column="0"/>
  580. <lvc:CartesianChart Series="{Binding SeriesQuality1}"
  581. XAxes="{Binding XAxes1}"
  582. YAxes="{Binding YAxes1}"
  583. Grid.Row="1"
  584. Grid.Column="0"/>
  585. <TextBlock Text="工艺问题汇总"
  586. Margin="3"
  587. FontSize="14"
  588. Foreground="#2F98FF"
  589. VerticalAlignment="Center"
  590. HorizontalAlignment="Center"
  591. Grid.Row="0"
  592. Grid.Column="1" />
  593. <lvc:CartesianChart Series="{Binding SeriesQuality2}"
  594. XAxes="{Binding XAxes2}"
  595. YAxes="{Binding YAxes2}"
  596. Grid.Row="1"
  597. Grid.Column="1" />
  598. <TextBlock Text="物料问题汇总"
  599. Margin="3"
  600. FontSize="14"
  601. Foreground="#2F98FF"
  602. VerticalAlignment="Center"
  603. HorizontalAlignment="Center"
  604. Grid.Row="0"
  605. Grid.Column="2" />
  606. <lvc:CartesianChart Series="{Binding SeriesQuality3}"
  607. XAxes="{Binding XAxes3}"
  608. YAxes="{Binding YAxes3}"
  609. Grid.Row="1"
  610. Grid.Column="2" />
  611. </Grid>
  612. </GroupBox>
  613. </Grid>
  614. <Grid Grid.Column="2">
  615. <Grid.RowDefinitions>
  616. <RowDefinition Height="200" />
  617. <RowDefinition Height="1*" />
  618. <RowDefinition Height="1*" />
  619. </Grid.RowDefinitions>
  620. <GroupBox Header="实时产量"
  621. Margin="15"
  622. Grid.Row="0">
  623. <Grid>
  624. <Grid.ColumnDefinitions>
  625. <ColumnDefinition />
  626. <ColumnDefinition />
  627. <ColumnDefinition />
  628. </Grid.ColumnDefinitions>
  629. <Grid.RowDefinitions>
  630. <RowDefinition Height="1*" />
  631. <RowDefinition Height="2*" />
  632. </Grid.RowDefinitions>
  633. <TextBlock Text="【 今日总产量 】"
  634. FontSize="18"
  635. Foreground="#DD2BB6FE"
  636. Margin="5"
  637. Grid.Row="0"
  638. Grid.Column="0"
  639. VerticalAlignment="Bottom"
  640. HorizontalAlignment="Left" />
  641. <TextBlock Text="{Binding TotalNum}"
  642. FontSize="22"
  643. Foreground="#FFAEC9"
  644. Margin="5"
  645. Grid.Row="1"
  646. Grid.Column="0"
  647. VerticalAlignment="Center"
  648. HorizontalAlignment="Center"
  649. FontFamily="Comic Sans MS" />
  650. <TextBlock Text="【 合格数 】"
  651. FontSize="18"
  652. Foreground="#DD2BB6FE"
  653. Margin="5"
  654. Grid.Row="0"
  655. Grid.Column="1"
  656. VerticalAlignment="Bottom"
  657. HorizontalAlignment="Left" />
  658. <TextBlock Text="{Binding PassNum}"
  659. FontSize="22"
  660. Foreground="#FFAEC9"
  661. Margin="5"
  662. Grid.Row="1"
  663. Grid.Column="1"
  664. VerticalAlignment="Center"
  665. HorizontalAlignment="Center"
  666. FontFamily="Comic Sans MS" />
  667. <TextBlock Text="【 合格率 】"
  668. FontSize="18"
  669. Foreground="#DD2BB6FE"
  670. Margin="5"
  671. Grid.Row="0"
  672. Grid.Column="2"
  673. VerticalAlignment="Bottom"
  674. HorizontalAlignment="Left" />
  675. <lvc:PieChart Series="{Binding Series}"
  676. InitialRotation="-225"
  677. MaxAngle="270"
  678. MinValue="0"
  679. MaxValue="100"
  680. Grid.Column="2"
  681. Grid.Row="1" />
  682. </Grid>
  683. </GroupBox>
  684. <GroupBox Header="线边仓管理"
  685. Margin="15"
  686. Grid.Row="1">
  687. <Grid>
  688. <Grid.RowDefinitions>
  689. <RowDefinition />
  690. <RowDefinition Height="67" />
  691. </Grid.RowDefinitions>
  692. <lvc:PieChart Series="{Binding Series13}"
  693. InitialRotation="{Binding InitialRotation13}"
  694. MaxAngle="{Binding MaxAngle13}"
  695. MaxValue="{Binding GaugeTotal13}" />
  696. <DataGrid AutoGenerateColumns="False"
  697. IsReadOnly="True"
  698. Margin="3"
  699. Background="Transparent"
  700. FontSize="20"
  701. BorderThickness="1"
  702. BorderBrush="#0000CD"
  703. Foreground="#afb4db"
  704. ItemsSource="{Binding MyHouse}"
  705. Grid.Row="1">
  706. <DataGrid.RowStyle>
  707. <Style TargetType="{x:Type DataGridRow}">
  708. <Setter Property="Background"
  709. Value="Transparent" />
  710. </Style>
  711. </DataGrid.RowStyle>
  712. <DataGrid.Style>
  713. <Style TargetType="{x:Type DataGrid}">
  714. <!--网格线颜色-->
  715. <Setter Property="CanUserResizeColumns"
  716. Value="false" />
  717. <Setter Property="ScrollViewer.VerticalScrollBarVisibility"
  718. Value="Auto" />
  719. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility"
  720. Value="Auto" />
  721. <Setter Property="HeadersVisibility"
  722. Value="Column" />
  723. <Setter Property="HorizontalGridLinesBrush"
  724. Value="#0000CD" />
  725. <Setter Property="VerticalGridLinesBrush"
  726. Value="#0000CD" />
  727. </Style>
  728. </DataGrid.Style>
  729. <DataGrid.ColumnHeaderStyle>
  730. <Style TargetType="{x:Type DataGridColumnHeader}">
  731. <Setter Property="HorizontalContentAlignment"
  732. Value="Center" />
  733. <Setter Property="Background"
  734. Value="#001f55" />
  735. <Setter Property="Foreground"
  736. Value="#17acae" />
  737. <Setter Property="BorderThickness"
  738. Value="1" />
  739. <Setter Property="BorderBrush"
  740. Value="#0000CD" />
  741. </Style>
  742. </DataGrid.ColumnHeaderStyle>
  743. <DataGrid.Columns>
  744. <DataGridTextColumn Width="*"
  745. Binding="{Binding DateH}"
  746. Header="日期" />
  747. <DataGridTextColumn Width="*"
  748. Binding="{Binding TotalH}"
  749. Header="当日订单" />
  750. <DataGridTextColumn Width="*"
  751. Binding="{Binding UsedH}"
  752. Header="已领料订单" />
  753. <DataGridTextColumn Width="*"
  754. Binding="{Binding LackH}"
  755. Header="缺料订单" />
  756. </DataGrid.Columns>
  757. </DataGrid>
  758. </Grid>
  759. </GroupBox>
  760. <GroupBox Header="设备监控"
  761. Margin="15"
  762. Grid.Row="2">
  763. <Grid>
  764. <Grid.RowDefinitions>
  765. <RowDefinition Height="35" />
  766. <RowDefinition Height="*" />
  767. <RowDefinition Height="30" />
  768. </Grid.RowDefinitions>
  769. <StackPanel Orientation="Horizontal"
  770. VerticalAlignment="Center"
  771. HorizontalAlignment="Center"
  772. Margin="5">
  773. <Image Source="/LogoForceTestApp.Modules.MainModule;component/Views/绿灯.png"
  774. Margin="5" />
  775. <TextBlock Text="正常 "
  776. FontSize="16"
  777. Foreground="#44FFFFFF"
  778. Margin="3" />
  779. <Image Source="/LogoForceTestApp.Modules.MainModule;component/Views/黄灯.png"
  780. Margin="5" />
  781. <TextBlock Text="缺料 "
  782. FontSize="16"
  783. Foreground="#44FFFFFF"
  784. Margin="3" />
  785. <Image Source="/LogoForceTestApp.Modules.MainModule;component/Views/红灯.png"
  786. Margin="5" />
  787. <TextBlock Text="报警 "
  788. FontSize="16"
  789. Foreground="#44FFFFFF"
  790. Margin="3" />
  791. </StackPanel>
  792. <Grid Grid.Row="1">
  793. <Grid>
  794. <Grid.ColumnDefinitions>
  795. <ColumnDefinition />
  796. <ColumnDefinition />
  797. <ColumnDefinition />
  798. <ColumnDefinition />
  799. <ColumnDefinition />
  800. </Grid.ColumnDefinitions>
  801. <Border BorderBrush="#22FFFFFF"
  802. BorderThickness="0,1,1,0"
  803. Grid.Column="0">
  804. <Grid>
  805. <Grid.RowDefinitions>
  806. <RowDefinition />
  807. <RowDefinition />
  808. <RowDefinition />
  809. <RowDefinition />
  810. <RowDefinition />
  811. <RowDefinition />
  812. </Grid.RowDefinitions>
  813. <StackPanel Grid.Row="0"
  814. Orientation="Horizontal">
  815. <TextBlock Text="螺丝机1"
  816. FontSize="15"
  817. Foreground="#85A5EB"
  818. Margin="5"
  819. VerticalAlignment="Center" />
  820. <Image Source="{Binding ImgLight15}"
  821. Height="20"
  822. Width="20" />
  823. </StackPanel>
  824. <StackPanel Grid.Row="1"
  825. Orientation="Horizontal">
  826. <TextBlock Text="螺丝机2"
  827. FontSize="15"
  828. Foreground="#85A5EB"
  829. Margin="5"
  830. VerticalAlignment="Center" />
  831. <Image Source="{Binding ImgLight16}"
  832. Height="20"
  833. Width="20" />
  834. </StackPanel>
  835. <StackPanel Grid.Row="2"
  836. Orientation="Horizontal">
  837. <TextBlock Text="螺丝机3"
  838. FontSize="15"
  839. Foreground="#85A5EB"
  840. Margin="5"
  841. VerticalAlignment="Center" />
  842. <Image Source="{Binding ImgLight17}"
  843. Height="20"
  844. Width="20" />
  845. </StackPanel>
  846. <StackPanel Grid.Row="3"
  847. Orientation="Horizontal">
  848. <TextBlock Text="螺丝机4"
  849. FontSize="15"
  850. Foreground="#85A5EB"
  851. Margin="5"
  852. VerticalAlignment="Center" />
  853. <Image Source="{Binding ImgLight18}"
  854. Height="20"
  855. Width="20" />
  856. </StackPanel>
  857. <StackPanel Grid.Row="4"
  858. Orientation="Horizontal">
  859. <TextBlock Text="螺丝机5"
  860. FontSize="15"
  861. Foreground="#85A5EB"
  862. Margin="5"
  863. VerticalAlignment="Center" />
  864. <Image Source="{Binding ImgLight19}"
  865. Height="20"
  866. Width="20" />
  867. </StackPanel>
  868. <StackPanel Grid.Row="5"
  869. Orientation="Horizontal">
  870. <TextBlock Text="螺丝机6"
  871. FontSize="15"
  872. Foreground="#85A5EB"
  873. Margin="5"
  874. VerticalAlignment="Center" />
  875. <Image Source="{Binding ImgLight20}"
  876. Height="20"
  877. Width="20" />
  878. </StackPanel>
  879. </Grid>
  880. </Border>
  881. <Border BorderBrush="#22FFFFFF"
  882. BorderThickness="0,1,1,0"
  883. Grid.Column="1">
  884. <Grid>
  885. <Grid.RowDefinitions>
  886. <RowDefinition />
  887. <RowDefinition />
  888. <RowDefinition />
  889. <RowDefinition />
  890. <RowDefinition />
  891. <RowDefinition />
  892. </Grid.RowDefinitions>
  893. <StackPanel Grid.Row="0"
  894. Orientation="Horizontal">
  895. <TextBlock Text="1号机"
  896. FontSize="15"
  897. Foreground="#85A5EB"
  898. Margin="5"
  899. VerticalAlignment="Center" />
  900. <Image Source="{Binding ImgLight1}"
  901. Height="20"
  902. Width="20" />
  903. </StackPanel>
  904. <StackPanel Grid.Row="1"
  905. Orientation="Horizontal">
  906. <TextBlock Text="2号机"
  907. FontSize="15"
  908. Foreground="#85A5EB"
  909. Margin="5"
  910. VerticalAlignment="Center" />
  911. <Image Source="{Binding ImgLight2}"
  912. Height="20"
  913. Width="20" />
  914. </StackPanel>
  915. <StackPanel Grid.Row="2"
  916. Orientation="Horizontal">
  917. <TextBlock Text="3号机"
  918. FontSize="15"
  919. Foreground="#85A5EB"
  920. Margin="5"
  921. VerticalAlignment="Center" />
  922. <Image Source="{Binding ImgLight3}"
  923. Height="20"
  924. Width="20" />
  925. </StackPanel>
  926. <StackPanel Grid.Row="3"
  927. Orientation="Horizontal">
  928. <TextBlock Text="4号机"
  929. FontSize="15"
  930. Foreground="#85A5EB"
  931. Margin="5"
  932. VerticalAlignment="Center" />
  933. <Image Source="{Binding ImgLight4}"
  934. Height="20"
  935. Width="20" />
  936. </StackPanel>
  937. <StackPanel Grid.Row="4"
  938. Orientation="Horizontal">
  939. <TextBlock Text="5号机"
  940. FontSize="15"
  941. Foreground="#85A5EB"
  942. Margin="5"
  943. VerticalAlignment="Center" />
  944. <Image Source="{Binding ImgLight5}"
  945. Height="20"
  946. Width="20" />
  947. </StackPanel>
  948. </Grid>
  949. </Border>
  950. <Border BorderBrush="#22FFFFFF"
  951. BorderThickness="0,1,1,0"
  952. Grid.Column="2">
  953. <Grid>
  954. <Grid.RowDefinitions>
  955. <RowDefinition />
  956. <RowDefinition />
  957. <RowDefinition />
  958. <RowDefinition />
  959. <RowDefinition />
  960. <RowDefinition />
  961. </Grid.RowDefinitions>
  962. <StackPanel Grid.Row="0"
  963. Orientation="Horizontal">
  964. <TextBlock Text="6号机"
  965. FontSize="15"
  966. Foreground="#85A5EB"
  967. Margin="5"
  968. VerticalAlignment="Center" />
  969. <Image Source="{Binding ImgLight6}"
  970. Height="20"
  971. Width="20" />
  972. </StackPanel>
  973. <StackPanel Grid.Row="1"
  974. Orientation="Horizontal">
  975. <TextBlock Text="7号机"
  976. FontSize="15"
  977. Foreground="#85A5EB"
  978. Margin="5"
  979. VerticalAlignment="Center" />
  980. <Image Source="{Binding ImgLight7}"
  981. Height="20"
  982. Width="20" />
  983. </StackPanel>
  984. <StackPanel Grid.Row="2"
  985. Orientation="Horizontal">
  986. <TextBlock Text="8号机"
  987. FontSize="15"
  988. Foreground="#85A5EB"
  989. Margin="5"
  990. VerticalAlignment="Center" />
  991. <Image Source="{Binding ImgLight8}"
  992. Height="20"
  993. Width="20" />
  994. </StackPanel>
  995. <StackPanel Grid.Row="3"
  996. Orientation="Horizontal">
  997. <TextBlock Text="9号机"
  998. FontSize="15"
  999. Foreground="#85A5EB"
  1000. Margin="5"
  1001. VerticalAlignment="Center" />
  1002. <Image Source="{Binding ImgLight9}"
  1003. Height="20"
  1004. Width="20" />
  1005. </StackPanel>
  1006. <StackPanel Grid.Row="4"
  1007. Orientation="Horizontal">
  1008. <TextBlock Text="10号机"
  1009. FontSize="15"
  1010. Foreground="#85A5EB"
  1011. Margin="5"
  1012. VerticalAlignment="Center" />
  1013. <Image Source="{Binding ImgLight10}"
  1014. Height="20"
  1015. Width="20" />
  1016. </StackPanel>
  1017. </Grid>
  1018. </Border>
  1019. <Border BorderBrush="#22FFFFFF"
  1020. BorderThickness="0,1,1,0"
  1021. Grid.Column="3">
  1022. <Grid>
  1023. <Grid.RowDefinitions>
  1024. <RowDefinition />
  1025. <RowDefinition />
  1026. <RowDefinition />
  1027. <RowDefinition />
  1028. <RowDefinition />
  1029. <RowDefinition />
  1030. </Grid.RowDefinitions>
  1031. <StackPanel Grid.Row="0"
  1032. Orientation="Horizontal">
  1033. <TextBlock Text="11号机"
  1034. FontSize="15"
  1035. Foreground="#85A5EB"
  1036. Margin="5"
  1037. VerticalAlignment="Center" />
  1038. <Image Source="{Binding ImgLight11}"
  1039. Height="20"
  1040. Width="20" />
  1041. </StackPanel>
  1042. <StackPanel Grid.Row="1"
  1043. Orientation="Horizontal">
  1044. <TextBlock Text="12号机"
  1045. FontSize="15"
  1046. Foreground="#85A5EB"
  1047. Margin="5"
  1048. VerticalAlignment="Center" />
  1049. <Image Source="{Binding ImgLight12}"
  1050. Height="20"
  1051. Width="20" />
  1052. </StackPanel>
  1053. <StackPanel Grid.Row="2"
  1054. Orientation="Horizontal">
  1055. <TextBlock Text="13号机"
  1056. FontSize="15"
  1057. Foreground="#85A5EB"
  1058. Margin="5"
  1059. VerticalAlignment="Center" />
  1060. <Image Source="{Binding ImgLight13}"
  1061. Height="20"
  1062. Width="20" />
  1063. </StackPanel>
  1064. <StackPanel Grid.Row="3"
  1065. Orientation="Horizontal">
  1066. <TextBlock Text="14号机"
  1067. FontSize="15"
  1068. Foreground="#85A5EB"
  1069. Margin="5"
  1070. VerticalAlignment="Center" />
  1071. <Image Source="{Binding ImgLight14}"
  1072. Height="20"
  1073. Width="20" />
  1074. </StackPanel>
  1075. </Grid>
  1076. </Border>
  1077. <Border BorderBrush="#22FFFFFF"
  1078. BorderThickness="0,1,0,0"
  1079. Grid.Column="4">
  1080. <Grid>
  1081. <Grid.RowDefinitions>
  1082. <RowDefinition />
  1083. <RowDefinition />
  1084. <RowDefinition />
  1085. <RowDefinition />
  1086. <RowDefinition />
  1087. <RowDefinition />
  1088. </Grid.RowDefinitions>
  1089. <StackPanel Grid.Row="0"
  1090. Orientation="Horizontal">
  1091. <TextBlock Text="提升机"
  1092. FontSize="15"
  1093. Foreground="#85A5EB"
  1094. Margin="5"
  1095. VerticalAlignment="Center" />
  1096. <Image Source="{Binding ImgLight21}"
  1097. Height="20"
  1098. Width="20" />
  1099. </StackPanel>
  1100. <StackPanel Grid.Row="1"
  1101. Orientation="Horizontal">
  1102. <TextBlock Text="检测机"
  1103. FontSize="15"
  1104. Foreground="#85A5EB"
  1105. Margin="5"
  1106. VerticalAlignment="Center" />
  1107. <Image Source="{Binding ImgLight22}"
  1108. Height="20"
  1109. Width="20" />
  1110. </StackPanel>
  1111. <StackPanel Grid.Row="2"
  1112. Orientation="Horizontal">
  1113. <TextBlock Text="返修机"
  1114. FontSize="15"
  1115. Foreground="#85A5EB"
  1116. Margin="5"
  1117. VerticalAlignment="Center" />
  1118. <Image Source="{Binding ImgLight23}"
  1119. Height="20"
  1120. Width="20" />
  1121. </StackPanel>
  1122. </Grid>
  1123. </Border>
  1124. </Grid>
  1125. </Grid>
  1126. <Border BorderBrush="#22FFFFFF"
  1127. BorderThickness="0,1,0,0"
  1128. Grid.Row="2">
  1129. <TextBlock Text="{Binding Fix}"
  1130. FontSize="16"
  1131. Foreground="#44FFFFFF"
  1132. Margin="3" />
  1133. </Border>
  1134. </Grid>
  1135. </GroupBox>
  1136. </Grid>
  1137. </Grid>
  1138. </Grid>
  1139. </Window>