终端一体化运控平台
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

252 рядки
12 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.MorkSVer3.View.ParSetView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.MorkSVer3.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  9. xmlns:vm="clr-namespace:BPASmartClient.MorkSVer3.ViewModel"
  10. Name="参数设置界面"
  11. d:DesignHeight="450"
  12. d:DesignWidth="800"
  13. mc:Ignorable="d">
  14. <UserControl.DataContext>
  15. <vm:ParSetViewModel />
  16. </UserControl.DataContext>
  17. <UserControl.Resources>
  18. <ResourceDictionary>
  19. <ResourceDictionary.MergedDictionaries>
  20. <ResourceDictionary>
  21. <Style x:Key="TextBlockStyle" TargetType="TextBlock">
  22. <Setter Property="FontFamily" Value="楷体" />
  23. <Setter Property="FontSize" Value="18" />
  24. <Setter Property="Foreground" Value="{StaticResource TextBlockForeground}" />
  25. <Setter Property="VerticalAlignment" Value="Center" />
  26. <Setter Property="HorizontalAlignment" Value="Center" />
  27. </Style>
  28. <Style x:Key="TextBoxStyle" TargetType="TextBox">
  29. <Setter Property="FontFamily" Value="楷体" />
  30. <Setter Property="FontSize" Value="22" />
  31. <Setter Property="Background" Value="Transparent" />
  32. <Setter Property="Foreground" Value="{StaticResource TextBlockForeground}" />
  33. <Setter Property="BorderBrush" Value="#FF23CACA" />
  34. <Setter Property="CaretBrush" Value="Aqua" />
  35. <Setter Property="VerticalAlignment" Value="Center" />
  36. </Style>
  37. </ResourceDictionary>
  38. </ResourceDictionary.MergedDictionaries>
  39. </ResourceDictionary>
  40. </UserControl.Resources>
  41. <Grid Margin="10">
  42. <Grid.RowDefinitions>
  43. <RowDefinition Height="35" />
  44. <RowDefinition Height="Auto" />
  45. </Grid.RowDefinitions>
  46. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  47. <TextBlock Style="{StaticResource TextBlockStyle}" Text="请点击按钮保存参数:" />
  48. <Button
  49. Grid.Column="5"
  50. Width="140"
  51. HorizontalAlignment="Left"
  52. Command="{Binding SaveInfoCommand}"
  53. Content="保存配置"
  54. FontSize="16"
  55. Style="{StaticResource ButtonStyle}">
  56. </Button>
  57. </StackPanel>
  58. <!-- 参数放置面板 -->
  59. <Grid Grid.Row="2">
  60. <StackPanel Orientation="Horizontal">
  61. <ItemsControl ItemsSource="{Binding parSets}">
  62. <ItemsControl.ItemTemplate>
  63. <DataTemplate>
  64. <StackPanel Orientation="Horizontal">
  65. <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding TextBlockContext}" />
  66. <TextBox
  67. Width="100"
  68. Margin="10,0,0,0"
  69. VerticalAlignment="Center"
  70. Background="Transparent"
  71. BorderBrush="#FF23CACA"
  72. CaretBrush="Aqua"
  73. FontFamily="楷体"
  74. FontSize="21"
  75. Foreground="#ff34f7f7"
  76. Text="{Binding Minute}" />
  77. <TextBlock Style="{StaticResource TextBlockStyle}" Text="(分)" />
  78. <TextBox
  79. Width="100"
  80. Margin="0,10"
  81. VerticalAlignment="Center"
  82. Background="Transparent"
  83. BorderBrush="#FF23CACA"
  84. CaretBrush="Aqua"
  85. FontFamily="楷体"
  86. FontSize="21"
  87. Foreground="#ff34f7f7"
  88. Text="{Binding Second}" />
  89. <TextBlock Style="{StaticResource TextBlockStyle}" Text="(秒)" />
  90. <CheckBox
  91. Height="20"
  92. Margin="10"
  93. VerticalAlignment="Center"
  94. Background="#FF2AB2E7"
  95. Content="{Binding CheckBoxContext}"
  96. FontSize="14"
  97. Foreground="#00c2f4"
  98. IsChecked="{Binding IsShield}"
  99. Template="{StaticResource CbTemplate}" />
  100. </StackPanel>
  101. </DataTemplate>
  102. </ItemsControl.ItemTemplate>
  103. </ItemsControl>
  104. <!--#region 根据库位写入煮面时间,-已废弃 -->
  105. <!--<Grid>
  106. <Grid.RowDefinitions>
  107. <RowDefinition Height="50" />
  108. <RowDefinition />
  109. </Grid.RowDefinitions>
  110. <Grid
  111. Grid.Row="0"
  112. Margin="100,10,0,0"
  113. Background="#ff0C255F">
  114. <Grid.ColumnDefinitions>
  115. <ColumnDefinition />
  116. <ColumnDefinition />
  117. <ColumnDefinition />
  118. </Grid.ColumnDefinitions>
  119. <TextBlock
  120. Grid.Column="0"
  121. FontSize="24"
  122. Style="{StaticResource TitleTextblockStyle}"
  123. Text="库位序号" />
  124. <TextBlock
  125. Grid.Column="1"
  126. FontSize="24"
  127. Style="{StaticResource TitleTextblockStyle}"
  128. Text="煮时间(分)" />
  129. <TextBlock
  130. Grid.Column="2"
  131. FontSize="24"
  132. Style="{StaticResource TitleTextblockStyle}"
  133. Text="煮时间(秒)" />
  134. <Border
  135. Grid.Column="0"
  136. Grid.ColumnSpan="4"
  137. BorderBrush="{StaticResource bordColor}"
  138. BorderThickness="1,1,1,1" />
  139. <Border
  140. Grid.Column="1"
  141. BorderBrush="{StaticResource bordColor}"
  142. BorderThickness="1,0,1,0" />
  143. <Border
  144. Grid.Column="3"
  145. BorderBrush="{StaticResource bordColor}"
  146. BorderThickness="1,0,1,0" />
  147. </Grid>
  148. <Grid Grid.Row="1" Margin="100,0,0,0">
  149. <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
  150. <ItemsControl Foreground="DeepSkyBlue" ItemsSource="{Binding DishLibraryParSets}">
  151. <ItemsControl.ItemTemplate>
  152. <DataTemplate>
  153. <Grid Name="gr">
  154. <Grid.ColumnDefinitions>
  155. <ColumnDefinition Width="157"/>
  156. <ColumnDefinition Width="1*"/>
  157. <ColumnDefinition Width="1*"/>
  158. </Grid.ColumnDefinitions>
  159. <TextBlock
  160. Grid.Column="0"
  161. HorizontalAlignment="Center"
  162. VerticalAlignment="Center"
  163. FontSize="18"
  164. Text="{Binding TextBlockContext}" />
  165. -->
  166. <!--<ComboBox
  167. Grid.Column="1"
  168. Height="auto"
  169. Background="Transparent"
  170. BorderThickness="0"
  171. FontSize="18"
  172. Foreground="DeepSkyBlue"
  173. IsEditable="False"
  174. ItemsSource="{Binding DataContext.DishTypeName, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  175. SelectedIndex="{Binding LocDishType}" />-->
  176. <!--
  177. <Border
  178. Grid.Column="0"
  179. Grid.ColumnSpan="3"
  180. BorderBrush="{StaticResource bordColor}"
  181. BorderThickness="1,0,1,1"></Border>
  182. <Border
  183. Grid.Column="1"
  184. BorderBrush="{StaticResource bordColor}"
  185. BorderThickness="1,0,1,0">
  186. <TextBox
  187. Grid.Column="1"
  188. FontSize="18"
  189. Style="{StaticResource InputTextboxStyle}"
  190. Text="{Binding Minute}" />
  191. </Border>
  192. <Border
  193. Grid.Column="2"
  194. BorderBrush="{StaticResource bordColor}"
  195. BorderThickness="1,0,1,0">
  196. <TextBox
  197. Grid.Column="2"
  198. FontSize="18"
  199. Style="{StaticResource InputTextboxStyle}"
  200. Text="{Binding Second}" />
  201. </Border>
  202. </Grid>
  203. <DataTemplate.Triggers>
  204. <Trigger Property="IsMouseOver" Value="true">
  205. <Setter TargetName="gr" Property="Background" Value="#112AB2E7" />
  206. </Trigger>
  207. </DataTemplate.Triggers>
  208. </DataTemplate>
  209. </ItemsControl.ItemTemplate>
  210. </ItemsControl>
  211. </ScrollViewer>
  212. </Grid>
  213. </Grid>-->
  214. <!--#endregion-->
  215. </StackPanel>
  216. </Grid>
  217. </Grid>
  218. </UserControl>