WorkRunView.xaml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  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="离心转速"
  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="离心时间"
  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="1"
  211. Grid.Column="0">
  212. <TextBlock Text="#1光固化时间"
  213. Margin="0,0,80,0" />
  214. <TextBlock Text="{Binding Management.CurrConfig.PTime1}"
  215. Margin="0,0,80,0" />
  216. </StackPanel>
  217. <StackPanel Grid.Row="1"
  218. Grid.Column="1">
  219. <TextBlock Text="#2光固化时间"
  220. Margin="0,0,80,0" />
  221. <TextBlock Text="{Binding Management.CurrConfig.PTime2}"
  222. Margin="0,0,80,0" />
  223. </StackPanel>
  224. </Grid>
  225. </Grid>
  226. </Border>
  227. <Grid Grid.Row="2">
  228. <Grid.ColumnDefinitions>
  229. <ColumnDefinition Width="20*"/>
  230. <ColumnDefinition Width="40*"/>
  231. <ColumnDefinition Width="40*"/>
  232. </Grid.ColumnDefinitions>
  233. <Grid Grid.Column="0">
  234. <Grid.RowDefinitions>
  235. <RowDefinition Height="Auto" />
  236. <RowDefinition />
  237. </Grid.RowDefinitions>
  238. <TextBlock Text="后处理配方参数"
  239. FontSize="20" />
  240. <Border Margin="5"
  241. Grid.Row="1"
  242. BorderBrush="#7AB0F0"
  243. BorderThickness="2"
  244. CornerRadius="5"
  245. Padding="1">
  246. <Grid>
  247. <Grid.ColumnDefinitions>
  248. <ColumnDefinition />
  249. <ColumnDefinition />
  250. </Grid.ColumnDefinitions>
  251. <Grid.RowDefinitions>
  252. <RowDefinition />
  253. <RowDefinition />
  254. <RowDefinition />
  255. <RowDefinition />
  256. <RowDefinition />
  257. <RowDefinition />
  258. <RowDefinition />
  259. <RowDefinition />
  260. <RowDefinition />
  261. </Grid.RowDefinitions>
  262. <TextBlock Text="配方名称"
  263. Grid.Row="0"
  264. Grid.Column="0" />
  265. <TextBlock Text="后处理配方"
  266. Grid.Row="0"
  267. Grid.Column="1" />
  268. <TextBlock Text="第一次离心转速"
  269. Grid.Row="1"
  270. Grid.Column="0" />
  271. <TextBlock Text="180"
  272. Grid.Row="1"
  273. Grid.Column="1" />
  274. <TextBlock Text="第一次离心时间"
  275. Grid.Row="2"
  276. Grid.Column="0" />
  277. <TextBlock Text="180"
  278. Grid.Row="2"
  279. Grid.Column="1" />
  280. <TextBlock Text="第二次离心转速"
  281. Grid.Row="3"
  282. Grid.Column="0" />
  283. <TextBlock Text="180"
  284. Grid.Row="3"
  285. Grid.Column="1" />
  286. <TextBlock Text="第二次离心时间"
  287. Grid.Row="4"
  288. Grid.Column="0" />
  289. <TextBlock Text="180"
  290. Grid.Row="4"
  291. Grid.Column="1" />
  292. <TextBlock Text="离心温度"
  293. Grid.Row="5"
  294. Grid.Column="0" />
  295. <TextBlock Text="180"
  296. Grid.Row="5"
  297. Grid.Column="1" />
  298. <TextBlock Text="光固化时间"
  299. Grid.Row="6"
  300. Grid.Column="0" />
  301. <TextBlock Text="180"
  302. Grid.Row="6"
  303. Grid.Column="1" />
  304. </Grid>
  305. </Border>
  306. </Grid>
  307. <Grid Grid.Column="1">
  308. <Grid.RowDefinitions>
  309. <RowDefinition Height="Auto" />
  310. <RowDefinition />
  311. </Grid.RowDefinitions>
  312. <StackPanel Orientation="Horizontal">
  313. <TextBlock Text="过程信息"
  314. Margin="0,0,40,0"
  315. FontSize="20" />
  316. <Button Content="清空"
  317. Width="80"
  318. Command="{Binding ClearRunDataCommand}"
  319. Background="#1152D7"
  320. HorizontalAlignment="Right"
  321. FontSize="20" />
  322. </StackPanel>
  323. <Border Margin="5"
  324. Grid.Row="1"
  325. BorderBrush="#7AB0F0"
  326. BorderThickness="2"
  327. CornerRadius="5"
  328. Padding="1">
  329. <ListView ItemsSource="{Binding Management.RuningData}">
  330. <ListView.View>
  331. <GridView>
  332. <GridViewColumn Header="网板ID"
  333. DisplayMemberBinding="{Binding Rfid}"
  334. Width="150" />
  335. <GridViewColumn Header="状态"
  336. DisplayMemberBinding="{Binding State}"
  337. Width="200" />
  338. <GridViewColumn Header="批次信息"
  339. DisplayMemberBinding="{Binding ModelsInfo}"
  340. Width="200" />
  341. <GridViewColumn Header="开始时间"
  342. DisplayMemberBinding="{Binding StartTime,StringFormat=yyyy-MM-dd}"
  343. Width="200" />
  344. </GridView>
  345. </ListView.View>
  346. </ListView>
  347. </Border>
  348. </Grid>
  349. <Grid Grid.Column="2" >
  350. <Grid.RowDefinitions>
  351. <RowDefinition Height="Auto" />
  352. <RowDefinition />
  353. </Grid.RowDefinitions>
  354. <StackPanel Orientation="Horizontal">
  355. <TextBlock Text="日志"
  356. Margin="0,0,40,0"
  357. FontSize="20" />
  358. <Button Content="清空"
  359. Width="80"
  360. Background="#1152D7"
  361. Command="{Binding ClearLogDataCommand}"
  362. HorizontalAlignment="Right"
  363. FontSize="20" />
  364. </StackPanel>
  365. <Border Margin="5"
  366. Grid.Row="1"
  367. BorderBrush="#7AB0F0"
  368. BorderThickness="2"
  369. CornerRadius="5"
  370. Padding="1">
  371. <ListBox ItemsSource="{Binding Logs}">
  372. </ListBox>
  373. </Border>
  374. </Grid>
  375. </Grid>
  376. </Grid>
  377. </UserControl>