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.
219 lines
14 KiB
219 lines
14 KiB
<c:BWindow x:Class="BBWY.Client.Views.Order.ManualCalculationCost"
|
|
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:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
|
|
mc:Ignorable="d"
|
|
Title="手动计算成本" Height="450" Width="1100"
|
|
Style="{StaticResource bwstyle}"
|
|
MinButtonVisibility="Collapsed"
|
|
MaxButtonVisibility="Collapsed">
|
|
<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 x:Name="txt_StorageType" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
|
|
<DataGrid ItemsSource="{Binding ManualEditCostOrderSkuList}"
|
|
Grid.Row="1"
|
|
RowHeight="103">
|
|
<DataGrid.Columns>
|
|
<DataGridTemplateColumn Header="货品信息" Width="400">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_orerSku}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="90"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!--{Binding Logo}-->
|
|
<c:BAsyncImage UrlSource="{Binding Logo}"
|
|
Width="80" DecodePixelWidth="80"
|
|
VerticalAlignment="Top" Margin="0,5,0,0"/>
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="0,3,0,5">
|
|
<TextBlock TextWrapping="Wrap">
|
|
<Run Text="SKU名称:"/>
|
|
<Run Text="{Binding Title}"/>
|
|
</TextBlock>
|
|
<TextBlock TextWrapping="Wrap">
|
|
<Run Text="单价:"/>
|
|
<Run Text="{Binding Price}"/>
|
|
</TextBlock>
|
|
<TextBlock TextWrapping="Wrap">
|
|
<Run Text="数量:"/>
|
|
<Run Text="{Binding ItemTotal}"/>
|
|
</TextBlock>
|
|
<TextBlock>
|
|
<Run Text="SPU:" />
|
|
<Run Text="{Binding ProductId}"/>
|
|
</TextBlock>
|
|
|
|
<TextBlock>
|
|
<Run Text="SKU:" />
|
|
<Run Text="{Binding Id}"/>
|
|
</TextBlock>
|
|
|
|
<TextBlock>
|
|
<Run Text="货号:" />
|
|
<Run Text="{Binding ProductItemNum}"/>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
<DataGridTextColumn Header="数量" Width="50" Binding="{Binding ItemTotal}"
|
|
HeaderStyle="{StaticResource ColumnHeaderStyle_Center}"
|
|
ElementStyle="{StaticResource middleTextBlock}"/>
|
|
<DataGridTemplateColumn Header="商品成本" Width="70"
|
|
HeaderStyle="{StaticResource ColumnHeaderStyle_Center}">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<c:BTextBox Text="{Binding SkuAmountStr,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="5,0"/>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
<DataGridTemplateColumn Header="采购运费" Width="70"
|
|
HeaderStyle="{StaticResource ColumnHeaderStyle_Center}">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<c:BTextBox Text="{Binding PurchaseFreightStr,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="5,0"/>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
<DataGridTemplateColumn Header="头程运费" Width="70"
|
|
HeaderStyle="{StaticResource ColumnHeaderStyle_Center}">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<c:BTextBox Text="{Binding FirstFreightStr,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="5,0"/>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
<DataGridTemplateColumn Header="仓储费" Width="70"
|
|
HeaderStyle="{StaticResource ColumnHeaderStyle_Center}">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<c:BTextBox Text="{Binding StorageAmountStr,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="5,0"/>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
<DataGridTemplateColumn Header="操作费" Width="70"
|
|
HeaderStyle="{StaticResource ColumnHeaderStyle_Center}">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<c:BTextBox Text="{Binding OperationAmountStr,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="5,0"/>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
<DataGridTemplateColumn Header="耗材费" Width="70"
|
|
HeaderStyle="{StaticResource ColumnHeaderStyle_Center}">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<c:BTextBox Text="{Binding ConsumableAmountStr,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="5,0"/>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
<DataGridTemplateColumn Header="销售运费" Width="70"
|
|
HeaderStyle="{StaticResource ColumnHeaderStyle_Center}">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<c:BTextBox Text="{Binding DeliveryExpressFreightStr,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="5,0"/>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
<DataGridTemplateColumn Header="单件成本" Width="70"
|
|
HeaderStyle="{StaticResource ColumnHeaderStyle_Center}">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<c:BTextBox Text="{Binding UnitCost,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="5,0"/>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
<DataGridTemplateColumn Width="*" HeaderStyle="{StaticResource ColumnHeaderStyle_Center}">
|
|
<DataGridTemplateColumn.Header>
|
|
<StackPanel>
|
|
<TextBlock Text="总采购成本" HorizontalAlignment="Center"/>
|
|
<TextBlock Text="(不含销售运费)" HorizontalAlignment="Center"/>
|
|
</StackPanel>
|
|
</DataGridTemplateColumn.Header>
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<c:BTextBox Text="{Binding TotalCost,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="5,0"/>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
|
|
<!--<Grid Grid.Row="1" Visibility="Collapsed">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="10"/>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="40"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="100"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="商品成本" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="1"/>
|
|
<c:BTextBox x:Name="txtSkuAmount" Grid.Column="1" Grid.Row="1" Height="30" Width="150" HorizontalAlignment="Left" Margin="5,0,0,0"/>
|
|
|
|
<TextBlock Text="采购运费" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="2"/>
|
|
<c:BTextBox x:Name="txtFeright" Grid.Column="1" Grid.Row="2" Height="30" Width="150" HorizontalAlignment="Left" Margin="5,0,0,0"/>
|
|
|
|
<TextBlock Text="销售运费" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="3"/>
|
|
<c:BTextBox x:Name="txtDeliveryExpressFreight" Grid.Column="1" Grid.Row="3" Height="30" Width="150" HorizontalAlignment="Left" Margin="5,0,0,0"/>
|
|
|
|
<TextBlock Text="头程运费" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="4"
|
|
Visibility="{Binding Visibility,ElementName=txtFirstFreight}"/>
|
|
<c:BTextBox x:Name="txtFirstFreight" Grid.Column="1" Grid.Row="4" Height="30" Width="150" HorizontalAlignment="Left" Margin="5,5,0,5"/>
|
|
|
|
<TextBlock Text="操作费" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="5"
|
|
Visibility="{Binding Visibility,ElementName=txtFirstFreight}"/>
|
|
<c:BTextBox x:Name="txtOperationAmount" Grid.Column="1" Grid.Row="5" Height="30" Width="150" HorizontalAlignment="Left" Margin="5,5,0,5"
|
|
Visibility="{Binding Visibility,ElementName=txtFirstFreight}"/>
|
|
|
|
<TextBlock Text="仓储费" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="6"
|
|
Visibility="{Binding Visibility,ElementName=txtFirstFreight}"/>
|
|
<c:BTextBox x:Name="txtStorageAmount" Grid.Column="1" Grid.Row="6" Height="30" Width="150" HorizontalAlignment="Left" Margin="5,5,0,5"
|
|
Visibility="{Binding Visibility,ElementName=txtFirstFreight}"/>
|
|
|
|
<TextBlock Text="耗材费" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="7"
|
|
Visibility="{Binding Visibility,ElementName=txtFirstFreight}"/>
|
|
<c:BTextBox x:Name="txtConsumableAmount" Grid.Column="1" Grid.Row="7" Height="30" Width="150" HorizontalAlignment="Left" Margin="5,5,0,5"
|
|
Visibility="{Binding Visibility,ElementName=txtFirstFreight}"/>
|
|
|
|
<c:BButton x:Name="btn_fillFromLately" Content="填入最近一次信息" Grid.Row="9" Grid.ColumnSpan="2" Width="120"
|
|
Click="btn_fillFromLately_Click"/>
|
|
</Grid>-->
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Right" Margin="0,0,8,0">
|
|
<TextBlock Text="销售运费总计" VerticalAlignment="Center"/>
|
|
<TextBlock x:Name="txtTotalDeliveryExpressFreight" Text="100" VerticalAlignment="Center" Margin="2,0" Foreground="#EC808D"/>
|
|
<TextBlock Text="元" VerticalAlignment="Center"/>
|
|
|
|
<TextBlock Text="采购成本总计" VerticalAlignment="Center" Margin="10,0,0,0"/>
|
|
<TextBlock x:Name="txtTotalCost" Text="100" VerticalAlignment="Center" Margin="2,0" Foreground="#EC808D"/>
|
|
<TextBlock Text="元" VerticalAlignment="Center"/>
|
|
|
|
<c:BButton x:Name="btn_Save" Content="保存" Width="60" Margin="10,0,0,0"
|
|
Click="btn_Save_Click"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</c:BWindow>
|
|
|