终端一体化运控平台
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ParameterSetting.xaml 11 KiB

il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
il y a 2 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <UserControl x:Class="BPASmartClient.MilkWithTea.View.ParameterSetting"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.MilkWithTea.View"
  7. xmlns:vm="clr-namespace:BPASmartClient.MilkWithTea.ViewModel"
  8. mc:Ignorable="d"
  9. d:DesignHeight="900" d:DesignWidth="1400" Background="Transparent" >
  10. <UserControl.DataContext>
  11. <vm:PatrameterSettiongViewModel/>
  12. </UserControl.DataContext>
  13. <UserControl.Resources>
  14. </UserControl.Resources>
  15. <Grid Background="#F3F6F9" Margin="20" >
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition Width="*"/>
  18. <ColumnDefinition Width="*"/>
  19. </Grid.ColumnDefinitions>
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="*"/>
  22. <RowDefinition Height="*"/>
  23. <RowDefinition Height="*"/>
  24. </Grid.RowDefinitions>
  25. <GroupBox Grid.ColumnSpan="2" Header="参数调试" FontSize="20" Style="{StaticResource GroupBoxStyle1}" Padding="40,20" Margin="20,10">
  26. <GroupItem>
  27. <Grid>
  28. <Grid.RowDefinitions>
  29. <RowDefinition Height="*"/>
  30. <RowDefinition Height="20"/>
  31. <RowDefinition Height="*"/>
  32. </Grid.RowDefinitions>
  33. <StackPanel Orientation="Horizontal">
  34. <TextBlock Text="通道口:"/>
  35. <ComboBox ItemsSource="{Binding materialPosions}"
  36. SelectedValue="{Binding MaterialID ,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  37. Margin="10,0" Width="120 " Style="{StaticResource cmbstyle}"/>
  38. <TextBlock Text="出料量:" Margin="10,0,0,0" />
  39. <TextBox Text="{Binding OutMaterailWeight}" Width="60" Margin="10,0" VerticalContentAlignment="Center"/>
  40. <TextBlock Text="g" Margin="2,0"/>
  41. <Button Content="出料" Style="{StaticResource buttonNormal}" Height="36" Width="100" Margin="30,0" Command="{Binding OutMaterailCommad}"/>
  42. <!--<TextBlock Text="转盘位置:" Margin="60,0,10,0"/>-->
  43. <!--<ComboBox ItemsSource="{Binding TurntablePosion}"
  44. SelectedIndex="{Binding TurntableID,Mode=TwoWay ,UpdateSourceTrigger=PropertyChanged}"
  45. Margin="10,0" Width="100 " Style="{StaticResource cmbstyle}"/>
  46. <Button Content="转动" Style="{StaticResource buttonNormal}" Height="36" Width="80" Margin="30,0"
  47. Command="{Binding TurntableCommad}"/>-->
  48. </StackPanel>
  49. <CheckBox Grid.Row="2" Content="禁用本地奶茶下单" HorizontalAlignment="Left" Margin="0,10"
  50. HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
  51. IsChecked="{Binding IsEnable}"/>
  52. </Grid>
  53. </GroupItem>
  54. </GroupBox>
  55. <GroupBox Grid.ColumnSpan="2" Grid.Row="1" Header="通道矫正" FontSize="20" BorderThickness="10" Style="{StaticResource GroupBoxStyle1}" Margin="20,10">
  56. <GroupItem>
  57. <Grid Margin="20">
  58. <Grid.RowDefinitions>
  59. <RowDefinition Height="40"/>
  60. <RowDefinition Height="100"/>
  61. <RowDefinition Height="*"/>
  62. </Grid.RowDefinitions>
  63. <Grid.ColumnDefinitions>
  64. <ColumnDefinition Width="140"/>
  65. <ColumnDefinition Width="140"/>
  66. <ColumnDefinition Width="140"/>
  67. <ColumnDefinition Width="140"/>
  68. <ColumnDefinition Width="140"/>
  69. <ColumnDefinition Width="140"/>
  70. <ColumnDefinition Width="140"/>
  71. <ColumnDefinition Width="*"/>
  72. </Grid.ColumnDefinitions>
  73. <TextBlock Text="通道" />
  74. <TextBlock Text="名称" Grid.Column="1"/>
  75. <TextBlock Text="开关" Grid.Column="2"/>
  76. <TextBlock Text="校正后的重量" Grid.Column="5"/>
  77. <TextBlock Text="出料时间" Grid.Column="3"/>
  78. <ComboBox Grid.Row="1" Width="100" Style="{StaticResource cmbstyle}" ItemsSource="{Binding materialPosions}" Height="30"
  79. SelectedIndex="{Binding CorrectPassway ,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectionChanged="ComboBox_SelectionChanged" />
  80. <TextBlock Grid.Row="1" Grid.Column="1" ></TextBlock>
  81. <CheckBox x:Name="OpenIsCheck"
  82. Grid.Row="1" Grid.Column="2" Style="{StaticResource OpenCheckBoxStyle1}" Height="40"
  83. IsChecked="{Binding PasswayIsOpen,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  84. Command="{Binding OpenPasswayCommand}"/>
  85. <TextBox Text="{Binding CorrectMatetailWeight,Mode=TwoWay}" Grid.Row="1" Grid.Column="5" Width="60" Height="30"></TextBox>
  86. <TextBlock Text="克" Grid.Row="1" Grid.Column="5" HorizontalAlignment="Right" Margin="0,0,10,0"></TextBlock>
  87. <TextBox Text="{Binding OutTime}" Grid.Row="1" Grid.Column="3" Width="60" Height="30"></TextBox>
  88. <TextBlock Text="秒" Grid.Row="1" Grid.Column="3" HorizontalAlignment="Right" Margin="0,0,16,0"></TextBlock>
  89. <TextBlock Text="矫正方法" Grid.Column="7"/>
  90. <Button Content="开始矫正" Style="{StaticResource buttonNormal}"
  91. Grid.Row="1" Grid.Column="4" HorizontalAlignment="Center"
  92. Height="40" Width="120"
  93. Command="{Binding CheckPasswayCommad}"/>
  94. <Button Content="确认重量" Style="{StaticResource buttonNormal}"
  95. Grid.Row="1" Grid.Column="6" HorizontalAlignment="Center"
  96. Height="40" Width="120"
  97. Command="{Binding CheckMaterailWeightCommand}"/>
  98. <TextBlock Text=" 准备好校正电子秤,打开需要校正的通道,点击“开始校正”的按钮,填入校正后的重量并确认。"
  99. Margin="6,0" TextWrapping="Wrap"
  100. Grid.Column="7" Grid.Row="1" />
  101. </Grid>
  102. </GroupItem>
  103. </GroupBox>
  104. <GroupBox Grid.ColumnSpan="2" Grid.Row="2" Header="设备配置" FontSize="20" BorderThickness="10" Style="{StaticResource GroupBoxStyle1}" Margin="20,10">
  105. <Grid Margin="30,5">
  106. <Grid.ColumnDefinitions>
  107. <ColumnDefinition Width="100"/>
  108. <ColumnDefinition Width="90"/>
  109. <ColumnDefinition Width="110"/>
  110. <ColumnDefinition Width="90"/>
  111. <ColumnDefinition Width="60"/>
  112. <ColumnDefinition Width="60"/>
  113. <ColumnDefinition/>
  114. </Grid.ColumnDefinitions>
  115. <Grid.RowDefinitions>
  116. <RowDefinition Height="*"/>
  117. <RowDefinition Height="*"/>
  118. <RowDefinition Height="*"/>
  119. <RowDefinition Height="*"/>
  120. <RowDefinition Height="10"/>
  121. </Grid.RowDefinitions>
  122. <TextBlock Text="店铺名称:" Grid.ColumnSpan="2" FontSize="22" Height="28" Width="94" HorizontalAlignment="Left" Margin="20,0"/>
  123. <TextBox Text="{Binding ShopName}" Grid.Column="2" Grid.ColumnSpan="2" Margin="-20,10,30,10" VerticalContentAlignment="Center"/>
  124. <TextBlock Text="店铺ID:" Grid.Row="1" Height="23" Width="60" HorizontalAlignment="Left" Margin="20,0"/>
  125. <TextBlock Text="设备ID:" Grid.Column="2" Grid.Row="1" Height="23" Width="60" />
  126. <TextBox Text="{Binding ShopID}" Width="60" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" VerticalContentAlignment="Center" Margin="0,12"/>
  127. <TextBox Text="{Binding DeviceID}" Width="60" Grid.Column="3" Grid.Row="1" HorizontalAlignment="Left" VerticalContentAlignment="Center" Margin="0,12"/>
  128. <RadioButton Content="网口" GroupName="a" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" VerticalContentAlignment="Center"
  129. Command="{Binding ChangeCommunationCommand}"/>
  130. <StackPanel Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Orientation="Horizontal" Visibility="{Binding VsIP}"
  131. HorizontalAlignment="Center" VerticalAlignment="Center">
  132. <TextBlock Text="IP:" Height="23" Margin="20,0"/>
  133. <TextBox Text="{Binding PLCAdress}" Margin="0,10,30,10" Width="160"
  134. VerticalContentAlignment="Center"/>
  135. </StackPanel>
  136. <RadioButton Content="串口" GroupName="a" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center" VerticalContentAlignment="Center"
  137. IsChecked="{Binding IsPort}" Command="{Binding ChangeCommunationCommand}"/>
  138. <StackPanel Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="3" Orientation="Horizontal" Visibility="{Binding VsPort}">
  139. <TextBlock Text="串口号:" />
  140. <ComboBox Style="{DynamicResource cmbstyle}" Height="26" Width="100" ItemsSource="{Binding Ports}"
  141. SelectedValue="{Binding Prot}"/>
  142. </StackPanel>
  143. <Button Style="{StaticResource buttonNormal}"
  144. Grid.Column="4" Grid.ColumnSpan="2" Grid.Row="0" Grid.RowSpan="3"
  145. Height="130" Width="80"
  146. Command="{Binding SaveDevicesCommand}">
  147. <Grid>
  148. <Grid.RowDefinitions>
  149. <RowDefinition Height="*"/>
  150. <RowDefinition Height="10"/>
  151. <RowDefinition Height="*"/>
  152. </Grid.RowDefinitions>
  153. <TextBlock Text="保存" TextWrapping="Wrap" Foreground="White" FontSize="20" />
  154. <TextBlock Text="配置" TextWrapping="Wrap" Foreground="White" FontSize="20" Grid.Row="2"/>
  155. </Grid>
  156. </Button>
  157. </Grid>
  158. </GroupBox>
  159. </Grid>
  160. </UserControl>