114 lines
3.5 KiB
XML
114 lines
3.5 KiB
XML
<UserControl
|
|
x:Class="_29WxOrderWpf.Ctrls.Statistics.RevenueStatisticsSearchBar"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:c="clr-namespace:_29WxOrderWpf.Ctrls.Commons"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:vm="clr-namespace:_29WxOrderWpf.Ctrls.Statistics.ViewModels"
|
|
d:DataContext="{d:DesignInstance Type=vm:ShopRevenueStatisticsViewModel,
|
|
IsDesignTimeCreatable=True}"
|
|
mc:Ignorable="d">
|
|
<UserControl.Resources>
|
|
<!-- 日期只允许从日历选择,禁止手工输入 -->
|
|
<Style TargetType="DatePickerTextBox">
|
|
<Setter Property="IsReadOnly" Value="True" />
|
|
</Style>
|
|
|
|
<!-- 卡片样式(白底、圆角、阴影) -->
|
|
<Style x:Key="CardBorderStyle" TargetType="Border">
|
|
<Setter Property="Background" Value="White" />
|
|
<Setter Property="CornerRadius" Value="8" />
|
|
<Setter Property="Padding" Value="18" />
|
|
<Setter Property="Margin" Value="4" />
|
|
<Setter Property="Effect">
|
|
<Setter.Value>
|
|
<DropShadowEffect
|
|
BlurRadius="10"
|
|
Opacity="0.08"
|
|
ShadowDepth="2"
|
|
Color="#000000" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</UserControl.Resources>
|
|
|
|
<Border
|
|
Margin="6,6,6,0"
|
|
Padding="14,10"
|
|
Style="{StaticResource CardBorderStyle}">
|
|
<WrapPanel>
|
|
<TextBlock
|
|
Margin="6,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
Foreground="#666666"
|
|
Text="时间" />
|
|
<ComboBox
|
|
Width="110"
|
|
Height="32"
|
|
VerticalContentAlignment="Center"
|
|
DisplayMemberPath="Text"
|
|
IsReadOnly="True"
|
|
BorderThickness="1"
|
|
ItemsSource="{Binding TimeRangeOptions}"
|
|
SelectedItem="{Binding SelectedTimeRange, Mode=TwoWay}"
|
|
Style="{StaticResource RoundedComboBox}" />
|
|
<TextBlock
|
|
Margin="14,0,6,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
Foreground="#666666"
|
|
Text="日期" />
|
|
<DatePicker BorderBrush="{StaticResource pageColorBrush}"
|
|
Height="32"
|
|
VerticalContentAlignment="Center"
|
|
SelectedDate="{Binding StartDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBlock
|
|
Margin="6,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
Foreground="#666666"
|
|
Text="~" />
|
|
<DatePicker BorderBrush="{StaticResource pageColorBrush}"
|
|
Height="32"
|
|
VerticalContentAlignment="Center"
|
|
SelectedDate="{Binding EndDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBlock
|
|
Margin="14,0,6,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
Foreground="#666666"
|
|
Text="店铺" />
|
|
<c:ShopFilterComboBox
|
|
Width="130"
|
|
Height="32"
|
|
DisplayMemberPath="ShopName"
|
|
IsGrouped="True"
|
|
ItemsSource="{Binding ShopOptions}"
|
|
SelectedItems="{Binding SelectedShops}" />
|
|
<!--<ComboBox IsEnabled="False"
|
|
Width="130"
|
|
Height="32"
|
|
VerticalContentAlignment="Center"
|
|
DisplayMemberPath="ShopName"
|
|
ItemsSource="{Binding ShopOptions}"
|
|
SelectedItem="{Binding SelectedShop, Mode=TwoWay}"
|
|
Style="{StaticResource BaseComboBoxStyle}" />-->
|
|
<Button
|
|
Height="32"
|
|
Margin="18,0,0,0"
|
|
Padding="16,0"
|
|
Command="{Binding QueryCommand}"
|
|
Content=" 查询 "
|
|
Style="{StaticResource BasePageButtonStyle}" />
|
|
<Button
|
|
Height="32"
|
|
Margin="8,0,0,0"
|
|
Padding="16,0"
|
|
Command="{Binding ResetCommand}"
|
|
Content=" 重置 "
|
|
Style="{StaticResource BasePageButtonLightStyle}" />
|
|
</WrapPanel>
|
|
</Border>
|
|
</UserControl> |