WorkRunView.xaml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. <UserControl x:Class="DefaultEdit.Views.WorkRunView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:scottplot="clr-namespace:ScottPlot.WPF;assembly=ScottPlot.WPF"
  7. xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  8. xmlns:local="clr-namespace:DefaultEdit.Views"
  9. xmlns:prism="http://prismlibrary.com/"
  10. xmlns:Viewlocal="clr-namespace:DefaultEdit.ViewModels"
  11. prism:ViewModelLocator.AutoWireViewModel="True"
  12. mc:Ignorable="d"
  13. d:DesignHeight="850"
  14. d:DesignWidth="1200">
  15. <Grid>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="Auto" />
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition Height="*" />
  20. </Grid.RowDefinitions>
  21. <Border Grid.Row="0"
  22. Margin="5"
  23. BorderBrush="#7AB0F0"
  24. BorderThickness="2"
  25. CornerRadius="5"
  26. Padding="1">
  27. <Grid>
  28. <Grid.ColumnDefinitions>
  29. <ColumnDefinition Width="20*" />
  30. <ColumnDefinition Width="40*" />
  31. <ColumnDefinition Width="40*" />
  32. </Grid.ColumnDefinitions>
  33. <Grid Grid.Column="0">
  34. <Grid.RowDefinitions>
  35. <RowDefinition />
  36. <RowDefinition />
  37. </Grid.RowDefinitions>
  38. <StackPanel Orientation="Horizontal"
  39. Grid.Row="0"
  40. VerticalAlignment="Bottom">
  41. <TextBlock Text="用户名"
  42. Margin="20,5,5,5"
  43. FontSize="18" />
  44. <TextBlock Text="1111"
  45. Margin="20,5,5,5"
  46. FontSize="18" />
  47. </StackPanel>
  48. <StackPanel Orientation="Horizontal"
  49. Grid.Row="1"
  50. VerticalAlignment="Bottom">
  51. <Button Content="登录"
  52. Width="65"
  53. Background="#7E61E0"
  54. Margin="20,5,5,5"
  55. Command="{Binding OpenRoleLoginViewCommand}"
  56. FontSize="18" />
  57. <Button Content="在线"
  58. Width="65"
  59. Command="{Binding SwitchModeCommand}"
  60. Background="#7E61E0"
  61. Margin="20,5,5,5"
  62. FontSize="18" />
  63. </StackPanel>
  64. </Grid>
  65. <Grid Grid.Column="1"
  66. Margin="5,5,30,5"
  67. Height="300">
  68. <scottplot:WpfPlot Name="plot"
  69. Grid.Column="0" />
  70. </Grid>
  71. <Grid Grid.Column="2"
  72. Margin="0,20,0,0">
  73. <Grid.ColumnDefinitions>
  74. <ColumnDefinition />
  75. <ColumnDefinition />
  76. <ColumnDefinition />
  77. </Grid.ColumnDefinitions>
  78. <Grid.RowDefinitions>
  79. <RowDefinition />
  80. <RowDefinition />
  81. <RowDefinition />
  82. <RowDefinition />
  83. <RowDefinition />
  84. <RowDefinition />
  85. <RowDefinition />
  86. <RowDefinition />
  87. </Grid.RowDefinitions>
  88. <TextBlock Text="离心工位#1"
  89. Margin="0,0,80,0"
  90. Grid.Row="0"
  91. Grid.Column="0" />
  92. <TextBlock Text="离心工位#2"
  93. Margin="0,0,80,0"
  94. Grid.Row="0"
  95. Grid.Column="1" />
  96. <TextBlock Text="{Binding Management.CurrStationRfid[0]}"
  97. Grid.Row="1"
  98. Grid.Column="0" />
  99. <TextBlock Text="{Binding Management.CurrStationRfid[1]}"
  100. Grid.Row="1"
  101. Grid.Column="1" />
  102. <TextBlock Text="离心工位#3"
  103. Grid.Row="2"
  104. Grid.Column="0" />
  105. <TextBlock Text="离心工位#4"
  106. Grid.Row="2"
  107. Grid.Column="1" />
  108. <TextBlock Text="离心工位#3"
  109. Grid.Row="3"
  110. Grid.Column="0" />
  111. <TextBlock Text="离心工位#4"
  112. Grid.Row="3"
  113. Grid.Column="1" />
  114. <TextBlock Text="#1固化工位#1"
  115. Grid.Row="4"
  116. Grid.Column="0" />
  117. <TextBlock Text="#1固化工位#2"
  118. Grid.Row="4"
  119. Grid.Column="1" />
  120. <TextBlock Text="#1固化工位#2"
  121. Grid.Row="5"
  122. Grid.Column="0" />
  123. <TextBlock Text="#1固化工位#2"
  124. Grid.Row="5"
  125. Grid.Column="1" />
  126. <TextBlock Text="#2固化工位#1"
  127. Grid.Row="6"
  128. Grid.Column="0" />
  129. <TextBlock Text="#2固化工位#2"
  130. Grid.Row="6"
  131. Grid.Column="1" />
  132. <TextBlock Text="#2固化工位#1"
  133. Grid.Row="7"
  134. Grid.Column="0" />
  135. <TextBlock Text="#2固化工位#2"
  136. Grid.Row="7"
  137. Grid.Column="1" />
  138. <TextBlock Text="顶出工位"
  139. Grid.Row="2"
  140. Grid.Column="2" />
  141. <TextBlock Text="顶出工位"
  142. Grid.Row="3"
  143. Grid.Column="2" />
  144. </Grid>
  145. </Grid>
  146. </Border>
  147. <Border Grid.Row="1"
  148. Margin="5"
  149. BorderBrush="#7AB0F0"
  150. BorderThickness="2"
  151. CornerRadius="5"
  152. Padding="1">
  153. <Grid>
  154. <Grid.ColumnDefinitions>
  155. <ColumnDefinition Width="Auto" />
  156. <ColumnDefinition Width="Auto" />
  157. <ColumnDefinition Width="*" />
  158. </Grid.ColumnDefinitions>
  159. <TextBlock Text="后处理"
  160. FontSize="20"
  161. Grid.Column="0"
  162. Margin="50,5,50,5"
  163. VerticalAlignment="Center" />
  164. <StackPanel Width="5"
  165. Height="140"
  166. Background="DarkGray"
  167. Grid.Column="1">
  168. </StackPanel>
  169. <Grid Grid.Column="2">
  170. <Grid.RowDefinitions>
  171. <RowDefinition />
  172. <RowDefinition />
  173. </Grid.RowDefinitions>
  174. <Grid.ColumnDefinitions>
  175. <ColumnDefinition />
  176. <ColumnDefinition />
  177. <ColumnDefinition />
  178. <ColumnDefinition />
  179. <ColumnDefinition />
  180. <ColumnDefinition />
  181. </Grid.ColumnDefinitions>
  182. <StackPanel Grid.Row="0"
  183. Grid.Column="0">
  184. <TextBlock Text="离心转速"
  185. Margin="0,0,80,0" />
  186. <TextBlock Text="{Binding Management.CurrConfig.Speed}"
  187. Margin="0,0,80,0" />
  188. </StackPanel>
  189. <StackPanel Grid.Row="0"
  190. Grid.Column="1">
  191. <TextBlock Text="离心时间"
  192. Margin="0,0,80,0" />
  193. <TextBlock Text="{Binding Management.CurrConfig.Time,StringFormat=hh\\:mm\\:ss}"
  194. Margin="0,0,80,0" />
  195. </StackPanel>
  196. <StackPanel Grid.Row="0"
  197. Grid.Column="2">
  198. <TextBlock Text="#1光固化#1功率"
  199. Margin="0,0,80,0" />
  200. <TextBlock Text="{Binding Management.CurrConfig.Power1_1}"
  201. Margin="0,0,80,0" />
  202. </StackPanel>
  203. <StackPanel Grid.Row="0"
  204. Grid.Column="3">
  205. <TextBlock Text="#1光固化#2功率"
  206. Margin="0,0,80,0" />
  207. <TextBlock Text="{Binding Management.CurrConfig.Power1_2}"
  208. Margin="0,0,80,0" />
  209. </StackPanel>
  210. <StackPanel Grid.Row="0"
  211. Grid.Column="4">
  212. <TextBlock Text="#2光固化#1功率"
  213. Margin="0,0,80,0" />
  214. <TextBlock Text="{Binding Management.CurrConfig.Power1_3}"
  215. Margin="0,0,80,0" />
  216. </StackPanel>
  217. <StackPanel Grid.Row="0"
  218. Grid.Column="5">
  219. <TextBlock Text="#2光固化#2功率"
  220. Margin="0,0,80,0" />
  221. <TextBlock Text="{Binding Management.CurrConfig.Power1_4}"
  222. Margin="0,0,80,0" />
  223. </StackPanel>
  224. <StackPanel Grid.Row="1"
  225. Grid.Column="0">
  226. <TextBlock Text="#1固化箱压力"
  227. Margin="0,0,80,0" />
  228. <TextBlock Text="{Binding Management.CurrConfig.Pressure1}"
  229. Margin="0,0,80,0" />
  230. </StackPanel>
  231. <StackPanel Grid.Row="1"
  232. Grid.Column="1">
  233. <TextBlock Text="#2固化箱压力"
  234. Margin="0,0,80,0" />
  235. <TextBlock Text="{Binding Management.CurrConfig.Pressure2}"
  236. Margin="0,0,80,0" />
  237. </StackPanel>
  238. <StackPanel Grid.Row="1"
  239. Grid.Column="2">
  240. <TextBlock Text="#1光固化时间"
  241. Margin="0,0,80,0" />
  242. <TextBlock Text="{Binding Management.CurrConfig.PTime1}"
  243. Margin="0,0,80,0" />
  244. </StackPanel>
  245. <StackPanel Grid.Row="1"
  246. Grid.Column="3">
  247. <TextBlock Text="#2光固化时间"
  248. Margin="0,0,80,0" />
  249. <TextBlock Text="{Binding Management.CurrConfig.PTime2}"
  250. Margin="0,0,80,0" />
  251. </StackPanel>
  252. </Grid>
  253. </Grid>
  254. </Border>
  255. <Grid Grid.Row="2">
  256. <Grid.ColumnDefinitions>
  257. <ColumnDefinition Width="20*"/>
  258. <ColumnDefinition Width="40*"/>
  259. <ColumnDefinition Width="40*"/>
  260. </Grid.ColumnDefinitions>
  261. <Grid Grid.Column="0">
  262. <Grid.RowDefinitions>
  263. <RowDefinition Height="Auto" />
  264. <RowDefinition />
  265. </Grid.RowDefinitions>
  266. <TextBlock Text="后处理配方参数"
  267. FontSize="20" />
  268. <Border Margin="5"
  269. Grid.Row="1"
  270. BorderBrush="#7AB0F0"
  271. BorderThickness="2"
  272. CornerRadius="5"
  273. Padding="1">
  274. <Grid>
  275. <Grid.ColumnDefinitions>
  276. <ColumnDefinition />
  277. <ColumnDefinition />
  278. </Grid.ColumnDefinitions>
  279. <Grid.RowDefinitions>
  280. <RowDefinition />
  281. <RowDefinition />
  282. <RowDefinition />
  283. <RowDefinition />
  284. <RowDefinition />
  285. <RowDefinition />
  286. <RowDefinition />
  287. <RowDefinition />
  288. <RowDefinition />
  289. </Grid.RowDefinitions>
  290. <TextBlock Text="配方名称"
  291. Grid.Row="0"
  292. Grid.Column="0" />
  293. <TextBlock Text="后处理配方"
  294. Grid.Row="0"
  295. Grid.Column="1" />
  296. <TextBlock Text="第一次离心转速"
  297. Grid.Row="1"
  298. Grid.Column="0" />
  299. <TextBlock Text="180"
  300. Grid.Row="1"
  301. Grid.Column="1" />
  302. <TextBlock Text="第一次离心时间"
  303. Grid.Row="2"
  304. Grid.Column="0" />
  305. <TextBlock Text="180"
  306. Grid.Row="2"
  307. Grid.Column="1" />
  308. <TextBlock Text="第二次离心转速"
  309. Grid.Row="3"
  310. Grid.Column="0" />
  311. <TextBlock Text="180"
  312. Grid.Row="3"
  313. Grid.Column="1" />
  314. <TextBlock Text="第二次离心时间"
  315. Grid.Row="4"
  316. Grid.Column="0" />
  317. <TextBlock Text="180"
  318. Grid.Row="4"
  319. Grid.Column="1" />
  320. <TextBlock Text="离心温度"
  321. Grid.Row="5"
  322. Grid.Column="0" />
  323. <TextBlock Text="180"
  324. Grid.Row="5"
  325. Grid.Column="1" />
  326. <TextBlock Text="光固化时间"
  327. Grid.Row="6"
  328. Grid.Column="0" />
  329. <TextBlock Text="180"
  330. Grid.Row="6"
  331. Grid.Column="1" />
  332. </Grid>
  333. </Border>
  334. </Grid>
  335. <Grid Grid.Column="1">
  336. <Grid.RowDefinitions>
  337. <RowDefinition Height="Auto" />
  338. <RowDefinition />
  339. </Grid.RowDefinitions>
  340. <StackPanel Orientation="Horizontal">
  341. <TextBlock Text="过程信息"
  342. Margin="0,0,40,0"
  343. FontSize="20" />
  344. <Button Content="清空"
  345. Width="80"
  346. Command="{Binding ClearRunDataCommand}"
  347. Background="#1152D7"
  348. HorizontalAlignment="Right"
  349. FontSize="20" />
  350. </StackPanel>
  351. <Border Margin="5"
  352. Grid.Row="1"
  353. BorderBrush="#7AB0F0"
  354. BorderThickness="2"
  355. CornerRadius="5"
  356. Padding="1">
  357. <ListView ItemsSource="{Binding Management.RuningData}">
  358. <ListView.View>
  359. <GridView>
  360. <GridViewColumn Header="网板ID"
  361. DisplayMemberBinding="{Binding Rfid}"
  362. Width="150" />
  363. <GridViewColumn Header="状态"
  364. DisplayMemberBinding="{Binding State}"
  365. Width="200" />
  366. <GridViewColumn Header="批次信息"
  367. DisplayMemberBinding="{Binding ModelsInfo}"
  368. Width="200" />
  369. <GridViewColumn Header="开始时间"
  370. DisplayMemberBinding="{Binding StartTime,StringFormat=yyyy-MM-dd}"
  371. Width="200" />
  372. </GridView>
  373. </ListView.View>
  374. </ListView>
  375. </Border>
  376. </Grid>
  377. <Grid Grid.Column="2" >
  378. <Grid.RowDefinitions>
  379. <RowDefinition Height="Auto" />
  380. <RowDefinition />
  381. </Grid.RowDefinitions>
  382. <StackPanel Orientation="Horizontal">
  383. <TextBlock Text="日志"
  384. Margin="0,0,40,0"
  385. FontSize="20" />
  386. <Button Content="清空"
  387. Width="80"
  388. Background="#1152D7"
  389. Command="{Binding ClearLogDataCommand}"
  390. HorizontalAlignment="Right"
  391. FontSize="20" />
  392. </StackPanel>
  393. <Border Margin="5"
  394. Grid.Row="1"
  395. BorderBrush="#7AB0F0"
  396. BorderThickness="2"
  397. CornerRadius="5"
  398. Padding="1">
  399. <ListBox ItemsSource="{Binding Logs}">
  400. </ListBox>
  401. </Border>
  402. </Grid>
  403. </Grid>
  404. </Grid>
  405. </UserControl>