|
@ -21,6 +21,7 @@ |
|
|
<sys:Int32 x:Key="d15">14</sys:Int32> |
|
|
<sys:Int32 x:Key="d15">14</sys:Int32> |
|
|
<sys:Int32 x:Key="d30">29</sys:Int32> |
|
|
<sys:Int32 x:Key="d30">29</sys:Int32> |
|
|
<ctr:SaleGrossProfitConverter x:Key="sgpConverter"/> |
|
|
<ctr:SaleGrossProfitConverter x:Key="sgpConverter"/> |
|
|
|
|
|
<ctr:MultiParameterTransferConverter x:Key="mptConverter"/> |
|
|
</Page.Resources> |
|
|
</Page.Resources> |
|
|
<Grid> |
|
|
<Grid> |
|
|
<c:RoundWaitProgress Play="{Binding IsLoading}" Panel.ZIndex="999"/> |
|
|
<c:RoundWaitProgress Play="{Binding IsLoading}" Panel.ZIndex="999"/> |
|
@ -135,7 +136,7 @@ |
|
|
Command="{Binding SetOrderStateCommand}" CommandParameter="{x:Null}" |
|
|
Command="{Binding SetOrderStateCommand}" CommandParameter="{x:Null}" |
|
|
Background="{Binding OrderState,Converter={StaticResource objConverter},ConverterParameter=#null:#8080FF:#F2F2F2}" |
|
|
Background="{Binding OrderState,Converter={StaticResource objConverter},ConverterParameter=#null:#8080FF:#F2F2F2}" |
|
|
Foreground="{Binding OrderState,Converter={StaticResource objConverter},ConverterParameter=#null:White:#4A4A4A}"/> |
|
|
Foreground="{Binding OrderState,Converter={StaticResource objConverter},ConverterParameter=#null:White:#4A4A4A}"/> |
|
|
<c:BButton Width="100" |
|
|
<c:BButton Width="100" |
|
|
Background="{Binding OrderState,Converter={StaticResource objConverter},ConverterParameter=待付款:#8080FF:#F2F2F2}" |
|
|
Background="{Binding OrderState,Converter={StaticResource objConverter},ConverterParameter=待付款:#8080FF:#F2F2F2}" |
|
|
Foreground="{Binding OrderState,Converter={StaticResource objConverter},ConverterParameter=待付款:White:#4A4A4A}" |
|
|
Foreground="{Binding OrderState,Converter={StaticResource objConverter},ConverterParameter=待付款:White:#4A4A4A}" |
|
|
Command="{Binding SetOrderStateCommand}" CommandParameter="{x:Static cmodel:OrderState.待付款}"> |
|
|
Command="{Binding SetOrderStateCommand}" CommandParameter="{x:Static cmodel:OrderState.待付款}"> |
|
@ -517,19 +518,19 @@ |
|
|
<TextBlock> |
|
|
<TextBlock> |
|
|
<Run Text="采购方式:"/> |
|
|
<Run Text="采购方式:"/> |
|
|
<Run Text="{Binding PurchaseMethod}"/> |
|
|
<Run Text="{Binding PurchaseMethod}"/> |
|
|
</TextBlock> |
|
|
</TextBlock> |
|
|
<TextBlock> |
|
|
<TextBlock> |
|
|
<Run Text="采购平台:"/> |
|
|
<Run Text="采购平台:"/> |
|
|
<Run Text="{Binding PurchasePlatform}"/> |
|
|
<Run Text="{Binding PurchasePlatform}"/> |
|
|
</TextBlock> |
|
|
</TextBlock> |
|
|
<TextBlock> |
|
|
<TextBlock> |
|
|
<Run Text="采购商家:"/> |
|
|
<Run Text="采购商家:"/> |
|
|
<Run Text="{Binding PurchaserName}"/> |
|
|
<Run Text="{Binding PurchaserName}"/> |
|
|
</TextBlock> |
|
|
</TextBlock> |
|
|
<TextBlock> |
|
|
<TextBlock> |
|
|
<Run Text="采购账号:"/> |
|
|
<Run Text="采购账号:"/> |
|
|
<Run Text="{Binding PurchaseAccountName}"/> |
|
|
<Run Text="{Binding PurchaseAccountName}"/> |
|
|
</TextBlock> |
|
|
</TextBlock> |
|
|
<StackPanel Orientation="Horizontal"> |
|
|
<StackPanel Orientation="Horizontal"> |
|
|
<TextBlock VerticalAlignment="Center" Text="采购单号:"/> |
|
|
<TextBlock VerticalAlignment="Center" Text="采购单号:"/> |
|
|
<c:BButton Style="{StaticResource LinkButton}" Content="{Binding PurchaseOrderId}" Margin="5,0,0,0" |
|
|
<c:BButton Style="{StaticResource LinkButton}" Content="{Binding PurchaseOrderId}" Margin="5,0,0,0" |
|
@ -540,7 +541,7 @@ |
|
|
</DataTemplate> |
|
|
</DataTemplate> |
|
|
</ListBox.ItemTemplate> |
|
|
</ListBox.ItemTemplate> |
|
|
</ListBox> |
|
|
</ListBox> |
|
|
|
|
|
|
|
|
<Border x:Name="bd_costbg" Background="#FCECEE" Grid.Column="2" Margin="0,0,1,0" |
|
|
<Border x:Name="bd_costbg" Background="#FCECEE" Grid.Column="2" Margin="0,0,1,0" |
|
|
Visibility="{Binding IsCostException,ConverterParameter=true:Visible:Collapsed}"/> |
|
|
Visibility="{Binding IsCostException,ConverterParameter=true:Visible:Collapsed}"/> |
|
|
<StackPanel Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,0,10"> |
|
|
<StackPanel Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,0,10"> |
|
@ -712,44 +713,54 @@ |
|
|
Visibility="{Binding PackConfigState ,ConverterParameter=#null:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
Visibility="{Binding PackConfigState ,ConverterParameter=#null:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
</StackPanel>--> |
|
|
</StackPanel>--> |
|
|
|
|
|
|
|
|
<ListBox Grid.Column="7" |
|
|
<ListBox Grid.Column="7" x:Name ="lbSet" |
|
|
Visibility="{Binding IsPurchased,ConverterParameter=true:Visible:Collapsed,Converter={StaticResource objConverter}}" |
|
|
Visibility="{Binding IsPurchased,ConverterParameter=true:Visible:Collapsed,Converter={StaticResource objConverter}}" |
|
|
ItemsSource="{Binding ItemList}" |
|
|
ItemsSource="{Binding ItemList}" |
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
|
|
Style="{StaticResource NoScrollViewListBoxStyle}" |
|
|
Style="{StaticResource NoScrollViewListBoxStyle}" |
|
|
HorizontalAlignment="Center" |
|
|
> |
|
|
VerticalAlignment="Center"> |
|
|
|
|
|
<ListBox.ItemTemplate> |
|
|
<ListBox.ItemTemplate> |
|
|
<DataTemplate> |
|
|
<DataTemplate> |
|
|
<Grid> |
|
|
<Grid Width="{Binding ActualWidth,ElementName=lbSet}" MinHeight="90"> |
|
|
<StackPanel DataContext="{Binding DataContext,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" MinHeight="90" Grid.Column="7" Orientation="Horizontal" HorizontalAlignment="Center"> |
|
|
<StackPanel Orientation="Vertical" Grid.Column="7" VerticalAlignment="Center" HorizontalAlignment="Center"> |
|
|
<c:BButton Content="取消" Style="{StaticResource LinkButton}" |
|
|
<StackPanel Orientation="Horizontal" DataContext="{Binding DataContext,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox},AncestorLevel=1}}"> |
|
|
|
|
|
<c:BButton Content="取消" Style="{StaticResource LinkButton}" |
|
|
Command="{Binding DataContext.CancelOrderCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}" |
|
|
Command="{Binding DataContext.CancelOrderCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}" |
|
|
CommandParameter="{Binding Id}"> |
|
|
CommandParameter="{Binding Id}"> |
|
|
<!--OrderId--> |
|
|
<!--OrderId--> |
|
|
<c:BButton.Visibility> |
|
|
<c:BButton.Visibility> |
|
|
<MultiBinding Converter="{StaticResource mobjConverter}" |
|
|
<MultiBinding Converter="{StaticResource mobjConverter}" |
|
|
ConverterParameter="已取消;true:|:Collapsed:Visible:1"> |
|
|
ConverterParameter="已取消;true:|:Collapsed:Visible:1"> |
|
|
<Binding Path="OrderState" /> |
|
|
<Binding Path="OrderState" /> |
|
|
<Binding Path="IsPurchased"/> |
|
|
<Binding Path="IsPurchased"/> |
|
|
</MultiBinding> |
|
|
</MultiBinding> |
|
|
</c:BButton.Visibility> |
|
|
</c:BButton.Visibility> |
|
|
</c:BButton> |
|
|
</c:BButton> |
|
|
<c:BButton Content="改价" Margin="5,0,0,0" |
|
|
<c:BButton Content="改价" Margin="5,0,0,0" |
|
|
Command="{Binding DataContext.EditPriceCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page }}}" |
|
|
Command="{Binding DataContext.EditPriceCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page }}}" |
|
|
CommandParameter="{Binding }" |
|
|
CommandParameter="{Binding }" |
|
|
Style="{StaticResource LinkButton}" |
|
|
Style="{StaticResource LinkButton}" |
|
|
Visibility="{Binding OrderState,ConverterParameter=已取消:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
Visibility="{Binding OrderState,ConverterParameter=已取消:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
|
|
|
</StackPanel> |
|
|
|
|
|
|
|
|
<c:BButton Content="配置" Margin="5,0,0,0" |
|
|
|
|
|
|
|
|
<StackPanel Margin="0 5 0 0" Visibility="{Binding DataContext.OrderState,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}},Converter={StaticResource objConverter},ConverterParameter=待配置:Visible:Collapsed}"> |
|
|
|
|
|
<c:BButton Content="{Binding PackConfigState,Converter={StaticResource objConverter},ConverterParameter=已配置:修改配置:配置}" Margin="5,0,0,0" |
|
|
Command="{Binding DataContext.EditPackConfigCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}" |
|
|
Command="{Binding DataContext.EditPackConfigCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}" |
|
|
CommandParameter="{Binding }" |
|
|
|
|
|
Style="{StaticResource LinkButton}" |
|
|
Style="{StaticResource LinkButton}" |
|
|
Visibility="{Binding PackConfigState ,ConverterParameter=#null:Collapsed:Visible,Converter={StaticResource objConverter}}"/> |
|
|
> |
|
|
|
|
|
<c:BButton.CommandParameter> |
|
|
|
|
|
<MultiBinding Converter="{StaticResource mptConverter }"> |
|
|
|
|
|
<Binding Path="DataContext.SourceShopName" RelativeSource="{RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox},AncestorLevel=1}"/> |
|
|
|
|
|
<Binding Path=""/> |
|
|
|
|
|
</MultiBinding> |
|
|
|
|
|
</c:BButton.CommandParameter> |
|
|
|
|
|
</c:BButton> |
|
|
|
|
|
|
|
|
|
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
</StackPanel> |
|
|
<Border Grid.ColumnSpan="2" Margin="-20 0 -20 0" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}" |
|
|
<Border VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}" |
|
|
DataContext="{Binding DataContext,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" |
|
|
DataContext="{Binding DataContext,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" |
|
|
Visibility="{Binding ItemList.Count,Converter={StaticResource objConverter},ConverterParameter=1:Collapsed:Visible}"/> |
|
|
Visibility="{Binding ItemList.Count,Converter={StaticResource objConverter},ConverterParameter=1:Collapsed:Visible}"/> |
|
|
</Grid> |
|
|
</Grid> |
|
@ -772,7 +783,7 @@ |
|
|
</ListBox.ItemTemplate> |
|
|
</ListBox.ItemTemplate> |
|
|
</ListBox> |
|
|
</ListBox> |
|
|
</Grid> |
|
|
</Grid> |
|
|
|
|
|
|
|
|
<c:PageControl PageIndex="{Binding PageIndex}" |
|
|
<c:PageControl PageIndex="{Binding PageIndex}" |
|
|
PageSize="{Binding PageSize}" |
|
|
PageSize="{Binding PageSize}" |
|
|
RecordCount="{Binding OrderCount}" |
|
|
RecordCount="{Binding OrderCount}" |
|
|