|
|
@ -23,15 +23,33 @@ |
|
|
|
<Grid> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="30"/> |
|
|
|
<RowDefinition Height="130"/> |
|
|
|
<RowDefinition Height="1*"/> |
|
|
|
<!--<RowDefinition Height="130"/> |
|
|
|
<RowDefinition Height="1*"/>--> |
|
|
|
<RowDefinition Height="*"/> |
|
|
|
<RowDefinition Height="40"/> |
|
|
|
<RowDefinition Height="40"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}" |
|
|
|
Background="{StaticResource Border.Background}"> |
|
|
|
<TextBlock Text="关联采购订单" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
|
|
|
<TextBlock Text="{Binding OrderId,StringFormat=关联采购单({0})}" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
|
|
|
</Border> |
|
|
|
<Grid Grid.Row="1" Margin="5,0"> |
|
|
|
|
|
|
|
<ListBox x:Name="listbox_orderDropShipping" Grid.Row="1" ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
ItemsSource="{Binding OrderDropShippingList}"> |
|
|
|
<ListBox.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Border Width="{Binding ActualWidth,ElementName=listbox_orderDropShipping,Converter={StaticResource widthConverter},ConverterParameter=10}" |
|
|
|
BorderBrush="{StaticResource Border.Brush}" |
|
|
|
BorderThickness="1" |
|
|
|
Margin="5"> |
|
|
|
<Grid> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="130"/> |
|
|
|
<RowDefinition/> |
|
|
|
<RowDefinition Height="40"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
|
|
|
|
<Grid Margin="5,0"> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="0.12*"/> |
|
|
|
<ColumnDefinition Width="0.35*"/> |
|
|
@ -44,36 +62,37 @@ |
|
|
|
<RowDefinition/> |
|
|
|
<RowDefinition/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<TextBlock Text="订单编号" HorizontalAlignment="Right" VerticalAlignment="Center"/> |
|
|
|
<TextBlock Text="{Binding OrderDropShipping.OrderId}" Grid.Column="1" VerticalAlignment="Center" Margin="5,0,0,0"/> |
|
|
|
|
|
|
|
<TextBlock Text="采购平台" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="1"/> |
|
|
|
<TextBlock Text="采购平台" HorizontalAlignment="Right" VerticalAlignment="Center"/> |
|
|
|
<ComboBox ItemsSource="{Binding Source={StaticResource PlatformProvider}}" |
|
|
|
Grid.Row="1" Grid.Column="1" |
|
|
|
SelectedItem="{Binding OrderDropShipping.PurchasePlatform}" |
|
|
|
Grid.Column="1" |
|
|
|
SelectedItem="{Binding PurchasePlatform}" |
|
|
|
DisplayMemberPath="." |
|
|
|
Height="25" |
|
|
|
Margin="5,0,0,0" |
|
|
|
VerticalContentAlignment="Center"/> |
|
|
|
|
|
|
|
<TextBlock Text="采购订单号" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="1" Grid.Column="2"/> |
|
|
|
<c:BTextBox Text="{Binding OrderDropShipping.PurchaseOrderId}" Grid.Row="1" Grid.Column="3" Height="25" Margin="5,0,0,0"/> |
|
|
|
<TextBlock Text="采购订单号" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="2"/> |
|
|
|
<c:BTextBox Text="{Binding PurchaseOrderId}" Grid.Column="3" Height="25" Margin="5,0,0,0"/> |
|
|
|
|
|
|
|
<TextBlock Text="买家账号" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="2"/> |
|
|
|
<c:BTextBox Text="{Binding OrderDropShipping.BuyerAccount}" Grid.Row="2" Grid.Column="1" Height="25" Margin="5,0,0,0"/> |
|
|
|
<TextBlock Text="买家账号" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="1"/> |
|
|
|
<c:BTextBox Text="{Binding BuyerAccount}" Grid.Row="1" Grid.Column="1" Height="25" Margin="5,0,0,0"/> |
|
|
|
|
|
|
|
<TextBlock Text="卖家账号" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="2" Grid.Column="2"/> |
|
|
|
<c:BTextBox Text="{Binding OrderDropShipping.SellerAccount}" Grid.Row="2" Grid.Column="3" Height="25" Margin="5,0,0,0"/> |
|
|
|
<TextBlock Text="卖家账号" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="1" Grid.Column="2"/> |
|
|
|
<c:BTextBox Text="{Binding SellerAccount}" Grid.Row="1" Grid.Column="3" Height="25" Margin="5,0,0,0"/> |
|
|
|
|
|
|
|
<TextBlock Text="货款金额" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="3"/> |
|
|
|
<c:BTextBox Text="{Binding OrderDropShipping.SkuAmount,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" Grid.Row="3" Grid.Column="1" Height="25" Margin="5,0,0,0" IsEnabled="false" DisableBgColor="{StaticResource TextBox.Disable.BgColor}"/> |
|
|
|
<TextBlock Text="货款金额" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="2"/> |
|
|
|
<c:BTextBox Text="{Binding SkuAmount,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" Grid.Row="2" Grid.Column="1" Height="25" Margin="5,0,0,0" IsEnabled="false" DisableBgColor="{StaticResource TextBox.Disable.BgColor}"/> |
|
|
|
|
|
|
|
<TextBlock Text="采购运费" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="3" Grid.Column="2"/> |
|
|
|
<c:BTextBox Text="{Binding OrderDropShipping.PurchaseFreightStr,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Grid.Row="3" Grid.Column="3" Height="25" Margin="5,0,0,0"/> |
|
|
|
<TextBlock Text="采购运费" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="2" Grid.Column="2"/> |
|
|
|
<c:BTextBox Text="{Binding PurchaseFreightStr,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Grid.Row="2" Grid.Column="3" Height="25" Margin="5,0,0,0"/> |
|
|
|
|
|
|
|
<TextBlock Text="商户单号" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="3"/> |
|
|
|
<c:BTextBox Text="{Binding MerchantOrderId}" Grid.Row="3" Grid.Column="1" Height="25" Margin="5,0,0,0"/> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
<Grid Grid.Row="2" Margin="5,0"> |
|
|
|
|
|
|
|
<Grid Grid.Row="1" Margin="5,3,5,0"> |
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition Height="30"/> |
|
|
|
<RowDefinition/> |
|
|
@ -101,7 +120,7 @@ |
|
|
|
ItemsSource="{Binding RelationPurchaseOrderSkuList}" |
|
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
|
BorderBrush="{StaticResource Border.Brush}" |
|
|
|
BorderThickness="1,0,1,1"> |
|
|
|
BorderThickness="1,0,1,0"> |
|
|
|
<ListBox.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<Grid Height="90" Width="{Binding ActualWidth,ElementName=listbox_ordersku}"> |
|
|
@ -135,10 +154,29 @@ |
|
|
|
</ListBox> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
<c:BButton Grid.Row="2" Style="{StaticResource LinkButton}"> |
|
|
|
<StackPanel> |
|
|
|
<Path Style="{StaticResource path_add}" Fill="{StaticResource Text.Link.Color}" Width="16"/> |
|
|
|
<TextBlock Text="添加采购单"/> |
|
|
|
</StackPanel> |
|
|
|
</c:BButton> |
|
|
|
</Grid> |
|
|
|
</Border> |
|
|
|
</DataTemplate> |
|
|
|
</ListBox.ItemTemplate> |
|
|
|
</ListBox> |
|
|
|
|
|
|
|
<c:BButton Grid.Row="2" Style="{StaticResource LinkButton}"> |
|
|
|
<StackPanel> |
|
|
|
<Path Style="{StaticResource path_add}" Fill="{StaticResource Text.Link.Color}" Width="16"/> |
|
|
|
<TextBlock Text="添加采购单"/> |
|
|
|
</StackPanel> |
|
|
|
</c:BButton> |
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Row="3" HorizontalAlignment="Right"> |
|
|
|
<TextBlock VerticalAlignment="Center" Margin="0,0,8,0"> |
|
|
|
<Run Text="总计"/> |
|
|
|
<Run Text="{Binding OrderDropShipping.PurchaseAmount}" Foreground="#EC808D"/> |
|
|
|
<Run Text="{Binding TotalCost}" Foreground="#EC808D"/> |
|
|
|
<Run Text="元"/> |
|
|
|
</TextBlock> |
|
|
|
<c:BButton x:Name="btn_Save" Content="保存" Width="60" Margin="0,0,8,0" |
|
|
|