|
- <UserControl
- x:Class="BPASmartClient.MorkCL.View.ParSet"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.MorkCL.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
- xmlns:vm="clr-namespace:BPASmartClient.MorkCL.ViewModel"
- Name="参数设置"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
- <UserControl.DataContext>
- <vm:ParSetViewModel />
- </UserControl.DataContext>
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
-
- <Grid Margin="10">
- <Grid.RowDefinitions>
- <RowDefinition Height="50" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="1*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*" />
- <ColumnDefinition Width="1*" />
- </Grid.ColumnDefinitions>
- <pry:ImageBorder Grid.RowSpan="9" Grid.ColumnSpan="9" />
- <StackPanel
- Grid.ColumnSpan="2"
- Margin="5"
- HorizontalAlignment="Right"
- Orientation="Horizontal">
-
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="请点击按钮保存参数:" />
-
- <Button
- Grid.Column="5"
- Width="100"
- Height="40"
- HorizontalAlignment="Left"
- Command="{Binding SaveInfoCommand}"
- Content="保存配置"
- FontSize="16" />
- </StackPanel>
-
- <StackPanel Grid.Row="1" Margin="20,0,0,0">
- <CheckBox
- Margin="5"
- Content="连接炒锅1#"
- FontSize="24"
- IsChecked="{Binding Param.FryPanConnect_1}" />
- <CheckBox
- Margin="5"
- Content="连接炒锅2#"
- FontSize="24"
- IsChecked="{Binding Param.FryPanConnect_2}" />
- <CheckBox
- Margin="5"
- Content="连接机器人"
- FontSize="24"
- IsChecked="{Binding Param.RobotConnet}" />
- <CheckBox
- Margin="5"
- Content="连接外部设备(电子秤以及空盘仓位传感器)"
- FontSize="24"
- IsChecked="{Binding Param.OtherDeviceConnect}" />
- </StackPanel>
- <!-- 分位逻辑有问题,暂时不开放 -->
- <!--<StackPanel Grid.Row="1" Grid.Column="2" >
- <CheckBox
- Margin="5"
- Content="辅料库位根据炒锅区分位置" IsChecked="{Binding Param.IsUseSplitStorage}"
- FontSize="16" />
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="1#炒锅辅料最小位置:" />
- <TextBox
- Width="100"
- Height="30"
- HorizontalContentAlignment="Center"
- d:Text="1"
- FontSize="22"
- Text="{Binding Param.FryPanAccessoriesMin_1}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="1#炒锅辅料最大位置:" />
- <TextBox
- Width="100"
- Height="30"
- HorizontalContentAlignment="Center"
- d:Text="4"
- FontSize="22"
- Text="{Binding Param.FryPanAccessoriesMax_1}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="2#炒锅辅料最小位置:" />
- <TextBox
- Width="100"
- Height="30"
- HorizontalContentAlignment="Center"
- d:Text="5"
- FontSize="22"
- Text="{Binding Param.FryPanAccessoriesMin_2}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="2#炒锅辅料最大位置:" />
- <TextBox
- Width="100"
- Height="30"
- HorizontalContentAlignment="Center"
- d:Text="8"
- FontSize="22"
- Text="{Binding Param.FryPanAccessoriesMax_2}" />
- </StackPanel>
- </StackPanel>-->
- <!--<StackPanel Grid.Row="2" Margin="5">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="主料重量偏差值(Kg):"/>
- <TextBox Text="{Binding Param.IngredientsDeviation}" Width="100" Height="30" d:Text="1.23" FontSize="22"/>
- </StackPanel>
- </StackPanel>-->
- </Grid>
-
- </UserControl>
|