终端一体化运控平台
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.
 
 
 

203 lines
8.5 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.MorkS.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.MorkS.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.MorkS.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. <pry:IcoButton
  49. Grid.Column="5"
  50. Width="140"
  51. HorizontalAlignment="Left"
  52. Command="{Binding SaveInfoCommand}"
  53. Content="保存配置"
  54. FontSize="16"
  55. IcoText="&#xe936;"
  56. Style="{StaticResource IcoButtonStyle}">
  57. <pry:IcoButton.Foreground>
  58. <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
  59. <GradientStop Color="#FFBB662A" />
  60. <GradientStop Offset="1" Color="White" />
  61. </LinearGradientBrush>
  62. </pry:IcoButton.Foreground>
  63. </pry:IcoButton>
  64. </StackPanel>
  65. <!-- 参数放置面板 -->
  66. <Grid Grid.Row="2">
  67. <Grid.RowDefinitions>
  68. <RowDefinition />
  69. <RowDefinition Height="150" />
  70. </Grid.RowDefinitions>
  71. <ItemsControl Grid.Row="0" ItemsSource="{Binding parSets}">
  72. <ItemsControl.ItemTemplate>
  73. <DataTemplate>
  74. <StackPanel Orientation="Horizontal">
  75. <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding TextBlockContext}" />
  76. <TextBox
  77. Width="100"
  78. Margin="10,0,0,0"
  79. VerticalAlignment="Center"
  80. Background="Transparent"
  81. BorderBrush="#FF23CACA"
  82. CaretBrush="Aqua"
  83. FontFamily="楷体"
  84. FontSize="21"
  85. Foreground="#ff34f7f7"
  86. Text="{Binding Minute}" />
  87. <TextBlock Style="{StaticResource TextBlockStyle}" Text="(分)" />
  88. <TextBox
  89. Width="100"
  90. Margin="0,10"
  91. VerticalAlignment="Center"
  92. Background="Transparent"
  93. BorderBrush="#FF23CACA"
  94. CaretBrush="Aqua"
  95. FontFamily="楷体"
  96. FontSize="21"
  97. Foreground="#ff34f7f7"
  98. Text="{Binding Second}" />
  99. <TextBlock Style="{StaticResource TextBlockStyle}" Text="(秒)" />
  100. <CheckBox
  101. Height="20"
  102. Margin="10"
  103. VerticalAlignment="Center"
  104. Background="#FF2AB2E7"
  105. Content="{Binding CheckBoxContext}"
  106. FontSize="14"
  107. Foreground="#00c2f4"
  108. IsChecked="{Binding IsShield}"
  109. Template="{StaticResource CbTemplate}" />
  110. </StackPanel>
  111. </DataTemplate>
  112. </ItemsControl.ItemTemplate>
  113. </ItemsControl>
  114. <StackPanel Grid.Row="1" Orientation="Horizontal">
  115. <TextBlock
  116. FontSize="21"
  117. Margin="40 0 0 0"
  118. Style="{StaticResource TextBlockStyle}"
  119. Text="加汤时间:" />
  120. <TextBox
  121. Width="100"
  122. Margin="10,0,0,0"
  123. VerticalAlignment="Center"
  124. Background="Transparent"
  125. BorderBrush="#FF23CACA"
  126. CaretBrush="Aqua"
  127. FontFamily="楷体"
  128. FontSize="21"
  129. Foreground="#ff34f7f7"
  130. Text="{Binding AddSoup}" />
  131. <TextBlock
  132. FontSize="21"
  133. Margin="10 0 0 0"
  134. Style="{StaticResource TextBlockStyle}"
  135. Text="(秒)" />
  136. <TextBlock
  137. FontSize="21"
  138. Margin="40 0 0 0"
  139. Style="{StaticResource TextBlockStyle}"
  140. Text="清洗加汤管道时间:" />
  141. <TextBox
  142. Width="100"
  143. Margin="10,0,0,0"
  144. VerticalAlignment="Center"
  145. Background="Transparent"
  146. BorderBrush="#FF23CACA"
  147. CaretBrush="Aqua"
  148. FontFamily="楷体"
  149. FontSize="21"
  150. Foreground="#ff34f7f7"
  151. Text="{Binding DelayTime}" />
  152. <TextBlock
  153. FontSize="21"
  154. Margin="10 0 0 0"
  155. Style="{StaticResource TextBlockStyle}"
  156. Text="(秒)" />
  157. <Button Content="启动" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5" Foreground="Aqua"
  158. Style="{StaticResource ButtonStyle}" Command="{Binding CommandStart}" />
  159. <TextBlock
  160. FontSize="21"
  161. Margin="40 0 0 0"
  162. Style="{StaticResource TextBlockStyle}"
  163. Text="倒面条件,煮面口使用数量:" />
  164. <TextBox
  165. Width="100"
  166. Margin="10,0,0,0"
  167. VerticalAlignment="Center"
  168. Background="Transparent"
  169. BorderBrush="#FF23CACA"
  170. CaretBrush="Aqua"
  171. FontFamily="楷体"
  172. FontSize="21"
  173. Foreground="#ff34f7f7"
  174. Text="{Binding OpenUseNumber}" />
  175. <TextBlock
  176. FontSize="21"
  177. Margin="10 0 0 0"
  178. Style="{StaticResource TextBlockStyle}"
  179. Text="(个)" />
  180. </StackPanel>
  181. </Grid>
  182. </Grid>
  183. </UserControl>