4 changed files with 101 additions and 22 deletions
@ -0,0 +1,30 @@ |
|||
<c:BWindow x:Class="BBWY.Client.Views.Order.SkuRecentSalesConfirmWindow" |
|||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|||
xmlns:local="clr-namespace:BBWY.Client.Views.Order" |
|||
mc:Ignorable="d" |
|||
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
|||
Title="SkuRecentSalesConfirmWindow" Height="150" Width="400" |
|||
Style="{StaticResource bwstyle}" |
|||
MinButtonVisibility="Collapsed" |
|||
MaxButtonVisibility="Collapsed"> |
|||
<Grid> |
|||
<Grid.RowDefinitions> |
|||
<RowDefinition Height="30"/> |
|||
<RowDefinition/> |
|||
<RowDefinition Height="30"/> |
|||
</Grid.RowDefinitions> |
|||
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}" |
|||
Background="{StaticResource Border.Background}"> |
|||
<TextBlock Text="提示" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
|||
</Border> |
|||
<TextBlock x:Name="txtContent" Grid.Row="1" Text="" |
|||
VerticalAlignment="Center" TextWrapping="Wrap" Margin="20,0"/> |
|||
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right"> |
|||
<c:BButton Content="继续一件代发" Padding="10,0" Background="{StaticResource Border.Background}" Foreground="{StaticResource Text.Color}" Click="BButton_Click"/> |
|||
<c:BButton Content="批量采购" Padding="10,0" Click="BButton_Click"/> |
|||
</StackPanel> |
|||
</Grid> |
|||
</c:BWindow> |
@ -0,0 +1,24 @@ |
|||
using BBWY.Controls; |
|||
using System.Collections.Generic; |
|||
using System.Windows; |
|||
|
|||
namespace BBWY.Client.Views.Order |
|||
{ |
|||
/// <summary>
|
|||
/// SkuRecentSalesConfirmWindow.xaml 的交互逻辑
|
|||
/// </summary>
|
|||
public partial class SkuRecentSalesConfirmWindow : BWindow |
|||
{ |
|||
public SkuRecentSalesConfirmWindow(IList<string> skuIds) |
|||
{ |
|||
InitializeComponent(); |
|||
txtContent.Text = $"SKU {string.Join(',', skuIds)} 最近30天一件代发已超过5件, 建议批量采购入仓,权重更高,推广费用更便宜"; |
|||
} |
|||
|
|||
private void BButton_Click(object sender, RoutedEventArgs e) |
|||
{ |
|||
this.DialogResult = true; |
|||
this.Close(); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue