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

SystemParView.xaml 12 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <UserControl
  2. x:Class="BPASmartClient.FoodStationTest.View.SystemParView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:con="clr-namespace:BPASmartClient.FoodStationTest.Converter"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:BPASmartClient.FoodStationTest.View"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:vm="clr-namespace:BPASmartClient.FoodStationTest.ViewModel"
  10. d:DesignHeight="450"
  11. d:DesignWidth="800"
  12. mc:Ignorable="d">
  13. <UserControl.DataContext>
  14. <vm:SystemParViewModel />
  15. </UserControl.DataContext>
  16. <UserControl.Resources>
  17. <SolidColorBrush x:Key="tabColor" Color="#FF2AB2E7" />
  18. <!--<SolidColorBrush x:Key="bordColor" Color="#33ffffff" />-->
  19. <SolidColorBrush x:Key="bordColor" Color="#332AB2E7" />
  20. <con:DataTableRedundantConverter x:Key="tabConvert" />
  21. <Style x:Key="RowRadioButtonStyle" TargetType="{x:Type RadioButton}">
  22. <Setter Property="Template">
  23. <Setter.Value>
  24. <ControlTemplate TargetType="{x:Type RadioButton}">
  25. <Border
  26. x:Name="NvaBor"
  27. Background="Transparent"
  28. BorderBrush="#FF2AB2E7"
  29. BorderThickness="0">
  30. <ContentControl
  31. Margin="10,4"
  32. HorizontalAlignment="Center"
  33. VerticalAlignment="Center"
  34. HorizontalContentAlignment="Center"
  35. VerticalContentAlignment="Center"
  36. Content="{TemplateBinding Content}"
  37. FontSize="16" />
  38. </Border>
  39. <ControlTemplate.Triggers>
  40. <Trigger Property="IsChecked" Value="True">
  41. <Setter TargetName="NvaBor" Property="Background" Value="#22ffffff" />
  42. <Setter TargetName="NvaBor" Property="BorderThickness" Value="0" />
  43. </Trigger>
  44. <MultiTrigger>
  45. <MultiTrigger.Conditions>
  46. <Condition Property="IsChecked" Value="false" />
  47. <Condition Property="IsMouseOver" Value="True" />
  48. </MultiTrigger.Conditions>
  49. <MultiTrigger.Setters>
  50. <Setter TargetName="NvaBor" Property="Background" Value="#22ffffff" />
  51. </MultiTrigger.Setters>
  52. </MultiTrigger>
  53. </ControlTemplate.Triggers>
  54. </ControlTemplate>
  55. </Setter.Value>
  56. </Setter>
  57. </Style>
  58. <Style x:Key="InputTextboxStyle" TargetType="TextBox">
  59. <Setter Property="Margin" Value="5,0,0,0" />
  60. <Setter Property="BorderThickness" Value="0" />
  61. <Setter Property="HorizontalAlignment" Value="Left" />
  62. <Setter Property="Width" Value="150" />
  63. <Setter Property="Height" Value="40" />
  64. <Setter Property="CaretBrush" Value="{StaticResource TitleBorderColor}" />
  65. <Setter Property="Foreground" Value="{StaticResource TitleBorderColor}" />
  66. <Setter Property="VerticalContentAlignment" Value="Center" />
  67. <Setter Property="FontSize" Value="14" />
  68. <Setter Property="Background" Value="Transparent" />
  69. <Setter Property="VerticalAlignment" Value="Center" />
  70. </Style>
  71. <Style x:Key="ControlButtonStyle" TargetType="Button">
  72. <Setter Property="Margin" Value="0" />
  73. <Setter Property="FontSize" Value="18" />
  74. <Setter Property="Foreground" Value="#FFF53F62" />
  75. <Setter Property="FontWeight" Value="SemiBold" />
  76. <Setter Property="FontFamily" Value="楷体" />
  77. <Setter Property="VerticalContentAlignment" Value="Center" />
  78. <Setter Property="Template">
  79. <Setter.Value>
  80. <ControlTemplate TargetType="Button">
  81. <Border
  82. Name="TitleBarBr"
  83. BorderBrush="#00c2f4"
  84. BorderThickness="0"
  85. CornerRadius="0"
  86. Opacity="0.8">
  87. <ContentPresenter
  88. Margin="{TemplateBinding Margin}"
  89. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  90. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  91. <Border.Background>
  92. <ImageBrush
  93. ImageSource="/BPASmartClient.CustomResource;component/Image/组合边框1.1.png"
  94. Opacity="0.8"
  95. Stretch="Fill" />
  96. </Border.Background>
  97. </Border>
  98. <ControlTemplate.Triggers>
  99. <Trigger Property="IsMouseOver" Value="true">
  100. <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
  101. </Trigger>
  102. </ControlTemplate.Triggers>
  103. </ControlTemplate>
  104. </Setter.Value>
  105. </Setter>
  106. </Style>
  107. <Style x:Key="TitleTextblockStyle" TargetType="TextBlock">
  108. <Setter Property="FontSize" Value="16" />
  109. <Setter Property="HorizontalAlignment" Value="Center" />
  110. <Setter Property="VerticalAlignment" Value="Center" />
  111. <Setter Property="Foreground" Value="{StaticResource tabColor}" />
  112. <Setter Property="FontFamily" Value="楷体" />
  113. <Setter Property="FontWeight" Value="SemiBold" />
  114. </Style>
  115. </UserControl.Resources>
  116. <Grid>
  117. <Grid.RowDefinitions>
  118. <RowDefinition Height="50" />
  119. <RowDefinition />
  120. </Grid.RowDefinitions>
  121. <Grid.ColumnDefinitions>
  122. <ColumnDefinition />
  123. <ColumnDefinition />
  124. </Grid.ColumnDefinitions>
  125. <Button
  126. Width="140"
  127. Height="30"
  128. Margin="10,0,10,0"
  129. HorizontalAlignment="Left"
  130. Command="{Binding SaveCommand}"
  131. Content="保存参数"
  132. FontSize="24"
  133. Style="{StaticResource ImageButtonStyle}" />
  134. <Button
  135. Grid.Column="1"
  136. Width="140"
  137. Height="30"
  138. Margin="10,0,10,0"
  139. HorizontalAlignment="Left"
  140. Command="{Binding SetParCommand}"
  141. Content="下发参数"
  142. FontSize="24"
  143. Style="{StaticResource ImageButtonStyle}" />
  144. <StackPanel
  145. Grid.Row="1"
  146. Margin="10,0,10,0"
  147. HorizontalAlignment="Left"
  148. Orientation="Vertical">
  149. <CheckBox
  150. Margin="0,10,10,0"
  151. VerticalAlignment="Center"
  152. Content="小料站产线PLC设备连接"
  153. FontFamily="楷体"
  154. FontSize="20"
  155. Foreground="Aqua"
  156. IsChecked="{Binding HKPlcConnect}" />
  157. <CheckBox
  158. Margin="0,10,10,0"
  159. VerticalAlignment="Center"
  160. Content="屏蔽小料仓数量读取报警"
  161. FontFamily="楷体"
  162. FontSize="20"
  163. Foreground="Aqua"
  164. IsChecked="{Binding ShieldStockbinAlarm}" />
  165. </StackPanel>
  166. <Grid
  167. Grid.Row="1"
  168. Grid.Column="1"
  169. VerticalAlignment="Top">
  170. <Grid.ColumnDefinitions>
  171. <ColumnDefinition Width="37*" />
  172. <ColumnDefinition Width="163*" />
  173. </Grid.ColumnDefinitions>
  174. <Grid.RowDefinitions>
  175. <RowDefinition />
  176. <RowDefinition />
  177. <RowDefinition />
  178. <RowDefinition />
  179. <RowDefinition />
  180. </Grid.RowDefinitions>
  181. <WrapPanel Grid.ColumnSpan="2" Margin="0,0,0,38">
  182. <TextBlock
  183. Margin="10"
  184. FontSize="16"
  185. Foreground="Aqua"
  186. Text="调速电机速度(进桶侧)" />
  187. <TextBox
  188. Width="50"
  189. Margin="10"
  190. FontSize="16"
  191. Text="{Binding AxisLoadSpeed}" />
  192. <TextBlock
  193. FontSize="16"
  194. Foreground="Aqua"
  195. Text="" />
  196. </WrapPanel>
  197. <WrapPanel
  198. Grid.RowSpan="2"
  199. Grid.ColumnSpan="2"
  200. Margin="0,42,0,75">
  201. <TextBlock
  202. Margin="10"
  203. FontSize="16"
  204. Foreground="Aqua"
  205. Text="调速电机速度(过渡侧)" />
  206. <TextBox
  207. Width="50"
  208. Margin="10"
  209. FontSize="16"
  210. Text="{Binding AxisMidSpeed}" />
  211. <TextBlock
  212. FontSize="16"
  213. Foreground="Aqua"
  214. Text="" />
  215. </WrapPanel>
  216. <WrapPanel
  217. Grid.Row="1"
  218. Grid.ColumnSpan="2"
  219. Margin="0,5,0,33">
  220. <TextBlock
  221. Margin="10"
  222. FontSize="16"
  223. Foreground="Aqua"
  224. Text="调速电机速度(出桶侧)" />
  225. <TextBox
  226. Width="50"
  227. Margin="10"
  228. FontSize="16"
  229. Text="{Binding AxisUnLoadSpeed}" />
  230. <TextBlock
  231. FontSize="16"
  232. Foreground="Aqua"
  233. Text="" />
  234. </WrapPanel>
  235. <WrapPanel
  236. Grid.Row="1"
  237. Grid.RowSpan="2"
  238. Grid.ColumnSpan="2"
  239. Margin="0,47,0,71">
  240. <TextBlock
  241. Margin="10"
  242. FontSize="16"
  243. Foreground="Aqua"
  244. Text="伺服1速度(进桶侧)" />
  245. <TextBox
  246. Width="50"
  247. Margin="10"
  248. FontSize="16"
  249. Text="{Binding Axis1Speed}" />
  250. <TextBlock
  251. FontSize="16"
  252. Foreground="Aqua"
  253. Text="" />
  254. </WrapPanel>
  255. <WrapPanel
  256. Grid.Row="2"
  257. Grid.ColumnSpan="2"
  258. Margin="0,9,0,28">
  259. <TextBlock
  260. Margin="10"
  261. FontSize="16"
  262. Foreground="Aqua"
  263. Text="伺服2速度(出桶侧)" />
  264. <TextBox
  265. Width="50"
  266. Margin="10"
  267. FontSize="16"
  268. Text="{Binding Axis2Speed}" />
  269. <TextBlock
  270. FontSize="16"
  271. Foreground="Aqua"
  272. Text="" />
  273. </WrapPanel>
  274. </Grid>
  275. </Grid>
  276. </UserControl>