33 changed files with 994 additions and 355 deletions
@ -0,0 +1,102 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Text; |
|||
|
|||
namespace BBWY.Client.Models.APIModel.Response.PackTask |
|||
{ |
|||
public class ShopTotalV2Response |
|||
{ |
|||
/// <summary>
|
|||
///总量
|
|||
/// </summary>
|
|||
public int TotalCount { get; set; } |
|||
/// <summary>
|
|||
///
|
|||
/// </summary>
|
|||
public List<ShopTotalV2> ShopTotals { get; set; } |
|||
} |
|||
public class ShopTotalV2 |
|||
{ |
|||
/// <summary>
|
|||
/// 任务id
|
|||
/// </summary>
|
|||
public long TaskId { get; set; } |
|||
/// <summary>
|
|||
/// 完成打包时间日期
|
|||
/// </summary>
|
|||
public DateTime? CreateTime { get; set; } |
|||
/// <summary>
|
|||
/// 是否结清
|
|||
/// </summary>
|
|||
public Settle IsSettle { get; set; } |
|||
/// <summary>
|
|||
/// 部门
|
|||
/// </summary>
|
|||
public string DepartmentName { get; set; } |
|||
/// <summary>
|
|||
/// 店铺
|
|||
/// </summary>
|
|||
public string ShopName { get; set; } |
|||
/// <summary>
|
|||
/// 对接人
|
|||
/// </summary>
|
|||
public string AcceptUserName { get; set; } |
|||
/// <summary>
|
|||
/// sku标题
|
|||
/// </summary>
|
|||
public string SkuName { get; set; } |
|||
/// <summary>
|
|||
/// sku数量(任务数量)
|
|||
/// </summary>
|
|||
public int SkuCount { get; set; } |
|||
/// <summary>
|
|||
/// 耗材费
|
|||
/// </summary>
|
|||
public decimal ConsumableFees { get; set; } |
|||
/// <summary>
|
|||
/// 到货数量
|
|||
/// </summary>
|
|||
public int? ArrivalQuantity { get; set; } |
|||
/// <summary>
|
|||
/// 打包费(原价)
|
|||
/// </summary>
|
|||
public decimal PackFees { get; set; } |
|||
/// <summary>
|
|||
/// 折扣系数
|
|||
/// </summary>
|
|||
public decimal? DiscountFactor { get; set; } |
|||
/// <summary>
|
|||
/// 打包费用折扣价
|
|||
/// </summary>
|
|||
public decimal? PackDisCountFees { get; set; } |
|||
///// <summary>
|
|||
///// 折扣类型
|
|||
///// </summary>
|
|||
//public FeesMode? FeesMode { get; set; }
|
|||
/// <summary>
|
|||
/// 总费用
|
|||
/// </summary>
|
|||
public decimal? AllFees { get; set; } |
|||
/// <summary>
|
|||
/// 工序类型名称
|
|||
/// </summary>
|
|||
public string ProcessTypeName { get; set; } |
|||
/// <summary>
|
|||
/// 工序套餐名称
|
|||
/// </summary>
|
|||
public string ProcessComboName { get; set; } |
|||
/// <summary>
|
|||
/// 工序套餐单价
|
|||
/// </summary>
|
|||
public decimal ProcessComboPrice { get; set; } |
|||
/// <summary>
|
|||
/// 工序套餐任务量
|
|||
/// </summary>
|
|||
public int ProcessComboTaskCount { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 耗材服务数据
|
|||
/// </summary>
|
|||
public List<ServiceItemResponse> ConsumableList { get; set; } |
|||
} |
|||
} |
@ -0,0 +1,200 @@ |
|||
using BBWY.Client.APIServices; |
|||
using BBWY.Client.Models.PackTask; |
|||
using BBWY.Common.Models; |
|||
using BBWY.Controls; |
|||
using GalaSoft.MvvmLight.Command; |
|||
using Microsoft.Win32; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Collections.ObjectModel; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using System.Windows.Input; |
|||
using System.Windows; |
|||
using System.Linq; |
|||
using AutoMapper.Internal; |
|||
using WebSocketSharp; |
|||
|
|||
namespace BBWY.Client.ViewModels.TotalPackTask |
|||
{ |
|||
|
|||
public class ShopPackTaskTotalViewModel : BaseVM, IDenpendency |
|||
{ |
|||
private readonly PackTaskService packTaskService; |
|||
private bool isLoading; |
|||
private DateTime startDate; |
|||
private DateTime endDate; |
|||
private int pageIndex = 1; |
|||
private int pageSize = 15; |
|||
private int orderCount; |
|||
private string searchTaskId; |
|||
|
|||
private string searchSkuId; |
|||
private ObservableCollection<ShopTotal> packTaskTotalList; |
|||
|
|||
public ObservableCollection<ShopTotal> PackTaskTotalList { get => packTaskTotalList; set { Set(ref packTaskTotalList, value); } } |
|||
public string SearchSkuId { get => searchSkuId; set { Set(ref searchSkuId, value); } } |
|||
|
|||
public string SearchTaskId { get => searchTaskId; set { Set(ref searchTaskId, value); } } |
|||
|
|||
public bool IsLoading { get => isLoading; set { Set(ref isLoading, value); } } |
|||
|
|||
|
|||
public DateTime StartDate { get => startDate; set { Set(ref startDate, value); } } |
|||
|
|||
public DateTime EndDate { get => endDate; set { Set(ref endDate, value); } } |
|||
|
|||
public int PageIndex { get => pageIndex; set { Set(ref pageIndex, value); } } |
|||
|
|||
public int PageSize { get => pageSize; set { Set(ref pageSize, value); } } |
|||
|
|||
public int OrderCount { get => orderCount; set { Set(ref orderCount, value); } } |
|||
|
|||
private decimal totalPackDiscountFees; |
|||
/// <summary>
|
|||
/// 总打包费用
|
|||
/// </summary>
|
|||
public decimal TotalPackDiscountFees { get => totalPackDiscountFees; set { Set(ref totalPackDiscountFees, value); } } |
|||
|
|||
private decimal totalConsumableFees; |
|||
/// <summary>
|
|||
/// 总耗材费
|
|||
/// </summary>
|
|||
public decimal TotalConsumableFees { get => totalConsumableFees; set { Set(ref totalConsumableFees, value); } } |
|||
|
|||
|
|||
public ICommand SetSearchDateCommand { get; set; } |
|||
|
|||
public ICommand SearchTaskTotalCommand { get; set; } |
|||
|
|||
public ICommand ExportCommand { get; set; } |
|||
|
|||
public ICommand OrderPageIndexChangedCommand { get; set; } |
|||
|
|||
|
|||
|
|||
//public IList<Department> departmentList;
|
|||
//ShopService shopService;
|
|||
public ShopPackTaskTotalViewModel(PackTaskService packTaskService, GlobalContext globalContext) |
|||
{ |
|||
this.packTaskService = packTaskService; |
|||
SearchTaskTotalCommand = new RelayCommand(() => |
|||
{ |
|||
SearchTask(1); |
|||
}); |
|||
|
|||
StartDate = DateTime.Now; |
|||
EndDate = DateTime.Now; |
|||
|
|||
SetSearchDateCommand = new RelayCommand<int>(d => |
|||
{ |
|||
EndDate = d == 1 ? DateTime.Now.Date.AddDays(-1) : DateTime.Now; |
|||
StartDate = DateTime.Now.Date.AddDays(d * -1); |
|||
PageIndex = 1; |
|||
Task.Factory.StartNew(() => LoadOrder(1)); //点击日期查询订单
|
|||
}); |
|||
|
|||
OrderPageIndexChangedCommand = new RelayCommand<PageArgs>(p => |
|||
{ |
|||
LoadOrder(p.PageIndex); |
|||
}); |
|||
|
|||
ExportCommand = new RelayCommand(Export); |
|||
|
|||
SearchTaskTotal(); |
|||
this.globalContext = globalContext; |
|||
} |
|||
|
|||
|
|||
GlobalContext globalContext; |
|||
private void Export() |
|||
{ |
|||
|
|||
SaveFileDialog save = new SaveFileDialog(); |
|||
save.Filter = "csv files(*.csv)|*.csv"; |
|||
var result = save.ShowDialog(); |
|||
if (result == null || !result.Value) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
string fileName = save.FileName; |
|||
|
|||
Task.Factory.StartNew(() => |
|||
{ |
|||
IsLoading = true; |
|||
var res = packTaskService.ShopTotalV2(SearchSkuId, SearchTaskId, globalContext.User.Shop.ShopId.ToString(), StartDate, EndDate, null, |
|||
null, 0, 0);//获取全部数据
|
|||
if (res.Success) |
|||
{ |
|||
//string title = "任务ID,日期,是否结清,部门,店铺,对接人,sku名称,sku数量,增值服务,打包服务,耗材服务,原价,促销折扣,结算价格,对接备注";
|
|||
string title = "任务ID,日期,是否结清,所属部门,所属店铺,包装数量,收货数量,耗材总价,工序类型,工序套餐,工序单价,包装原价,包装折扣系数,包装折扣价,总收费"; |
|||
var excelList = res.Data.ShopTotals.Select(x => x.ToString()).ToList(); |
|||
excelList.Insert(0, title); |
|||
System.IO.File.WriteAllLines(fileName, excelList, Encoding.UTF8); |
|||
} |
|||
IsLoading = false; |
|||
|
|||
}); |
|||
|
|||
} |
|||
|
|||
|
|||
|
|||
private void SearchTaskTotal() |
|||
{ |
|||
|
|||
PackTaskTotalList = new ObservableCollection<ShopTotal>(); |
|||
Task.Factory.StartNew(() => |
|||
{ |
|||
IsLoading = true; |
|||
var res = packTaskService.ShopTotalV2(SearchSkuId, SearchTaskId, globalContext.User.Shop.ShopId.ToString(), StartDate, EndDate, null, |
|||
null, PageIndex, PageSize); |
|||
if (res != null && res.Success) |
|||
{ |
|||
OrderCount = res.Data.TotalCount; |
|||
TotalConsumableFees = res.Data.TotalConsumableFees; |
|||
TotalPackDiscountFees = res.Data.TotalPackDiscountFees; |
|||
foreach (var shopTotal in res.Data.ShopTotals) |
|||
{ |
|||
if (!shopTotal.ProcessComboName.IsNullOrEmpty()) |
|||
shopTotal.FeesItemResponse = new Models.APIModel.Response.PackTask.FeesItemResponse |
|||
{ |
|||
AllFees = shopTotal.AllFees.Value, |
|||
PackFees = shopTotal.PackDisCountFees.Value, |
|||
TaskId = shopTotal.TaskId, |
|||
ProcessTypeName = shopTotal.ProcessTypeName, |
|||
ProcessComboName = shopTotal.ProcessComboName, |
|||
ConsumableFees = shopTotal.ConsumableFees, |
|||
ConsumableList = shopTotal.ConsumableList, |
|||
ProcessComboPrice = shopTotal.ProcessComboPrice, |
|||
ProcessComboTaskCount = shopTotal.ProcessComboTaskCount, |
|||
DiscountFoctor = shopTotal.DiscountFactor |
|||
}; |
|||
|
|||
App.Current.Dispatcher.Invoke(() => |
|||
{ |
|||
PackTaskTotalList.Add(shopTotal); |
|||
}); |
|||
} |
|||
|
|||
} |
|||
|
|||
IsLoading = false; |
|||
}); |
|||
|
|||
|
|||
} |
|||
|
|||
private void LoadOrder(int pageIndex) |
|||
{ |
|||
SearchTask(pageIndex); |
|||
} |
|||
|
|||
private void SearchTask(int pageIndex) |
|||
{ |
|||
PageIndex = pageIndex; |
|||
SearchTaskTotal(); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,339 @@ |
|||
<Page x:Class="BBWY.Client.Views.TotalPackTask.ShopPackTaskTotal" |
|||
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.PackTask" |
|||
mc:Ignorable="d" |
|||
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
|||
DataContext="{Binding ShopPackTaskTotal,Source={StaticResource Locator}}" |
|||
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
|||
Background="White" |
|||
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
|||
d:DesignHeight="450" d:DesignWidth="2048" |
|||
Title="OrderList"> |
|||
<Page.Resources> |
|||
<sys:Int32 x:Key="d0">0</sys:Int32> |
|||
<sys:Int32 x:Key="d1">1</sys:Int32> |
|||
<sys:Int32 x:Key="d3">2</sys:Int32> |
|||
<sys:Int32 x:Key="d7">6</sys:Int32> |
|||
<sys:Int32 x:Key="d15">14</sys:Int32> |
|||
<sys:Int32 x:Key="d30">29</sys:Int32> |
|||
</Page.Resources> |
|||
<Grid> |
|||
<!--<c:RoundWaitProgress Play="{Binding IsLoading}" Panel.ZIndex="999"/> |
|||
<StackPanel Background="Black" Panel.ZIndex="100" HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Vertical" Margin="572,13,0,0" Width="140"> |
|||
<c:BTextBox x:Name="tbDepartment" Width="140" Height="30" TextChanged="tb_TextChanged" Text="{Binding SearchDepartment,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></c:BTextBox> |
|||
<ListBox MaxHeight="300" x:Name="tipBoxDepartment" SelectionChanged="SelectionChangeCommand" Background="{StaticResource Border.Background}"> |
|||
|
|||
</ListBox> |
|||
</StackPanel>--> |
|||
<Grid Margin="5,0"> |
|||
<Grid.RowDefinitions> |
|||
<RowDefinition Height="90"/> |
|||
<RowDefinition/> |
|||
<RowDefinition Height="30"/> |
|||
</Grid.RowDefinitions> |
|||
<Grid Background="{StaticResource Border.Background}" HorizontalAlignment="Left" Height="75" Panel.ZIndex="999"> |
|||
<Grid.ColumnDefinitions> |
|||
<ColumnDefinition Width="750"/> |
|||
<ColumnDefinition /> |
|||
<ColumnDefinition Width="auto"/> |
|||
</Grid.ColumnDefinitions> |
|||
<Grid.RowDefinitions> |
|||
<RowDefinition Height="0.5*"/> |
|||
<RowDefinition Height="5"/> |
|||
<RowDefinition Height="0.5*"/> |
|||
</Grid.RowDefinitions> |
|||
<StackPanel Orientation="Horizontal" Margin="0,5,0,0" Height="30" > |
|||
<StackPanel.Resources> |
|||
<Style TargetType="DatePickerTextBox"> |
|||
<Setter Property="IsReadOnly" Value="True"/> |
|||
</Style> |
|||
</StackPanel.Resources> |
|||
<TextBlock Text="下单时间" VerticalAlignment="Center" Margin="5,0,0,0"/> |
|||
<DatePicker SelectedDate="{Binding StartDate}" Width="133.5" Height="30" VerticalContentAlignment="Center" FocusVisualStyle="{x:Null}" Margin="5,0,0,0"/> |
|||
<DatePicker SelectedDate="{Binding EndDate}" Width="133.5" Height="30" VerticalContentAlignment="Center" FocusVisualStyle="{x:Null}" Margin="5,0,0,0"/> |
|||
<TextBlock Text="任务ID:" Width="40" VerticalAlignment="Center" Margin="5,0,0,0"/> |
|||
<c:BTextBox Width="150" Margin="5,0,0,0" Text="{Binding SearchTaskId}" /> |
|||
|
|||
<TextBlock Width="40" Text=" SKU:" VerticalAlignment="Center" Margin="5,0,0,0" |
|||
/> |
|||
<c:BTextBox Width="150" Margin="5,0,0,0" Text="{Binding SearchSkuId}" |
|||
/> |
|||
</StackPanel> |
|||
<StackPanel Orientation="Horizontal" Grid.Row="2" Margin="0,0,0,5" Height="30"> |
|||
<c:BButton Content="今天" Width="50" Height="25" Margin="5,0,0,0" |
|||
Command="{Binding SetSearchDateCommand}" |
|||
CommandParameter="{StaticResource d0}"/> |
|||
<c:BButton Content="昨天" Width="50" Height="25" Margin="5,0,0,0" |
|||
Command="{Binding SetSearchDateCommand}" |
|||
CommandParameter="{StaticResource d1}"/> |
|||
<c:BButton Content="近3天" Width="50" Height="25" Margin="5,0,0,0" |
|||
Command="{Binding SetSearchDateCommand}" |
|||
CommandParameter="{StaticResource d3}"/> |
|||
<c:BButton Content="近7天" Width="50" Height="24" Margin="5,0,0,0" |
|||
Command="{Binding SetSearchDateCommand}" |
|||
CommandParameter="{StaticResource d7}"/> |
|||
<c:BButton Content="近15天" Width="50" Height="25" Margin="5,0,0,0" |
|||
Command="{Binding SetSearchDateCommand}" |
|||
CommandParameter="{StaticResource d15}"/> |
|||
<c:BButton Content="近30天" Width="50" Height="25" Margin="5,0,0,0" |
|||
Command="{Binding SetSearchDateCommand}" |
|||
CommandParameter="{StaticResource d30}"/> |
|||
|
|||
</StackPanel> |
|||
|
|||
<Grid Grid.Column="1" Grid.RowSpan="3" Margin="50 0 0 0" > |
|||
<Grid.ColumnDefinitions> |
|||
<ColumnDefinition/> |
|||
<ColumnDefinition/> |
|||
</Grid.ColumnDefinitions> |
|||
<Grid.RowDefinitions> |
|||
<RowDefinition/> |
|||
<RowDefinition/> |
|||
</Grid.RowDefinitions> |
|||
<Button Content="搜索" Width="50" VerticalAlignment="Stretch" Margin="5,0,0,0" Command="{Binding SearchTaskTotalCommand}" |
|||
Grid.RowSpan="2" Background="#8080ff" BorderThickness="0" Foreground="White"/> |
|||
<Button Grid.RowSpan="2" Content="导出" Command="{Binding ExportCommand}" Width="50" Grid.Column="1" |
|||
Background="#02a7f0" BorderThickness="0" Foreground="White"/> |
|||
|
|||
</Grid> |
|||
|
|||
<Grid Grid.Column="2" Grid.RowSpan="3" Margin="50 0 0 0" Background="{StaticResource Button.Background}" Width="420" |
|||
Visibility="{Binding OrderCount,Converter={StaticResource objConverter},ConverterParameter=0:Collapsed:Visible}" |
|||
> |
|||
<Grid.ColumnDefinitions> |
|||
<ColumnDefinition/> |
|||
<ColumnDefinition/> |
|||
<ColumnDefinition/> |
|||
</Grid.ColumnDefinitions> |
|||
<StackPanel VerticalAlignment="Center" Orientation="Vertical" Margin="10 0 0 0"> |
|||
<TextBlock Text="包装服务费" Foreground="White"/> |
|||
<TextBlock Text="{Binding TotalPackDiscountFees,StringFormat='0.00'}" Foreground="White" FontSize="20" FontWeight="Bold"/> |
|||
</StackPanel> |
|||
<StackPanel VerticalAlignment="Center" Orientation="Vertical" Margin="10 0 0 0" Grid.Column="1"> |
|||
<TextBlock Text="包装耗材费" Foreground="White"/> |
|||
<TextBlock Text="{Binding TotalConsumableFees,StringFormat='0.00'}" Foreground="White" FontSize="20" FontWeight="Bold"/> |
|||
</StackPanel> |
|||
<StackPanel VerticalAlignment="Center" Orientation="Vertical" Margin="10 0 0 0" Grid.Column="2"> |
|||
<TextBlock Text="总任务量" Foreground="White"/> |
|||
<TextBlock Text="{Binding OrderCount}" Foreground="White" FontSize="20" FontWeight="Bold"/> |
|||
</StackPanel> |
|||
</Grid> |
|||
</Grid> |
|||
|
|||
|
|||
|
|||
<Grid Grid.Row="1" Margin="0 5 0 0"> |
|||
<Grid> |
|||
<Grid.RowDefinitions> |
|||
<RowDefinition Height="30" /> |
|||
<RowDefinition/> |
|||
</Grid.RowDefinitions> |
|||
<Grid.ColumnDefinitions> |
|||
<ColumnDefinition Width="0"/> |
|||
<ColumnDefinition Width="60"/> |
|||
<ColumnDefinition Width="80"/> |
|||
<ColumnDefinition Width="50"/> |
|||
<ColumnDefinition Width="0"/> |
|||
<ColumnDefinition Width="0"/> |
|||
<ColumnDefinition Width="80"/> |
|||
<ColumnDefinition Width="80"/> |
|||
<ColumnDefinition MinWidth="80"/> |
|||
<ColumnDefinition Width="0"/> |
|||
|
|||
</Grid.ColumnDefinitions> |
|||
<Grid Background="{StaticResource Border.Background}" Grid.ColumnSpan="20"/> |
|||
<CheckBox HorizontalAlignment="Center" IsChecked="{Binding IsBatchChecked,Mode=TwoWay}" Command="{Binding BatchCheckedCommand}" HorizontalContentAlignment="Center" Grid.Column="0"/> |
|||
<TextBlock Text="任务ID" Grid.Column="1" Style="{StaticResource middleTextBlock}"/> |
|||
<TextBlock Text="日期" Grid.Column="2" Style="{StaticResource middleTextBlock}"/> |
|||
<TextBlock Text="状态" Grid.Column="3" Style="{StaticResource middleTextBlock}"/> |
|||
<TextBlock Text="所属部门" Grid.Column="4" Style="{StaticResource middleTextBlock}"/> |
|||
<TextBlock Text="所属店铺" Grid.Column="5" Style="{StaticResource middleTextBlock}"/> |
|||
<TextBlock Text="包装数量" Grid.Column="6" Style="{StaticResource middleTextBlock}"/> |
|||
<TextBlock Text="收货数量" Grid.Column="7" Style="{StaticResource middleTextBlock}"/> |
|||
<TextBlock Text="任务明细" Grid.Column="8" Style="{StaticResource middleTextBlock}"/> |
|||
<TextBlock Text="操作" Grid.Column="9" Style="{StaticResource middleTextBlock}"/> |
|||
<Border Width="1" HorizontalAlignment="Left" Grid.Column="1" Background="{StaticResource Border.Brush}"/> |
|||
<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="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"/> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="14"/> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="15"/> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="16"/> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="17"/> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="18"/> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="19"/> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="20"/> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="21"/> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="22"/> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="23"/> |
|||
<Border Height="1" VerticalAlignment="Top" Grid.ColumnSpan="24" Background="{StaticResource Border.Brush}" Grid.Row="0"/> |
|||
|
|||
<ListBox x:Name="listbox_order" |
|||
Grid.Row="1" Grid.ColumnSpan="24" |
|||
ItemsSource="{Binding PackTaskTotalList}" |
|||
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="40"> |
|||
<Grid > |
|||
<Grid.ColumnDefinitions> |
|||
<ColumnDefinition Width="0"/> |
|||
<ColumnDefinition Width="60"/> |
|||
<ColumnDefinition Width="80"/> |
|||
<ColumnDefinition Width="50"/> |
|||
<ColumnDefinition Width="0"/> |
|||
<ColumnDefinition Width="0"/> |
|||
<ColumnDefinition Width="80"/> |
|||
<ColumnDefinition Width="80"/> |
|||
<ColumnDefinition MinWidth="80"/> |
|||
<ColumnDefinition Width="0"/> |
|||
</Grid.ColumnDefinitions> |
|||
<Grid Margin="0 0 1 0"> |
|||
<CheckBox Grid.Column="8" IsChecked="{Binding TaskChecked,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" HorizontalContentAlignment="Center" /> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
|||
</Grid> |
|||
|
|||
<Grid Grid.Column="1" Margin="0 0 1 0" > |
|||
<c:BButton Content="{Binding TaskId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Center" VerticalAlignment="Center" |
|||
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
|||
CommandParameter="{Binding TaskId}" |
|||
Margin=" 5,0,0,0"/> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
|||
</Grid> |
|||
<Grid Grid.Column="2" Margin="0 0 1 0"> |
|||
<TextBlock Text="{Binding CreateTime,StringFormat=MM-dd}" Style="{StaticResource middleTextBlock}"/> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
|||
</Grid> |
|||
<Grid Grid.Column="3" Margin="0 0 1 0"> |
|||
<TextBlock TextWrapping="Wrap" Text="{Binding IsSettle}" Foreground="{Binding IsSettle,Converter={StaticResource objConverter},ConverterParameter=未结算:#ec808d:#00aaaa}" Style="{StaticResource middleTextBlock}"/> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
|||
</Grid> |
|||
<Grid Grid.Column="4" Margin="0 0 1 0"> |
|||
<c:BButton Content="{Binding DepartmentName}" Style="{StaticResource LinkButton}" HorizontalAlignment="Center" VerticalAlignment="Center" |
|||
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
|||
CommandParameter="{Binding DepartmentName}" |
|||
Margin=" 5,0,0,0"> |
|||
<c:BButton.ToolTip> |
|||
<ToolTip> |
|||
<TextBlock Text="{Binding DepartmentName}"></TextBlock> |
|||
</ToolTip> |
|||
</c:BButton.ToolTip> |
|||
</c:BButton> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
|||
</Grid> |
|||
<Grid Grid.Column="5" Margin="0 0 1 0"> |
|||
<c:BButton Content="{Binding ShopName}" Style="{StaticResource LinkButton}" HorizontalAlignment="Center" VerticalAlignment="Center" |
|||
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
|||
CommandParameter="{Binding ShopName}" |
|||
Margin=" 5,0,0,0"> |
|||
<c:BButton.ToolTip> |
|||
<ToolTip> |
|||
<TextBlock Text="{Binding ShopName}"></TextBlock> |
|||
</ToolTip> |
|||
</c:BButton.ToolTip> |
|||
</c:BButton> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
|||
</Grid> |
|||
<Grid Grid.Column="6" Margin="0 0 1 0"> |
|||
<TextBlock Text="{Binding SkuCount}" TextWrapping="Wrap" Style="{StaticResource middleTextBlock}"/> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
|||
</Grid> |
|||
<Grid Grid.Column="7" Margin="0 0 1 1" > |
|||
<TextBlock Text="{Binding ArrivalQuantity}" Style="{StaticResource middleTextBlock}"/> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
|||
</Grid> |
|||
<Grid Grid.Column="8" Margin="-1" > |
|||
|
|||
|
|||
<local:FeesExcelV2Control |
|||
Visibility="{Binding ProcessComboName,Converter={StaticResource objConverter},ConverterParameter=#null:Collapsed:Visible}" |
|||
IsShopTotal="True" FeesItem="{Binding FeesItemResponse,Mode=TwoWay,NotifyOnSourceUpdated=True,UpdateSourceTrigger=PropertyChanged}" /> |
|||
|
|||
<Grid |
|||
Visibility="{Binding ProcessComboName,Converter={StaticResource objConverter},ConverterParameter=#null:Visible:Collapsed}" |
|||
> |
|||
<Grid.ColumnDefinitions> |
|||
<ColumnDefinition/> |
|||
<ColumnDefinition/> |
|||
<ColumnDefinition/> |
|||
</Grid.ColumnDefinitions> |
|||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> |
|||
<TextBlock Style="{StaticResource middleTextBlock}" > |
|||
<!--<Run Text="包装费用:" /> |
|||
<Run Text="{Binding PackFees}"/> |
|||
</TextBlock> |
|||
<TextBlock Style="{StaticResource middleTextBlock}" Margin="10 0 10 0"> |
|||
<Run Text="折扣系数:" /> |
|||
<Run Text="{Binding DiscountFactor}"/> |
|||
</TextBlock> |
|||
<TextBlock Style="{StaticResource middleTextBlock}">--> |
|||
<Run Text="包装费用:" /> |
|||
<Run Text="{Binding PackDisCountFees}"/> |
|||
</TextBlock> |
|||
</StackPanel> |
|||
|
|||
<TextBlock Grid.Column="1" Style="{StaticResource middleTextBlock}"> |
|||
<Run Text="包装耗材费用:" /> |
|||
<Run Text="{Binding ConsumableFees}"/> |
|||
</TextBlock> |
|||
<TextBlock Grid.Column="2" Style="{StaticResource middleTextBlock}"> |
|||
<Run Text="总费用:" /> |
|||
<Run Text="{Binding AllFees}"/> |
|||
</TextBlock> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
|||
<Border Width="1" Grid.Column="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
|||
</Grid> |
|||
|
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
|||
</Grid> |
|||
<Grid Grid.Column="23" Margin="0 0 1 0"> |
|||
<c:BButton HorizontalAlignment="Center" Height="20" VerticalAlignment="Center" Background="Transparent" Foreground="#02a7f0" Grid.Row="1" Content="结清" |
|||
Command="{Binding DataContext.SettleCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" |
|||
CommandParameter="{Binding TaskId}" |
|||
Visibility="Visible" /> |
|||
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
|||
</Grid> |
|||
</Grid> |
|||
<Border Grid.Row="1" Grid.Column="18" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
|||
</Grid> |
|||
</DataTemplate> |
|||
</ListBox.ItemTemplate> |
|||
</ListBox> |
|||
</Grid> |
|||
|
|||
</Grid> |
|||
|
|||
|
|||
<c:PageControl PageIndex="{Binding PageIndex}" |
|||
PageSize="{Binding PageSize}" |
|||
RecordCount="{Binding OrderCount}" |
|||
Grid.Row="3" |
|||
HorizontalAlignment="Left"> |
|||
<b:Interaction.Triggers> |
|||
<b:EventTrigger EventName="OnPageIndexChanged"> |
|||
<b:InvokeCommandAction Command="{Binding OrderPageIndexChangedCommand}" PassEventArgsToCommand="True"/> |
|||
</b:EventTrigger> |
|||
</b:Interaction.Triggers> |
|||
</c:PageControl> |
|||
</Grid> |
|||
</Grid> |
|||
</Page> |
@ -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.TotalPackTask |
|||
{ |
|||
/// <summary>
|
|||
/// ShopPackTaskTotal.xaml 的交互逻辑
|
|||
/// </summary>
|
|||
public partial class ShopPackTaskTotal : Page |
|||
{ |
|||
public ShopPackTaskTotal() |
|||
{ |
|||
InitializeComponent(); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue