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

114 lines
7.1 KiB

  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="800" d:DesignWidth="1400" Background="Transparent" >
  10. <UserControl.DataContext>
  11. <vm:PatrameterSettiongViewModel/>
  12. </UserControl.DataContext>
  13. <UserControl.Resources>
  14. <Style TargetType="TextBlock">
  15. <Setter Property="FontSize" Value="18"/>
  16. <Setter Property="Foreground" Value="DarkSlateGray"/>
  17. <Setter Property="VerticalAlignment" Value="Center"/>
  18. <Setter Property="HorizontalAlignment" Value="Center"/>
  19. <Setter Property="FontSize" Value="18"/>
  20. </Style>
  21. </UserControl.Resources>
  22. <Grid Background="#F3F6F9" Margin="20" >
  23. <Grid.ColumnDefinitions>
  24. <ColumnDefinition Width="*"/>
  25. <ColumnDefinition Width="*"/>
  26. </Grid.ColumnDefinitions>
  27. <Grid.RowDefinitions>
  28. <RowDefinition Height="300"/>
  29. <RowDefinition Height="*"/>
  30. </Grid.RowDefinitions>
  31. <GroupBox Grid.ColumnSpan="2" Header="参数调试" FontSize="20" Style="{StaticResource GroupBoxStyle1}" Padding="40,20">
  32. <GroupItem>
  33. <Grid>
  34. <Grid.RowDefinitions>
  35. <RowDefinition Height="*"/>
  36. <RowDefinition Height="20"/>
  37. <RowDefinition Height="*"/>
  38. </Grid.RowDefinitions>
  39. <StackPanel Orientation="Horizontal">
  40. <TextBlock Text="通道口:"/>
  41. <ComboBox ItemsSource="{Binding materialPosions}"
  42. SelectedIndex="{Binding MaterialID ,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  43. Margin="10,0" Width="120 " Style="{StaticResource cmbstyle}"/>
  44. <TextBlock Text="出料量:" Margin="10,0,0,0" />
  45. <TextBox Text="{Binding OutMaterailWeight}" Width="60" Margin="10,0" VerticalContentAlignment="Center"/>
  46. <TextBlock Text="g" Margin="2,0"/>
  47. <Button Content="出料" Style="{StaticResource buttonNormal}" Height="36" Width="100" Margin="30,0" Command="{Binding OutMaterailCommad}"/>
  48. <TextBlock Text="转盘位置:" Margin="60,0,10,0"/>
  49. <ComboBox ItemsSource="{Binding TurntablePosion}"
  50. SelectedIndex="{Binding TurntableID,Mode=TwoWay ,UpdateSourceTrigger=PropertyChanged}"
  51. Margin="10,0" Width="100 " Style="{StaticResource cmbstyle}"/>
  52. <Button Content="转动" Style="{StaticResource buttonNormal}" Height="36" Width="80" Margin="30,0"
  53. Command="{Binding TurntableCommad}"/>
  54. </StackPanel>
  55. <CheckBox Grid.Row="2" Content="禁用本地奶茶下单" HorizontalAlignment="Left" Margin="0,10"
  56. HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
  57. IsChecked="{Binding IsEnable}"/>
  58. </Grid>
  59. </GroupItem>
  60. </GroupBox>
  61. <GroupBox Grid.ColumnSpan="2" Grid.Row="1" Header="通道矫正" FontSize="20" BorderThickness="10" Style="{StaticResource GroupBoxStyle1}">
  62. <GroupItem>
  63. <Grid Margin="20">
  64. <Grid.RowDefinitions>
  65. <RowDefinition Height="40"/>
  66. <RowDefinition Height="100"/>
  67. <RowDefinition Height="*"/>
  68. </Grid.RowDefinitions>
  69. <Grid.ColumnDefinitions>
  70. <ColumnDefinition Width="140"/>
  71. <ColumnDefinition Width="140"/>
  72. <ColumnDefinition Width="140"/>
  73. <ColumnDefinition Width="140"/>
  74. <ColumnDefinition Width="140"/>
  75. <ColumnDefinition Width="140"/>
  76. <ColumnDefinition Width="140"/>
  77. <ColumnDefinition Width="*"/>
  78. </Grid.ColumnDefinitions>
  79. <TextBlock Text="通道" />
  80. <TextBlock Text="名称" Grid.Column="1"/>
  81. <TextBlock Text="开关" Grid.Column="2"/>
  82. <TextBlock Text="校正后的重量" Grid.Column="5"/>
  83. <TextBlock Text="出料时间" Grid.Column="3"/>
  84. <ComboBox Grid.Row="1" Width="100" Style="{StaticResource cmbstyle}" ItemsSource="{Binding materialPosions}"
  85. SelectedIndex="{Binding CorrectPassway ,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectionChanged="ComboBox_SelectionChanged" />
  86. <TextBlock Grid.Row="1" Grid.Column="1" ></TextBlock>
  87. <CheckBox x:Name="OpenIsCheck"
  88. Grid.Row="1" Grid.Column="2" Style="{StaticResource OpenCheckBoxStyle1}" Height="40"
  89. IsChecked="{Binding PasswayIsOpen,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  90. Command="{Binding OpenPasswayCommand}"/>
  91. <TextBox Text="{Binding CorrectMatetailWeight,Mode=TwoWay}" Grid.Row="1" Grid.Column="5" Width="60" Height="30"></TextBox>
  92. <TextBlock Text="克" Grid.Row="1" Grid.Column="5" HorizontalAlignment="Right" Margin="0,0,10,0"></TextBlock>
  93. <TextBox Text="{Binding OutTime}" Grid.Row="1" Grid.Column="3" Width="60" Height="30"></TextBox>
  94. <TextBlock Text="秒" Grid.Row="1" Grid.Column="3" HorizontalAlignment="Right" Margin="0,0,16,0"></TextBlock>
  95. <TextBlock Text="矫正方法" Grid.Column="7"/>
  96. <Button Content="开始矫正" Style="{StaticResource buttonNormal}"
  97. Grid.Row="1" Grid.Column="4" HorizontalAlignment="Center"
  98. Height="40" Width="120"
  99. Command="{Binding CheckPasswayCommad}"/>
  100. <Button Content="确认重量" Style="{StaticResource buttonNormal}"
  101. Grid.Row="1" Grid.Column="6" HorizontalAlignment="Center"
  102. Height="40" Width="120"
  103. Command="{Binding CheckMaterailWeightCommand}"/>
  104. <TextBlock Text=" 准备好校正电子秤,打开需要校正的通道,点击“开始校正”的按钮,填入校正后的重量并确认。"
  105. Margin="6,0" TextWrapping="Wrap"
  106. Grid.Column="7" Grid.Row="1" />
  107. </Grid>
  108. </GroupItem>
  109. </GroupBox>
  110. </Grid>
  111. </UserControl>