终端一体化运控平台
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

229 wiersze
8.5 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.DosingSystemSingle.View.CommParSetView"
  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.DosingSystemSingle.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.DosingSystemSingle.ViewModel"
  9. d:DesignHeight="450"
  10. d:DesignWidth="800"
  11. mc:Ignorable="d">
  12. <UserControl.DataContext>
  13. <vm:CommparSetViewModel />
  14. </UserControl.DataContext>
  15. <Grid>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="50" />
  18. <RowDefinition />
  19. </Grid.RowDefinitions>
  20. <Grid.ColumnDefinitions>
  21. <ColumnDefinition />
  22. <ColumnDefinition />
  23. <ColumnDefinition />
  24. <ColumnDefinition />
  25. </Grid.ColumnDefinitions>
  26. <Button
  27. Grid.Column="3"
  28. Width="120"
  29. Height="30"
  30. Margin="5,0,5,0"
  31. HorizontalAlignment="Left"
  32. Command="{Binding SaveCommand}"
  33. Content="保存参数"
  34. FontSize="20"
  35. Style="{StaticResource ImageButtonStyle}" />
  36. <WrapPanel Grid.Row="1" Grid.ColumnSpan="4">
  37. <Grid Width="350" Margin="5">
  38. <Grid.ColumnDefinitions>
  39. <ColumnDefinition />
  40. <ColumnDefinition />
  41. </Grid.ColumnDefinitions>
  42. <TextBlock
  43. Margin="0,0,2,0"
  44. HorizontalAlignment="Right"
  45. Style="{StaticResource TextBlockStyle}"
  46. Text="配料设备网段:" />
  47. <TextBox
  48. Grid.Column="1"
  49. Width="170"
  50. Height="35"
  51. HorizontalAlignment="Right"
  52. FontSize="20"
  53. Style="{StaticResource TextBoxStyle}"
  54. Text="{Binding CommBaseParModel.NetworkSegAddress, UpdateSourceTrigger=PropertyChanged}" />
  55. </Grid>
  56. <Grid Width="350" Margin="5">
  57. <Grid.ColumnDefinitions>
  58. <ColumnDefinition />
  59. <ColumnDefinition />
  60. </Grid.ColumnDefinitions>
  61. <TextBlock
  62. Margin="0,0,2,0"
  63. HorizontalAlignment="Right"
  64. Style="{StaticResource TextBlockStyle}"
  65. Text="输送带PLC地址:" />
  66. <TextBox
  67. Grid.Column="1"
  68. Width="170"
  69. Height="35"
  70. HorizontalAlignment="Right"
  71. FontSize="20"
  72. Style="{StaticResource TextBoxStyle}"
  73. Text="{Binding CommBaseParModel.DeviceAddress, UpdateSourceTrigger=PropertyChanged}" />
  74. </Grid>
  75. <Grid Width="350" Margin="5">
  76. <Grid.ColumnDefinitions>
  77. <ColumnDefinition />
  78. <ColumnDefinition />
  79. </Grid.ColumnDefinitions>
  80. <TextBlock
  81. Margin="0,0,2,0"
  82. HorizontalAlignment="Right"
  83. Style="{StaticResource TextBlockStyle}"
  84. Text="升降气缸数量:" />
  85. <TextBox
  86. Grid.Column="1"
  87. Width="170"
  88. Height="35"
  89. HorizontalAlignment="Right"
  90. FontSize="20"
  91. Style="{StaticResource TextBoxStyle}"
  92. Text="{Binding CommBaseParModel.LiftCylinderCount, UpdateSourceTrigger=PropertyChanged}" />
  93. </Grid>
  94. <Grid Width="350" Margin="5">
  95. <Grid.ColumnDefinitions>
  96. <ColumnDefinition />
  97. <ColumnDefinition />
  98. </Grid.ColumnDefinitions>
  99. <TextBlock
  100. Margin="0,0,2,0"
  101. HorizontalAlignment="Right"
  102. Style="{StaticResource TextBlockStyle}"
  103. Text="阻挡气缸数量:" />
  104. <TextBox
  105. Grid.Column="1"
  106. Width="170"
  107. Height="35"
  108. HorizontalAlignment="Right"
  109. FontSize="20"
  110. Style="{StaticResource TextBoxStyle}"
  111. Text="{Binding CommBaseParModel.BlockCylinderCount, UpdateSourceTrigger=PropertyChanged}" />
  112. </Grid>
  113. <Grid
  114. Width="350"
  115. Margin="5"
  116. Background="Transparent">
  117. <Grid.ColumnDefinitions>
  118. <ColumnDefinition />
  119. <ColumnDefinition />
  120. </Grid.ColumnDefinitions>
  121. <TextBlock
  122. Margin="0,0,2,0"
  123. HorizontalAlignment="Right"
  124. Style="{StaticResource TextBlockStyle}"
  125. Text="托盘气缸数量:" />
  126. <TextBox
  127. Grid.Column="1"
  128. Width="170"
  129. Height="35"
  130. HorizontalAlignment="Right"
  131. FontSize="20"
  132. Style="{StaticResource TextBoxStyle}"
  133. Text="{Binding CommBaseParModel.PalletCylinderCount, UpdateSourceTrigger=PropertyChanged}" />
  134. </Grid>
  135. <Grid
  136. Width="350"
  137. Margin="5"
  138. Background="Transparent">
  139. <Grid.ColumnDefinitions>
  140. <ColumnDefinition />
  141. <ColumnDefinition />
  142. </Grid.ColumnDefinitions>
  143. <TextBlock
  144. Margin="0,0,2,0"
  145. HorizontalAlignment="Right"
  146. Style="{StaticResource TextBlockStyle}"
  147. Text="输送带数量:" />
  148. <TextBox
  149. Grid.Column="1"
  150. Width="170"
  151. Height="35"
  152. HorizontalAlignment="Right"
  153. FontSize="20"
  154. Style="{StaticResource TextBoxStyle}"
  155. Text="{Binding CommBaseParModel.ConveyerBeltCount, UpdateSourceTrigger=PropertyChanged}" />
  156. </Grid>
  157. </WrapPanel>
  158. <!--<Grid Grid.Row="2" Grid.ColumnSpan="4">
  159. <ListView
  160. Grid.Column="1"
  161. Background="Transparent"
  162. BorderBrush="#00BEFA"
  163. BorderThickness="0"
  164. ItemsSource="{Binding CommBaseParModel.ConveyerBeltModels}"
  165. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  166. <ListView.ItemsPanel>
  167. <ItemsPanelTemplate>
  168. <WrapPanel Orientation="Horizontal" />
  169. </ItemsPanelTemplate>
  170. </ListView.ItemsPanel>
  171. <ListView.ItemTemplate>
  172. <DataTemplate>
  173. <Grid
  174. Width="350"
  175. Margin="5"
  176. Background="Transparent">
  177. <Grid.ColumnDefinitions>
  178. <ColumnDefinition />
  179. <ColumnDefinition />
  180. </Grid.ColumnDefinitions>
  181. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  182. <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Name}" />
  183. <TextBlock
  184. Margin="0,0,2,0"
  185. Style="{StaticResource TextBlockStyle}"
  186. Text=":" />
  187. </StackPanel>
  188. <TextBox
  189. Grid.Column="1"
  190. Width="170"
  191. Height="35"
  192. HorizontalAlignment="Right"
  193. FontSize="20"
  194. Style="{StaticResource TextBoxStyle}"
  195. Text="{Binding Speed, UpdateSourceTrigger=PropertyChanged}" />
  196. </Grid>
  197. </DataTemplate>
  198. </ListView.ItemTemplate>
  199. </ListView>
  200. </Grid>-->
  201. </Grid>
  202. </UserControl>