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

127 lines
6.1 KiB
XML

<Window
x:Class="GroupLine.App.View.KanBan.KanBan_PlanCountUpdate"
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 PlanCountUpdateCmd}"
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" Orientation="Vertical">
<StackPanel
Margin="0,20,0,0"
HorizontalAlignment="Center"
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="200"
materialDesign:HintAssist.Hint="班次"
DisplayMemberPath="Text"
ItemsSource="{Binding ClassNumComboBoxList}"
SelectedValue="{Binding DgSelectedPlanCountDto.ClassNum}"
SelectedValuePath="Text" />
</StackPanel>
</DockPanel>
</StackPanel>
<StackPanel
Margin="10"
HorizontalAlignment="Center"
Orientation="Horizontal">
<Label Content="计划日期:" />
<DatePicker
Width="200"
Margin="0,0,10,0"
materialDesign:HintAssist.Hint="计划日期"
Language="zh-CN"
SelectedDate="{Binding DgSelectedPlanCountDto.PlanDate, Mode=TwoWay}"
Style="{StaticResource MaterialDesignFloatingHintDatePicker}" />
</StackPanel>
<!--<StackPanel HorizontalAlignment="Center" Orientation="Vertical">
<StackPanel Margin="10" Orientation="Horizontal">
<Label Content="前组:" />
<TextBox materialDesign:HintAssist.Hint="前组" Text="{Binding DgSelectedPlanCountDto.AGroup, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
</StackPanel>
</StackPanel>
<StackPanel HorizontalAlignment="Center" Orientation="Vertical">
<StackPanel Margin="10" Orientation="Horizontal">
<Label Content="后组:" />
<TextBox materialDesign:HintAssist.Hint="后组" Text="{Binding DgSelectedPlanCountDto.BGroup, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
</StackPanel>
</StackPanel>-->
<StackPanel HorizontalAlignment="Center" Orientation="Vertical">
<StackPanel Margin="10" Orientation="Horizontal">
<Label Content="完成:" />
<TextBox materialDesign:HintAssist.Hint="完成" Text="{Binding DgSelectedPlanCountDto.CGroup, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
</StackPanel>
</StackPanel>
</StackPanel>
</Grid>
</Window>