步步为盈
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

174 lines
12 KiB

3 years ago
<Page x:Class="BBWY.Client.Views.Order.SDGroup"
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.Order"
3 years ago
xmlns:cmodel="clr-namespace:BBWY.Client.Models"
xmlns:selectShop="clr-namespace:BBWY.Client.Views.SelectShop"
3 years ago
xmlns:sys="clr-namespace:System;assembly=mscorlib"
3 years ago
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
3 years ago
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
3 years ago
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
Title="SDGroup"
DataContext="{Binding OrderList,Source={StaticResource Locator}}">
3 years ago
<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>
3 years ago
<Grid>
<c:RoundWaitProgress Play="{Binding IsLoading}" Panel.ZIndex="999"/>
<Grid Margin="5,0">
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="5"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="5"/>
<RowDefinition/>
<RowDefinition Height="30"/>
</Grid.RowDefinitions>
3 years ago
<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
<c:BButton Content="拉取订单" Width="100"
Background="{Binding SDGroupButtonIndex,Converter={StaticResource objConverter},ConverterParameter=0:#8080FF:#F2F2F2}"
Foreground="{Binding SDGroupButtonIndex,Converter={StaticResource objConverter},ConverterParameter=0:White:#4A4A4A}"
Command="{Binding SetSDButtinIndexCommand}" CommandParameter="{StaticResource d0}"/>
<c:BButton Content="我的订单" Width="100"
Background="{Binding SDGroupButtonIndex,Converter={StaticResource objConverter},ConverterParameter=1:#8080FF:#F2F2F2}"
Foreground="{Binding SDGroupButtonIndex,Converter={StaticResource objConverter},ConverterParameter=1:White:#4A4A4A}"
Command="{Binding SetSDButtinIndexCommand}" CommandParameter="{StaticResource d1}"/>
</StackPanel>
<Grid Grid.Row="2" Background="{StaticResource Border.Background}" Height="40"
Visibility="{Binding SDGroupButtonIndex,ConverterParameter=0:Visible:Collapsed,Converter={StaticResource objConverter}}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="店铺:" VerticalAlignment="Center" Margin="5,0,0,0"/>
3 years ago
<!--<selectShop:SelectShopDialog DepartmentList="{Binding globalContext.User.DepartmentList}" Height="30">
3 years ago
<b:Interaction.Triggers>
<b:EventTrigger EventName="OnShopChanged">
<b:InvokeCommandAction Command="{Binding SDGroupSelectedShopChangedCommand}" PassEventArgsToCommand="True"/>
</b:EventTrigger>
</b:Interaction.Triggers>
3 years ago
</selectShop:SelectShopDialog>-->
<ComboBox ItemsSource="{Binding globalContext.User.ShopList}" SelectedItem="{Binding SdGroupSelectedShop,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Height="30" MinWidth="100"
IsEditable="True"
VerticalAlignment="Center"
VerticalContentAlignment="Center"/>
<TextBlock Text="订单号:" VerticalAlignment="Center" Margin="5,0,0,0"/>
<c:BTextBox Width="150" Height="30" Margin="5,0,0,0" Text="{Binding SearchOrderId}" WaterRemark="精确匹配"/>
3 years ago
<c:BButton Content="拉取" Height="30" Margin="5,0,0,0" Width="60" Command="{Binding SDGroupPullCommand}"/>
</StackPanel>
</Grid>
<Grid Grid.Row="2" Background="{StaticResource Border.Background}"
Visibility="{Binding SDGroupButtonIndex,ConverterParameter=1:Visible:Collapsed,Converter={StaticResource objConverter}}">
3 years ago
<Grid.RowDefinitions>
<RowDefinition Height="0.5*"/>
<RowDefinition Height="5"/>
<RowDefinition Height="0.5*"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
<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="订单号" VerticalAlignment="Center" Margin="5,0,0,0"/>
<c:BTextBox Width="150" Margin="5,0,0,0" Text="{Binding SearchOrderId}" WaterRemark="精确匹配"/>
<TextBlock Text="SPU" VerticalAlignment="Center" Margin="5,0,0,0"/>
<c:BTextBox Width="150" Margin="5,0,0,0" WaterRemark="精确匹配" Text="{Binding SearchProductId}"/>
<TextBlock Text="SKU" VerticalAlignment="Center" Margin="5,0,0,0"/>
<c:BTextBox Width="150" Margin="5,0,0,0" Text="{Binding SearchSku}" WaterRemark="精确匹配"/>
<!--<TextBlock Text="下单账号" VerticalAlignment="Center" Margin="5,0,0,0"/>
<c:BTextBox Width="150" Margin="5,0,0,0" WaterRemark="暂不支持" IsEnabled="False"
DisableBgColor="{StaticResource TextBox.Disable.BgColor}"/>-->
<c:BButton Content="搜索" Width="50" Margin="5,0,0,0" Command="{Binding SearchOrderCommand}"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Row="2" Margin="0,0,0,5">
<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}"/>
<TextBlock Text="下单账号" VerticalAlignment="Center" Margin="5,0,0,0"/>
<c:BTextBox Width="150" Margin="5,0,0,0" DisableBgColor="{StaticResource TextBox.Disable.BgColor}" IsEnabled="False" WaterRemark="精确匹配"/>
<TextBlock Text="货号" VerticalAlignment="Center" Margin="5,0,0,0" />
<c:BTextBox Width="150" Margin="5,0,0,0" Text="{Binding SearchProductNo}" WaterRemark="精确匹配"/>
<TextBlock Text="客户姓名" VerticalAlignment="Center" Margin="5,0,0,0"/>
<c:BTextBox Width="150" Margin="5,0,0,0" Text="{Binding SearchContactName}" WaterRemark="精确匹配"/>
<c:BButton Content="同步" Width="50" Margin="5,0,0,0" Command="{Binding SyncOrderCommand}" ToolTipService.InitialShowDelay="0" ToolTipService.ShowDuration="10000"
Visibility="Collapsed">
<c:BButton.ToolTip>
<StackPanel>
<TextBlock Text="1.使用筛选条件中的开始时间和结束时间进行同步"/>
<TextBlock Text="2.从开始时间起每次同步3小时时长的订单直到到达结束时间"/>
<TextBlock Text="3.已存在未结束的同步任务将不会重复执行"/>
</StackPanel>
</c:BButton.ToolTip>
</c:BButton>
<c:BButton Content="导出" Command="{Binding ExportCommand}" Width="50" Margin="5,0,0,0"
Visibility="{Binding Visibility,ElementName=listbox_order}"/>
</StackPanel>
</Grid>
3 years ago
<Grid Grid.Row="2" HorizontalAlignment="Right" Width="200" Background="{StaticResource Button.Selected.Background}" TextBlock.Foreground="White"
Visibility="{Binding SDGroupButtonIndex,ConverterParameter=1:Visible:Collapsed,Converter={StaticResource objConverter}}">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center">
<Run Text="总单量"/>
<LineBreak/>
<Run Text="{Binding SDGroupPersonStatistics.MySDCount}" FontSize="20"/>
</TextBlock>
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center">
<Run Text="实付金额"/>
<LineBreak/>
<Run Text="{Binding SDGroupPersonStatistics.OrderPayment}" FontSize="20"/>
</TextBlock>
</Grid>
<local:OrderListControl Grid.Row="4"/>
3 years ago
<c:PageControl PageIndex="{Binding PageIndex}"
PageSize="{Binding PageSize}"
RecordCount="{Binding OrderCount}"
Grid.Row="5"
HorizontalAlignment="Left">
<b:Interaction.Triggers>
<b:EventTrigger EventName="OnPageIndexChanged">
<b:InvokeCommandAction Command="{Binding OrderPageIndexChangedCommand}" PassEventArgsToCommand="True"/>
</b:EventTrigger>
</b:Interaction.Triggers>
</c:PageControl>
3 years ago
</Grid>
</Grid>
</Page>