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.
86 lines
4.9 KiB
86 lines
4.9 KiB
2 years ago
|
<UserControl x:Class="BBWY.Client.Views.QualityTask.ShopWaitQualityList"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
|
||
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters" Background="White"
|
||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models"
|
||
|
xmlns:local="clr-namespace:BBWY.Client.Views.QualityTask"
|
||
|
DataContext="{Binding TaskList,Source={StaticResource Locator}}"
|
||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
||
|
mc:Ignorable="d"
|
||
|
d:DesignHeight="450" d:DesignWidth="1500">
|
||
|
<UserControl.Resources>
|
||
|
<ObjectDataProvider x:Key="storageTypeProvider" MethodName="GetValues" ObjectType="{x:Type sys:Enum}">
|
||
|
<ObjectDataProvider.MethodParameters>
|
||
|
<x:Type TypeName="cmodel:StorageType"/>
|
||
|
</ObjectDataProvider.MethodParameters>
|
||
|
</ObjectDataProvider>
|
||
|
<ctr:OrderStorageTypeOptionConverter x:Key="ostConverter"/>
|
||
|
<ctr:ProfitRatioConverter x:Key="profitRatioConverter"/>
|
||
|
<ctr:WaybillNoConverter x:Key="waybillConverter"/>
|
||
|
<ctr:MultiParameterTransferConverter x:Key="mptConverter"/>
|
||
|
<ctr:SaleGrossProfitConverter x:Key="sgpcConverter"/>
|
||
|
<Style TargetType="RadioButton">
|
||
|
|
||
|
<Setter Property="IsChecked" Value="False" />
|
||
|
<Setter Property="Background" Value="#8080FF" />
|
||
|
<Setter Property="Foreground" Value="Black" />
|
||
|
<!--<Setter Property="Content" Value="{Binding ElementName=txt,Path=Text}"/>-->
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="RadioButton">
|
||
|
<Grid Background="#F2F2F2" >
|
||
|
<Rectangle x:Name="_Rect" Fill="#F2F2F2" HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="{TemplateBinding Width}" RenderTransformOrigin="0.5,0.5">
|
||
|
<Rectangle.RenderTransform>
|
||
|
<TransformGroup>
|
||
|
<ScaleTransform ScaleY="-1"/>
|
||
|
<SkewTransform/>
|
||
|
<RotateTransform/>
|
||
|
<TranslateTransform/>
|
||
|
</TransformGroup>
|
||
|
</Rectangle.RenderTransform>
|
||
|
</Rectangle>
|
||
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Height="35">
|
||
|
<TextBlock VerticalAlignment="Center" Text="{TemplateBinding Content}" />
|
||
|
<TextBlock VerticalAlignment="Center" Text="{TemplateBinding Tag}" Foreground="{StaticResource Text.Pink}" Margin="5 0 0 0" />
|
||
|
</StackPanel>
|
||
|
</Grid>
|
||
|
<ControlTemplate.Triggers>
|
||
|
<Trigger Property="IsChecked" Value="true">
|
||
|
<Setter TargetName="_Rect" Property="Fill" Value="#8080FF" />
|
||
|
<Setter Property="Foreground" Value="white"/>
|
||
|
</Trigger>
|
||
|
</ControlTemplate.Triggers>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
</UserControl.Resources>
|
||
|
<Grid>
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="50"/>
|
||
|
<RowDefinition />
|
||
|
</Grid.RowDefinitions>
|
||
|
|
||
|
|
||
|
<StackPanel Orientation="Horizontal" Grid.Row="0">
|
||
|
<RadioButton Content="待验收" Height="35" Width="130" Tag="{Binding QualityTaskCount,Mode=TwoWay}" IsChecked="{Binding QualityTaskExceptionState,Converter={StaticResource objConverter},ConverterParameter=待验收:True:False}"
|
||
|
Command="{Binding SetQualityTaskExceptionStateCommand}" CommandParameter="{x:Static cmodel:QualityTaskExceptionState.待验收}"
|
||
|
/>
|
||
|
<RadioButton Content="验收异常" Height="35" Width="130" Tag="{Binding QualityExceptionCount,Mode=TwoWay}" IsChecked="{Binding QualityTaskExceptionState,Converter={StaticResource objConverter},ConverterParameter=验收异常:True:False}"
|
||
|
Command="{Binding SetQualityTaskExceptionStateCommand}" CommandParameter="{x:Static cmodel:QualityTaskExceptionState.验收异常}"
|
||
|
/>
|
||
|
</StackPanel>
|
||
|
|
||
|
<Grid Grid.Row="1">
|
||
|
<local:ShopWaitQualityControl/>
|
||
|
</Grid>
|
||
|
|
||
|
</Grid>
|
||
|
</Grid>
|
||
|
</UserControl>
|