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

223 lines
8.4 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.DosingSystem.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.DosingSystem.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.DosingSystem.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 Background="Transparent" Width="350" Margin="5">
  114. <Grid.ColumnDefinitions>
  115. <ColumnDefinition />
  116. <ColumnDefinition />
  117. </Grid.ColumnDefinitions>
  118. <TextBlock
  119. Margin="0,0,2,0"
  120. HorizontalAlignment="Right"
  121. Style="{StaticResource TextBlockStyle}"
  122. Text="托盘气缸数量:" />
  123. <TextBox
  124. Grid.Column="1"
  125. Width="170"
  126. Height="35"
  127. HorizontalAlignment="Right"
  128. FontSize="20"
  129. Style="{StaticResource TextBoxStyle}"
  130. Text="{Binding CommBaseParModel.PalletCylinderCount, UpdateSourceTrigger=PropertyChanged}" />
  131. </Grid>
  132. <Grid Background="Transparent" Width="350" Margin="5">
  133. <Grid.ColumnDefinitions>
  134. <ColumnDefinition />
  135. <ColumnDefinition />
  136. </Grid.ColumnDefinitions>
  137. <TextBlock
  138. Margin="0,0,2,0"
  139. HorizontalAlignment="Right"
  140. Style="{StaticResource TextBlockStyle}"
  141. Text="输送带数量:" />
  142. <TextBox
  143. Grid.Column="1"
  144. Width="170"
  145. Height="35"
  146. HorizontalAlignment="Right"
  147. FontSize="20"
  148. Style="{StaticResource TextBoxStyle}"
  149. Text="{Binding CommBaseParModel.ConveyerBeltCount, UpdateSourceTrigger=PropertyChanged}" />
  150. </Grid>
  151. </WrapPanel>
  152. <!--<Grid Grid.Row="2" Grid.ColumnSpan="4">
  153. <ListView
  154. Grid.Column="1"
  155. Background="Transparent"
  156. BorderBrush="#00BEFA"
  157. BorderThickness="0"
  158. ItemsSource="{Binding CommBaseParModel.ConveyerBeltModels}"
  159. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  160. <ListView.ItemsPanel>
  161. <ItemsPanelTemplate>
  162. <WrapPanel Orientation="Horizontal" />
  163. </ItemsPanelTemplate>
  164. </ListView.ItemsPanel>
  165. <ListView.ItemTemplate>
  166. <DataTemplate>
  167. <Grid
  168. Width="350"
  169. Margin="5"
  170. Background="Transparent">
  171. <Grid.ColumnDefinitions>
  172. <ColumnDefinition />
  173. <ColumnDefinition />
  174. </Grid.ColumnDefinitions>
  175. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  176. <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Name}" />
  177. <TextBlock
  178. Margin="0,0,2,0"
  179. Style="{StaticResource TextBlockStyle}"
  180. Text=":" />
  181. </StackPanel>
  182. <TextBox
  183. Grid.Column="1"
  184. Width="170"
  185. Height="35"
  186. HorizontalAlignment="Right"
  187. FontSize="20"
  188. Style="{StaticResource TextBoxStyle}"
  189. Text="{Binding Speed, UpdateSourceTrigger=PropertyChanged}" />
  190. </Grid>
  191. </DataTemplate>
  192. </ListView.ItemTemplate>
  193. </ListView>
  194. </Grid>-->
  195. </Grid>
  196. </UserControl>