终端一体化运控平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

313 linhas
14 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.MorkMV1.View.ParSet"
  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.MorkMV1.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.MorkMV1.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 Source="/BPASmartClient.MorkMV1;component/Resource/MyStyle.xaml" />
  21. <ResourceDictionary>
  22. <Style x:Key="TextBlockStyle" TargetType="TextBlock">
  23. <Setter Property="FontFamily" Value="楷体" />
  24. <Setter Property="FontSize" Value="18" />
  25. <Setter Property="Foreground" Value="{StaticResource TextBlockForeground}" />
  26. <Setter Property="VerticalAlignment" Value="Center" />
  27. <Setter Property="HorizontalAlignment" Value="Center" />
  28. </Style>
  29. <Style x:Key="TextBoxStyle" TargetType="TextBox">
  30. <Setter Property="FontFamily" Value="楷体" />
  31. <Setter Property="FontSize" Value="22" />
  32. <Setter Property="Background" Value="Transparent" />
  33. <Setter Property="Foreground" Value="{StaticResource TextBlockForeground}" />
  34. <Setter Property="BorderBrush" Value="#FF23CACA" />
  35. <Setter Property="CaretBrush" Value="Aqua" />
  36. <Setter Property="VerticalAlignment" Value="Center" />
  37. </Style>
  38. </ResourceDictionary>
  39. </ResourceDictionary.MergedDictionaries>
  40. </ResourceDictionary>
  41. </UserControl.Resources>
  42. <Grid Margin="10">
  43. <Grid.RowDefinitions>
  44. <RowDefinition Height="35" />
  45. <RowDefinition Height="Auto" />
  46. </Grid.RowDefinitions>
  47. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  48. <TextBlock Style="{StaticResource TextBlockStyle}" Text="请点击按钮保存参数:" />
  49. <pry:IcoButton
  50. Grid.Column="5"
  51. Width="140"
  52. HorizontalAlignment="Left"
  53. Command="{Binding SaveInfoCommand}"
  54. Content="保存配置"
  55. FontSize="16"
  56. IcoText="&#xe936;"
  57. Style="{StaticResource IcoButtonStyle}">
  58. <pry:IcoButton.Foreground>
  59. <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
  60. <GradientStop Color="#FFBB662A" />
  61. <GradientStop Offset="1" Color="White" />
  62. </LinearGradientBrush>
  63. </pry:IcoButton.Foreground>
  64. </pry:IcoButton>
  65. </StackPanel>
  66. <!-- 参数放置面板 -->
  67. <Grid Grid.Row="2">
  68. <Grid.ColumnDefinitions>
  69. <ColumnDefinition />
  70. <ColumnDefinition />
  71. </Grid.ColumnDefinitions>
  72. <ItemsControl ItemsSource="{Binding parSets}">
  73. <ItemsControl.ItemTemplate>
  74. <DataTemplate>
  75. <StackPanel Orientation="Horizontal">
  76. <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding TextBlockContext}" />
  77. <TextBox
  78. Width="100"
  79. Margin="10,0,0,0"
  80. VerticalAlignment="Center"
  81. Background="Transparent"
  82. BorderBrush="#FF23CACA"
  83. CaretBrush="Aqua"
  84. FontFamily="楷体"
  85. FontSize="21"
  86. Foreground="#ff34f7f7"
  87. Text="{Binding Minute}" />
  88. <TextBlock Style="{StaticResource TextBlockStyle}" Text="(分)" />
  89. <TextBox
  90. Width="100"
  91. Margin="0,10"
  92. VerticalAlignment="Center"
  93. Background="Transparent"
  94. BorderBrush="#FF23CACA"
  95. CaretBrush="Aqua"
  96. FontFamily="楷体"
  97. FontSize="21"
  98. Foreground="#ff34f7f7"
  99. Text="{Binding Second}" />
  100. <TextBlock Style="{StaticResource TextBlockStyle}" Text="(秒)" />
  101. <CheckBox
  102. Height="20"
  103. Margin="10"
  104. VerticalAlignment="Center"
  105. Background="#FF2AB2E7"
  106. Content="{Binding CheckBoxContext}"
  107. FontSize="14"
  108. Foreground="#00c2f4"
  109. IsChecked="{Binding IsShield}"
  110. Template="{StaticResource CbTemplate}" />
  111. </StackPanel>
  112. </DataTemplate>
  113. </ItemsControl.ItemTemplate>
  114. </ItemsControl>
  115. <Grid Grid.Column="1">
  116. <Grid.RowDefinitions>
  117. <RowDefinition Height="50" />
  118. <RowDefinition />
  119. </Grid.RowDefinitions>
  120. <Grid
  121. Grid.Row="0"
  122. Margin="0,10,0,0"
  123. Background="#ff0C255F">
  124. <Grid.ColumnDefinitions>
  125. <ColumnDefinition />
  126. <ColumnDefinition />
  127. <ColumnDefinition />
  128. <ColumnDefinition />
  129. </Grid.ColumnDefinitions>
  130. <TextBlock
  131. Grid.Column="0"
  132. FontSize="24"
  133. Style="{StaticResource TitleTextblockStyle}"
  134. Text="库位序号" />
  135. <TextBlock
  136. Grid.Column="1"
  137. FontSize="24"
  138. Style="{StaticResource TitleTextblockStyle}"
  139. Text="商品类型" />
  140. <TextBlock
  141. Grid.Column="2"
  142. FontSize="24"
  143. Style="{StaticResource TitleTextblockStyle}"
  144. Text="煮时间(分)" />
  145. <TextBlock
  146. Grid.Column="3"
  147. FontSize="24"
  148. Style="{StaticResource TitleTextblockStyle}"
  149. Text="煮时间(秒)" />
  150. <Border
  151. Grid.Column="0"
  152. Grid.ColumnSpan="4"
  153. BorderBrush="{StaticResource bordColor}"
  154. BorderThickness="1,1,1,1" />
  155. <Border
  156. Grid.Column="1"
  157. BorderBrush="{StaticResource bordColor}"
  158. BorderThickness="1,0,1,0" />
  159. <Border
  160. Grid.Column="3"
  161. BorderBrush="{StaticResource bordColor}"
  162. BorderThickness="1,0,1,0" />
  163. </Grid>
  164. <Grid Grid.Row="1">
  165. <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
  166. <ItemsControl Foreground="DeepSkyBlue" ItemsSource="{Binding DishLibraryParSets}">
  167. <ItemsControl.ItemTemplate>
  168. <DataTemplate>
  169. <Grid Name="gr">
  170. <Grid.ColumnDefinitions>
  171. <ColumnDefinition />
  172. <ColumnDefinition />
  173. <ColumnDefinition />
  174. <ColumnDefinition />
  175. </Grid.ColumnDefinitions>
  176. <TextBlock
  177. Grid.Column="0"
  178. HorizontalAlignment="Center"
  179. VerticalAlignment="Center"
  180. FontSize="18"
  181. Text="{Binding TextBlockContext}" />
  182. <ComboBox
  183. Grid.Column="1"
  184. Height="auto"
  185. Background="Transparent"
  186. BorderThickness="0"
  187. FontSize="18"
  188. Foreground="DeepSkyBlue"
  189. IsEditable="False"
  190. ItemsSource="{Binding DataContext.DishTypeName, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  191. SelectedIndex="{Binding LocDishType}" />
  192. <TextBox
  193. Grid.Column="2"
  194. FontSize="18"
  195. Style="{StaticResource InputTextboxStyle}"
  196. Text="{Binding Minute}" />
  197. <TextBox
  198. Grid.Column="3"
  199. FontSize="18"
  200. Style="{StaticResource InputTextboxStyle}"
  201. Text="{Binding Second}" />
  202. <Border
  203. Grid.Column="0"
  204. Grid.ColumnSpan="4"
  205. BorderBrush="{StaticResource bordColor}"
  206. BorderThickness="1,0,1,1" />
  207. <Border
  208. Grid.Column="1"
  209. BorderBrush="{StaticResource bordColor}"
  210. BorderThickness="1,0,1,0" />
  211. <Border
  212. Grid.Column="3"
  213. BorderBrush="{StaticResource bordColor}"
  214. BorderThickness="1,0,1,0" />
  215. </Grid>
  216. <DataTemplate.Triggers>
  217. <Trigger Property="IsMouseOver" Value="true">
  218. <Setter TargetName="gr" Property="Background" Value="#112AB2E7" />
  219. </Trigger>
  220. </DataTemplate.Triggers>
  221. </DataTemplate>
  222. </ItemsControl.ItemTemplate>
  223. </ItemsControl>
  224. </ScrollViewer>
  225. </Grid>
  226. </Grid>
  227. <!--<ItemsControl Grid.Column="1" ItemsSource="{Binding DishLibraryParSets}">
  228. <ItemsControl.ItemTemplate>
  229. <DataTemplate>
  230. <StackPanel Orientation="Horizontal">
  231. <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding TextBlockContext}" />
  232. <TextBox
  233. Width="100"
  234. Margin="10,0,0,0"
  235. VerticalAlignment="Center"
  236. Background="Transparent"
  237. BorderBrush="#FF23CACA"
  238. CaretBrush="Aqua"
  239. FontFamily="楷体"
  240. FontSize="21"
  241. Foreground="#ff34f7f7"
  242. Text="{Binding Minute}" />
  243. <TextBlock Style="{StaticResource TextBlockStyle}" Text="(分)" />
  244. <TextBox
  245. Width="100"
  246. Margin="0,10"
  247. VerticalAlignment="Center"
  248. Background="Transparent"
  249. BorderBrush="#FF23CACA"
  250. CaretBrush="Aqua"
  251. FontFamily="楷体"
  252. FontSize="21"
  253. Foreground="#ff34f7f7"
  254. Text="{Binding Second}" />
  255. <TextBlock Style="{StaticResource TextBlockStyle}" Text="(秒)" />
  256. <CheckBox
  257. Height="20"
  258. Margin="10"
  259. VerticalAlignment="Center"
  260. Background="#FF2AB2E7"
  261. Content="{Binding CheckBoxContext}"
  262. FontSize="14"
  263. Foreground="#00c2f4"
  264. IsChecked="{Binding IsShield}"
  265. Template="{StaticResource CbTemplate}" />
  266. </StackPanel>
  267. </DataTemplate>
  268. </ItemsControl.ItemTemplate>
  269. </ItemsControl>-->
  270. </Grid>
  271. </Grid>
  272. </UserControl>