24 changed files with 1456 additions and 201 deletions
@ -0,0 +1,83 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.APIModel |
||||
|
{ |
||||
|
public class SearchStoreGetSelfResponse |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 总条数
|
||||
|
/// </summary>
|
||||
|
public int TotalCount { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 商家自取记录列表
|
||||
|
/// </summary>
|
||||
|
public List<StoreGetSelfData> StoreGetSelfResponseList { get; set; } |
||||
|
|
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 单挑自取记录数据
|
||||
|
/// </summary>
|
||||
|
public class StoreGetSelfData:NotifyObject |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 打包任务id
|
||||
|
/// </summary>
|
||||
|
public long TaskId { get; set; } |
||||
|
///// <summary>
|
||||
|
///// 取货时间
|
||||
|
///// </summary>
|
||||
|
//public DateTime OperatorTime { get; set; }
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 取货人
|
||||
|
/// </summary>
|
||||
|
public string PickerUserName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 自取数量
|
||||
|
/// </summary>
|
||||
|
public int StoreGetCount { get; set; } |
||||
|
|
||||
|
#region 任务信息
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 任务创建时间
|
||||
|
/// </summary>
|
||||
|
public DateTime? CreateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 店铺
|
||||
|
/// </summary>
|
||||
|
public string ShopName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 团队
|
||||
|
/// </summary>
|
||||
|
public string DepartmentName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 商品sku
|
||||
|
/// </summary>
|
||||
|
public string SkuId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 图片
|
||||
|
/// </summary>
|
||||
|
public string Logo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 商品sku标题名称
|
||||
|
/// </summary>
|
||||
|
public string SkuName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 商品品名
|
||||
|
/// </summary>
|
||||
|
public string BrandName { get; set; } |
||||
|
|
||||
|
#endregion
|
||||
|
} |
||||
|
} |
@ -0,0 +1,11 @@ |
|||||
|
using BBWY.Common.Models; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.ViewModels.PackTask |
||||
|
{ |
||||
|
public class StorePickSelfViewModel:BaseVM,IDenpendency |
||||
|
{ |
||||
|
} |
||||
|
} |
@ -0,0 +1,347 @@ |
|||||
|
<UserControl x:Class="BBWY.Client.Views.StorePickSelf.ShopStorePickSelfControl" |
||||
|
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.StorePickSelf" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters" |
||||
|
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" |
||||
|
mc:Ignorable="d" Background="White" |
||||
|
d:DesignHeight="450" d:DesignWidth="1500"> |
||||
|
<UserControl.Resources> |
||||
|
<ResourceDictionary> |
||||
|
<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"/> |
||||
|
</ResourceDictionary> |
||||
|
|
||||
|
|
||||
|
</UserControl.Resources> |
||||
|
|
||||
|
<Grid> |
||||
|
<!--<StackPanel Panel.ZIndex="100" HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Vertical" Margin="590,15,0,0" |
||||
|
Visibility="{Binding SelectShop,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=部门:Visible:Collapsed}" |
||||
|
> |
||||
|
<c:BTextBox x:Name="tb" Width="150" TextChanged="tb_TextChanged" Text="{Binding SearchDepartment,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="部门名称" |
||||
|
BorderThickness="1 0 0 1" Margin="0 0 0 1" Height="30" |
||||
|
/> |
||||
|
<ListBox MaxHeight="300" x:Name="tipBox" SelectionChanged="SelectionChangeCommand" Background="{StaticResource Border.Background}"> |
||||
|
|
||||
|
</ListBox> |
||||
|
</StackPanel> |
||||
|
<StackPanel Panel.ZIndex="100" HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Vertical" Margin="590,15,0,0" |
||||
|
Visibility="{Binding SelectShop,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=店铺:Visible:Collapsed}" |
||||
|
> |
||||
|
<c:BTextBox x:Name="tbShop" Width="150" Height="30" TextChanged="tbShop_TextChanged" Text="{Binding SearchShopName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="店铺名称" |
||||
|
BorderThickness="1 0 0 1" Margin="0 0 0 1" |
||||
|
/> |
||||
|
<ListBox MaxHeight="300" x:Name="tipBoxShop" SelectionChanged="tipBoxShop_SelectionChanged" Background="{StaticResource Border.Background}"> |
||||
|
|
||||
|
</ListBox> |
||||
|
</StackPanel>--> |
||||
|
<Grid> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="0"/> |
||||
|
<RowDefinition Height="45"/> |
||||
|
<RowDefinition /> |
||||
|
</Grid.RowDefinitions> |
||||
|
<!--<Grid Grid.Row="0" HorizontalAlignment="Stretch" Panel.ZIndex="999" Margin="0,5,0,0" > |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition /> |
||||
|
<ColumnDefinition Width="auto"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
--><!--<StackPanel Orientation="Horizontal" Height="30" > |
||||
|
<StackPanel.Resources> |
||||
|
<ResourceDictionary> |
||||
|
<ResourceDictionary.MergedDictionaries> |
||||
|
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/> |
||||
|
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/> |
||||
|
</ResourceDictionary.MergedDictionaries> |
||||
|
</ResourceDictionary> |
||||
|
</StackPanel.Resources> |
||||
|
<Border CornerRadius="0" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Margin="5,0,0,0"> |
||||
|
<StackPanel Orientation="Horizontal"> |
||||
|
<ComboBox BorderThickness="0" Width="110" VerticalContentAlignment="Center" ItemsSource="{Binding SelectIdList}" HorizontalContentAlignment="Center" Text="{Binding SelectTaskId ,Mode=TwoWay}" /> |
||||
|
<UniformGrid Width="150" Rows="1" Columns="1"> |
||||
|
<c:BTextBox Width="150" BorderThickness="1 0 0 0" WaterRemark="任务ID" Text="{Binding SearchTaskId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" |
||||
|
Visibility="{Binding SelectTaskId,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=任务ID:Visible:Collapsed}" |
||||
|
/> |
||||
|
<c:BTextBox Width="150" BorderThickness="1 0 0 0" WaterRemark="拳探订单号" Text="{Binding SearchOrderSn,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" |
||||
|
Visibility="{Binding SelectTaskId,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=拳探订单号:Visible:Collapsed}" |
||||
|
/> |
||||
|
|
||||
|
</UniformGrid> |
||||
|
</StackPanel> |
||||
|
</Border> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
<Border CornerRadius="0" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Margin="5,0,0,0"> |
||||
|
<StackPanel Orientation="Horizontal"> |
||||
|
<ComboBox BorderThickness="0" Width="80" VerticalContentAlignment="Center" ItemsSource="{Binding SelectSkuList}" HorizontalContentAlignment="Center" Text="{Binding SelectSku ,Mode=TwoWay}" /> |
||||
|
|
||||
|
<UniformGrid Width="150" Rows="1" Columns="1"> |
||||
|
<c:BTextBox Width="150" WaterRemark="SKUID" Text="{Binding SearchSkuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" |
||||
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectSku,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=SKU:Visible:Collapsed}" |
||||
|
/> |
||||
|
<c:BTextBox Width="150" WaterRemark="SPUID" Text="{Binding SearchSpuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" |
||||
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectSku,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=SPU:Visible:Collapsed}" |
||||
|
/> |
||||
|
|
||||
|
</UniformGrid> |
||||
|
</StackPanel> |
||||
|
</Border> |
||||
|
|
||||
|
<Border CornerRadius="0" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Margin="5,0,0,0"> |
||||
|
<StackPanel Orientation="Horizontal"> |
||||
|
<ComboBox BorderThickness="0" Width="80" VerticalContentAlignment="Center" ItemsSource="{Binding SelectShopList}" HorizontalContentAlignment="Center" Text="{Binding SelectShop ,Mode=TwoWay}" /> |
||||
|
|
||||
|
<UniformGrid Width="150" Rows="1" Columns="1"> |
||||
|
</UniformGrid> |
||||
|
</StackPanel> |
||||
|
</Border> |
||||
|
|
||||
|
|
||||
|
--><!--<TextBlock Text="部门: " VerticalAlignment="Center" Margin="16,0,2,0"/> |
||||
|
<c:BTextBox Visibility="Hidden" Width="150" Height="30" ></c:BTextBox> |
||||
|
|
||||
|
<TextBlock x:Name="textblock_shop" Text="店铺:" VerticalAlignment="Center" Margin="16,0,0,0"/> |
||||
|
<c:BTextBox Name="btbShopName" Width="150" Visibility="Hidden" Margin="5,0,0,0" />--> |
||||
|
|
||||
|
|
||||
|
<!--<Border CornerRadius="0" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Margin="5,0,0,0"> |
||||
|
<StackPanel Orientation="Horizontal"> |
||||
|
<ComboBox Width="125" BorderThickness="0" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ItemsSource="{Binding SelectExpressList}" Text="{Binding SelectExpress }"/> |
||||
|
<UniformGrid Width="150" Margin="0,0,0,0" Rows="1" Columns="1"> |
||||
|
<c:BTextBox Width="150" Text="{Binding SearchWayBillNo,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="精准搜索" |
||||
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectExpress,Converter={StaticResource objConverter},ConverterParameter=物流单号:Visible:Collapsed}" |
||||
|
/> |
||||
|
<c:BTextBox Width="150" Text="{Binding SearchExpressName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="模糊搜索" |
||||
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectExpress,Converter={StaticResource objConverter},ConverterParameter=物流公司名称:Visible:Collapsed}" |
||||
|
/> |
||||
|
|
||||
|
</UniformGrid> |
||||
|
</StackPanel> |
||||
|
</Border>--> |
||||
|
|
||||
|
<!--<Grid Grid.Column="1" Grid.Row="1" Margin="5,0,0,0" |
||||
|
Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=未到货:Visible:Collapsed}" |
||||
|
> |
||||
|
<Rectangle Stroke="{StaticResource Border.Brush}" StrokeThickness="1"/> |
||||
|
<StackPanel Orientation="Horizontal" Margin="1"> |
||||
|
<ComboBox Width="100" BorderThickness="0" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ItemsSource="{Binding SelectTitleList}" Text="{Binding SelectTitle }"/> |
||||
|
<UniformGrid Width="150" Margin="0,0,0,0" Rows="1" Columns="1"> |
||||
|
<c:BTextBox Width="150" Text="{Binding SearchSkuTitle,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="模糊搜索" |
||||
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectTitle,Converter={StaticResource objConverter},ConverterParameter=SKU名称:Visible:Collapsed}" |
||||
|
/> |
||||
|
<c:BTextBox Width="150" Text="{Binding SearchSpuTitle,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="模糊搜索" |
||||
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectTitle,Converter={StaticResource objConverter},ConverterParameter=标题:Visible:Collapsed}" |
||||
|
/> |
||||
|
|
||||
|
</UniformGrid> |
||||
|
</StackPanel> |
||||
|
</Grid>--><!-- |
||||
|
|
||||
|
|
||||
|
<c:BButton Content="搜索" Width="94" Height="30" VerticalAlignment="Stretch" Margin="10,0,0,0" |
||||
|
Command="{Binding SearchTaskCommand}" |
||||
|
Grid.RowSpan="2" Background="{StaticResource Button.Selected.Background}" BorderThickness="0" Foreground="White"/> |
||||
|
</StackPanel>--><!-- |
||||
|
|
||||
|
|
||||
|
|
||||
|
</Grid>--> |
||||
|
|
||||
|
<Border Height="1" Grid.Row="1" Margin="0 10 0 0" Background="{StaticResource Border.Brush}" VerticalAlignment="Top"/> |
||||
|
<Grid Grid.Row="1" Margin="0 10 0 0"> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="300"/> |
||||
|
<ColumnDefinition Width="90"/> |
||||
|
<ColumnDefinition MinWidth="100"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<TextBlock Text="商品信息" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text="数量" Grid.Column="1" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text="" Grid.Column="2" Style="{StaticResource middleTextBlock}"/> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<!--<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}"/>--> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="1"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="2"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="3"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="4"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="5"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="6"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="7"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="8"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="9"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="10"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="11"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="12"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/> |
||||
|
</Grid> |
||||
|
<!--ItemsSource="{Binding OrderList}"--> |
||||
|
<ListBox x:Name="listbox_order" |
||||
|
Grid.Row="2" |
||||
|
ItemsSource="{Binding StoreGetSelfDataList}" |
||||
|
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="300"/> |
||||
|
<ColumnDefinition Width="90"/> |
||||
|
<ColumnDefinition MinWidth="100"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.ColumnSpan="11"> |
||||
|
<TextBlock VerticalAlignment="Center" Text="提交时间:" Margin="14,0,0,0" /> |
||||
|
<TextBlock Text="{Binding CreateTime,StringFormat=yyyy-MM-dd HH:mm}" VerticalAlignment="Center" Margin="5,0,0,0"/> |
||||
|
<TextBlock VerticalAlignment="Center" Text="任务ID:" Margin="16,0,0,0" /> |
||||
|
<c:BButton Content="{Binding TaskId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding TaskId}" |
||||
|
Margin=" 5,0,7,0"/> |
||||
|
<Label Width="90" Height="25" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" VerticalAlignment="Center" Content="{Binding TaskState}" |
||||
|
Foreground="White" Background="{Binding TaskState,Converter={StaticResource enumToColorConverter} , ConverterParameter={x:Type cmodel:TaskState} }" Margin="25,0,0,0" |
||||
|
Visibility="{Binding DataContext.TaskState,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}},Converter={StaticResource objConverter},ConverterParameter=#null:Visible:Collapsed}" |
||||
|
/> |
||||
|
|
||||
|
<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="14,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,0,0"/> |
||||
|
<StackPanel Orientation="Horizontal" Visibility="{Binding OrderId, Converter={StaticResource objConverter},ConverterParameter=#null:Visible:Collapsed}"> |
||||
|
<TextBlock VerticalAlignment="Center" Text="取货人:" Margin="16,0,0,0" /> |
||||
|
<TextBlock VerticalAlignment="Center" Text="{Binding PickerUserName}" Margin="5,0,0,0" /> |
||||
|
|
||||
|
|
||||
|
</StackPanel> |
||||
|
</StackPanel> |
||||
|
|
||||
|
</Grid> |
||||
|
<Grid Grid.Row="1"> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="300"/> |
||||
|
<ColumnDefinition Width="90"/> |
||||
|
<ColumnDefinition MinWidth="100"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<Grid> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="90"/> |
||||
|
<ColumnDefinition /> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<c:BAsyncImage UrlSource="{Binding Logo}" |
||||
|
Width="80" DecodePixelWidth="80" |
||||
|
VerticalAlignment="Top" Margin="11,9,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,12,0,10"> |
||||
|
|
||||
|
<StackPanel Orientation="Horizontal"> |
||||
|
<TextBlock Text="SKU:"/> |
||||
|
<c:BButton Content="{Binding SkuId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding SkuId}" |
||||
|
Margin=" 5,0,0,11"/> |
||||
|
|
||||
|
</StackPanel> |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextTrimming="CharacterEllipsis"> |
||||
|
<TextBlock.ToolTip> |
||||
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
||||
|
<TextBlock Text="{Binding SkuName}"/> |
||||
|
</ToolTip> |
||||
|
</TextBlock.ToolTip> |
||||
|
<Run Text="SKU名称:"/> |
||||
|
<Run Text="{Binding SkuName}"/> |
||||
|
</TextBlock> |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextWrapping="Wrap" Margin="0,11"> |
||||
|
<Run Text="品名:"/> |
||||
|
<Run Text="{Binding BrandName}"/> |
||||
|
</TextBlock> |
||||
|
</StackPanel> |
||||
|
|
||||
|
</Grid> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="0"/> |
||||
|
<Grid Grid.Column="1" > |
||||
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> |
||||
|
<TextBlock x:Name="txt_storeName" |
||||
|
Text="{Binding StoreGetCount}" |
||||
|
TextWrapping="Wrap" |
||||
|
HorizontalAlignment="Center" |
||||
|
/> |
||||
|
</StackPanel> |
||||
|
</Grid> |
||||
|
|
||||
|
<Border Grid.Row="1" VerticalAlignment="Top" Height="1" Background="{StaticResource Border.Brush}" Grid.ColumnSpan="100"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}"/>--> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="1"/>--> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="2" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="3" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="4" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="5" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="6" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="7" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="8" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="9" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="10" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="11" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="12" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/> |
||||
|
|
||||
|
</Grid> |
||||
|
<Border Grid.Row="1" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
</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.StorePickSelf |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// ShopStorePickSelfControl.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class ShopStorePickSelfControl : UserControl |
||||
|
{ |
||||
|
public ShopStorePickSelfControl() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,347 @@ |
|||||
|
<UserControl x:Class="BBWY.Client.Views.StorePickSelf.StorePickSelfControl" |
||||
|
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:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters" |
||||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
||||
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models" |
||||
|
xmlns:local="clr-namespace:BBWY.Client.Views.PackTask" |
||||
|
DataContext="{Binding WareHouseList,Source={StaticResource Locator}}" |
||||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
||||
|
mc:Ignorable="d" Background="White" |
||||
|
d:DesignHeight="450" d:DesignWidth="1500"> |
||||
|
<UserControl.Resources> |
||||
|
<ResourceDictionary> |
||||
|
<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"/> |
||||
|
</ResourceDictionary> |
||||
|
|
||||
|
|
||||
|
</UserControl.Resources> |
||||
|
|
||||
|
<Grid> |
||||
|
<StackPanel Panel.ZIndex="100" HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Vertical" Margin="590,15,0,0" |
||||
|
Visibility="{Binding SelectShop,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=部门:Visible:Collapsed}" |
||||
|
> |
||||
|
<c:BTextBox x:Name="tb" Width="150" TextChanged="tb_TextChanged" Text="{Binding SearchDepartment,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="部门名称" |
||||
|
BorderThickness="1 0 0 1" Margin="0 0 0 1" Height="30" |
||||
|
/> |
||||
|
<ListBox MaxHeight="300" x:Name="tipBox" SelectionChanged="SelectionChangeCommand" Background="{StaticResource Border.Background}"> |
||||
|
|
||||
|
</ListBox> |
||||
|
</StackPanel> |
||||
|
<StackPanel Panel.ZIndex="100" HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Vertical" Margin="590,15,0,0" |
||||
|
Visibility="{Binding SelectShop,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=店铺:Visible:Collapsed}" |
||||
|
> |
||||
|
<c:BTextBox x:Name="tbShop" Width="150" Height="30" TextChanged="tbShop_TextChanged" Text="{Binding SearchShopName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="店铺名称" |
||||
|
BorderThickness="1 0 0 1" Margin="0 0 0 1" |
||||
|
/> |
||||
|
<ListBox MaxHeight="300" x:Name="tipBoxShop" SelectionChanged="tipBoxShop_SelectionChanged" Background="{StaticResource Border.Background}"> |
||||
|
|
||||
|
</ListBox> |
||||
|
</StackPanel> |
||||
|
<Grid> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="54"/> |
||||
|
<RowDefinition Height="45"/> |
||||
|
<RowDefinition /> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Grid Grid.Row="0" HorizontalAlignment="Stretch" Panel.ZIndex="999" Margin="0,5,0,0" > |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition /> |
||||
|
<ColumnDefinition Width="auto"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<StackPanel Orientation="Horizontal" Height="30" > |
||||
|
<StackPanel.Resources> |
||||
|
<ResourceDictionary> |
||||
|
<ResourceDictionary.MergedDictionaries> |
||||
|
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/> |
||||
|
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/> |
||||
|
</ResourceDictionary.MergedDictionaries> |
||||
|
</ResourceDictionary> |
||||
|
</StackPanel.Resources> |
||||
|
<Border CornerRadius="0" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Margin="5,0,0,0"> |
||||
|
<StackPanel Orientation="Horizontal"> |
||||
|
<ComboBox BorderThickness="0" Width="110" VerticalContentAlignment="Center" ItemsSource="{Binding SelectIdList}" HorizontalContentAlignment="Center" Text="{Binding SelectTaskId ,Mode=TwoWay}" /> |
||||
|
<UniformGrid Width="150" Rows="1" Columns="1"> |
||||
|
<c:BTextBox Width="150" BorderThickness="1 0 0 0" WaterRemark="任务ID" Text="{Binding SearchTaskId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" |
||||
|
Visibility="{Binding SelectTaskId,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=任务ID:Visible:Collapsed}" |
||||
|
/> |
||||
|
<c:BTextBox Width="150" BorderThickness="1 0 0 0" WaterRemark="拳探订单号" Text="{Binding SearchOrderSn,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" |
||||
|
Visibility="{Binding SelectTaskId,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=拳探订单号:Visible:Collapsed}" |
||||
|
/> |
||||
|
|
||||
|
</UniformGrid> |
||||
|
</StackPanel> |
||||
|
</Border> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
<Border CornerRadius="0" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Margin="5,0,0,0"> |
||||
|
<StackPanel Orientation="Horizontal"> |
||||
|
<ComboBox BorderThickness="0" Width="80" VerticalContentAlignment="Center" ItemsSource="{Binding SelectSkuList}" HorizontalContentAlignment="Center" Text="{Binding SelectSku ,Mode=TwoWay}" /> |
||||
|
|
||||
|
<UniformGrid Width="150" Rows="1" Columns="1"> |
||||
|
<c:BTextBox Width="150" WaterRemark="SKUID" Text="{Binding SearchSkuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" |
||||
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectSku,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=SKU:Visible:Collapsed}" |
||||
|
/> |
||||
|
<c:BTextBox Width="150" WaterRemark="SPUID" Text="{Binding SearchSpuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" |
||||
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectSku,Mode=OneWay,Converter={StaticResource objConverter},ConverterParameter=SPU:Visible:Collapsed}" |
||||
|
/> |
||||
|
|
||||
|
</UniformGrid> |
||||
|
</StackPanel> |
||||
|
</Border> |
||||
|
|
||||
|
<Border CornerRadius="0" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Margin="5,0,0,0"> |
||||
|
<StackPanel Orientation="Horizontal"> |
||||
|
<ComboBox BorderThickness="0" Width="80" VerticalContentAlignment="Center" ItemsSource="{Binding SelectShopList}" HorizontalContentAlignment="Center" Text="{Binding SelectShop ,Mode=TwoWay}" /> |
||||
|
|
||||
|
<UniformGrid Width="150" Rows="1" Columns="1"> |
||||
|
</UniformGrid> |
||||
|
</StackPanel> |
||||
|
</Border> |
||||
|
|
||||
|
|
||||
|
<!--<TextBlock Text="部门: " VerticalAlignment="Center" Margin="16,0,2,0"/> |
||||
|
<c:BTextBox Visibility="Hidden" Width="150" Height="30" ></c:BTextBox> |
||||
|
|
||||
|
<TextBlock x:Name="textblock_shop" Text="店铺:" VerticalAlignment="Center" Margin="16,0,0,0"/> |
||||
|
<c:BTextBox Name="btbShopName" Width="150" Visibility="Hidden" Margin="5,0,0,0" />--> |
||||
|
|
||||
|
|
||||
|
<Border CornerRadius="0" BorderThickness="1" BorderBrush="{StaticResource Border.Brush}" Margin="5,0,0,0"> |
||||
|
<StackPanel Orientation="Horizontal"> |
||||
|
<ComboBox Width="125" BorderThickness="0" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ItemsSource="{Binding SelectExpressList}" Text="{Binding SelectExpress }"/> |
||||
|
<UniformGrid Width="150" Margin="0,0,0,0" Rows="1" Columns="1"> |
||||
|
<c:BTextBox Width="150" Text="{Binding SearchWayBillNo,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="精准搜索" |
||||
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectExpress,Converter={StaticResource objConverter},ConverterParameter=物流单号:Visible:Collapsed}" |
||||
|
/> |
||||
|
<c:BTextBox Width="150" Text="{Binding SearchExpressName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="模糊搜索" |
||||
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectExpress,Converter={StaticResource objConverter},ConverterParameter=物流公司名称:Visible:Collapsed}" |
||||
|
/> |
||||
|
|
||||
|
</UniformGrid> |
||||
|
</StackPanel> |
||||
|
</Border> |
||||
|
|
||||
|
<Grid Grid.Column="1" Grid.Row="1" Margin="5,0,0,0" |
||||
|
Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=未到货:Visible:Collapsed}" |
||||
|
> |
||||
|
<Rectangle Stroke="{StaticResource Border.Brush}" StrokeThickness="1"/> |
||||
|
<StackPanel Orientation="Horizontal" Margin="1"> |
||||
|
<ComboBox Width="100" BorderThickness="0" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ItemsSource="{Binding SelectTitleList}" Text="{Binding SelectTitle }"/> |
||||
|
<UniformGrid Width="150" Margin="0,0,0,0" Rows="1" Columns="1"> |
||||
|
<c:BTextBox Width="150" Text="{Binding SearchSkuTitle,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="模糊搜索" |
||||
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectTitle,Converter={StaticResource objConverter},ConverterParameter=SKU名称:Visible:Collapsed}" |
||||
|
/> |
||||
|
<c:BTextBox Width="150" Text="{Binding SearchSpuTitle,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark="模糊搜索" |
||||
|
BorderThickness="1 0 0 0" Visibility="{Binding SelectTitle,Converter={StaticResource objConverter},ConverterParameter=标题:Visible:Collapsed}" |
||||
|
/> |
||||
|
|
||||
|
</UniformGrid> |
||||
|
</StackPanel> |
||||
|
</Grid> |
||||
|
|
||||
|
|
||||
|
<c:BButton Content="搜索" Width="94" Height="30" VerticalAlignment="Stretch" Margin="10,0,0,0" |
||||
|
Command="{Binding SearchTaskCommand}" |
||||
|
Grid.RowSpan="2" Background="{StaticResource Button.Selected.Background}" BorderThickness="0" Foreground="White"/> |
||||
|
</StackPanel> |
||||
|
|
||||
|
|
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
<Border Height="1" Grid.Row="1" Margin="0 10 0 0" Background="{StaticResource Border.Brush}" VerticalAlignment="Top"/> |
||||
|
<Grid Grid.Row="1" Margin="0 10 0 0"> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="300"/> |
||||
|
<ColumnDefinition Width="90"/> |
||||
|
<ColumnDefinition MinWidth="100"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<TextBlock Text="商品信息" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text="数量" Grid.Column="1" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text="" Grid.Column="2" Style="{StaticResource middleTextBlock}"/> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<!--<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}"/>--> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="1"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="2"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="3"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="4"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="5"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="6"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="7"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="8"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="9"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="10"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="11"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="12"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/> |
||||
|
</Grid> |
||||
|
<!--ItemsSource="{Binding OrderList}"--> |
||||
|
<ListBox x:Name="listbox_order" |
||||
|
Grid.Row="2" |
||||
|
ItemsSource="{Binding StoreGetSelfDataList}" |
||||
|
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="300"/> |
||||
|
<ColumnDefinition Width="90"/> |
||||
|
<ColumnDefinition MinWidth="100"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.ColumnSpan="11"> |
||||
|
<TextBlock VerticalAlignment="Center" Text="提交时间:" Margin="14,0,0,0" /> |
||||
|
<TextBlock Text="{Binding CreateTime,StringFormat=yyyy-MM-dd HH:mm}" VerticalAlignment="Center" Margin="5,0,0,0"/> |
||||
|
<TextBlock VerticalAlignment="Center" Text="任务ID:" Margin="16,0,0,0" /> |
||||
|
<c:BButton Content="{Binding TaskId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding TaskId}" |
||||
|
Margin=" 5,0,7,0"/> |
||||
|
<Label Width="90" Height="25" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" VerticalAlignment="Center" Content="{Binding TaskState}" |
||||
|
Foreground="White" Background="{Binding TaskState,Converter={StaticResource enumToColorConverter} , ConverterParameter={x:Type cmodel:TaskState} }" Margin="25,0,0,0" |
||||
|
Visibility="{Binding DataContext.TaskState,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}},Converter={StaticResource objConverter},ConverterParameter=#null:Visible:Collapsed}" |
||||
|
/> |
||||
|
|
||||
|
<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="14,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,0,0"/> |
||||
|
<StackPanel Orientation="Horizontal" Visibility="{Binding OrderId, Converter={StaticResource objConverter},ConverterParameter=#null:Visible:Collapsed}"> |
||||
|
<TextBlock VerticalAlignment="Center" Text="取货人:" Margin="16,0,0,0" /> |
||||
|
<TextBlock VerticalAlignment="Center" Text="{Binding PickerUserName}" Margin="5,0,0,0" /> |
||||
|
|
||||
|
|
||||
|
</StackPanel> |
||||
|
</StackPanel> |
||||
|
|
||||
|
</Grid> |
||||
|
<Grid Grid.Row="1"> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="300"/> |
||||
|
<ColumnDefinition Width="90"/> |
||||
|
<ColumnDefinition MinWidth="100"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<Grid> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="90"/> |
||||
|
<ColumnDefinition /> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<c:BAsyncImage UrlSource="{Binding Logo}" |
||||
|
Width="80" DecodePixelWidth="80" |
||||
|
VerticalAlignment="Top" Margin="11,9,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,12,0,10"> |
||||
|
|
||||
|
<StackPanel Orientation="Horizontal"> |
||||
|
<TextBlock Text="SKU:"/> |
||||
|
<c:BButton Content="{Binding SkuId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding SkuId}" |
||||
|
Margin=" 5,0,0,11"/> |
||||
|
|
||||
|
</StackPanel> |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextTrimming="CharacterEllipsis"> |
||||
|
<TextBlock.ToolTip> |
||||
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
||||
|
<TextBlock Text="{Binding SkuName}"/> |
||||
|
</ToolTip> |
||||
|
</TextBlock.ToolTip> |
||||
|
<Run Text="SKU名称:"/> |
||||
|
<Run Text="{Binding SkuName}"/> |
||||
|
</TextBlock> |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextWrapping="Wrap" Margin="0,11"> |
||||
|
<Run Text="品名:"/> |
||||
|
<Run Text="{Binding BrandName}"/> |
||||
|
</TextBlock> |
||||
|
</StackPanel> |
||||
|
|
||||
|
</Grid> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="0"/> |
||||
|
<Grid Grid.Column="1" > |
||||
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> |
||||
|
<TextBlock x:Name="txt_storeName" |
||||
|
Text="{Binding StoreGetCount}" |
||||
|
TextWrapping="Wrap" |
||||
|
HorizontalAlignment="Center" |
||||
|
/> |
||||
|
</StackPanel> |
||||
|
</Grid> |
||||
|
|
||||
|
<Border Grid.Row="1" VerticalAlignment="Top" Height="1" Background="{StaticResource Border.Brush}" Grid.ColumnSpan="100"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}"/>--> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="1"/>--> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="2" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="3" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="4" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="5" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="6" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="7" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="8" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="9" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="10" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="11" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="12" Margin="-1 0 0 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/> |
||||
|
|
||||
|
</Grid> |
||||
|
<Border Grid.Row="1" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
</Grid> |
||||
|
</Grid> |
||||
|
|
||||
|
</UserControl> |
@ -0,0 +1,253 @@ |
|||||
|
using BBWY.Client.Helpers; |
||||
|
using BBWY.Client.Models.PackTask; |
||||
|
using BBWY.Client.ViewModels; |
||||
|
using BBWY.Common.Models; |
||||
|
using Newtonsoft.Json; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
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; |
||||
|
using WebSocketSharp; |
||||
|
|
||||
|
namespace BBWY.Client.Views.StorePickSelf |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// StorePickSelfControl.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class StorePickSelfControl : UserControl |
||||
|
{ |
||||
|
public StorePickSelfControl() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
this.Loaded += Load; |
||||
|
} |
||||
|
GlobalContext globalContext; |
||||
|
|
||||
|
public void LoadShops(GlobalContext globalContext) |
||||
|
{ |
||||
|
this.globalContext = globalContext; |
||||
|
shops = globalContext.User.ShopList.Select(s => s.ShopName).ToList(); |
||||
|
departments = globalContext.User.DepartmentList.Select(s => s.Name).ToList(); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
private void Load(object sender, RoutedEventArgs e) |
||||
|
{ |
||||
|
|
||||
|
try |
||||
|
{ |
||||
|
var model = (App.Current.Resources["Locator"] as ViewModelLocator).Main; |
||||
|
|
||||
|
LoadShops(model.GlobalContext); |
||||
|
} |
||||
|
catch |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
||||
|
public string QKApiHost { get; set; } |
||||
|
public void SelectionChangeCommand(object sender, SelectionChangedEventArgs e) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
var list = (ListBox)sender; |
||||
|
if (list.Items.Count <= 0) |
||||
|
{ |
||||
|
return; |
||||
|
} |
||||
|
var value = (ListBoxItem)list.SelectedValue; |
||||
|
var content = (Label)value.Content; |
||||
|
tb.Text = content.Content.ToString(); |
||||
|
tipBox.Visibility = Visibility.Collapsed; |
||||
|
} |
||||
|
catch (Exception) |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
||||
|
List<string> departments = new List<string>(); |
||||
|
|
||||
|
List<string> shops = new List<string>(); |
||||
|
private void tb_TextChanged(object sender, TextChangedEventArgs e) |
||||
|
{ |
||||
|
|
||||
|
if (tipBox != null) |
||||
|
try |
||||
|
{ |
||||
|
var textBoxt = (TextBox)sender; |
||||
|
//创建一个ListBox
|
||||
|
|
||||
|
if (tipBox != null && tipBox.Items.Count > 0) |
||||
|
{ |
||||
|
tipBox.Items.Clear(); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
if (departments.Count <= 0) |
||||
|
{ |
||||
|
if (QKApiHost.IsNullOrEmpty()) QKApiHost = "http://qiku.qiyue666.com"; |
||||
|
HttpClientHelper helper = new HttpClientHelper(QKApiHost); |
||||
|
|
||||
|
string url = $"{QKApiHost}/api/PackTask/GetAllDepartment";//获取所有数据
|
||||
|
var data = helper.Get(url); |
||||
|
|
||||
|
var res = JsonConvert.DeserializeObject<ApiResponse<UserDepartment[]>>(data); |
||||
|
//创建一个ListBoxIem
|
||||
|
if (res.Success) |
||||
|
{ |
||||
|
if (res.Data != null && res.Data.Count() > 0) |
||||
|
{ |
||||
|
foreach (var department in res.Data) |
||||
|
{ |
||||
|
if (!departments.Contains(department.DePartmentName)) |
||||
|
{ |
||||
|
departments.Add(department.DePartmentName); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
if (string.IsNullOrEmpty(textBoxt.Text)) |
||||
|
{ |
||||
|
tipBox.Visibility = Visibility.Collapsed; |
||||
|
return; |
||||
|
} |
||||
|
foreach (var department in departments) |
||||
|
{ |
||||
|
if (department.Contains(textBoxt.Text)) |
||||
|
{ |
||||
|
ListBoxItem item = new ListBoxItem(); |
||||
|
Label lb = new Label(); |
||||
|
lb.Content = department; |
||||
|
item.Content = lb; |
||||
|
tipBox.Items.Add(item); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
tipBox.Visibility = Visibility.Visible; |
||||
|
} |
||||
|
catch (Exception) |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
private void tbShop_TextChanged(object sender, TextChangedEventArgs e) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
var textBoxt = (TextBox)sender; |
||||
|
//创建一个ListBox
|
||||
|
|
||||
|
if (tipBoxShop != null && tipBoxShop.Items.Count > 0) |
||||
|
{ |
||||
|
tipBoxShop.Items.Clear(); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
if (shops.Count <= 0) |
||||
|
{ |
||||
|
if (globalContext != null) |
||||
|
LoadShops(globalContext); |
||||
|
} |
||||
|
|
||||
|
if (string.IsNullOrEmpty(textBoxt.Text)) |
||||
|
{ |
||||
|
tipBoxShop.Visibility = Visibility.Collapsed; |
||||
|
return; |
||||
|
} |
||||
|
foreach (var department in shops) |
||||
|
{ |
||||
|
if (department.Contains(textBoxt.Text)) |
||||
|
{ |
||||
|
ListBoxItem item = new ListBoxItem(); |
||||
|
Label lb = new Label(); |
||||
|
lb.Content = department; |
||||
|
item.Content = lb; |
||||
|
tipBoxShop.Items.Add(item); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
if (tipBoxShop != null) |
||||
|
tipBoxShop.Visibility = Visibility.Visible; |
||||
|
} |
||||
|
catch (Exception) |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
private void tipBoxShop_SelectionChanged(object sender, SelectionChangedEventArgs e) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
var list = (ListBox)sender; |
||||
|
if (list.Items.Count <= 0) |
||||
|
{ |
||||
|
return; |
||||
|
} |
||||
|
var value = (ListBoxItem)list.SelectedValue; |
||||
|
var content = (Label)value.Content; |
||||
|
tbShop.Text = content.Content.ToString(); |
||||
|
tipBoxShop.Visibility = Visibility.Collapsed; |
||||
|
} |
||||
|
catch (Exception) |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
private void tb_LostFocus(object sender, RoutedEventArgs e) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
if (tipBox != null && tipBox.Items.Count > 0) |
||||
|
{ |
||||
|
tipBox.Items.Clear(); |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
catch (Exception) |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
private void tbShop_LostFocus(object sender, RoutedEventArgs e) |
||||
|
{ |
||||
|
try |
||||
|
{ |
||||
|
if (tipBoxShop != null && tipBoxShop.Items.Count > 0) |
||||
|
{ |
||||
|
tipBoxShop.Items.Clear(); |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
catch (Exception) |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue