终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

396 lines
28 KiB

  1. <UserControl x:Class="BPASmartClient.ScreenLib.ScreenMaxWokControl"
  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:local="clr-namespace:BPASmartClient.ScreenLib"
  7. xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
  8. xmlns:con="clr-namespace:BPA.CustomResource.UserControls;assembly=BPA.CustomResource"
  9. mc:Ignorable="d"
  10. d:DesignHeight="1080" d:DesignWidth="1920">
  11. <UserControl.Resources>
  12. <ResourceDictionary>
  13. <ResourceDictionary.MergedDictionaries>
  14. <ResourceDictionary Source="/BPA.CustomResource;component/Themes/ProlineStyle.xaml" />
  15. </ResourceDictionary.MergedDictionaries>
  16. </ResourceDictionary>
  17. </UserControl.Resources>
  18. <Grid>
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition Width="*"/>
  21. <ColumnDefinition Width="2*"/>
  22. <ColumnDefinition Width="*"/>
  23. </Grid.ColumnDefinitions>
  24. <StackPanel Margin="0,10,0,0">
  25. <GroupBox Grid.Row="0" Margin="10,0,10,0" Height="370" Width="450" Header="2 号炒锅" Style="{DynamicResource from}" Tag="Start">
  26. <StackPanel>
  27. <GroupBox Header="设备运行情况" Margin="20,10,0,0"/>
  28. <Grid Height="100" >
  29. <Grid.ColumnDefinitions>
  30. <ColumnDefinition/>
  31. <ColumnDefinition/>
  32. </Grid.ColumnDefinitions>
  33. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  34. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  35. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding DevIsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  36. <TextBlock.Style>
  37. <Style TargetType="TextBlock">
  38. <Setter Property="Foreground" Value="Lime"></Setter>
  39. <Style.Triggers>
  40. <Trigger Property="Text" Value="停止">
  41. <Setter Property="Foreground" Value="Red"/>
  42. </Trigger>
  43. </Style.Triggers>
  44. </Style>
  45. </TextBlock.Style>
  46. </TextBlock>
  47. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备是否运行</TextBlock>
  48. </StackPanel>
  49. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  50. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding RunStatus,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  51. <TextBlock.Style>
  52. <Style TargetType="TextBlock">
  53. <Setter Property="Foreground" Value="Lime"></Setter>
  54. <Style.Triggers>
  55. <Trigger Property="Text" Value="异常">
  56. <Setter Property="Foreground" Value="Red"/>
  57. </Trigger>
  58. </Style.Triggers>
  59. </Style>
  60. </TextBlock.Style>
  61. </TextBlock>
  62. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备当前状态</TextBlock>
  63. </StackPanel>
  64. </Grid>
  65. <GroupBox Header="订单信息统计" Margin="20,10,0,0"/>
  66. <Grid Height="100">
  67. <Grid.ColumnDefinitions>
  68. <ColumnDefinition/>
  69. <ColumnDefinition/>
  70. </Grid.ColumnDefinitions>
  71. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  72. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  73. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="52" Foreground="#FFD2C106" Text="{Binding DdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  74. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">今日订单数</TextBlock>
  75. </StackPanel>
  76. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  77. <TextBlock Style="{DynamicResource 数码管Text}" Foreground="#FFEC3107" FontSize="52" Text="{Binding YCDdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  78. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">异常订单数</TextBlock>
  79. </StackPanel>
  80. </Grid>
  81. </StackPanel>
  82. </GroupBox>
  83. <GroupBox Margin="0,20,10,0" Height="275" Width="450" Header="待制作订单列表" Style="{DynamicResource from}" Tag="Start">
  84. <DataGrid Margin="0,10,0,0" ItemsSource="{Binding OrderMakeList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  85. <DataGrid.Columns>
  86. <DataGridTemplateColumn Width="60">
  87. <DataGridTemplateColumn.Header>
  88. <TextBlock Text="订单号" Foreground="White"/>
  89. </DataGridTemplateColumn.Header>
  90. <DataGridTemplateColumn.CellTemplate>
  91. <DataTemplate>
  92. <TextBlock Margin="0,5,0,5" Text="{Binding SortNum,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Foreground="{Binding foreground,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="14" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
  93. </DataTemplate>
  94. </DataGridTemplateColumn.CellTemplate>
  95. </DataGridTemplateColumn>
  96. <DataGridTemplateColumn Width="120">
  97. <DataGridTemplateColumn.Header>
  98. <TextBlock Text="商品名称" Foreground="White"/>
  99. </DataGridTemplateColumn.Header>
  100. <DataGridTemplateColumn.CellTemplate>
  101. <DataTemplate>
  102. <TextBlock Margin="0,5,0,5" Text="{Binding GoodName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Foreground="{Binding foreground,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  103. </DataTemplate>
  104. </DataGridTemplateColumn.CellTemplate>
  105. </DataGridTemplateColumn>
  106. <DataGridTemplateColumn Width="160">
  107. <DataGridTemplateColumn.Header>
  108. <TextBlock Text="开始时间" Foreground="White"/>
  109. </DataGridTemplateColumn.Header>
  110. <DataGridTemplateColumn.CellTemplate>
  111. <DataTemplate>
  112. <TextBlock Margin="0,5,0,5" Text="{Binding StartTime,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Foreground="{Binding foreground,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  113. </DataTemplate>
  114. </DataGridTemplateColumn.CellTemplate>
  115. </DataGridTemplateColumn>
  116. <DataGridTemplateColumn Width="80">
  117. <DataGridTemplateColumn.Header>
  118. <TextBlock Text="状态" Foreground="White"/>
  119. </DataGridTemplateColumn.Header>
  120. <DataGridTemplateColumn.CellTemplate>
  121. <DataTemplate>
  122. <TextBlock Margin="0,5,0,5" Text="{Binding MakeStatus,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Foreground="{Binding foreground,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  123. </DataTemplate>
  124. </DataGridTemplateColumn.CellTemplate>
  125. </DataGridTemplateColumn>
  126. </DataGrid.Columns>
  127. </DataGrid>
  128. </GroupBox>
  129. <GroupBox Margin="0,20,10,0" Height="275" Width="450" Header="已制作订单列表" Style="{DynamicResource from}" Tag="Start">
  130. <DataGrid Margin="0,10,0,0" ItemsSource="{Binding OrderMakeListOver,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  131. <DataGrid.Columns>
  132. <DataGridTemplateColumn Width="50">
  133. <DataGridTemplateColumn.Header>
  134. <TextBlock Text="订单号" Foreground="White"/>
  135. </DataGridTemplateColumn.Header>
  136. <DataGridTemplateColumn.CellTemplate>
  137. <DataTemplate>
  138. <TextBlock Margin="0,5,0,5" Text="{Binding SortNum,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="14" HorizontalAlignment="Center"/>
  139. </DataTemplate>
  140. </DataGridTemplateColumn.CellTemplate>
  141. </DataGridTemplateColumn>
  142. <DataGridTemplateColumn Width="80">
  143. <DataGridTemplateColumn.Header>
  144. <TextBlock Text="商品名称" Foreground="White"/>
  145. </DataGridTemplateColumn.Header>
  146. <DataGridTemplateColumn.CellTemplate>
  147. <DataTemplate>
  148. <TextBlock Margin="0,5,0,5" Text="{Binding GoodName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="14" HorizontalAlignment="Center"/>
  149. </DataTemplate>
  150. </DataGridTemplateColumn.CellTemplate>
  151. </DataGridTemplateColumn>
  152. <DataGridTemplateColumn Width="145">
  153. <DataGridTemplateColumn.Header>
  154. <TextBlock Text="开始时间" Foreground="White"/>
  155. </DataGridTemplateColumn.Header>
  156. <DataGridTemplateColumn.CellTemplate>
  157. <DataTemplate>
  158. <TextBlock Margin="0,5,0,5" Text="{Binding StartTime,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="14" HorizontalAlignment="Center"/>
  159. </DataTemplate>
  160. </DataGridTemplateColumn.CellTemplate>
  161. </DataGridTemplateColumn>
  162. <DataGridTemplateColumn Width="145">
  163. <DataGridTemplateColumn.Header>
  164. <TextBlock Text="结束时间" Foreground="White"/>
  165. </DataGridTemplateColumn.Header>
  166. <DataGridTemplateColumn.CellTemplate>
  167. <DataTemplate>
  168. <TextBlock Margin="0,5,0,5" Text="{Binding StopTime,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="14" HorizontalAlignment="Center"/>
  169. </DataTemplate>
  170. </DataGridTemplateColumn.CellTemplate>
  171. </DataGridTemplateColumn>
  172. </DataGrid.Columns>
  173. </DataGrid>
  174. </GroupBox>
  175. </StackPanel>
  176. <StackPanel Grid.Column="1" >
  177. <GroupBox Height="600" Width="950" Margin="0,10,0,20" Header="广告区域" HorizontalAlignment="Center" VerticalAlignment="Top" Style="{DynamicResource from}" Tag="Start">
  178. <Grid>
  179. <wv2:WebView2 Name="webView" Source="{Binding GgAdder,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
  180. </Grid>
  181. </GroupBox>
  182. <StackPanel Orientation="Horizontal">
  183. <GroupBox Margin="5,0,0,0" Height="340" Width="470" Header="2号炒锅告警信息" Style="{DynamicResource from}">
  184. <DataGrid Margin="0,10,0,0" ItemsSource="{Binding AlarmList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  185. <DataGrid.Columns>
  186. <DataGridTemplateColumn Width="160">
  187. <DataGridTemplateColumn.Header>
  188. <TextBlock Text="告警时间" Foreground="White"/>
  189. </DataGridTemplateColumn.Header>
  190. <DataGridTemplateColumn.CellTemplate>
  191. <DataTemplate>
  192. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmTime}" Foreground="#FFD86E03" FontSize="14" HorizontalAlignment="Center"/>
  193. </DataTemplate>
  194. </DataGridTemplateColumn.CellTemplate>
  195. </DataGridTemplateColumn>
  196. <DataGridTemplateColumn Width="300">
  197. <DataGridTemplateColumn.Header>
  198. <TextBlock Text="告警描述" Foreground="White"/>
  199. </DataGridTemplateColumn.Header>
  200. <DataGridTemplateColumn.CellTemplate>
  201. <DataTemplate>
  202. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmMs}" Foreground="#FFD86E03" FontSize="14" HorizontalAlignment="Center"/>
  203. </DataTemplate>
  204. </DataGridTemplateColumn.CellTemplate>
  205. </DataGridTemplateColumn>
  206. </DataGrid.Columns>
  207. </DataGrid>
  208. </GroupBox>
  209. <GroupBox Margin="10,0,0,0" Height="340" Width="470" Header="1号炒锅告警信息" Style="{DynamicResource from}">
  210. <DataGrid Margin="0,10,0,0" ItemsSource="{Binding AlarmList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  211. <DataGrid.Columns>
  212. <DataGridTemplateColumn Width="160">
  213. <DataGridTemplateColumn.Header>
  214. <TextBlock Text="告警时间" Foreground="White"/>
  215. </DataGridTemplateColumn.Header>
  216. <DataGridTemplateColumn.CellTemplate>
  217. <DataTemplate>
  218. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmTime}" Foreground="#FFD86E03" FontSize="14" HorizontalAlignment="Center"/>
  219. </DataTemplate>
  220. </DataGridTemplateColumn.CellTemplate>
  221. </DataGridTemplateColumn>
  222. <DataGridTemplateColumn Width="300">
  223. <DataGridTemplateColumn.Header>
  224. <TextBlock Text="告警描述" Foreground="White"/>
  225. </DataGridTemplateColumn.Header>
  226. <DataGridTemplateColumn.CellTemplate>
  227. <DataTemplate>
  228. <TextBlock Margin="0,5,0,5" Text="{Binding AlarmMs}" Foreground="#FFD86E03" FontSize="14" HorizontalAlignment="Center"/>
  229. </DataTemplate>
  230. </DataGridTemplateColumn.CellTemplate>
  231. </DataGridTemplateColumn>
  232. </DataGrid.Columns>
  233. </DataGrid>
  234. </GroupBox>
  235. </StackPanel>
  236. </StackPanel>
  237. <StackPanel Grid.Column="2" Margin="0,10,0,0">
  238. <GroupBox Grid.Row="0" Margin="10,0,10,0" Height="370" Width="450" Header="1 号炒锅" Style="{DynamicResource from}" Tag="Start">
  239. <StackPanel>
  240. <GroupBox Header="设备运行情况" Margin="20,10,0,0"/>
  241. <Grid Height="100" >
  242. <Grid.ColumnDefinitions>
  243. <ColumnDefinition/>
  244. <ColumnDefinition/>
  245. </Grid.ColumnDefinitions>
  246. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  247. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  248. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding DevIsRun,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  249. <TextBlock.Style>
  250. <Style TargetType="TextBlock">
  251. <Setter Property="Foreground" Value="Lime"></Setter>
  252. <Style.Triggers>
  253. <Trigger Property="Text" Value="停止">
  254. <Setter Property="Foreground" Value="Red"/>
  255. </Trigger>
  256. </Style.Triggers>
  257. </Style>
  258. </TextBlock.Style>
  259. </TextBlock>
  260. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备是否运行</TextBlock>
  261. </StackPanel>
  262. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  263. <TextBlock HorizontalAlignment="Center" FontSize="42" Text="{Binding RunStatus,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  264. <TextBlock.Style>
  265. <Style TargetType="TextBlock">
  266. <Setter Property="Foreground" Value="Lime"></Setter>
  267. <Style.Triggers>
  268. <Trigger Property="Text" Value="异常">
  269. <Setter Property="Foreground" Value="Red"/>
  270. </Trigger>
  271. </Style.Triggers>
  272. </Style>
  273. </TextBlock.Style>
  274. </TextBlock>
  275. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">设备当前状态</TextBlock>
  276. </StackPanel>
  277. </Grid>
  278. <GroupBox Header="订单信息统计" Margin="20,10,0,0"/>
  279. <Grid Height="100">
  280. <Grid.ColumnDefinitions>
  281. <ColumnDefinition/>
  282. <ColumnDefinition/>
  283. </Grid.ColumnDefinitions>
  284. <Border Grid.ColumnSpan="2" Background="{DynamicResource 竖线}" Height="100" Width="2"></Border>
  285. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  286. <TextBlock Style="{DynamicResource 数码管Text}" FontSize="52" Foreground="#FFD2C106" Text="{Binding DdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  287. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">今日订单数</TextBlock>
  288. </StackPanel>
  289. <StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
  290. <TextBlock Style="{DynamicResource 数码管Text}" Foreground="#FFEC3107" FontSize="52" Text="{Binding YCDdCount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  291. <TextBlock Style="{DynamicResource textms}" Margin="0,10,0,0">异常订单数</TextBlock>
  292. </StackPanel>
  293. </Grid>
  294. </StackPanel>
  295. </GroupBox>
  296. <GroupBox Margin="0,20,10,0" Height="275" Width="450" Header="待制作订单列表" Style="{DynamicResource from}" Tag="Start">
  297. <DataGrid Margin="0,10,0,0" ItemsSource="{Binding OrderMakeList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  298. <DataGrid.Columns>
  299. <DataGridTemplateColumn Width="60">
  300. <DataGridTemplateColumn.Header>
  301. <TextBlock Text="订单号" Foreground="White"/>
  302. </DataGridTemplateColumn.Header>
  303. <DataGridTemplateColumn.CellTemplate>
  304. <DataTemplate>
  305. <TextBlock Margin="0,5,0,5" Text="{Binding SortNum,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Foreground="{Binding foreground,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="14" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
  306. </DataTemplate>
  307. </DataGridTemplateColumn.CellTemplate>
  308. </DataGridTemplateColumn>
  309. <DataGridTemplateColumn Width="120">
  310. <DataGridTemplateColumn.Header>
  311. <TextBlock Text="商品名称" Foreground="White"/>
  312. </DataGridTemplateColumn.Header>
  313. <DataGridTemplateColumn.CellTemplate>
  314. <DataTemplate>
  315. <TextBlock Margin="0,5,0,5" Text="{Binding GoodName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Foreground="{Binding foreground,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  316. </DataTemplate>
  317. </DataGridTemplateColumn.CellTemplate>
  318. </DataGridTemplateColumn>
  319. <DataGridTemplateColumn Width="160">
  320. <DataGridTemplateColumn.Header>
  321. <TextBlock Text="开始时间" Foreground="White"/>
  322. </DataGridTemplateColumn.Header>
  323. <DataGridTemplateColumn.CellTemplate>
  324. <DataTemplate>
  325. <TextBlock Margin="0,5,0,5" Text="{Binding StartTime,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Foreground="{Binding foreground,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  326. </DataTemplate>
  327. </DataGridTemplateColumn.CellTemplate>
  328. </DataGridTemplateColumn>
  329. <DataGridTemplateColumn Width="80">
  330. <DataGridTemplateColumn.Header>
  331. <TextBlock Text="状态" Foreground="White"/>
  332. </DataGridTemplateColumn.Header>
  333. <DataGridTemplateColumn.CellTemplate>
  334. <DataTemplate>
  335. <TextBlock Margin="0,5,0,5" Text="{Binding MakeStatus,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Foreground="{Binding foreground,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  336. </DataTemplate>
  337. </DataGridTemplateColumn.CellTemplate>
  338. </DataGridTemplateColumn>
  339. </DataGrid.Columns>
  340. </DataGrid>
  341. </GroupBox>
  342. <GroupBox Margin="0,20,10,0" Height="275" Width="450" Header="已制作订单列表" Style="{DynamicResource from}" Tag="Start">
  343. <DataGrid Margin="0,10,0,0" ItemsSource="{Binding OrderMakeListOver,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  344. <DataGrid.Columns>
  345. <DataGridTemplateColumn Width="50">
  346. <DataGridTemplateColumn.Header>
  347. <TextBlock Text="订单号" Foreground="White"/>
  348. </DataGridTemplateColumn.Header>
  349. <DataGridTemplateColumn.CellTemplate>
  350. <DataTemplate>
  351. <TextBlock Margin="0,5,0,5" Text="{Binding SortNum,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="14" HorizontalAlignment="Center"/>
  352. </DataTemplate>
  353. </DataGridTemplateColumn.CellTemplate>
  354. </DataGridTemplateColumn>
  355. <DataGridTemplateColumn Width="80">
  356. <DataGridTemplateColumn.Header>
  357. <TextBlock Text="商品名称" Foreground="White"/>
  358. </DataGridTemplateColumn.Header>
  359. <DataGridTemplateColumn.CellTemplate>
  360. <DataTemplate>
  361. <TextBlock Margin="0,5,0,5" Text="{Binding GoodName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="14" HorizontalAlignment="Center"/>
  362. </DataTemplate>
  363. </DataGridTemplateColumn.CellTemplate>
  364. </DataGridTemplateColumn>
  365. <DataGridTemplateColumn Width="145">
  366. <DataGridTemplateColumn.Header>
  367. <TextBlock Text="开始时间" Foreground="White"/>
  368. </DataGridTemplateColumn.Header>
  369. <DataGridTemplateColumn.CellTemplate>
  370. <DataTemplate>
  371. <TextBlock Margin="0,5,0,5" Text="{Binding StartTime,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="14" HorizontalAlignment="Center"/>
  372. </DataTemplate>
  373. </DataGridTemplateColumn.CellTemplate>
  374. </DataGridTemplateColumn>
  375. <DataGridTemplateColumn Width="145">
  376. <DataGridTemplateColumn.Header>
  377. <TextBlock Text="结束时间" Foreground="White"/>
  378. </DataGridTemplateColumn.Header>
  379. <DataGridTemplateColumn.CellTemplate>
  380. <DataTemplate>
  381. <TextBlock Margin="0,5,0,5" Text="{Binding StopTime,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="14" HorizontalAlignment="Center"/>
  382. </DataTemplate>
  383. </DataGridTemplateColumn.CellTemplate>
  384. </DataGridTemplateColumn>
  385. </DataGrid.Columns>
  386. </DataGrid>
  387. </GroupBox>
  388. </StackPanel>
  389. </Grid>
  390. </UserControl>