6 changed files with 376 additions and 0 deletions
@ -0,0 +1,12 @@ |
|||||
|
<UserControl x:Class="BBWY.Client.Views.SealBox.SealBoxConfiguredControl" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:local="clr-namespace:BBWY.Client.Views.SealBox" |
||||
|
mc:Ignorable="d" |
||||
|
d:DesignHeight="450" d:DesignWidth="800"> |
||||
|
<Grid> |
||||
|
|
||||
|
</Grid> |
||||
|
</UserControl> |
@ -0,0 +1,26 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace BBWY.Client.Views.SealBox |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// SealBoxConfiguredControl.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class SealBoxConfiguredControl : UserControl |
||||
|
{ |
||||
|
public SealBoxConfiguredControl() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,299 @@ |
|||||
|
<UserControl x:Class="BBWY.Client.Views.SealBox.SealBoxWaitConfigureControl" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:local="clr-namespace:BBWY.Client.Views.SealBox" |
||||
|
mc:Ignorable="d" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters" Background="White" |
||||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
||||
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models" |
||||
|
DataContext="{Binding TaskList,Source={StaticResource Locator}}" |
||||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
||||
|
d:DesignHeight="450" d:DesignWidth="1500"> |
||||
|
<UserControl.Resources> |
||||
|
<ObjectDataProvider x:Key="storageTypeProvider" MethodName="GetValues" ObjectType="{x:Type sys:Enum}"> |
||||
|
<ObjectDataProvider.MethodParameters> |
||||
|
<x:Type TypeName="cmodel:StorageType"/> |
||||
|
</ObjectDataProvider.MethodParameters> |
||||
|
</ObjectDataProvider> |
||||
|
<ctr:OrderStorageTypeOptionConverter x:Key="ostConverter"/> |
||||
|
<ctr:ProfitRatioConverter x:Key="profitRatioConverter"/> |
||||
|
<ctr:WaybillNoConverter x:Key="waybillConverter"/> |
||||
|
<ctr:MultiParameterTransferConverter x:Key="mptConverter"/> |
||||
|
<ctr:SaleGrossProfitConverter x:Key="sgpcConverter"/> |
||||
|
</UserControl.Resources> |
||||
|
<Grid> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="35"/> |
||||
|
<RowDefinition /> |
||||
|
</Grid.RowDefinitions> |
||||
|
|
||||
|
|
||||
|
<Border BorderBrush="{StaticResource Border.Brush}" BorderThickness="1,1,1,0" |
||||
|
Background="#F2F2F2"> |
||||
|
<Grid> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="80"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<TextBlock Text="商品信息" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text="数量" Grid.Column="1" Style="{StaticResource middleTextBlock}"/> |
||||
|
<!--<TextBlock Text="封箱数量" Grid.Column="2" Style="{StaticResource middleTextBlock}"/>--> |
||||
|
<TextBlock Text=" " Grid.Column="2" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text="操作" Grid.Column="3" Style="{StaticResource middleTextBlock}"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}"/>--> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/>--> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="6"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="7"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="8"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="9"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="10"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="11"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/>--> |
||||
|
|
||||
|
<!--<Border Height="1" VerticalAlignment="Top" Background="{StaticResource Border.Brush}" Grid.ColumnSpan="6"/>--> |
||||
|
</Grid> |
||||
|
</Border> |
||||
|
<ListBox x:Name="listbox_order" |
||||
|
Grid.Row="7" |
||||
|
ItemsSource="{Binding WaitSealBoxModels}" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
||||
|
BorderBrush="{StaticResource Border.Brush}" |
||||
|
BorderThickness="1,1,1,0" |
||||
|
Foreground="{StaticResource Text.Color}"> |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_order,Converter={StaticResource widthConverter},ConverterParameter=-0}" |
||||
|
MinHeight="100"> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="30"/> |
||||
|
<RowDefinition MinHeight="90"/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Grid Background="#F2F2F2" > |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="80"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.ColumnSpan="11"> |
||||
|
|
||||
|
<TextBlock Text="店铺:" Style="{StaticResource middleTextBlock}" Margin="10 0 0 0"/> |
||||
|
<c:BButton Content="{Binding ShopName}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding ShopName}" |
||||
|
Margin=" 5,0,7,0"/> |
||||
|
|
||||
|
<StackPanel Orientation="Horizontal" |
||||
|
Visibility="Collapsed" > |
||||
|
<TextBlock VerticalAlignment="Center" Text="仓库:" Margin="16,0,0,0" /> |
||||
|
<c:BButton Content="{Binding WareName}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding WareName}" |
||||
|
Margin=" 5,0,7,0"/> |
||||
|
</StackPanel> |
||||
|
|
||||
|
|
||||
|
<!--<Label Width="70" Height="25" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" VerticalAlignment="Center" Content="{Binding TaskState}" Foreground="White" Background="{Binding TaskState,Converter={StaticResource objConverter} , ConverterParameter=已完成:#02a7f0:#facd91 }" Margin="5,0,0,0"/>--> |
||||
|
|
||||
|
<TextBlock VerticalAlignment="Center" Text="部门:" Margin="14,0,0,0" /> |
||||
|
<c:BButton Content="{Binding DepartmentName}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding DepartmentName}" |
||||
|
Margin=" 5,0,0,0"/> |
||||
|
|
||||
|
<TextBlock VerticalAlignment="Center" Text="对接人:" Margin="16,0,0,0" /> |
||||
|
<TextBlock VerticalAlignment="Center" Text="{Binding AcceptUserName}" Margin="5,0,0,0" /> |
||||
|
</StackPanel> |
||||
|
|
||||
|
</Grid> |
||||
|
<Grid Grid.Row="1"> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="80"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
|
||||
|
<ListBox x:Name="listbox_orerSku" ItemsSource="{Binding SealBoxSkus}" |
||||
|
Style="{StaticResource NoScrollViewListBoxStyle}" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" > |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid MinHeight="100" Width="{Binding ActualWidth,ElementName=listbox_orerSku}"> |
||||
|
<Grid> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="90"/> |
||||
|
<ColumnDefinition/> |
||||
|
<ColumnDefinition/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
|
||||
|
<!--{Binding Logo}--> |
||||
|
<c:BAsyncImage UrlSource="{Binding Logo}" |
||||
|
Width="80" DecodePixelWidth="80" |
||||
|
VerticalAlignment="Top" Margin="11,10,0,10" |
||||
|
Cursor="Hand"> |
||||
|
<b:Interaction.Triggers> |
||||
|
<b:EventTrigger EventName="PreviewMouseLeftButtonDown"> |
||||
|
<b:InvokeCommandAction Command="{Binding DataContext.OpenSkuDetailCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}"> |
||||
|
<b:InvokeCommandAction.CommandParameter> |
||||
|
<MultiBinding Converter="{StaticResource mptConverter}"> |
||||
|
<Binding Path="SkuId"/> |
||||
|
</MultiBinding> |
||||
|
</b:InvokeCommandAction.CommandParameter> |
||||
|
</b:InvokeCommandAction> |
||||
|
</b:EventTrigger> |
||||
|
</b:Interaction.Triggers> |
||||
|
</c:BAsyncImage> |
||||
|
|
||||
|
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="8,15,0,10"> |
||||
|
<StackPanel Orientation="Horizontal" Margin="0 0 0 13"> |
||||
|
<TextBlock Text="SKU:" Style="{StaticResource middleTextBlock}" /> |
||||
|
<c:BButton Content="{Binding SkuId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding SkuId}" |
||||
|
Margin=" 5,0,0,0"/> |
||||
|
</StackPanel> |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextTrimming="CharacterEllipsis"> |
||||
|
<TextBlock.ToolTip> |
||||
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
||||
|
<TextBlock Text="{Binding SkuTitle,Mode=TwoWay}"/> |
||||
|
</ToolTip> |
||||
|
</TextBlock.ToolTip> |
||||
|
<Run Text="SKU名称:"/> |
||||
|
<Run Text="{Binding SkuTitle}"/> |
||||
|
</TextBlock> |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextWrapping="Wrap" Margin="0,13,0 0"> |
||||
|
<Run Text="品名:"/> |
||||
|
<Run Text="{Binding BrandName}"/> |
||||
|
</TextBlock> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
</StackPanel> |
||||
|
<StackPanel Orientation="Vertical" Grid.Column="2" Margin="20,15,0,10"> |
||||
|
<StackPanel Orientation="Horizontal" > |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}"> |
||||
|
<Run Text="货号:" /> |
||||
|
</TextBlock> |
||||
|
<c:BButton Content="{Binding ProductNo}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Top" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding ProductNo}" |
||||
|
Margin=" 5,0,0,0"/> |
||||
|
</StackPanel> |
||||
|
<StackPanel Grid.Column="2" Orientation="Horizontal" Margin="0,13,0,5"> |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}"> |
||||
|
<Run Text="任务ID:" /> |
||||
|
</TextBlock> |
||||
|
<c:BButton Content="{Binding TaskId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Top" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding TaskId}" |
||||
|
Margin=" 5,0,0,0"/> |
||||
|
</StackPanel> |
||||
|
|
||||
|
</StackPanel> |
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
<Border Grid.Row="0" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
|
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="0"/> |
||||
|
<ListBox x:Name="listbox_skuCount" ItemsSource="{Binding SealBoxSkus}" |
||||
|
Style="{StaticResource NoScrollViewListBoxStyle}" Grid.Column="1" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" > |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid MinHeight="100" Width="{Binding ActualWidth,ElementName=listbox_skuCount}"> |
||||
|
<Grid> |
||||
|
<TextBlock x:Name="txt_storeName" |
||||
|
Text="{Binding SkuCount}" |
||||
|
TextWrapping="Wrap" |
||||
|
HorizontalAlignment="Center" VerticalAlignment="Center" |
||||
|
/> |
||||
|
</Grid> |
||||
|
|
||||
|
<Border Grid.Row="0" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
|
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
<!--<Grid Grid.Column="2" > |
||||
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> |
||||
|
|
||||
|
|
||||
|
<c:BButton Grid.Column="11" HorizontalAlignment="Stretch" Style="{StaticResource LinkButton}" VerticalAlignment="Center" Content="设置" |
||||
|
Command="{Binding DataContext.SetSealBoxCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding}" |
||||
|
> |
||||
|
|
||||
|
</c:BButton> |
||||
|
|
||||
|
|
||||
|
|
||||
|
</StackPanel> |
||||
|
</Grid>--> |
||||
|
<Grid Grid.Column="2" > |
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
<Grid Grid.Column="3" > |
||||
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> |
||||
|
|
||||
|
|
||||
|
<c:BButton Grid.Column="11" HorizontalAlignment="Stretch" Style="{StaticResource LinkButton}" VerticalAlignment="Center" Content="完成" |
||||
|
Command="{Binding DataContext.CompeteSealBoxCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding}" |
||||
|
|
||||
|
> |
||||
|
|
||||
|
</c:BButton> |
||||
|
<!-- Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待打包:Visible:Collapsed}" --> |
||||
|
|
||||
|
|
||||
|
</StackPanel> |
||||
|
</Grid> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3" Margin="0 0 2 0"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4" Margin="0 0 1 0"/>--> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/>--> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="6"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="7"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="8"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="9"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="10"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="11"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="13"/>--> |
||||
|
|
||||
|
</Grid> |
||||
|
<Border Grid.Row="1" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
|
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
</Grid> |
||||
|
</UserControl> |
@ -0,0 +1,26 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace BBWY.Client.Views.SealBox |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// SealBoxNoConfigureControl.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class SealBoxWaitConfigureControl : UserControl |
||||
|
{ |
||||
|
public SealBoxWaitConfigureControl() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue