351 lines
18 KiB
XML
351 lines
18 KiB
XML
<Window x:Class="PetWashControl.Views.PackageManagementWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="套餐管理"
|
|
Width="920"
|
|
Height="780"
|
|
WindowStartupLocation="CenterOwner"
|
|
ResizeMode="CanMinimize"
|
|
Background="#F3F6FB">
|
|
<Grid Margin="24">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border Grid.Row="0"
|
|
Background="#1976D2"
|
|
CornerRadius="20"
|
|
Padding="24"
|
|
Margin="0,0,0,20">
|
|
<StackPanel>
|
|
<TextBlock Text="套餐管理"
|
|
FontSize="28"
|
|
FontWeight="Bold"
|
|
Foreground="White"/>
|
|
<TextBlock Text="维护三套犬型套餐的金额和每个洗护流程时间,保存后前台下次选中套餐会自动写入寄存器。"
|
|
Margin="0,8,0,0"
|
|
FontSize="14"
|
|
Foreground="#DCEBFF"
|
|
TextWrapping="Wrap"/>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<ScrollViewer Grid.Row="1"
|
|
VerticalScrollBarVisibility="Auto">
|
|
<StackPanel>
|
|
<Border Background="White"
|
|
CornerRadius="18"
|
|
Padding="24"
|
|
Margin="0,0,0,20">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="2*"/>
|
|
<ColumnDefinition Width="20"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<StackPanel Grid.Column="0">
|
|
<TextBlock Text="选择套餐"
|
|
FontSize="16"
|
|
FontWeight="SemiBold"
|
|
Foreground="#1F2937"
|
|
Margin="0,0,0,10"/>
|
|
<ComboBox ItemsSource="{Binding Packages}"
|
|
SelectedItem="{Binding EditingPackage}"
|
|
DisplayMemberPath="Name"
|
|
FontSize="16"
|
|
Padding="10"
|
|
Height="42"/>
|
|
|
|
<Grid Margin="0,20,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="16"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Border Grid.Column="0"
|
|
Background="#EEF7FF"
|
|
CornerRadius="14"
|
|
Padding="18">
|
|
<StackPanel>
|
|
<TextBlock Text="套餐金额"
|
|
FontSize="14"
|
|
Foreground="#4B5563"/>
|
|
<TextBox Text="{Binding EditingPackagePrice, UpdateSourceTrigger=LostFocus, StringFormat=F2}"
|
|
Margin="0,10,0,0"
|
|
Padding="10"
|
|
FontSize="22"
|
|
FontWeight="Bold"
|
|
BorderBrush="#1976D2"
|
|
BorderThickness="2"/>
|
|
<TextBlock Text="单位:元"
|
|
Margin="0,10,0,0"
|
|
FontSize="13"
|
|
Foreground="#6B7280"/>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<Border Grid.Column="2"
|
|
Background="#F0FDF4"
|
|
CornerRadius="14"
|
|
Padding="18">
|
|
<StackPanel>
|
|
<TextBlock Text="套餐总时长"
|
|
FontSize="14"
|
|
Foreground="#4B5563"/>
|
|
<TextBlock Text="{Binding EditingPackageTotalDuration, StringFormat={}{0} 分钟}"
|
|
Margin="0,12,0,0"
|
|
FontSize="22"
|
|
FontWeight="Bold"
|
|
Foreground="#15803D"/>
|
|
<TextBlock Text="保存时自动同步到套餐总时长"
|
|
Margin="0,10,0,0"
|
|
FontSize="13"
|
|
Foreground="#6B7280"/>
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
</StackPanel>
|
|
|
|
<Border Grid.Column="2"
|
|
Background="#FFF7ED"
|
|
CornerRadius="14"
|
|
Padding="18">
|
|
<StackPanel>
|
|
<TextBlock Text="保存说明"
|
|
FontSize="16"
|
|
FontWeight="SemiBold"
|
|
Foreground="#9A3412"/>
|
|
<TextBlock Text="1. 当前有未支付订单时禁止修改。"
|
|
Margin="0,14,0,0"
|
|
FontSize="14"
|
|
Foreground="#7C2D12"/>
|
|
<TextBlock Text="2. 总时长由各流程分钟数自动累加。"
|
|
Margin="0,8,0,0"
|
|
FontSize="14"
|
|
Foreground="#7C2D12"/>
|
|
<TextBlock Text="3. 若当前已选中这个套餐,保存后会立即重写当前设备流程参数。"
|
|
Margin="0,8,0,0"
|
|
FontSize="14"
|
|
Foreground="#7C2D12"
|
|
TextWrapping="Wrap"/>
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<Border Background="White"
|
|
CornerRadius="18"
|
|
Padding="24">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="24"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<StackPanel Grid.Column="0">
|
|
<TextBlock Text="清洗流程"
|
|
FontSize="18"
|
|
FontWeight="Bold"
|
|
Foreground="#1F2937"
|
|
Margin="0,0,0,14"/>
|
|
|
|
<Grid Margin="0,0,0,12">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="140"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="首次冲水"
|
|
VerticalAlignment="Center"
|
|
FontSize="15"
|
|
Foreground="#374151"/>
|
|
<TextBox Grid.Column="1"
|
|
Text="{Binding EditingPackageFirstSprayWaterTime, UpdateSourceTrigger=LostFocus}"
|
|
Padding="10"
|
|
FontSize="15"/>
|
|
</Grid>
|
|
|
|
<Grid Margin="0,0,0,12">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="140"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="沐浴1后冲水"
|
|
VerticalAlignment="Center"
|
|
FontSize="15"
|
|
Foreground="#374151"/>
|
|
<TextBox Grid.Column="1"
|
|
Text="{Binding EditingPackageAfterShampoo1SprayTime, UpdateSourceTrigger=LostFocus}"
|
|
Padding="10"
|
|
FontSize="15"/>
|
|
</Grid>
|
|
|
|
<Grid Margin="0,0,0,12">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="140"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="沐浴2后冲水"
|
|
VerticalAlignment="Center"
|
|
FontSize="15"
|
|
Foreground="#374151"/>
|
|
<TextBox Grid.Column="1"
|
|
Text="{Binding EditingPackageAfterShampoo2SprayTime, UpdateSourceTrigger=LostFocus}"
|
|
Padding="10"
|
|
FontSize="15"/>
|
|
</Grid>
|
|
|
|
<Grid Margin="0,0,0,12">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="140"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="沐浴3后冲水"
|
|
VerticalAlignment="Center"
|
|
FontSize="15"
|
|
Foreground="#374151"/>
|
|
<TextBox Grid.Column="1"
|
|
Text="{Binding EditingPackageAfterShampoo3SprayTime, UpdateSourceTrigger=LostFocus}"
|
|
Padding="10"
|
|
FontSize="15"/>
|
|
</Grid>
|
|
|
|
<Grid Margin="0,0,0,12">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="140"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="沐浴液 1"
|
|
VerticalAlignment="Center"
|
|
FontSize="15"
|
|
Foreground="#374151"/>
|
|
<TextBox Grid.Column="1"
|
|
Text="{Binding EditingPackageSprayShampoo1Time, UpdateSourceTrigger=LostFocus}"
|
|
Padding="10"
|
|
FontSize="15"/>
|
|
</Grid>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Column="2">
|
|
<TextBlock Text="烘干与护理"
|
|
FontSize="18"
|
|
FontWeight="Bold"
|
|
Foreground="#1F2937"
|
|
Margin="0,0,0,14"/>
|
|
|
|
<Grid Margin="0,0,0,12">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="140"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="沐浴液 2"
|
|
VerticalAlignment="Center"
|
|
FontSize="15"
|
|
Foreground="#374151"/>
|
|
<TextBox Grid.Column="1"
|
|
Text="{Binding EditingPackageSprayShampoo2Time, UpdateSourceTrigger=LostFocus}"
|
|
Padding="10"
|
|
FontSize="15"/>
|
|
</Grid>
|
|
|
|
<Grid Margin="0,0,0,12">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="140"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="护理液"
|
|
VerticalAlignment="Center"
|
|
FontSize="15"
|
|
Foreground="#374151"/>
|
|
<TextBox Grid.Column="1"
|
|
Text="{Binding EditingPackageSprayShampoo3Time, UpdateSourceTrigger=LostFocus}"
|
|
Padding="10"
|
|
FontSize="15"/>
|
|
</Grid>
|
|
|
|
<Grid Margin="0,0,0,12">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="140"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="热风"
|
|
VerticalAlignment="Center"
|
|
FontSize="15"
|
|
Foreground="#374151"/>
|
|
<TextBox Grid.Column="1"
|
|
Text="{Binding EditingPackageHotAirTime, UpdateSourceTrigger=LostFocus}"
|
|
Padding="10"
|
|
FontSize="15"/>
|
|
</Grid>
|
|
|
|
<Grid Margin="0,0,0,12">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="140"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="冷风"
|
|
VerticalAlignment="Center"
|
|
FontSize="15"
|
|
Foreground="#374151"/>
|
|
<TextBox Grid.Column="1"
|
|
Text="{Binding EditingPackageColdAirTime, UpdateSourceTrigger=LostFocus}"
|
|
Padding="10"
|
|
FontSize="15"/>
|
|
</Grid>
|
|
|
|
<Grid Margin="0,0,0,12">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="140"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="紫外杀菌"
|
|
VerticalAlignment="Center"
|
|
FontSize="15"
|
|
Foreground="#374151"/>
|
|
<TextBox Grid.Column="1"
|
|
Text="{Binding EditingPackageUvSterilizationTime, UpdateSourceTrigger=LostFocus}"
|
|
Padding="10"
|
|
FontSize="15"/>
|
|
</Grid>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
|
|
<Grid Grid.Row="2"
|
|
Margin="0,20,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="160"/>
|
|
<ColumnDefinition Width="16"/>
|
|
<ColumnDefinition Width="160"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Button Grid.Column="1"
|
|
Content="关闭"
|
|
Height="52"
|
|
FontSize="18"
|
|
FontWeight="SemiBold"
|
|
Background="#CBD5E1"
|
|
Foreground="#0F172A"
|
|
BorderThickness="0"
|
|
Click="CloseButton_Click"/>
|
|
|
|
<Button Grid.Column="3"
|
|
Content="保存套餐"
|
|
Height="52"
|
|
FontSize="18"
|
|
FontWeight="SemiBold"
|
|
Background="#16A34A"
|
|
Foreground="White"
|
|
BorderThickness="0"
|
|
Command="{Binding SavePackageConfigCommand}"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|