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

309 lines
12 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.JXJFoodSmallStation.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.JXJFoodSmallStation.Converter"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:BPASmartClient.JXJFoodSmallStation.View"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:vm="clr-namespace:BPASmartClient.JXJFoodSmallStation.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="西门子设备连接"
  153. FontFamily="楷体"
  154. FontSize="20"
  155. Foreground="Aqua"
  156. IsChecked="{Binding SiemensConnect}" />
  157. <CheckBox
  158. Margin="0,10,10,0"
  159. VerticalAlignment="Center"
  160. Content="粉料仓设备连接"
  161. FontFamily="楷体"
  162. FontSize="20"
  163. Foreground="Aqua"
  164. IsChecked="{Binding WindSendConnect}" />
  165. <CheckBox
  166. Margin="0,10,10,0"
  167. VerticalAlignment="Center"
  168. Content="小料站产线PLC设备连接"
  169. FontFamily="楷体"
  170. FontSize="20"
  171. Foreground="Aqua"
  172. IsChecked="{Binding HKPlcConnect}" />
  173. <CheckBox
  174. Margin="0,10,10,0"
  175. VerticalAlignment="Center"
  176. Content="屏蔽小料仓数量读取报警"
  177. FontFamily="楷体"
  178. FontSize="20"
  179. Foreground="Aqua"
  180. IsChecked="{Binding ShieldStockbinAlarm}" />
  181. </StackPanel>
  182. <Grid
  183. Grid.Row="1"
  184. Grid.Column="1"
  185. VerticalAlignment="Top">
  186. <Grid.ColumnDefinitions>
  187. <ColumnDefinition Width="37*" />
  188. <ColumnDefinition Width="163*" />
  189. </Grid.ColumnDefinitions>
  190. <Grid.RowDefinitions>
  191. <RowDefinition />
  192. <RowDefinition />
  193. <RowDefinition />
  194. <RowDefinition />
  195. <RowDefinition />
  196. </Grid.RowDefinitions>
  197. <WrapPanel Grid.ColumnSpan="2" Margin="0,0,0,38">
  198. <TextBlock
  199. Margin="10"
  200. FontSize="16"
  201. Foreground="Aqua"
  202. Text="调速电机速度(进桶侧)" />
  203. <TextBox
  204. Width="50"
  205. Margin="10"
  206. FontSize="16"
  207. Text="{Binding AxisLoadSpeed}" />
  208. <TextBlock
  209. FontSize="16"
  210. Foreground="Aqua"
  211. Text="" />
  212. </WrapPanel>
  213. <WrapPanel
  214. Grid.RowSpan="2"
  215. Grid.ColumnSpan="2"
  216. Margin="0,42,0,75">
  217. <TextBlock
  218. Margin="10"
  219. FontSize="16"
  220. Foreground="Aqua"
  221. Text="调速电机速度(过渡侧)" />
  222. <TextBox
  223. Width="50"
  224. Margin="10"
  225. FontSize="16"
  226. Text="{Binding AxisMidSpeed}" />
  227. <TextBlock
  228. FontSize="16"
  229. Foreground="Aqua"
  230. Text="" />
  231. </WrapPanel>
  232. <WrapPanel
  233. Grid.Row="1"
  234. Grid.ColumnSpan="2"
  235. Margin="0,5,0,33">
  236. <TextBlock
  237. Margin="10"
  238. FontSize="16"
  239. Foreground="Aqua"
  240. Text="调速电机速度(出桶侧)" />
  241. <TextBox
  242. Width="50"
  243. Margin="10"
  244. FontSize="16"
  245. Text="{Binding AxisUnLoadSpeed}" />
  246. <TextBlock
  247. FontSize="16"
  248. Foreground="Aqua"
  249. Text="" />
  250. </WrapPanel>
  251. <WrapPanel
  252. Grid.Row="1"
  253. Grid.RowSpan="2"
  254. Grid.ColumnSpan="2"
  255. Margin="0,47,0,71">
  256. <TextBlock
  257. Margin="10"
  258. FontSize="16"
  259. Foreground="Aqua"
  260. Text="伺服1速度(进桶侧)" />
  261. <TextBox
  262. Width="50"
  263. Margin="10"
  264. FontSize="16"
  265. Text="{Binding Axis1Speed}" />
  266. <TextBlock
  267. FontSize="16"
  268. Foreground="Aqua"
  269. Text="" />
  270. </WrapPanel>
  271. <WrapPanel
  272. Grid.Row="2"
  273. Grid.ColumnSpan="2"
  274. Margin="0,9,0,28">
  275. <TextBlock
  276. Margin="10"
  277. FontSize="16"
  278. Foreground="Aqua"
  279. Text="伺服2速度(出桶侧)" />
  280. <TextBox
  281. Width="50"
  282. Margin="10"
  283. FontSize="16"
  284. Text="{Binding Axis2Speed}" />
  285. <TextBlock
  286. FontSize="16"
  287. Foreground="Aqua"
  288. Text="" />
  289. </WrapPanel>
  290. </Grid>
  291. </Grid>
  292. </UserControl>