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.
169 lines
10 KiB
169 lines
10 KiB
<Page x:Class="BBWY.Client.Views.TotalPackTask.PackUserSalaryList"
|
|
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.TotalPackTask"
|
|
mc:Ignorable="d"
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
|
|
Background="White"
|
|
DataContext="{Binding PackUserSalary,Source={StaticResource Locator}}"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
d:DesignHeight="450" d:DesignWidth="1000"
|
|
Title="PackUserSalaryList">
|
|
|
|
<Page.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>
|
|
|
|
</Page.Resources>
|
|
<Grid>
|
|
<c:RoundWaitProgress Play="{Binding IsLoading}" Panel.ZIndex="999"/>
|
|
<StackPanel Background="Black" Panel.ZIndex="100" HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Vertical" Margin="400,13,0,0" Width="150">
|
|
<c:BTextBox x:Name="tbUserName" Text="{Binding SearchUserName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" TextChanged="tbUserName_TextChanged" Width="150" Height="30" ></c:BTextBox>
|
|
<ListBox MaxHeight="300" x:Name="tipBoxUserName" SelectionChanged="tipBoxUserName_SelectionChanged" Background="{StaticResource Border.Background}">
|
|
|
|
</ListBox>
|
|
</StackPanel>
|
|
<Grid Margin="5,0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="90"/>
|
|
<RowDefinition/>
|
|
<RowDefinition Height="30"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid Background="{StaticResource Border.Background}" HorizontalAlignment="Left" Height="75" Panel.ZIndex="999">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition Width="auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="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"/>
|
|
<TextBlock Text="花名:" VerticalAlignment="Center" Margin="30,0,0,0"/>
|
|
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal" Grid.Row="2" 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="3" Margin="300 0 0 0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<Button Content="搜索" Width="50" VerticalAlignment="Stretch" Margin="5,0,0,0" 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 Grid.Row="1" >
|
|
<local:PackUserSalaryControl PackUserSalaries="{Binding PackUserSalaryList,Mode=TwoWay}"/>
|
|
|
|
</Grid>
|
|
|
|
<!--<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="30"/>
|
|
<RowDefinition Height="30"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="30"/>
|
|
<ColumnDefinition Width="60"/>
|
|
<ColumnDefinition Width="80"/>
|
|
<ColumnDefinition MinWidth="80"/>
|
|
<ColumnDefinition MinWidth="60"/>
|
|
<ColumnDefinition Width="60"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<CheckBox HorizontalAlignment="Center" Grid.Column="0" HorizontalContentAlignment="Center" />
|
|
<TextBlock Text="任务ID" 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.RowSpan="2"/>
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="0" />
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1" />
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2" />
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3" />
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4" />
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5" Grid.RowSpan="2"/>
|
|
|
|
<Border Height="1" VerticalAlignment="Top" Grid.ColumnSpan="18" Background="{StaticResource Border.Brush}" Grid.Row="0"/>
|
|
<Border Height="1" VerticalAlignment="Top" Grid.ColumnSpan="18" Background="{StaticResource Border.Brush}" Grid.Row="1"/>
|
|
<Border Height="1" VerticalAlignment="Bottom" Grid.ColumnSpan="18" Background="{StaticResource Border.Brush}" Grid.Row="1"/>
|
|
|
|
<CheckBox HorizontalAlignment="Center" Grid.Row="1" HorizontalContentAlignment="Center" />
|
|
<TextBlock Text="123456" Grid.Column="1" Grid.Row="1" Style="{StaticResource middleTextBlock}"/>
|
|
<TextBlock Text="2021-04-03" Grid.Column="2" Grid.Row="1" Style="{StaticResource middleTextBlock}"/>
|
|
<TextBlock Text="齐越苹果" Grid.Column="3" Grid.Row="1" Style="{StaticResource middleTextBlock}"/>
|
|
<TextBlock Text="100.00" Grid.Column="4" Grid.Row="1" Style="{StaticResource middleTextBlock}"/>
|
|
<TextBlock Text="20.00" Grid.Column="5" Grid.Row="1" Style="{StaticResource middleTextBlock}"/>
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="0" Grid.Row="1"/>
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1" Grid.Row="1"/>
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2" Grid.Row="1"/>
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3" Grid.Row="1"/>
|
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4" Grid.Row="1"/>
|
|
|
|
|
|
</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>
|
|
</Page>
|
|
|