<Window x:Class="MegaRobo.C00225155App.MenuViews.EditLiquidBottlePropertiesWindow"
        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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:MegaRobo.C00225155App.MenuViews"
        mc:Ignorable="d" WindowStyle="ToolWindow"
        Title="液体原液瓶参数设置" Height="400" Width="550" WindowStartupLocation="CenterScreen">
    <Grid ShowGridLines="false">
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="60"/>
            <RowDefinition Height="60"/>
            <RowDefinition Height="60"/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="60"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="2*"/>
            <ColumnDefinition Width="3*"/>
        </Grid.ColumnDefinitions>
        <StackPanel  Orientation="Horizontal" Grid.Row="0" Grid.Column="0"  VerticalAlignment="Center" Grid.ColumnSpan="3" >
            <TextBlock Text="工装号：" Style="{StaticResource txtBlockBaseStyle}" />
            <TextBlock Text="{Binding LiquidBottle.BoxSNCode,Mode=OneWay}" Style="{StaticResource txtBlockStyle}"/>
            <TextBlock Text="位置：" Style="{StaticResource txtBlockBaseStyle}" />
            <TextBlock Text="{Binding LiquidBottle.PosId_InBox,Mode=OneWay}" Style="{StaticResource txtBlockStyle}"/>
            <TextBlock Text="是否有原液瓶：" Style="{StaticResource txtBlockBaseStyle}" Margin="30,0,0,0"/>
            <CheckBox IsChecked="{Binding LiquidBottle.HaveBottle,Mode=TwoWay,FallbackValue=False}" IsEnabled="True"  Margin="0,3"/>
            <!-- Foreground="#FFDA2626"-->
        </StackPanel>
        <StackPanel  Orientation="Horizontal" Grid.Row="1" Grid.Column="0"  VerticalAlignment="Center" Grid.ColumnSpan="2" >
            <TextBlock Text="液体名称：" Style="{StaticResource txtBlockBaseStyle}" />
            <TextBox Text="{Binding LiquidBottle.SourceLiquidName,Mode=TwoWay}"  Style="{StaticResource textBoxStyle}"/>
        </StackPanel>
        <StackPanel  Orientation="Horizontal"  Grid.Row="1" Grid.Column="2" VerticalAlignment="Center" Grid.ColumnSpan="2">
            <TextBlock Text="二维码：" Style="{StaticResource txtBlockBaseStyle}" />
            <TextBox Text="{Binding LiquidBottle.SNCode}"  Style="{StaticResource textBoxStyle}" />
        </StackPanel>

        <StackPanel  Orientation="Horizontal" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Center" >
            <TextBlock Text="液体体积：" Style="{StaticResource txtBlockBaseStyle}"/>
            <TextBox Text="{Binding LiquidBottle.OriginVolume,StringFormat=F3,Mode=TwoWay}"  Style="{StaticResource textBoxStyle}"/>
        </StackPanel>

        <StackPanel Orientation="Horizontal" Grid.Row="2"  Grid.Column="2" VerticalAlignment="Center">
            <TextBlock Text="液体剩余体积：" Style="{StaticResource txtBlockBaseStyle}" />
            <TextBlock Text="{Binding LiquidBottle.RemainVolume,StringFormat=F3,Mode=TwoWay}" Style="{StaticResource txtBlockStyle}"/>
        </StackPanel>
        <!--<GroupBox  Header="加热温度配置" Grid.Row="3" Grid.RowSpan="3" Grid.ColumnSpan="3" BorderBrush="LightGray" BorderThickness="2" IsEnabled="{Binding LiquidBottle.IsNeedHeat}">
            <StackPanel >
                <StackPanel Orientation="Horizontal" Margin="20">
                    <TextBlock Text="是否需要加热：" Style="{StaticResource txtBlockBaseStyle}" />
                    <CheckBox IsChecked="{Binding LiquidBottle.IsNeedHeat,Mode=TwoWay}" Margin="5,0"/>
                </StackPanel>
                -->
        <!--<StackPanel  Orientation="Horizontal" Margin="10">
                    <TextBlock Text="需要加热温度：" Style="{StaticResource txtBlockBaseStyle}"  Margin="20,0,5,0"/>
                    <TextBox Text="{Binding LiquidBottle.LiquidHeatParam.HeatTemperature,StringFormat=F3,Mode=TwoWay}"  Style="{StaticResource textBoxStyle}"/>
                </StackPanel>-->
        <!--
            </StackPanel>
        </GroupBox>-->
        <Button Content="保存"  Click="SaveButton_Click"  Style="{DynamicResource okBtnStyle}" Grid.Row="6"  Grid.Column="2" Margin="80,0,0,0"/>
    </Grid>
</Window>
