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.
110 lines
5.9 KiB
110 lines
5.9 KiB
<c:BWindow x:Class="BBWY.Client.Views.PackTask.SetBarCodeWindow"
|
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
|
|
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:BBWY.Client.Views.PackTask"
|
|
mc:Ignorable="d"
|
|
Style="{StaticResource bwstyle}"
|
|
Height="400" Width="600"
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters"
|
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
DataContext="{Binding CreateTaskView,Source={StaticResource Locator}}"
|
|
CloseButtonVisibility="Visible"
|
|
CloseButtonColor="{StaticResource WindowButtonColor}"
|
|
MinButtonVisibility="Collapsed"
|
|
MaxButtonVisibility="Collapsed"
|
|
RightButtonGroupMargin="0,5,5,0">
|
|
<!-- DataContext="{Binding CreateSetBarCodeView,Source={StaticResource Locator}}"-->
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition/>
|
|
<RowDefinition Height="40"/>
|
|
</Grid.RowDefinitions>
|
|
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}"
|
|
Background="{StaticResource Border.Background}">
|
|
<TextBlock Text="设置条形码" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
|
|
<Grid Grid.Row="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Orientation="Vertical" >
|
|
<RadioButton GroupName="bar" IsChecked="{Binding BarCodeModel.LabelModel,Converter={StaticResource objConverter},ConverterParameter=barsimplify:true:false }" Command="{Binding BarLabelCheckCommand}" CommandParameter="{x:Static cmodel:BarcodeLabelModel.barsimplify}" Content="精简" Margin="10,20,0,0" Height="30" VerticalAlignment="Top"/>
|
|
<Border BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" Height="220" Margin="5">
|
|
<StackPanel Orientation="Vertical" >
|
|
|
|
|
|
<TextBlock Margin="10,25,10,0" FontSize="15" FontWeight="Black" >
|
|
<Run Text="品名:"/>
|
|
<Run Text="{Binding BarCodeModel.BrandName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
</TextBlock>
|
|
|
|
<TextBlock Margin="10,25,10,0" FontSize="15" FontWeight="Black" >
|
|
<Run Text="规格:"/>
|
|
<Run Text="{Binding BarCodeModel.SkuName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
</TextBlock>
|
|
<Image Source="/resources/images/barcode.png" Margin="10,25,10,0"/>
|
|
<TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" >
|
|
<Run Text="{Binding BarCodeModel.SkuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
</TextBlock>
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Vertical" >
|
|
<RadioButton GroupName="bar" IsChecked="{Binding BarCodeModel.LabelModel,Converter={StaticResource objConverter},ConverterParameter=barstander:true:false }" Content="标准" Command="{Binding BarLabelCheckCommand}" CommandParameter="{x:Static cmodel:BarcodeLabelModel.barstander}" Margin="10,20,0,0" Height="30" VerticalAlignment="Top"/>
|
|
<Border BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" Height="220" Margin="5">
|
|
<StackPanel Orientation="Vertical" >
|
|
|
|
<TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" >
|
|
<Run Text="品牌:"/>
|
|
<Run Text="{Binding BarCodeModel.Brand}"/>
|
|
</TextBlock>
|
|
<TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" >
|
|
<Run Text="品名:"/>
|
|
<Run Text="{Binding BarCodeModel.BrandName}"/>
|
|
</TextBlock>
|
|
<TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" >
|
|
<Run Text="型号:"/>
|
|
<Run Text="{Binding BarCodeModel.ProductNo}"/>
|
|
</TextBlock>
|
|
<TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" >
|
|
<Run Text="规格:"/>
|
|
<Run Text="{Binding BarCodeModel.SkuName}"/>
|
|
</TextBlock>
|
|
<Image Source="/resources/images/barcode.png" Margin="10,10,10,0"/>
|
|
<TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" >
|
|
<Run Text="{Binding BarCodeModel.SkuId}"/>
|
|
</TextBlock>
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
<Border Grid.Row="2" Height="1" VerticalAlignment="Top" BorderBrush="{StaticResource Border.Background}" BorderThickness="1"/>
|
|
<c:BButton Background="{StaticResource Button.Background}" Grid.Row="2" Content="保存" HorizontalAlignment="Right" Width="100" VerticalAlignment="Stretch"
|
|
Command="{Binding SaveBarCodeCommand}" />
|
|
</Grid>
|
|
</c:BWindow>
|
|
|