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

112 lines
5.4 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<Window
x:Class="GroupLine.App.View.KanBan.KanBan_Create"
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.KanBan"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="创建时间"
Width="600"
Height="400"
DataContext="{Binding Source={StaticResource Locator}, Path=KanBan}"
mc:Ignorable="d">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.TextBlock.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ToggleButton.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style BasedOn="{StaticResource {x:Type TextBox}}" TargetType="TextBox">
<Setter Property="Width" Value="200" />
</Style>
<Style BasedOn="{StaticResource {x:Type Label}}" TargetType="Label">
<Setter Property="Width" Value="120" />
<Setter Property="Margin" Value="0,0,20,0" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalContentAlignment" Value="Right" />
</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>
</ResourceDictionary>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<materialDesign:ColorZone Height="45" Background="MediumOrchid">
<StackPanel Orientation="Horizontal">
<Button
Width="100"
Margin="20,0,0,0"
Command="{Binding CreateCmd}"
Style="{StaticResource MaterialDesignRaisedLightButton}"
ToolTip="如果填写数据完成的话,请选择提交">
提交
</Button>
<Button
Width="100"
Margin="20,0,0,0"
Command="{Binding CancelCmd}"
Style="{StaticResource MaterialDesignRaisedLightButton}"
ToolTip="如果不想提交当前表单数据的话,请选择取消">
取消
</Button>
</StackPanel>
</materialDesign:ColorZone>
<StackPanel
Grid.Row="1"
HorizontalAlignment="Center"
Orientation="Vertical">
<StackPanel Margin="20" Orientation="Horizontal">
<Label Content="班次:" />
<DockPanel x:Name="Combbox">
<StackPanel>
<!--<ComboBox Width="200" HorizontalAlignment="Left" ItemsSource="{Binding CombboxList}" SelectedItem="{Binding CombboxItem}" DisplayMemberPath="Text" SelectedValuePath="Key" ></ComboBox>-->
<ComboBox
Width="120"
materialDesign:HintAssist.Hint="班次"
DisplayMemberPath="Text"
ItemsSource="{Binding ClassNumComboBoxList}"
SelectedValue="{Binding FormWorkTimeDto.ClassNum}"
SelectedValuePath="Text" />
</StackPanel>
</DockPanel>
</StackPanel>
<StackPanel Margin="10" Orientation="Horizontal">
<Label Content="排序:" />
<TextBox
Width="120"
materialDesign:HintAssist.Hint="比如A1,B2,C3"
Text="{Binding FormWorkTimeDto.Index, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
</StackPanel>
<StackPanel Margin="10" Orientation="Horizontal">
<Label Content="开始时间:" />
<materialDesign:TimePicker
x:Name="PresetTimePicker1"
Width="120"
Is24Hours="True"
Text="{Binding FormWorkTimeDto.StartTime, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
</StackPanel>
<StackPanel Margin="10" Orientation="Horizontal">
<Label Content="结束时间:" />
<materialDesign:TimePicker
x:Name="PresetTimePicker2"
Width="120"
Is24Hours="True"
Text="{Binding FormWorkTimeDto.EndTime, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
</StackPanel>
</StackPanel>
</Grid>
</Window>