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.
283 lines
18 KiB
283 lines
18 KiB
2 years ago
|
<UserControl x:Class="BBWY.Client.Views.PackerTask.PackerSalaryControl"
|
||
|
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:local="clr-namespace:BBWY.Client.Views.PackerTask"
|
||
|
mc:Ignorable="d"
|
||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
|
||
|
Background="White"
|
||
|
DataContext="{Binding PackerSalaryVM,Source={StaticResource Locator}}"
|
||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||
|
d:DesignHeight="450" d:DesignWidth="1000"
|
||
|
>
|
||
|
|
||
|
<UserControl.Resources>
|
||
|
|
||
|
<sys:Int32 x:Key="d0">0</sys:Int32>
|
||
|
<sys:Int32 x:Key="d1">1</sys:Int32>
|
||
|
<sys:Int32 x:Key="d3">2</sys:Int32>
|
||
|
<sys:Int32 x:Key="d7">6</sys:Int32>
|
||
|
<sys:Int32 x:Key="d15">14</sys:Int32>
|
||
|
<sys:Int32 x:Key="d30">29</sys:Int32>
|
||
|
|
||
|
</UserControl.Resources>
|
||
|
<Grid>
|
||
|
<c:RoundWaitProgress Play="{Binding IsLoading}" Panel.ZIndex="999"/>
|
||
|
|
||
|
<Grid Margin="5,0">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="120"/>
|
||
|
<RowDefinition/>
|
||
|
<RowDefinition Height="30"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid Background="{StaticResource Border.Background}" HorizontalAlignment="Left" Height="100" Panel.ZIndex="999">
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition/>
|
||
|
<ColumnDefinition Width="auto"/>
|
||
|
<ColumnDefinition Width="auto"/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="0.5*"/>
|
||
|
<RowDefinition Height="0.5*"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<StackPanel Orientation="Horizontal" Margin="0,5,0,0" Height="30">
|
||
|
<StackPanel.Resources>
|
||
|
<Style TargetType="DatePickerTextBox">
|
||
|
<Setter Property="IsReadOnly" Value="True"/>
|
||
|
</Style>
|
||
|
</StackPanel.Resources>
|
||
|
<TextBlock Text="下单时间" VerticalAlignment="Center" Margin="5,0,0,0"/>
|
||
|
<DatePicker SelectedDate="{Binding StartTime}" Width="133.5" Height="30" VerticalContentAlignment="Center" FocusVisualStyle="{x:Null}" Margin="5,0,0,0"/>
|
||
|
<DatePicker SelectedDate="{Binding EndTime}" Width="133.5" Height="30" VerticalContentAlignment="Center" FocusVisualStyle="{x:Null}" Margin="5,0,0,0"/>
|
||
|
|
||
|
|
||
|
</StackPanel>
|
||
|
<StackPanel Orientation="Horizontal" Grid.Row="1" Margin="0,0,0,5" Height="30">
|
||
|
<c:BButton Content="今天" Width="50" Height="25" Margin="5,0,0,0"
|
||
|
Command="{Binding SetSearchDateCommand}"
|
||
|
CommandParameter="{StaticResource d0}"/>
|
||
|
<c:BButton Content="昨天" Width="50" Height="25" Margin="5,0,0,0"
|
||
|
Command="{Binding SetSearchDateCommand}"
|
||
|
CommandParameter="{StaticResource d1}"/>
|
||
|
<c:BButton Content="近3天" Width="50" Height="25" Margin="5,0,0,0"
|
||
|
Command="{Binding SetSearchDateCommand}"
|
||
|
CommandParameter="{StaticResource d3}"/>
|
||
|
<c:BButton Content="近7天" Width="50" Height="24" Margin="5,0,0,0"
|
||
|
Command="{Binding SetSearchDateCommand}"
|
||
|
CommandParameter="{StaticResource d7}"/>
|
||
|
<c:BButton Content="近15天" Width="50" Height="25" Margin="5,0,0,0"
|
||
|
Command="{Binding SetSearchDateCommand}"
|
||
|
CommandParameter="{StaticResource d15}"/>
|
||
|
<c:BButton Content="近30天" Width="50" Height="25" Margin="5,0,0,0"
|
||
|
Command="{Binding SetSearchDateCommand}"
|
||
|
CommandParameter="{StaticResource d30}"/>
|
||
|
</StackPanel>
|
||
|
|
||
|
<Grid Grid.Column="1" Grid.RowSpan="1" Margin="10 5 10 0">
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition/>
|
||
|
<ColumnDefinition/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Button Content="搜索" Width="100" VerticalAlignment="Stretch" Margin="5,5,0,5" Command="{Binding SearchPackUserSalaryCommand}"
|
||
|
Background="#8080ff" BorderThickness="0" Foreground="White"/>
|
||
|
<!--<Button Content="导出" Command="{Binding ExportCommand}" Width="50" Grid.Column="1"
|
||
|
Background="#02a7f0" BorderThickness="0" Foreground="White"/>-->
|
||
|
|
||
|
</Grid>
|
||
|
|
||
|
<Grid Grid.Column="2" Grid.RowSpan="3" Margin="50 0 0 0" Background="{StaticResource Button.Background}" Width="450"
|
||
|
Visibility="{Binding OrderCount,Converter={StaticResource objConverter},ConverterParameter=0:Collapsed:Visible}"
|
||
|
>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="*"/>
|
||
|
<RowDefinition Height="30"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition/>
|
||
|
<ColumnDefinition/>
|
||
|
<ColumnDefinition/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Vertical" >
|
||
|
<TextBlock Text="包装收益" Foreground="White"/>
|
||
|
<TextBlock Text="{Binding TotalSalary,StringFormat='0.00'}" Foreground="White" FontSize="20" FontWeight="Bold"/>
|
||
|
</StackPanel>
|
||
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Vertical" Margin="10 0 0 0" Grid.Column="1">
|
||
|
<TextBlock Text="总任务量" Foreground="White"/>
|
||
|
<TextBlock Text="{Binding TotalTaskCount}" Foreground="White" FontSize="20" FontWeight="Bold"/>
|
||
|
</StackPanel>
|
||
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Vertical" Margin="10 0 0 0" Grid.Column="2">
|
||
|
<TextBlock Text="总件数" Foreground="White"/>
|
||
|
<TextBlock Text="{Binding TotalSkuItemCount}" Foreground="White" FontSize="20" FontWeight="Bold"/>
|
||
|
</StackPanel>
|
||
|
<TextBlock HorizontalAlignment="Left" Foreground="White" Grid.Row="1" Grid.ColumnSpan="3" Margin="20 0 0 0">
|
||
|
<Run Text="统计区间:"/>
|
||
|
<Run Text="{Binding StartTime,StringFormat=yyyy-MM-dd}"/>
|
||
|
<Run Text="至"/>
|
||
|
<Run Text="{Binding EndTime,StringFormat=yyyy-MM-dd}"/>
|
||
|
</TextBlock>
|
||
|
|
||
|
</Grid>
|
||
|
</Grid>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<Grid Grid.Row="1" Width="555" HorizontalAlignment="Left">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="35"/>
|
||
|
<RowDefinition Height="*"/>
|
||
|
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid Grid.Row="0" Background="#ebeef5" >
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="35"/>
|
||
|
<ColumnDefinition Width="100"/>
|
||
|
<ColumnDefinition Width="100"/>
|
||
|
<ColumnDefinition Width="100"/>
|
||
|
<ColumnDefinition Width="120"/>
|
||
|
<ColumnDefinition Width="100"/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
|
||
|
|
||
|
<TextBlock Text="日期" Grid.Column="1" Style="{StaticResource middleTextBlock}"/>
|
||
|
<TextBlock Text="花名" Grid.Column="2" Style="{StaticResource middleTextBlock}"/>
|
||
|
<TextBlock Text="收益" Grid.Column="3" Style="{StaticResource middleTextBlock}"/>
|
||
|
<TextBlock Text="任务数" Grid.Column="4" Style="{StaticResource middleTextBlock}"/>
|
||
|
<TextBlock Text="件数" Grid.Column="5" Style="{StaticResource middleTextBlock}"/>
|
||
|
|
||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="0" />
|
||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="1" />
|
||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="2" />
|
||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="3" />
|
||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="4" />
|
||
|
<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}" Grid.Column="5" />
|
||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5" />
|
||
|
|
||
|
<Border Height="1" VerticalAlignment="Top" Grid.ColumnSpan="18" Background="{StaticResource Border.Brush}" Grid.Row="0"/>
|
||
|
<Border Height="1" VerticalAlignment="Bottom" Grid.ColumnSpan="18" Background="{StaticResource Border.Brush}" Grid.Row="0"/>
|
||
|
</Grid>
|
||
|
|
||
|
|
||
|
<ListBox x:Name="listbox_order"
|
||
|
Grid.Row="1"
|
||
|
ItemsSource="{Binding PackUserSalaryList}"
|
||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}"
|
||
|
BorderBrush="{StaticResource Border.Brush}"
|
||
|
BorderThickness="1,0,1,1"
|
||
|
Foreground="{StaticResource Text.Color}">
|
||
|
<ListBox.ItemTemplate>
|
||
|
<DataTemplate>
|
||
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_order,Converter={StaticResource widthConverter},ConverterParameter=-0}"
|
||
|
>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="35"/>
|
||
|
<RowDefinition Height="*"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid Background="White" >
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="35"/>
|
||
|
<ColumnDefinition Width="100"/>
|
||
|
<ColumnDefinition Width="100"/>
|
||
|
<ColumnDefinition Width="100"/>
|
||
|
<ColumnDefinition Width="120"/>
|
||
|
<ColumnDefinition Width="100"/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
|
||
|
<c:BButton Grid.Column="0" Panel.ZIndex="100" Background="Transparent" HorizontalAlignment="Stretch" BorderThickness="0" Grid.ColumnSpan="6" Command="{Binding HideCommand}" CommandParameter="{Binding}"/>
|
||
|
<Border Margin="8" Grid.Row="1" BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" >
|
||
|
<c:BButton HorizontalAlignment="Center" Grid.Column="0" Content="{Binding IsHide ,Converter={StaticResource objConverter},ConverterParameter=True:+:-}" Style="{StaticResource LinkButton}" Foreground="{StaticResource Border.Brush}" HorizontalContentAlignment="Center" />
|
||
|
</Border>
|
||
|
<TextBlock Text="{Binding Date,StringFormat=yyyy-MM-dd}" Grid.Column="1" Grid.Row="1" Style="{StaticResource middleTextBlock}"/>
|
||
|
<TextBlock Text="{Binding UserName}" Grid.Column="2" Grid.Row="1" Style="{StaticResource middleTextBlock}"/>
|
||
|
<TextBlock Text="{Binding DaySalary}" Grid.Column="3" Grid.Row="1" Style="{StaticResource middleTextBlock}"/>
|
||
|
<TextBlock Text="{Binding DayTaskCount}" Grid.Column="4" Grid.Row="1" Style="{StaticResource middleTextBlock}"/>
|
||
|
<TextBlock Text="{Binding DayTaskSkuItemCount}" Grid.Column="5" Grid.Row="1" Style="{StaticResource middleTextBlock}"/>
|
||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="0" Grid.Row="0"/>
|
||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1" Grid.Row="0"/>
|
||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2" Grid.Row="0"/>
|
||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3" Grid.Row="0"/>
|
||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4" Grid.Row="0"/>
|
||
|
|
||
|
</Grid>
|
||
|
<Border Height="1" VerticalAlignment="Bottom" Background="{StaticResource Border.Brush}" Grid.Column="4" Grid.Row="0"/>
|
||
|
|
||
|
<ListBox Name="listbox_orerSku" Grid.Row="1" Visibility="{Binding IsHide ,Converter={StaticResource objConverter},ConverterParameter=True:Collapsed:Visible}"
|
||
|
ItemsSource="{Binding PackerTaskSalaries}"
|
||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}"
|
||
|
BorderBrush="{StaticResource Border.Brush}"
|
||
|
BorderThickness="0,0,0,0"
|
||
|
Foreground="{StaticResource Text.Color}"
|
||
|
>
|
||
|
<ListBox.ItemTemplate>
|
||
|
<DataTemplate>
|
||
|
<Grid MinHeight="35" Width="{Binding ActualWidth,ElementName=listbox_orerSku}">
|
||
|
<Grid>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="35"/>
|
||
|
<ColumnDefinition Width="100"/>
|
||
|
<ColumnDefinition Width="100"/>
|
||
|
<ColumnDefinition Width="100"/>
|
||
|
<ColumnDefinition Width="120"/>
|
||
|
<ColumnDefinition Width="100"/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
|
||
|
|
||
|
|
||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2" Grid.Row="0"/>
|
||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3" Grid.Row="0"/>
|
||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4" Grid.Row="0"/>
|
||
|
|
||
|
|
||
|
|
||
|
<TextBlock Text="{Binding TaskSalary}" Grid.Column="3" Grid.Row="1" Style="{StaticResource middleTextBlock}"/>
|
||
|
|
||
|
<StackPanel Orientation="Horizontal" Grid.Column="4" Grid.Row="1" HorizontalAlignment="Center">
|
||
|
<TextBlock VerticalAlignment="Center" Text="ID:" Margin="16,0,0,0" />
|
||
|
<c:BButton Content="{Binding TaskId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center"
|
||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}}"
|
||
|
CommandParameter="{Binding TaskId}"
|
||
|
Margin=" 5,0,7,0"/>
|
||
|
</StackPanel>
|
||
|
|
||
|
|
||
|
<TextBlock Text="{Binding TaskSkuItemCount}" Grid.Column="5" Grid.Row="1" Style="{StaticResource middleTextBlock}"/>
|
||
|
|
||
|
</Grid>
|
||
|
|
||
|
<Border Grid.Row="0" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/>
|
||
|
</Grid>
|
||
|
</DataTemplate>
|
||
|
</ListBox.ItemTemplate>
|
||
|
</ListBox>
|
||
|
</Grid>
|
||
|
</DataTemplate>
|
||
|
</ListBox.ItemTemplate>
|
||
|
</ListBox>
|
||
|
|
||
|
|
||
|
|
||
|
</Grid>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<c:PageControl PageIndex="{Binding PageIndex}"
|
||
|
PageSize="{Binding PageSize}"
|
||
|
RecordCount="{Binding OrderCount}"
|
||
|
Grid.Row="3"
|
||
|
HorizontalAlignment="Left">
|
||
|
<b:Interaction.Triggers>
|
||
|
<b:EventTrigger EventName="OnPageIndexChanged">
|
||
|
<b:InvokeCommandAction Command="{Binding OrderPageIndexChangedCommand}" PassEventArgsToCommand="True"/>
|
||
|
</b:EventTrigger>
|
||
|
</b:Interaction.Triggers>
|
||
|
</c:PageControl>
|
||
|
</Grid>
|
||
|
</Grid>
|
||
|
</UserControl>
|