8 changed files with 238 additions and 60 deletions
@ -0,0 +1,91 @@ |
|||||
|
<c:BWindow x:Class="BBWY.Client.Views.Order.EditAfterSaleOrderSku" |
||||
|
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" |
||||
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
||||
|
mc:Ignorable="d" |
||||
|
Style="{StaticResource bwstyle}" |
||||
|
MinButtonVisibility="Collapsed" |
||||
|
MaxButtonVisibility="Collapsed" |
||||
|
Title="EditAfterSaleOrderSku" Height="300" Width="300"> |
||||
|
<c:BWindow.Resources> |
||||
|
<ObjectDataProvider x:Key="ServiceResultProvider" MethodName="GetValues" ObjectType="{x:Type sys:Enum}"> |
||||
|
<ObjectDataProvider.MethodParameters> |
||||
|
<x:Type TypeName="cmodel:ServiceResult"/> |
||||
|
</ObjectDataProvider.MethodParameters> |
||||
|
</ObjectDataProvider> |
||||
|
<ObjectDataProvider x:Key="ProductResultProvider" MethodName="GetValues" ObjectType="{x:Type sys:Enum}"> |
||||
|
<ObjectDataProvider.MethodParameters> |
||||
|
<x:Type TypeName="cmodel:ProductResult"/> |
||||
|
</ObjectDataProvider.MethodParameters> |
||||
|
</ObjectDataProvider> |
||||
|
</c:BWindow.Resources> |
||||
|
<Grid> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="30"/> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition Height="40"/> |
||||
|
</Grid.RowDefinitions> |
||||
|
|
||||
|
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}" |
||||
|
Background="{StaticResource Border.Background}"> |
||||
|
<TextBlock Text="{Binding SaleOrder.SkuId,StringFormat=\{0\} 售后信息}" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
||||
|
</Border> |
||||
|
|
||||
|
<Grid Grid.Row="1"> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="5"/> |
||||
|
<RowDefinition Height="30"/> |
||||
|
<RowDefinition Height="30"/> |
||||
|
<RowDefinition Height="30"/> |
||||
|
<RowDefinition Height="30"/> |
||||
|
<RowDefinition Height="30"/> |
||||
|
<RowDefinition Height="30"/> |
||||
|
<RowDefinition/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<TextBlock Text="处理结果" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="1"/> |
||||
|
<ComboBox Grid.Column="1" Grid.Row="1" |
||||
|
ItemsSource="{Binding Source={StaticResource ServiceResultProvider}}" |
||||
|
SelectedItem="{Binding SaleOrder.ServiceResult}" |
||||
|
SelectedIndex="0" Height="25" Width="100" |
||||
|
HorizontalAlignment="Left" VerticalAlignment="Center" |
||||
|
VerticalContentAlignment="Center" Margin="5,0,0,0"/> |
||||
|
|
||||
|
<TextBlock Text="退款金额" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="2"/> |
||||
|
<c:BTextBox Grid.Column="1" Grid.Row="2" Height="25" Margin="5,0" IsEnabled="False" DisableBgColor="{StaticResource TextBox.Disable.BgColor}" |
||||
|
Text="{Binding SaleOrder.RefundAmount}"/> |
||||
|
|
||||
|
<TextBlock Text="商品处理" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="3"/> |
||||
|
<ComboBox Grid.Column="1" Grid.Row="3" |
||||
|
ItemsSource="{Binding Source={StaticResource ProductResultProvider}}" |
||||
|
SelectedItem="{Binding SaleOrder.ProductResult}" |
||||
|
SelectedIndex="0" Height="25" Width="100" |
||||
|
HorizontalAlignment="Left" VerticalAlignment="Center" |
||||
|
VerticalContentAlignment="Center" Margin="5,0,0,0"/> |
||||
|
|
||||
|
<TextBlock Text="补发快递成本" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="4"/> |
||||
|
<c:BTextBox Grid.Column="1" Grid.Row="4" Height="25" Margin="5,0" |
||||
|
Text="{Binding SaleOrder.ReissueFreight,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/> |
||||
|
|
||||
|
<TextBlock Text="补发货款成本" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="5"/> |
||||
|
<c:BTextBox Grid.Column="1" Grid.Row="5" Height="25" Margin="5,0" |
||||
|
Text="{Binding SaleOrder.ReissueProductAmount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/> |
||||
|
|
||||
|
<TextBlock Text="售后补偿成本" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="6"/> |
||||
|
<c:BTextBox Grid.Column="1" Grid.Row="6" Height="25" Margin="5,0" |
||||
|
Text="{Binding SaleOrder.ReissueAfterSaleAmount,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/> |
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
<c:BButton x:Name="btn_Save" Content="保存" Grid.Row="2" Width="60" HorizontalAlignment="Right" Margin="0,0,8,0" |
||||
|
Click="btn_Save_Click"/> |
||||
|
</Grid> |
||||
|
</c:BWindow> |
@ -0,0 +1,27 @@ |
|||||
|
using BBWY.Client.Models; |
||||
|
using BBWY.Controls; |
||||
|
|
||||
|
namespace BBWY.Client.Views.Order |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// EditAfterSaleOrderSku.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class EditAfterSaleOrderSku : BWindow |
||||
|
{ |
||||
|
public AfterSaleOrder SaleOrder { get; set; } |
||||
|
|
||||
|
public EditAfterSaleOrderSku(AfterSaleOrder afterSaleOrder) |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
if (afterSaleOrder.Id != 0) |
||||
|
SaleOrder = (AfterSaleOrder)afterSaleOrder.Clone(); |
||||
|
this.DataContext = this; |
||||
|
} |
||||
|
|
||||
|
private void btn_Save_Click(object sender, System.Windows.RoutedEventArgs e) |
||||
|
{ |
||||
|
this.DialogResult = true; |
||||
|
this.Close(); |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue