Files
SCRGroupLine/GroupLine.App/View/ReportTimeConfig/ReportTimeConfigIndex.xaml
2026-03-16 10:36:47 +08:00

82 lines
3.6 KiB
XML

<UserControl
x:Class="GroupLine.App.View.ReportTimeConfig.ReportTimeConfigIndex"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:GroupLine.App.View.ReportTimeConfig"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="990"
d:DesignWidth="1400"
DataContext="{Binding Source={StaticResource Locator}, Path=ReportTimeConfig}"
mc:Ignorable="d">
<Grid>
<StackPanel>
<GroupBox Margin="10,20,10,10" Header="报表自动导出时间设置">
<StackPanel Margin="0,10,0,0" Orientation="Vertical">
<StackPanel.Resources>
<Style TargetType="StackPanel">
<Setter Property="Orientation" Value="Horizontal" />
<Setter Property="Margin" Value="0,0,0,4" />
</Style>
<Style BasedOn="{StaticResource {x:Type Label}}" TargetType="Label">
<Setter Property="Width" Value="120" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
<Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
<Setter Property="Padding" Value="0,3" />
</Style>
<Style BasedOn="{StaticResource {x:Type RadioButton}}" TargetType="RadioButton">
<Setter Property="Padding" Value="0,3" />
</Style>
</StackPanel.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="5*" />
<RowDefinition Height="8*" />
<RowDefinition Height="5*" />
</Grid.RowDefinitions>
<StackPanel
Margin="0,0,0,20"
HorizontalAlignment="Center"
Orientation="Horizontal">
<StackPanel Margin="10" Orientation="Horizontal">
<Label Content="每日报表导出时间:" />
<materialDesign:TimePicker
x:Name="PresetTimePicker1"
Width="120"
Is24Hours="True"
Text="{Binding DayReportTime, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
</StackPanel>
</StackPanel>
<Button
Grid.Row="1"
Grid.Column="0"
Grid.ColumnSpan="2"
Width="100"
Height="30"
HorizontalAlignment="Center"
Background="Orange"
Command="{Binding SaveCmd}"
Content="保存" />
</Grid>
</StackPanel>
</GroupBox>
</StackPanel>
</Grid>
</UserControl>